Comments (6)
@seankingyang Could you please attach to this bug the output of the following commands?
lsblk -i -n -P -o KNAME,TYPE,MOUNTPOINT
udevadm info --export-db
from checkbox.
No need to run the commands, both outputs are in the submission
from checkbox.
After try to add the condition to check the len of self.stack then this script will not fail
Line218:
# from
218 return self._stack[-2]._environment.get("SUBSYSTEM")
# to
218 if len(self._stack)>=2:
219 return self._stack[-2]._environment.get("SUBSYSTEM")
220 else:
221 return self._stack[0]._environment.get("SUBSYSTEM")
But I'm not sure if this change will break any other things....
Note: This DUT with RAID0,
self._stack
like this[<UdevadmDevice: bus: block id [0:0] Volume0>]
, and it break the script.self._stack[0]._environment
is{'DEVPATH': '/devices/virtual/block/md126', 'SUBSYSTEM': 'block', 'DEVNAME': '/dev/md126', 'DEVTYPE': 'disk', 'DISKSEQ': '16', 'MAJOR': '9', 'MINOR': '126', 'USEC_INITIALIZED': '2677959', 'MD_LEVEL': 'raid0', 'MD_DEVICES': '4', 'MD_CONTAINER': '/dev/md/imsm0', 'MD_MEMBER': '0', 'MD_UUID': '28901efc:88e7c780:5346ef73:afb394c8', 'MD_DEVNAME': 'Volume0', 'ID_PART_TABLE_UUID': '334e0087-3358-4d03-808d-4e17fd925764', 'ID_PART_TABLE_TYPE': 'gpt', 'UDISKS_MD_LEVEL': 'raid0', 'UDISKS_MD_DEVICES': '4', 'UDISKS_MD_CONTAINER': '/dev/md/imsm0', 'UDISKS_MD_MEMBER': '0', 'UDISKS_MD_UUID': '28901efc:88e7c780:5346ef73:afb394c8', 'UDISKS_MD_DEVNAME': 'Volume0', 'UDISKS_MD_DEVICE_dev_nvme2n1_ROLE': '1', 'UDISKS_MD_DEVICE_dev_nvme2n1_DEV': '/dev/nvme2n1', 'UDISKS_MD_DEVICE_dev_nvme1n1_ROLE': '0', 'UDISKS_MD_DEVICE_dev_nvme1n1_DEV': '/dev/nvme1n1', 'UDISKS_MD_DEVICE_dev_nvme4n1_ROLE': '3', 'UDISKS_MD_DEVICE_dev_nvme4n1_DEV': '/dev/nvme4n1', 'UDISKS_MD_DEVICE_dev_nvme3n1_ROLE': '2', 'UDISKS_MD_DEVICE_dev_nvme3n1_DEV': '/dev/nvme3n1', 'DEVLINKS': '/dev/disk/by-id/md-uuid-28901efc:88e7c780:5346ef73:afb394c8 /dev/md/Volume0', 'TAGS': ':systemd:', 'CURRENT_TAGS': ':systemd:'}
from checkbox.
After checking with the HW RAID(ie MegaRAID 9560), there issue will not occur.
This issue seems only occurs on Virtual RAID (Zoom card ).
from checkbox.
We also seen this issue on DELL Edge Gateway 5200. On the 5200, we have created a RAID1 by the Intel RST controller.
ubuntu@ubuntu:~$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
loop0 7:0 0 289.3M 1 loop /snap/checkbox22/726
loop1 7:1 0 16.1M 1 loop /snap/checkbox-ce-oem/110
loop2 7:2 0 16.2M 1 loop /snap/checkbox-ce-oem/138
loop3 7:3 0 54.6M 1 loop /snap/checkbox-iiotg-classic/78
loop4 7:4 0 55.7M 1 loop /snap/core18/2812
loop5 7:5 0 63.9M 1 loop /snap/core20/2105
loop6 7:6 0 74.1M 1 loop /snap/core22/1033
loop7 7:7 0 19.4M 1 loop /snap/lms/75
loop8 7:8 0 16.3M 1 loop /snap/lms/76
loop9 7:9 0 111.9M 1 loop /snap/lxd/24322
loop10 7:10 0 40.9M 1 loop /snap/snapd/20290
loop11 7:11 0 40.4M 1 loop /snap/snapd/20671
sda 8:0 0 1.9T 0 disk
├─md126 9:126 0 1.9T 0 raid1
│ ├─md126p1 259:0 0 50M 0 part /boot/efi
│ └─md126p2 259:1 0 1.9T 0 part /
└─md127 9:127 0 0B 0 md
sdb 8:16 0 1.9T 0 disk
├─md126 9:126 0 1.9T 0 raid1
│ ├─md126p1 259:0 0 50M 0 part /boot/efi
│ └─md126p2 259:1 0 1.9T 0 part /
└─md127 9:127 0 0B 0 md
error log:
Traceback (most recent call last):
File "/tmp/nest-sm_eiuj3.5898582bde834e198d8c971d79f8e1aa6851b304be424661f5e7be4c435e3acd/udev_resource.py", line 140, in <module>
main()
File "/tmp/nest-sm_eiuj3.5898582bde834e198d8c971d79f8e1aa6851b304be424661f5e7be4c435e3acd/udev_resource.py", line 133, in main
if filter_by_categories(udev, args.filter) == 0:
File "/tmp/nest-sm_eiuj3.5898582bde834e198d8c971d79f8e1aa6851b304be424661f5e7be4c435e3acd/udev_resource.py", line 50, in filter_by_categories
for device in udev.run():
File "/snap/checkbox22/current/lib/python3.10/site-packages/checkbox_support/parsers/udevadm.py", line 1289, in run
elif device.category == 'BLUETOOTH':
File "/snap/checkbox22/current/lib/python3.10/site-packages/checkbox_support/parsers/udevadm.py", line 284, in category
if self.bus == "bluetooth":
File "/snap/checkbox22/current/lib/python3.10/site-packages/checkbox_support/parsers/udevadm.py", line 218, in bus
return self._stack[-2]._environment.get("SUBSYSTEM")
IndexError: list index out of range
from checkbox.
Thank you for reporting us your feedback!
The internal ticket has been created: https://warthogs.atlassian.net/browse/CHECKBOX-1199.
This message was autogenerated
from checkbox.
Related Issues (20)
- Add platform profile testing to certification tests for Lenovo's platforms
- test jira import HOT 1
- docs: TYPE YOUR QUESTION HERE HOT 1
- `scanner.py` couldn't support Bluetooth 5.4 HOT 1
- Checkbox resource get unsupported CAPTURE device on Intel platform with MIPI camera HOT 1
- [Checkbox Control] Unable resume from suspend since operation not permitted problem causes RTC cannot be configured properly HOT 5
- "HTTPConnection.request() got an unexpected keyword argument 'chunked'" exception with Metabox HOT 2
- Need to account for both ppc6le and ppc64el cpu platform names when setting constraints using cpu.platform HOT 2
- Reusable variables inside unit definitions HOT 1
- Session does not continue if reconnecting to an agent after the controller stopped/crashed HOT 1
- id: graphics/{index}_valid_opengl_renderer_{product_slug}` shouldn't expect DRI_PRIME=1 is dGPU HOT 1
- Add the contribution guide for the command field HOT 1
- Update document link for s0ix troubleshooting in power management job. HOT 1
- Add better output on failure cases when kernel_taint_test.py is run HOT 1
- snappy/test-snaps-confinement test failed with testing snaps be installed HOT 2
- Auto resume is not working in `edge` channel HOT 6
- Traceback on `./manage.py develop` when `/var/tmp/checkbox-providers-develop` doesn't exist HOT 1
- miscellanea/cpuid test fails to recognize code 0xc06f2 as Intel Emerald Rapids HOT 2
- Add new CPUIDs to cpuid.py HOT 2
- `inxi` command not executable in the edge PPA deb HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from checkbox.