glance charm fails to install

Bug #1248615 reported by sodre
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
glance (Juju Charms Collection)
Fix Released
Undecided
Unassigned

Bug Description

The current version of glance on the charm-store is broken.
It is possibly related to incompatible changes in charmhelpers.

Here is the trace when hooks/ceph-relation-changed is called.

glance/0:ceph-relation-changed % hooks/ceph-relation-changed
Reading package lists... Done
Building dependency tree
Reading state information... Done
Traceback (most recent call last):
  File "hooks/ceph-relation-changed", line 332, in <module>
    hooks.execute(sys.argv)
  File "/var/lib/juju/agents/unit-glance-0/charm/hooks/charmhelpers/core/hookenv.py", line 375, in execute
    self._hooks[hook_name]()
  File "/var/lib/juju/agents/unit-glance-0/charm/hooks/charmhelpers/core/host.py", line 217, in wrapped_f
    f(*args)
  File "hooks/ceph-relation-changed", line 150, in ceph_changed
    if 'ceph' not in CONFIGS.complete_contexts():
  File "/var/lib/juju/agents/unit-glance-0/charm/hooks/charmhelpers/contrib/openstack/templating.py", line 279, in complete_contexts
    for i in self.templates.itervalues()]
  File "/var/lib/juju/agents/unit-glance-0/charm/hooks/charmhelpers/contrib/openstack/templating.py", line 103, in complete_contexts
    self.context()
  File "/var/lib/juju/agents/unit-glance-0/charm/hooks/charmhelpers/contrib/openstack/templating.py", line 88, in context
    _ctxt = context()
  File "/var/lib/juju/agents/unit-glance-0/charm/hooks/glance_contexts.py", line 29, in __call__
    key="key"):
  File "/var/lib/juju/agents/unit-glance-0/charm/hooks/charmhelpers/core/hookenv.py", line 43, in wrapper
    res = func(*args, **kwargs)
TypeError: is_relation_made() got an unexpected keyword argument 'key'

Revision history for this message
Darryl Weaver (dweaver) wrote :
Download full text (4.7 KiB)

I received a very similar error and it is the last revision change that has made the difference. We were not deploying with Ceph and the error I received was during the identity service configuration as follows:

2013-11-06 15:50:48 INFO juju juju-log.go:66 glance/0: Generating template context for amqp
2013-11-06 15:50:48 INFO worker.uniter.jujuc server.go:108 running hook tool "config-get" ["--format=json"]
2013-11-06 15:50:48 DEBUG worker.uniter.jujuc server.go:109 hook context id "glance/0:config-changed:7445557004290579098"; dir "/var/lib/juju/agents/unit-glance-0/charm"
2013-11-06 15:50:48 INFO worker.uniter.jujuc server.go:108 running hook tool "relation-ids" ["--format=json" "amqp"]
2013-11-06 15:50:48 DEBUG worker.uniter.jujuc server.go:109 hook context id "glance/0:config-changed:7445557004290579098"; dir "/var/lib/juju/agents/unit-glance-0/charm"
2013-11-06 15:50:48 INFO worker.uniter.jujuc server.go:108 running hook tool "juju-log" ["Generating template context for identity-service"]
2013-11-06 15:50:48 DEBUG worker.uniter.jujuc server.go:109 hook context id "glance/0:config-changed:7445557004290579098"; dir "/var/lib/juju/agents/unit-glance-0/charm"
2013-11-06 15:50:48 INFO juju juju-log.go:66 glance/0: Generating template context for identity-service
2013-11-06 15:50:48 DEBUG juju.worker.uniter.filter filter.go:314 got unit change
2013-11-06 15:50:48 INFO juju.worker.uniter context.go:255 HOOK Traceback (most recent call last):
2013-11-06 15:50:48 INFO juju.worker.uniter context.go:255 HOOK File "/var/lib/juju/agents/unit-glance-0/charm/hooks/config-changed", line 332, in <module>
2013-11-06 15:50:48 INFO juju.worker.uniter context.go:255 HOOK hooks.execute(sys.argv)
2013-11-06 15:50:48 INFO juju.worker.uniter context.go:255 HOOK File "/var/lib/juju/agents/unit-glance-0/charm/hooks/charmhelpers/core/hookenv.py", line 375, in execute
2013-11-06 15:50:48 INFO juju.worker.uniter context.go:255 HOOK self._hooks[hook_name]()
2013-11-06 15:50:48 INFO juju.worker.uniter context.go:255 HOOK File "/var/lib/juju/agents/unit-glance-0/charm/hooks/charmhelpers/core/host.py", line 217, in wrapped_f
2013-11-06 15:50:48 INFO juju.worker.uniter context.go:255 HOOK f(*args)
2013-11-06 15:50:48 INFO juju.worker.uniter context.go:255 HOOK File "/var/lib/juju/agents/unit-glance-0/charm/hooks/config-changed", line 217, in config_changed
2013-11-06 15:50:48 INFO juju.worker.uniter context.go:255 HOOK configure_https()
2013-11-06 15:50:48 INFO juju.worker.uniter context.go:255 HOOK File "/var/lib/juju/agents/unit-glance-0/charm/hooks/config-changed", line 302, in configure_https
2013-11-06 15:50:48 INFO juju.worker.uniter context.go:255 HOOK CONFIGS.write_all()
2013-11-06 15:50:48 INFO juju.worker.uniter context.go:255 HOOK File "/var/lib/juju/agents/unit-glance-0/charm/hooks/charmhelpers/contrib/openstack/templating.py", line 262, in write_all
2013-11-06 15:50:48 INFO juju.worker.uniter context.go:255 HOOK [self.write(k) for k in self.templates.iterkeys()]
2013-11-06 15:50:48 INFO juju.worker.uniter context.go:255 HOOK File "/var/lib/juju/agents/unit-glance-0/charm/hooks/charmhelpers/contrib/openstack/templating....

Read more...

Changed in glance (Juju Charms Collection):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.