Comment 8 for bug 1413862

Revision history for this message
James Page (james-page) wrote : Re: glance couldn't sync database

I think I see the issue here; the SharedDB helper context deals with switching from private-address to an address on the 'access-network' if the percona-cluster charm presents that data over the relation.

The code that does this simply returns {} during this process:

  http://bazaar.launchpad.net/~charm-helpers/charm-helpers/devel/view/head:/charmhelpers/contrib/openstack/context.py#L177

however 'context_complete' thinks this is still a complete context, as it does not contain any keys which are either None or '':

  http://bazaar.launchpad.net/~charm-helpers/charm-helpers/devel/view/head:/charmhelpers/contrib/openstack/context.py#L91

which results in:

  http://bazaar.launchpad.net/~openstack-charmers/charms/precise/glance/trunk/view/head:/hooks/glance_relations.py#L145

return true, even though the context is not actually complete yet.