GithubHelp home page GithubHelp logo

Comments (6)

yphus avatar yphus commented on July 17, 2024

@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.

yphus avatar yphus commented on July 17, 2024

No need to run the commands, both outputs are in the submission

from checkbox.

seankingyang avatar seankingyang commented on July 17, 2024

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.

seankingyang avatar seankingyang commented on July 17, 2024

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.

stanley31huang avatar stanley31huang commented on July 17, 2024

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.

syncronize-issues-to-jira avatar syncronize-issues-to-jira commented on July 17, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.