After deployment of glance-simplestreams-sync application in a existing openstack bundle the charm stuck in error hook failed: "certificates-relation-changed".
Model Controller Cloud/Region Version SLA Timestamp
dbi7-c1 dbi7-prod dbi7/default 3.1.2 unsupported 12:57:33Z
App Version Status Scale Charm Channel Rev Exposed Message
glance-simplestreams-sync error 1 glance-simplestreams-sync zed/stable 92 no hook failed: "certificates-relation-changed"
octavia-diskimage-retrofit 1.0.1 active 1 octavia-diskimage-retrofit zed/stable 93 no Unit is ready
Unit Workload Agent Machine Public address Ports Message
glance-simplestreams-sync/5* error idle 2/lxd/47 10.105.121.46 hook failed: "certificates-relation-changed"
octavia-diskimage-retrofit/5* active idle 10.105.121.46 Unit is ready
I get this debug-log:
---
unit-glance-simplestreams-sync-5: 12:24:01 INFO juju.worker.uniter awaiting error resolution for "relation-changed" hook
unit-glance-simplestreams-sync-5: 12:24:01 INFO unit.glance-simplestreams-sync/5.juju-log certificates:465: Making dir /etc/apache2/ssl/glance-simplestreams-sync root:root 555
unit-glance-simplestreams-sync-5: 12:24:01 INFO unit.glance-simplestreams-sync/5.juju-log certificates:465: Installing CA certificate from certificate relation
unit-glance-simplestreams-sync-5: 12:24:02 WARNING unit.glance-simplestreams-sync/5.certificates-relation-changed Traceback (most recent call last):
unit-glance-simplestreams-sync-5: 12:24:02 WARNING unit.glance-simplestreams-sync/5.certificates-relation-changed File "/var/lib/juju/agents/unit-glance-simplestreams-sync-5/charm/hooks/certificates-relation-changed", line 437, in <module>
unit-glance-simplestreams-sync-5: 12:24:02 WARNING unit.glance-simplestreams-sync/5.certificates-relation-changed hooks.execute(sys.argv)
unit-glance-simplestreams-sync-5: 12:24:02 WARNING unit.glance-simplestreams-sync/5.certificates-relation-changed File "/var/lib/juju/agents/unit-glance-simplestreams-sync-5/charm/charmhelpers/core/hookenv.py", line 963, in execute
unit-glance-simplestreams-sync-5: 12:24:02 WARNING unit.glance-simplestreams-sync/5.certificates-relation-changed self._hooks[hook_name]()
unit-glance-simplestreams-sync-5: 12:24:02 WARNING unit.glance-simplestreams-sync/5.certificates-relation-changed File "/var/lib/juju/agents/unit-glance-simplestreams-sync-5/charm/hooks/certificates-relation-changed", line 416, in certs_changed
unit-glance-simplestreams-sync-5: 12:24:02 WARNING unit.glance-simplestreams-sync/5.certificates-relation-changed process_certificates('glance-simplestreams-sync', relation_id, unit)
unit-glance-simplestreams-sync-5: 12:24:02 WARNING unit.glance-simplestreams-sync/5.certificates-relation-changed File "/var/lib/juju/agents/unit-glance-simplestreams-sync-5/charm/charmhelpers/contrib/openstack/cert_utils.py", line 390, in process_certificates
unit-glance-simplestreams-sync-5: 12:24:02 WARNING unit.glance-simplestreams-sync/5.certificates-relation-changed _manage_ca_certs(ca, relation_id)
unit-glance-simplestreams-sync-5: 12:24:02 WARNING unit.glance-simplestreams-sync/5.certificates-relation-changed File "/var/lib/juju/agents/unit-glance-simplestreams-sync-5/charm/charmhelpers/contrib/openstack/cert_utils.py", line 351, in _manage_ca_certs
unit-glance-simplestreams-sync-5: 12:24:02 WARNING unit.glance-simplestreams-sync/5.certificates-relation-changed ca.encode(),
unit-glance-simplestreams-sync-5: 12:24:02 WARNING unit.glance-simplestreams-sync/5.certificates-relation-changed AttributeError: 'NoneType' object has no attribute 'encode'
unit-glance-simplestreams-sync-5: 12:24:02 ERROR juju.worker.uniter.operation hook "certificates-relation-changed" (via explicit, bespoke hook script) failed: exit status 1
unit-glance-simplestreams-sync-5: 12:24:02 INFO juju.worker.uniter awaiting error resolution for "relation-changed" hook
---
Remove und readd the certificates relation doesn't help.
That's a curious bug. It probably means that the ca is empty, but there are certificates. Could you do a juju show-unit on the glance-ss unit and the vault leader to see what's on the relations. Thanks. Also could you provide the juju status output for the model.