Public bug reported:
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 drive 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) try to start container
6) 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
** Affects: lxd (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1690299
Title:
Cannot remove detached devices from container
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lxd/+bug/1690299/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs