Config-changed hook failed when relation to Indico charm
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
K8s Content Cache Charm |
New
|
Undecided
|
Unassigned |
Bug Description
After deploying the content cache charm with Indico charm and the nginx-ingress-
The content cache charm is configured as follows:
juju config content-cache-k8s backend='https:/
juju config content-cache-k8s site='test.indico'
and trace is the following:
Traceback (most recent call last):
File "./src/charm.py", line 278, in <module>
main(
File "/var/lib/
_emit_
File "/var/lib/
event_
File "/var/lib/
framework.
File "/var/lib/
self.
File "/var/lib/
custom_
File "./src/charm.py", line 67, in _on_config_changed
self.
File "./src/charm.py", line 134, in configure_
container.
File "/var/lib/
self.
File "/var/lib/
return self._services_
File "/var/lib/
raise ChangeError(
ops.pebble.
- Start service "content-cache" (cannot start service: exited quickly with code 1)
Reproduction steps:
juju deploy postgresql-k8s
juju deploy redis-k8s redis-cache
juju deploy redis-k8s redis-broker
juju deploy nginx-ingress-
juju trust nginx-ingress-
juju deploy indico --config site_url=https:/
juju relate redis-cache indico
juju relate redis-broker indico
juju relate indico postgresql-k8s:db
juju relate indico:ingress nginx-ingress-
juju deploy content-cache-k8s --channel edge --series groovy --force
juju config content-cache-k8s backend='https:/
juju config content-cache-k8s site='test.indico'
juju relate nginx-ingress-
The reason this hasn't worked is because you've got the two sites in the same model and ingress is at the cluster level (i.e. outside of the model).
I think you want to use the ingress-proxy relation as documented on https:/ /charmhub. io/content- cache-k8s:
juju deploy postgresql-k8s integrator integrator --scope=cluster /test.indico
juju deploy redis-k8s redis-cache
juju deploy redis-k8s redis-broker
juju deploy nginx-ingress-
juju trust nginx-ingress-
juju deploy indico --config site_url=https:/
juju relate redis-cache indico cache-k8s: ingress- proxy integrator content- cache-k8s: ingress
juju relate redis-broker indico
juju relate indico postgresql-k8s:db
juju relate indico content-
juju relate nginx-ingress-