Cannot remove detached devices from container
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lxd (Ubuntu) |
Fix Released
|
Medium
|
Stéphane Graber |
Bug Description
When multiple unix-char or unix-block devices are attached to container and detached from system it's not possible to remove that missing devices from container.
Steps to reproduce:
1) plug two usb drives to system (in my case sda, sdb)
2) create container: lxc launch ubuntu: test
3) attach devices:
lxc config device add test sdb unix-block path=/dev/sdb
lxc config device add test sdc unix-block path=/dev/sdc
4) stop the container: lxc stop test
5) remove usb drives physically
6) try to start container
7) try to remove sdb and sdc device
Current results:
$ lxc start test
error: Missing source '/dev/sdb' for device 'sdb'
Try `lxc info --show-log test` for more info
$ lxc config device remove test sdb
error: The device path doesn't exist on the host and major/minor wasn't specified.
$ lxc config device list test
sdb: unix-block
sdc: unix-block
description: | updated |
Changed in lxd (Ubuntu): | |
assignee: | nobody → Stéphane Graber (stgraber) |
Version - 2.12-0ubuntu1~ ubuntu16. 04.1