updated yaml package requires a Loader

Bug #2033082 reported by Adam Dyess
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
AWS Integrator Charm
Fix Released
High
Adam Dyess
Google Cloud Platform Integrator Charm
Fix Released
High
Adam Dyess
vSphere Integrator Charm
Fix Released
High
Adam Dyess

Bug Description

Each of the edge charms are affected by an issue with what seems to be a new version of yaml that affects the charm.
1.28/edge, 1.29/edge, latest/edge charms

unit-gcp-integrator-0: 2023-08-25 14:51:38 ERROR unit.gcp-integrator/0.juju-log Hook error:
Traceback (most recent call last):
  File "/var/lib/juju/agents/unit-gcp-integrator-0/.venv/lib/python3.10/site-packages/charms/reactive/__init__.py", line 74, in main
    bus.dispatch(restricted=restricted_mode)
  File "/var/lib/juju/agents/unit-gcp-integrator-0/.venv/lib/python3.10/site-packages/charms/reactive/bus.py", line 390, in dispatch
    _invoke(other_handlers)
  File "/var/lib/juju/agents/unit-gcp-integrator-0/.venv/lib/python3.10/site-packages/charms/reactive/bus.py", line 359, in _invoke
    handler.invoke()
  File "/var/lib/juju/agents/unit-gcp-integrator-0/.venv/lib/python3.10/site-packages/charms/reactive/bus.py", line 181, in invoke
    self._action(*args)
  File "/var/lib/juju/agents/unit-gcp-integrator-0/charm/reactive/gcp.py", line 40, in get_creds
    toggle_flag("charm.gcp.creds.set", layer.gcp.get_credentials())
  File "/var/lib/juju/agents/unit-gcp-integrator-0/charm/lib/charms/layer/gcp.py", line 54, in get_credentials
    creds = yaml.load(result.stdout.decode("utf8"))
TypeError: load() missing 1 required positional argument: 'Loader'

Swapping out to yaml.safe_load() should fix it

Adam Dyess (addyess)
Changed in charm-gcp-integrator:
milestone: none → 1.28+ck1
assignee: nobody → Adam Dyess (addyess)
status: New → Triaged
importance: Undecided → High
Adam Dyess (addyess)
Changed in charm-aws-integrator:
milestone: none → 1.28+ck1
assignee: nobody → Adam Dyess (addyess)
importance: Undecided → High
status: New → Triaged
Adam Dyess (addyess)
Changed in charm-vsphere-integrator:
importance: Undecided → High
status: New → Triaged
assignee: nobody → Adam Dyess (addyess)
milestone: none → 1.28+ck1
Revision history for this message
Adam Dyess (addyess) wrote (last edit ):
Adam Dyess (addyess)
Changed in charm-aws-integrator:
status: Triaged → Fix Committed
Changed in charm-gcp-integrator:
status: Triaged → Fix Committed
Changed in charm-vsphere-integrator:
status: Triaged → Fix Committed
Adam Dyess (addyess)
tags: added: backport-needed
Revision history for this message
Adam Dyess (addyess) wrote :

backported to each of the three charm's release_1.28 branches

Adam Dyess (addyess)
Changed in charm-aws-integrator:
status: Fix Committed → Fix Released
Changed in charm-gcp-integrator:
status: Fix Committed → Fix Released
Changed in charm-vsphere-integrator:
status: Fix Committed → Fix Released
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.