[qubes-users] qubes-manager crash (reproducible)

  1. Insert a flash memory card (SD) in my laptop’s card reader
  2. Observe that Qubes VM Manager offers the following two (!) block devices for attaching to AppVMs:
    dom0:mmcblk0
    dom0:mmcblk0p1
  3. Choose any of them for attaching to an AppVM.
  4. Whoops. A critical error has occured. This is most likely a bug in Qubes Manager. QubesException: Error while connecting block device: 2 creating vdb structure at line 1761 of file /usr/lib64/python2.7site-packages/qubesmanager/main.py

It is not possible to click on the “Show Details” button because qubes-manager is already frozen and can at this point only be killed.

(also note minor spelling bug - “occurred” needs two "r"s.)

How to troubleshoot this one?

Qubes2 R2

Thanks

Alex

So, this crash appears to have been caused by the SD card having the "write
lock" hardware switch enabled. Bizarre. Any ideas what kind of funkiness
that might have caused to crash qubes-manager?

Alex

"Error while connecting block device: 2 creating vdb structure" is caused by
attach script - attach in RW mode fails for RO devices. So two problems here:
1. RO device isn't correctly detected,
2. Qubes-manager doesn't catch this problem correctly.

1. Insert a flash memory card (SD) in my laptop's card reader
2. Observe that Qubes VM Manager offers the following two (!) block
devices for attaching to AppVMs:
dom0:mmcblk0
dom0:mmcblk0p1
3. Choose any of them for attaching to an AppVM.
4. Whoops. A critical error has occured. This is most likely a bug in
Qubes Manager. QubesException: Error while connecting block device: 2
creating vdb structure at line 1761 of file
/usr/lib64/python2.7site-packages/qubesmanager/main.py

It is not possible to click on the "Show Details" button because
qubes-manager is already frozen and can at this point only be killed.

So, this crash appears to have been caused by the SD card having the "write
lock" hardware switch enabled. Bizarre. Any ideas what kind of funkiness
that might have caused to crash qubes-manager?

"Error while connecting block device: 2 creating vdb structure" is caused by
attach script - attach in RW mode fails for RO devices. So two problems here:
1. RO device isn't correctly detected,

Fixed.

2. Qubes-manager doesn't catch this problem correctly.

Also fixed.