config-changed hook fails with virt-type=lxd
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
nova-compute (Juju Charms Collection) |
Fix Released
|
High
|
James Page | ||
nova-compute-lxd (Ubuntu) |
Fix Released
|
High
|
Chuck Short |
Bug Description
The last security update to lxd restricts the permissions on the unix socket to talk with lxd; this has the side effect that the config-changed hook now fails as the nova user at this point in the charm lifecycle is not in the lxd group yet:
2015-11-16 14:19:51 INFO config-changed Generating a client certificate. This may take a minute...
2015-11-16 14:19:58 INFO config-changed If this is your first run, you will need to import images using the 'lxd-images' script.
2015-11-16 14:19:58 INFO config-changed For example: 'lxd-images import ubuntu --alias ubuntu'.
2015-11-16 14:19:58 INFO config-changed error: Get http://
2015-11-16 14:19:58 INFO juju-log Retrying 'lxc_list' 5 more times (delay=2)
2015-11-16 14:20:00 INFO config-changed error: Get http://
2015-11-16 14:20:00 INFO juju-log Retrying 'lxc_list' 4 more times (delay=4)
2015-11-16 14:20:04 INFO config-changed error: Get http://
2015-11-16 14:20:04 INFO juju-log Retrying 'lxc_list' 3 more times (delay=6)
2015-11-16 14:20:10 INFO config-changed error: Get http://
2015-11-16 14:20:10 INFO juju-log Retrying 'lxc_list' 2 more times (delay=8)
2015-11-16 14:20:18 INFO config-changed error: Get http://
2015-11-16 14:20:18 INFO juju-log Retrying 'lxc_list' 1 more times (delay=10)
2015-11-16 14:20:28 INFO config-changed error: Get http://
2015-11-16 14:20:28 INFO config-changed Traceback (most recent call last):
2015-11-16 14:20:28 INFO config-changed File "/var/lib/
2015-11-16 14:20:28 INFO config-changed main()
2015-11-16 14:20:28 INFO config-changed File "/var/lib/
2015-11-16 14:20:28 INFO config-changed hooks.execute(
2015-11-16 14:20:28 INFO config-changed File "/var/lib/
2015-11-16 14:20:28 INFO config-changed self._hooks[
2015-11-16 14:20:28 INFO config-changed File "/var/lib/
2015-11-16 14:20:28 INFO config-changed f(*args, **kwargs)
2015-11-16 14:20:28 INFO config-changed File "/var/lib/
2015-11-16 14:20:28 INFO config-changed configure_
2015-11-16 14:20:28 INFO config-changed File "/var/lib/
2015-11-16 14:20:28 INFO config-changed lxc_list(user)
2015-11-16 14:20:28 INFO config-changed File "/var/lib/
2015-11-16 14:20:28 INFO config-changed return f(*args, **kwargs)
2015-11-16 14:20:28 INFO config-changed File "/var/lib/
2015-11-16 14:20:28 INFO config-changed check_call(cmd)
2015-11-16 14:20:28 INFO config-changed File "/usr/lib/
2015-11-16 14:20:28 INFO config-changed raise CalledProcessEr
2015-11-16 14:20:28 INFO config-changed subprocess.
2015-11-16 14:20:28 ERROR juju.worker.
Related branches
- Corey Bryant (community): Approve
-
Diff: 13 lines (+0/-3)1 file modifiedhooks/nova_compute_hooks.py (+0/-3)
- Corey Bryant (community): Approve
-
Diff: 13 lines (+0/-3)1 file modifiedhooks/nova_compute_hooks.py (+0/-3)
Changed in nova-compute-lxd (Ubuntu): | |
assignee: | nobody → Chuck Short (zulcss) |
Changed in nova-compute (Juju Charms Collection): | |
assignee: | Chuck Short (zulcss) → James Page (james-page) |
Changed in nova-compute-lxd (Ubuntu): | |
importance: | Undecided → High |
status: | New → In Progress |
Changed in nova-compute (Juju Charms Collection): | |
status: | New → In Progress |
Changed in nova-compute (Juju Charms Collection): | |
status: | In Progress → Fix Committed |
Changed in nova-compute (Juju Charms Collection): | |
milestone: | none → 16.01 |
Changed in nova-compute (Juju Charms Collection): | |
status: | Fix Committed → Fix Released |
Raising a distro task, as adding the nova user to the lxd group should really be done by the packaging on install as this benefits everyone.