Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deployment errors with sssd and glauth #2

Open
jamesbeedy opened this issue Feb 7, 2024 · 0 comments
Open

Deployment errors with sssd and glauth #2

jamesbeedy opened this issue Feb 7, 2024 · 0 comments

Comments

@jamesbeedy
Copy link

jamesbeedy commented Feb 7, 2024

Bug Description

Glauth and sssd charms seem to be having trouble. pluto bootstrap test-cluster hangs forever due to application hook errors.

$ pluto bootstrap test-cluster
Deploying cluster test-cluster. This will take several minutes...
Provisioning default user 'researcher'... / (708.8s)
Screenshot 2024-02-07 at 8 01 34 AM

To Reproduce

pluto bootstrap test-cluster

Environment

git clone main

pip install .

Relevant log output

unit-glauth-0: 05:57:13 ERROR unit.glauth/0.juju-log ldap-client:18: Uncaught exception while in charm code:
Traceback (most recent call last):
  File "/var/lib/juju/agents/unit-glauth-0/charm/./src/charm.py", line 102, in <module>
    main(GlauthCharm)
  File "/var/lib/juju/agents/unit-glauth-0/charm/venv/ops/main.py", line 441, in main
    _emit_charm_event(charm, dispatcher.event_name)
  File "/var/lib/juju/agents/unit-glauth-0/charm/venv/ops/main.py", line 149, in _emit_charm_event
    event_to_emit.emit(*args, **kwargs)
  File "/var/lib/juju/agents/unit-glauth-0/charm/venv/ops/framework.py", line 354, in emit
    framework._emit(event)
  File "/var/lib/juju/agents/unit-glauth-0/charm/venv/ops/framework.py", line 830, in _emit
    self._reemit(event_path)
  File "/var/lib/juju/agents/unit-glauth-0/charm/venv/ops/framework.py", line 919, in _reemit
    custom_handler(event)
  File "/var/lib/juju/agents/unit-glauth-0/charm/src/ldapclient_lib.py", line 205, in _on_relation_joined
    ldap_uri = self.set_config(self.model.config["tls"], config=resource_path)
  File "/var/lib/juju/agents/unit-glauth-0/charm/src/ldapclient_lib.py", line 249, in set_config
    with zipfile.ZipFile(config, "r") as zip:
  File "/usr/lib/python3.10/zipfile.py", line 1269, in __init__
    self._RealGetContents()
  File "/usr/lib/python3.10/zipfile.py", line 1336, in _RealGetContents
    raise BadZipFile("File is not a zip file")
zipfile.BadZipFile: File is not a zip file
unit-sssd-1: 05:58:52 INFO juju.worker.uniter.charm downloading ch:amd64/jammy/sssd-3 from API server
unit-sssd-1: 05:58:53 WARNING unit.unit-sssd-1.meter-status-changed Traceback (most recent call last):
unit-sssd-1: 05:58:53 WARNING unit.unit-sssd-1.meter-status-changed   File "/var/lib/juju/agents/unit-sssd-1/charm/./src/charm.py", line 9, in <module>
unit-sssd-1: 05:58:53 WARNING unit.unit-sssd-1.meter-status-changed     from ops.charm import CharmBase
unit-sssd-1: 05:58:53 WARNING unit.unit-sssd-1.meter-status-changed   File "/var/lib/juju/agents/unit-sssd-1/charm/venv/ops/__init__.py", line 170, in <module>
unit-sssd-1: 05:58:53 WARNING unit.unit-sssd-1.meter-status-changed     from . import pebble  # type: ignore # noqa: F401
unit-sssd-1: 05:58:53 WARNING unit.unit-sssd-1.meter-status-changed   File "/var/lib/juju/agents/unit-sssd-1/charm/venv/ops/pebble.py", line 63, in <module>
unit-sssd-1: 05:58:53 WARNING unit.unit-sssd-1.meter-status-changed     import websocket  # type: ignore
unit-sssd-1: 05:58:53 WARNING unit.unit-sssd-1.meter-status-changed ModuleNotFoundError: No module named 'websocket'
unit-sssd-1: 05:58:53 ERROR juju.worker.meterstatus error running "meter-status-changed": exit status 1


unit-sssd-2: 06:03:27 ERROR unit.sssd/2.juju-log ldap-client:18: Uncaught exception while in charm code:
Traceback (most recent call last):
  File "/var/lib/juju/agents/unit-sssd-2/charm/./src/charm.py", line 105, in <module>
    main(SSSDCharm)
  File "/var/lib/juju/agents/unit-sssd-2/charm/venv/ops/main.py", line 441, in main
    _emit_charm_event(charm, dispatcher.event_name)
  File "/var/lib/juju/agents/unit-sssd-2/charm/venv/ops/main.py", line 149, in _emit_charm_event
    event_to_emit.emit(*args, **kwargs)
  File "/var/lib/juju/agents/unit-sssd-2/charm/venv/ops/framework.py", line 344, in emit
    framework._emit(event)
  File "/var/lib/juju/agents/unit-sssd-2/charm/venv/ops/framework.py", line 841, in _emit
    self._reemit(event_path)
  File "/var/lib/juju/agents/unit-sssd-2/charm/venv/ops/framework.py", line 930, in _reemit
    custom_handler(event)
  File "/var/lib/juju/agents/unit-sssd-2/charm/src/utils/ldapclient_lib.py", line 295, in _on_relation_changed
    ca_cert = event.relation.data[event.app]["ca-cert"]
  File "/var/lib/juju/agents/unit-sssd-2/charm/venv/ops/model.py", line 1582, in __getitem__
    return super().__getitem__(key)
  File "/var/lib/juju/agents/unit-sssd-2/charm/venv/ops/model.py", line 686, in __getitem__
    return self._data[key]
KeyError: 'ca-cert'

Additional context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant