subprocess.CalledProcessError: Command '['virsh', '-c', 'qemu:///system', 'secret-list']' returned non-zero exit
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Nova Compute Charm |
Fix Released
|
Medium
|
Felipe Reyes |
Bug Description
According to the charm-deploymen
juju config nova-compute action-
juju config nova-compute openstack-
juju run-action nova-compute/0 --wait pause
juju run-action nova-compute/0 --wait openstack-upgrade
juju run-action nova-compute/0 --wait resume
The problem with this is that the "pause" implementation for nova-compute stops the libvirt-bin daemon and then the openstack-upgrade action calls the config_changed() function[1] which will internally ends up calling "virsh" to talk to libvirt
2018-11-09 15:24:54 DEBUG openstack-upgrade error: failed to connect to the hypervisor
2018-11-09 15:24:54 DEBUG openstack-upgrade error: Failed to connect socket to '/var/run/
2018-11-09 15:24:54 DEBUG openstack-upgrade Traceback (most recent call last):
2018-11-09 15:24:54 DEBUG openstack-upgrade File "/var/lib/
2018-11-09 15:24:54 DEBUG openstack-upgrade openstack_upgrade()
2018-11-09 15:24:54 DEBUG openstack-upgrade File "/var/lib/
2018-11-09 15:24:54 DEBUG openstack-upgrade config_changed()
2018-11-09 15:24:54 DEBUG openstack-upgrade File "hooks/
2018-11-09 15:24:54 DEBUG openstack-upgrade return f(*args, **kwargs)
2018-11-09 15:24:54 DEBUG openstack-upgrade File "hooks/
2018-11-09 15:24:54 DEBUG openstack-upgrade return f(*args, **kwargs)
2018-11-09 15:24:54 DEBUG openstack-upgrade File "hooks/
2018-11-09 15:24:54 DEBUG openstack-upgrade ceph_changed(
2018-11-09 15:24:54 DEBUG openstack-upgrade File "hooks/
2018-11-09 15:24:54 DEBUG openstack-upgrade return f(*args, **kwargs)
2018-11-09 15:24:54 DEBUG openstack-upgrade File "hooks/
2018-11-09 15:24:54 DEBUG openstack-upgrade secret_
2018-11-09 15:24:54 DEBUG openstack-upgrade File "hooks/
2018-11-09 15:24:54 DEBUG openstack-upgrade if secret_uuid in check_output(
2018-11-09 15:24:54 DEBUG openstack-upgrade File "/usr/lib/
2018-11-09 15:24:54 DEBUG openstack-upgrade **kwargs).stdout
2018-11-09 15:24:54 DEBUG openstack-upgrade File "/usr/lib/
2018-11-09 15:24:54 DEBUG openstack-upgrade output=stdout, stderr=stderr)
2018-11-09 15:24:54 DEBUG openstack-upgrade subprocess.
[0] https:/
[1] https:/
tags: | added: sts |
Changed in charm-nova-compute: | |
assignee: | nobody → Felipe Reyes (freyes) |
Changed in charm-nova-compute: | |
milestone: | none → 19.04 |
Changed in charm-nova-compute: | |
status: | Fix Committed → Fix Released |
The big problem I'm seeing now is that the pause_unit() uses the returned dict by register_config(), and it uses assess_status() to determine if all the expected services were actually stopped. So everything is tied together is not that simple as remove libvirt-bin daemon when calling pause_unit()