When running mojo spec specs/full_stack/next_deploy/icehouse on precise the ceph-relation-changed hook fails with:
error: failed to connect to the hypervisor
error: no connection driver available for qemu:///system
Traceback (most recent call last):
File "./hooks/ceph-relation-changed", line 335, in <module>
main()
File "./hooks/ceph-relation-changed", line 329, in main
hooks.execute(sys.argv)
File "/var/lib/juju/agents/unit-nova-compute-1/charm/hooks/charmhelpers/core/hookenv.py", line 544, in execute
self._hooks[hook_name]()
File "/var/lib/juju/agents/unit-nova-compute-1/charm/hooks/charmhelpers/core/host.py", line 312, in wrapped_f
f(*args, **kwargs)
File "./hooks/ceph-relation-changed", line 261, in ceph_changed
key=relation_get('key'))
File "/var/lib/juju/agents/unit-nova-compute-1/charm/hooks/nova_compute_utils.py", line 451, in create_libvirt_secret
if secret_uuid in check_output(['virsh', '-c', uri, 'secret-list']):
File "/usr/lib/python2.7/subprocess.py", line 544, in check_output
raise CalledProcessError(retcode, cmd, output=output)
subprocess.CalledProcessError: Command '['virsh', '-c', 'qemu:///system', 'secret-list']' returned non-zero exit status 1
Restarting libvirt-bin solves the problem.
Additional info:
root@juju-lytrusty-machine-14:~# cat /var/log/libvirt/libvirtd.log
2015-03-03 11:20:20.609+0000: 7494: info : libvirt version: 1.2.2
2015-03-03 11:20:20.609+0000: 7494: error : virDriverLoadModule:79 : failed to load module /usr/lib/libvirt/connection-driver/libvirt_driver_storage.so /usr/lib/libvirt/connection-driver/libvirt_driver_storage.so: undefined symbol: rbd_create3
2015-03-03 11:20:20.617+0000: 7494: error : virDriverLoadModule:79 : failed to load module /usr/lib/libvirt/connection-driver/libvirt_driver_qemu.so /usr/lib/libvirt/connection-driver/libvirt_driver_qemu.so: undefined symbol: virStorageFileStat
2015-03-03 11:20:41.866+0000: 8506: info : libvirt version: 1.2.2
2015-03-03 11:20:41.866+0000: 8506: error : virDriverLoadModule:79 : failed to load module /usr/lib/libvirt/connection-driver/libvirt_driver_storage.so /usr/lib/libvirt/connection-driver/libvirt_driver_storage.so: undefined symbol: rbd_create3
2015-03-03 11:20:41.872+0000: 8506: error : virDriverLoadModule:79 : failed to load module /usr/lib/libvirt/connection-driver/libvirt_driver_qemu.so /usr/lib/libvirt/connection-driver/libvirt_driver_qemu.so: undefined symbol: virStorageFileStat
2015-03-03 11:22:51.725+0000: 8509: error : do_open:1170 : no connection driver available for qemu:///system
2015-03-03 11:22:51.726+0000: 8506: error : virNetSocketReadWire:1454 : End of file while reading data: Input/output error
2015-03-03 11:23:17.691+0000: 8516: error : do_open:1170 : no connection driver available for qemu:///system
2015-03-03 11:23:17.792+0000: 8506: error : virNetSocketReadWire:1454 : End of file while reading data: Input/output error
2015-03-03 12:18:19.220+0000: 8511: error : do_open:1170 : no connection driver available for qemu:///system
2015-03-03 12:18:19.221+0000: 8506: error : virNetSocketReadWire:1454 : End of file while reading data: Input/output error
When running mojo spec specs/full_ stack/next_ deploy/ icehouse on precise the ceph-relation- changed hook fails with:
error: failed to connect to the hypervisor ceph-relation- changed" , line 335, in <module> ceph-relation- changed" , line 329, in main execute( sys.argv) juju/agents/ unit-nova- compute- 1/charm/ hooks/charmhelp ers/core/ hookenv. py", line 544, in execute _hooks[ hook_name] () juju/agents/ unit-nova- compute- 1/charm/ hooks/charmhelp ers/core/ host.py" , line 312, in wrapped_f ceph-relation- changed" , line 261, in ceph_changed relation_ get('key' )) juju/agents/ unit-nova- compute- 1/charm/ hooks/nova_ compute_ utils.py" , line 451, in create_ libvirt_ secret ['virsh' , '-c', uri, 'secret-list']): python2. 7/subprocess. py", line 544, in check_output ror(retcode, cmd, output=output) CalledProcessEr ror: Command '['virsh', '-c', 'qemu:///system', 'secret-list']' returned non-zero exit status 1
error: no connection driver available for qemu:///system
Traceback (most recent call last):
File "./hooks/
main()
File "./hooks/
hooks.
File "/var/lib/
self.
File "/var/lib/
f(*args, **kwargs)
File "./hooks/
key=
File "/var/lib/
if secret_uuid in check_output(
File "/usr/lib/
raise CalledProcessEr
subprocess.
Restarting libvirt-bin solves the problem.
Additional info:
root@juju- lytrusty- machine- 14:~# cat /var/log/ libvirt/ libvirtd. log dule:79 : failed to load module /usr/lib/ libvirt/ connection- driver/ libvirt_ driver_ storage. so /usr/lib/ libvirt/ connection- driver/ libvirt_ driver_ storage. so: undefined symbol: rbd_create3 dule:79 : failed to load module /usr/lib/ libvirt/ connection- driver/ libvirt_ driver_ qemu.so /usr/lib/ libvirt/ connection- driver/ libvirt_ driver_ qemu.so: undefined symbol: virStorageFileStat dule:79 : failed to load module /usr/lib/ libvirt/ connection- driver/ libvirt_ driver_ storage. so /usr/lib/ libvirt/ connection- driver/ libvirt_ driver_ storage. so: undefined symbol: rbd_create3 dule:79 : failed to load module /usr/lib/ libvirt/ connection- driver/ libvirt_ driver_ qemu.so /usr/lib/ libvirt/ connection- driver/ libvirt_ driver_ qemu.so: undefined symbol: virStorageFileStat dWire:1454 : End of file while reading data: Input/output error dWire:1454 : End of file while reading data: Input/output error dWire:1454 : End of file while reading data: Input/output error
2015-03-03 11:20:20.609+0000: 7494: info : libvirt version: 1.2.2
2015-03-03 11:20:20.609+0000: 7494: error : virDriverLoadMo
2015-03-03 11:20:20.617+0000: 7494: error : virDriverLoadMo
2015-03-03 11:20:41.866+0000: 8506: info : libvirt version: 1.2.2
2015-03-03 11:20:41.866+0000: 8506: error : virDriverLoadMo
2015-03-03 11:20:41.872+0000: 8506: error : virDriverLoadMo
2015-03-03 11:22:51.725+0000: 8509: error : do_open:1170 : no connection driver available for qemu:///system
2015-03-03 11:22:51.726+0000: 8506: error : virNetSocketRea
2015-03-03 11:23:17.691+0000: 8516: error : do_open:1170 : no connection driver available for qemu:///system
2015-03-03 11:23:17.792+0000: 8506: error : virNetSocketRea
2015-03-03 12:18:19.220+0000: 8511: error : do_open:1170 : no connection driver available for qemu:///system
2015-03-03 12:18:19.221+0000: 8506: error : virNetSocketRea