Error relate mattermost-k8s postgresql-k8s

Bug #1971063 reported by Claiton Campos
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Keystone Charm
Invalid
Undecided
Unassigned
charm-k8s-mattermost
Invalid
Undecided
Unassigned
charm-k8s-postgresql
New
Undecided
Unassigned

Bug Description

The relation between mattermost-k8s postgresql-k8s returns this error:

kubernetes.config.config_exception.ConfigException: Service host/port is not set.
unit-postgresql-k8s-0: 22:44:43 ERROR juju.worker.uniter.operation hook "db-relation-changed" (via hook dispatching script: dispatch) failed: exit status 1
unit-postgresql-k8s-0: 22:44:43 INFO juju.worker.uniter awaiting error resolution for "relation-changed" hook
unit-postgresql-k8s-0: 22:45:03 INFO juju.worker.uniter awaiting error resolution for "relation-changed" hook
unit-postgresql-k8s-0: 22:45:04 ERROR unit.postgresql-k8s/0.juju-log db:2: Uncaught exception while in charm code:
Traceback (most recent call last):
  File "./src/charm.py", line 235, in <module>
    ops.main.main(PostgreSQLCharm, use_juju_for_storage=True)
  File "/var/lib/juju/agents/unit-postgresql-k8s-0/charm/venv/ops/main.py", line 402, in main
    _emit_charm_event(charm, dispatcher.event_name)
  File "/var/lib/juju/agents/unit-postgresql-k8s-0/charm/venv/ops/main.py", line 140, in _emit_charm_event
    event_to_emit.emit(*args, **kwargs)
  File "/var/lib/juju/agents/unit-postgresql-k8s-0/charm/venv/ops/framework.py", line 278, in emit
    framework._emit(event)
  File "/var/lib/juju/agents/unit-postgresql-k8s-0/charm/venv/ops/framework.py", line 722, in _emit
    self._reemit(event_path)
  File "/var/lib/juju/agents/unit-postgresql-k8s-0/charm/venv/ops/framework.py", line 767, in _reemit
    custom_handler(event)
  File "/var/lib/juju/agents/unit-postgresql-k8s-0/charm/src/clientrel.py", line 105, in on_db_relation_changed
    master_ip = self.master_service_ip
  File "/var/lib/juju/agents/unit-postgresql-k8s-0/charm/src/clientrel.py", line 75, in master_service_ip
    svc = self.get_k8s_service(self.master_service_name)
  File "/var/lib/juju/agents/unit-postgresql-k8s-0/charm/src/clientrel.py", line 88, in get_k8s_service
    self.k8s_auth()
  File "/var/lib/juju/agents/unit-postgresql-k8s-0/charm/src/clientrel.py", line 62, in k8s_auth
    kubernetes.config.load_incluster_config()
  File "/var/lib/juju/agents/unit-postgresql-k8s-0/charm/venv/kubernetes/config/incluster_config.py", line 118, in load_incluster_config
    InClusterConfigLoader(
  File "/var/lib/juju/agents/unit-postgresql-k8s-0/charm/venv/kubernetes/config/incluster_config.py", line 54, in load_and_set
    self._load_config()
  File "/var/lib/juju/agents/unit-postgresql-k8s-0/charm/venv/kubernetes/config/incluster_config.py", line 62, in _load_config
    raise ConfigException("Service host/port is not set.")

tags: added: mattermost-k8s postgresql-k8s
summary: - Error relate mattermost-k8s postgressql-k8s
+ Error relate mattermost-k8s postgresql-k8s
description: updated
Revision history for this message
Felipe Reyes (freyes) wrote :

Hi Claiton, thanks for filing this bug report, although this doesn't seem to be related to the Keystone charm, so I will mark it as "invalid" (if you disagree, please set it back to new and let us know how keystone is related in this problem), but also I will add a task for mattermost-k8s which seems to be the workload you want to run.

Best,

Changed in charm-keystone:
status: New → Invalid
Revision history for this message
Paul Collins (pjdc) wrote :

Given the crash is happening in postgresql charm code, I believe the bug is probably there.

Changed in charm-k8s-mattermost:
status: New → Invalid
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.