Open SimoneDutto opened 7 hours ago
After a conversation in matrix, I was suggested to fill a bug report.
juju integrate <mycharm>:database postgresql-k8s:database
event.tls and event.tls_ca populated.
event.tls
event.tls_ca
event.tls and event.tls_ca set to None
Operating system: Ubuntu 24.04
Juju CLI: 3.5.4
Juju agent: 3.5.4
Charm revision: postgresql-k8s:381 and self-signed-certificates:155
microk8s: MicroK8s v1.28.14 revision 7228
Juju debug log:
unit-canonical-livepatch-server-k8s-0: 17:14:56 DEBUG unit.canonical-livepatch-server-k8s/0.juju-log database:9: Emitting Juju event database_relation_changed. unit-postgresql-k8s-0: 17:14:56 DEBUG unit.postgresql-k8s/0.juju-log database:9: ops 2.16.0 up and running. unit-postgresql-k8s-0: 17:14:56 DEBUG unit.postgresql-k8s/0.juju-log database:9: no relation on 'tracing': tracing not ready unit-postgresql-k8s-0: 17:14:56 DEBUG unit.postgresql-k8s/0.juju-log database:9: Emitting Juju event database_relation_joined. unit-canonical-livepatch-server-k8s-0: 17:14:56 INFO juju.worker.uniter.operation ran "database-relation-changed" hook (via hook dispatching script: dispatch) unit-postgresql-k8s-0: 17:14:56 INFO juju.worker.uniter.operation ran "database-relation-joined" hook (via hook dispatching script: dispatch) unit-postgresql-k8s-0: 17:14:57 DEBUG unit.postgresql-k8s/0.juju-log database:9: ops 2.16.0 up and running. unit-postgresql-k8s-0: 17:14:57 DEBUG unit.postgresql-k8s/0.juju-log database:9: no relation on 'tracing': tracing not ready unit-postgresql-k8s-0: 17:14:57 DEBUG unit.postgresql-k8s/0.juju-log database:9: Emitting Juju event database_relation_changed. unit-postgresql-k8s-0: 17:14:57 DEBUG unit.postgresql-k8s/0.juju-log database:9: Emitting custom event <DatabaseRequestedEvent via PostgresqlOperatorCharm/DatabaseProvides[database]/on/database_requested[216]>. unit-postgresql-k8s-0: 17:14:57 DEBUG unit.postgresql-k8s/0.juju-log database:9: Starting new HTTPS connection (1): postgresql-k8s-0.postgresql-k8s-endpoints:8008 unit-postgresql-k8s-0: 17:14:57 DEBUG unit.postgresql-k8s/0.juju-log database:9: https://postgresql-k8s-0.postgresql-k8s-endpoints:8008 "GET /health HTTP/10" 200 None unit-postgresql-k8s-0: 17:14:57 INFO juju.worker.uniter.operation ran "database-relation-changed" hook (via hook dispatching script: dispatch) unit-canonical-livepatch-server-k8s-0: 17:14:58 WARNING unit.canonical-livepatch-server-k8s/0.database-relation-changed /var/lib/juju/agents/unit-canonical-livepatch-server-k8s-0/charm/./src/charm.py:715: DeprecationWarning: Calling `ops.main.main()` is deprecated, call `ops.main()` instead unit-canonical-livepatch-server-k8s-0: 17:14:58 WARNING unit.canonical-livepatch-server-k8s/0.database-relation-changed main(LivepatchCharm, use_juju_for_storage=True) unit-canonical-livepatch-server-k8s-0: 17:14:58 DEBUG unit.canonical-livepatch-server-k8s/0.juju-log database:9: ops 2.17.0 up and running. unit-canonical-livepatch-server-k8s-0: 17:14:58 DEBUG unit.canonical-livepatch-server-k8s/0.juju-log database:9: Invalid Loki alert rules folder at /var/lib/juju/agents/unit-canonical-livepatch-server-k8s-0/charm/src/loki_alert_rules: directory does not exist unit-canonical-livepatch-server-k8s-0: 17:14:58 DEBUG unit.canonical-livepatch-server-k8s/0.juju-log database:9: Invalid Prometheus alert rules folder at /var/lib/juju/agents/unit-canonical-livepatch-server-k8s-0/charm/src/prometheus_alert_rules: directory does not exist unit-canonical-livepatch-server-k8s-0: 17:14:58 DEBUG unit.canonical-livepatch-server-k8s/0.juju-log database:9: Emitting Juju event database_relation_changed. unit-canonical-livepatch-server-k8s-0: 17:14:58 INFO unit.canonical-livepatch-server-k8s/0.juju-log database:9: database created at 2024-10-09 15:14:58.058954 unit-canonical-livepatch-server-k8s-0: 17:14:58 DEBUG unit.canonical-livepatch-server-k8s/0.juju-log database:9: Emitting custom event <DatabaseCreatedEvent via LivepatchCharm/DatabaseRequires[database]/on/database_created[93]>. unit-canonical-livepatch-server-k8s-0: 17:14:58 INFO unit.canonical-livepatch-server-k8s/0.juju-log database:9: (postgresql) RELATION_JOINED event fired. unit-canonical-livepatch-server-k8s-0: 17:14:58 INFO unit.canonical-livepatch-server-k8s/0.juju-log database:9: received database uri: postgresql://relation_id_9:45T8XMFmeq67bhb0@postgresql-k8s-primary.test1q2131.svc.cluster.local:5432/livepatch-server unit-canonical-livepatch-server-k8s-0: 17:14:58 INFO unit.canonical-livepatch-server-k8s/0.juju-log database:9: tls: None unit-canonical-livepatch-server-k8s-0: 17:14:58 INFO unit.canonical-livepatch-server-k8s/0.juju-log database:9: tls ca: None unit-canonical-livepatch-server-k8s-0: 17:14:58 INFO unit.canonical-livepatch-server-k8s/0.juju-log database:9: pushing file /etc/logrotate.d/livepatch to the workload container unit-canonical-livepatch-server-k8s-0: 17:14:58 INFO unit.canonical-livepatch-server-k8s/0.juju-log database:9: Schema is up to date. unit-canonical-livepatch-server-k8s-0: 17:14:58 INFO unit.canonical-livepatch-server-k8s/0.juju-log database:9: current version is 070, no upgrades to apply unit-canonical-livepatch-server-k8s-0: 17:14:58 WARNING unit.canonical-livepatch-server-k8s/0.juju-log database:9: ✘ patch-sync token not set, run get-resource-token action unit-postgresql-k8s-0: 17:14:58 DEBUG unit.postgresql-k8s/0.juju-log database:9: ops 2.16.0 up and running. unit-postgresql-k8s-0: 17:14:58 DEBUG unit.postgresql-k8s/0.juju-log database:9: no relation on 'tracing': tracing not ready unit-postgresql-k8s-0: 17:14:58 DEBUG unit.postgresql-k8s/0.juju-log database:9: Emitting Juju event database_relation_changed. unit-canonical-livepatch-server-k8s-0: 17:14:58 INFO juju.worker.uniter.operation ran "database-relation-changed" hook (via hook dispatching script: dispatch) unit-canonical-livepatch-server-k8s-0: 17:14:58 WARNING unit.canonical-livepatch-server-k8s/0.livepatch-relation-changed /var/lib/juju/agents/unit-canonical-livepatch-server-k8s-0/charm/./src/charm.py:715: DeprecationWarning: Calling `ops.main.main()` is deprecated, call `ops.main()` instead unit-canonical-livepatch-server-k8s-0: 17:14:58 WARNING unit.canonical-livepatch-server-k8s/0.livepatch-relation-changed main(LivepatchCharm, use_juju_for_storage=True) unit-canonical-livepatch-server-k8s-0: 17:14:58 DEBUG unit.canonical-livepatch-server-k8s/0.juju-log livepatch:7: ops 2.17.0 up and running. unit-canonical-livepatch-server-k8s-0: 17:14:58 DEBUG unit.canonical-livepatch-server-k8s/0.juju-log livepatch:7: Invalid Loki alert rules folder at /var/lib/juju/agents/unit-canonical-livepatch-server-k8s-0/charm/src/loki_alert_rules: directory does not exist unit-canonical-livepatch-server-k8s-0: 17:14:58 DEBUG unit.canonical-livepatch-server-k8s/0.juju-log livepatch:7: Invalid Prometheus alert rules folder at /var/lib/juju/agents/unit-canonical-livepatch-server-k8s-0/charm/src/prometheus_alert_rules: directory does not exist unit-canonical-livepatch-server-k8s-0: 17:14:58 DEBUG unit.canonical-livepatch-server-k8s/0.juju-log livepatch:7: Emitting Juju event livepatch_relation_changed. unit-postgresql-k8s-0: 17:14:58 INFO juju.worker.uniter.operation ran "database-relation-changed" hook (via hook dispatching script: dispatch) unit-canonical-livepatch-server-k8s-0: 17:14:58 INFO juju.worker.uniter.operation ran "livepatch-relation-changed" hook (via hook dispatching script: dispatch) unit-postgresql-k8s-0: 17:14:58 DEBUG unit.postgresql-k8s/0.juju-log database:9: ops 2.16.0 up and running. unit-postgresql-k8s-0: 17:14:59 DEBUG unit.postgresql-k8s/0.juju-log database:9: no relation on 'tracing': tracing not ready unit-postgresql-k8s-0: 17:14:59 DEBUG unit.postgresql-k8s/0.juju-log database:9: Emitting Juju event database_relation_changed. unit-postgresql-k8s-0: 17:14:59 INFO juju.worker.uniter.operation ran "database-relation-changed" hook (via hook dispatching script: dispatch)
Thank you for reporting us your feedback!
The internal ticket has been created: https://warthogs.atlassian.net/browse/DPE-5652.
This message was autogenerated
After a conversation in matrix, I was suggested to fill a bug report.
Steps to reproduce
juju integrate <mycharm>:database postgresql-k8s:database
Expected behavior
event.tls
andevent.tls_ca
populated.Actual behavior
event.tls
andevent.tls_ca
set to NoneVersions
Operating system: Ubuntu 24.04
Juju CLI: 3.5.4
Juju agent: 3.5.4
Charm revision: postgresql-k8s:381 and self-signed-certificates:155
microk8s: MicroK8s v1.28.14 revision 7228
Log output
Juju debug log:
Additional context