Captured traceback:
~~~~~~~~~~~~~~~~~~~
Traceback (most recent call last):
File "/home/jamespage/src/charms/landing/glance/.tox/py27/local/lib/python2.7/site-packages/mock/mock.py", line 1305, in patched
return func(*args, **keywargs)
File "/home/jamespage/src/charms/landing/glance/unit_tests/test_glance_relations.py", line 538, in test_keystone_changed_with_object_store_relation relations.keystone_changed()
File "/home/jamespage/src/charms/landing/glance/hooks/charmhelpers/core/host.py", line 435, in wrapped_f
f(*args, **kwargs)
File "/home/jamespage/src/charms/landing/glance/hooks/glance_relations.py", line 347, in keystone_changed image_service_joined(rid)
File "/home/jamespage/src/charms/landing/glance/hooks/glance_relations.py", line 227, in image_service_joined "{}:9292".format(canonical_url(CONFIGS, INTERNAL))
File "/home/jamespage/src/charms/landing/glance/hooks/charmhelpers/contrib/openstack/ip.py", line 64, in canonical_url
address = resolve_address(endpoint_type)
File "/home/jamespage/src/charms/landing/glance/hooks/charmhelpers/contrib/openstack/ip.py", line 117, in resolve_address resolved_address = _get_address_override(endpoint_type)
File "/home/jamespage/src/charms/landing/glance/hooks/charmhelpers/contrib/openstack/ip.py", line 99, in _get_address_override addr_override = config(override_key)
File "/home/jamespage/src/charms/landing/glance/charmhelpers/core/hookenv.py", line 74, in wrapper
res = func(*args, **kwargs)
File "/home/jamespage/src/charms/landing/glance/charmhelpers/core/hookenv.py", line 340, in config subprocess.check_output(config_cmd_line).decode('UTF-8'))
File "/usr/lib/python2.7/subprocess.py", line 566, in check_output
process = Popen(stdout=PIPE, *popenargs, **kwargs)
File "/usr/lib/python2.7/subprocess.py", line 710, in __init__
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1335, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
Looks like canonical_url will need mocking out as well for this test.
Hi Adam
I'm seeing:
======= ======= ======= ======= == ======= ======= ======= ==
Failed 1 tests - output below:
=======
unit_tests. test_glance_ relations. GlanceRelationT ests.test_ keystone_ changed_ with_object_ store_relation ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ---
-------
Captured traceback: jamespage/ src/charms/ landing/ glance/ .tox/py27/ local/lib/ python2. 7/site- packages/ mock/mock. py", line 1305, in patched jamespage/ src/charms/ landing/ glance/ unit_tests/ test_glance_ relations. py", line 538, in test_keystone_ changed_ with_object_ store_relation
relations. keystone_ changed( ) jamespage/ src/charms/ landing/ glance/ hooks/charmhelp ers/core/ host.py" , line 435, in wrapped_f jamespage/ src/charms/ landing/ glance/ hooks/glance_ relations. py", line 347, in keystone_changed
image_ service_ joined( rid) jamespage/ src/charms/ landing/ glance/ hooks/glance_ relations. py", line 227, in image_service_ joined
"{}:9292" .format( canonical_ url(CONFIGS, INTERNAL)) jamespage/ src/charms/ landing/ glance/ hooks/charmhelp ers/contrib/ openstack/ ip.py", line 64, in canonical_url address( endpoint_ type) jamespage/ src/charms/ landing/ glance/ hooks/charmhelp ers/contrib/ openstack/ ip.py", line 117, in resolve_address
resolved_ address = _get_address_ override( endpoint_ type) jamespage/ src/charms/ landing/ glance/ hooks/charmhelp ers/contrib/ openstack/ ip.py", line 99, in _get_address_ override
addr_override = config( override_ key) jamespage/ src/charms/ landing/ glance/ charmhelpers/ core/hookenv. py", line 74, in wrapper jamespage/ src/charms/ landing/ glance/ charmhelpers/ core/hookenv. py", line 340, in config
subprocess. check_output( config_ cmd_line) .decode( 'UTF-8' )) python2. 7/subprocess. py", line 566, in check_output python2. 7/subprocess. py", line 710, in __init__ python2. 7/subprocess. py", line 1335, in _execute_child
~~~~~~~~~~~~~~~~~~~
Traceback (most recent call last):
File "/home/
return func(*args, **keywargs)
File "/home/
File "/home/
f(*args, **kwargs)
File "/home/
File "/home/
File "/home/
address = resolve_
File "/home/
File "/home/
File "/home/
res = func(*args, **kwargs)
File "/home/
File "/usr/lib/
process = Popen(stdout=PIPE, *popenargs, **kwargs)
File "/usr/lib/
errread, errwrite)
File "/usr/lib/
raise child_exception
OSError: [Errno 2] No such file or directory
Looks like canonical_url will need mocking out as well for this test.