This bug was fixed in the package lxd - 2.15-0ubuntu5
---
lxd (2.15-0ubuntu5) artful; urgency=medium
* Cherry-pick upstream fixes:
- 0006-lxc-config-Removal-of-multiple-devices-at-once.patch (LP: #1690299)
- 0007-network-Don-t-fail-on-non-process-PIDs.patch (LP: #1698712)
** Changed in: lxd (Ubuntu)
Assignee: (unassigned) => Stéphane Graber (stgraber)
--
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
Just spent an hour attempting to implement the "optional" property and I'm
afraid it can't be done in a sane way due to:
- We rely on the path existing on the host at the time the device is added to
read a number of flags from it for config validation
- We rely on the bind-mount device
stgraber@castiana:~/data/code/lxc/lxd (stgraber/master)$ lxc config device
remove c1 test1 test2
Device test1, test2 removed from c1
So I have that part implemented now, it should make it to LXD 2.16.
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is
The removal of multiple devices at once, I'll do as part of my new-
client branch as the new client library makes that much easier. I spent
30min trying to hook things up with the old client library, but all our
helper functions are meant to interact with a single device at once...
Adding the
Both proposals are useful.
--
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:
Okay, so I figured out what's going on here and while not ideal, it
actually makes sense.
unix-char and unix-block devices don't have an "optional" property,
therefore LXD will fail to start any container which lists such a device
without the host path existing.
LXD also validates the container
** Description changed:
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)
+ 1) plug two usb drives
Version - 2.12-0ubuntu1~ubuntu16.04.1
--
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: