HAClusterRequires has no attribute add_systemd_service

Bug #1853874 reported by Alexander Balderson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Kubernetes Control Plane Charm
Fix Released
Undecided
George Kraft

Bug Description

Our standard baremetal k8s deploys use HAcluster with kubernetes master and received the following error:

2019-11-23 15:53:12 INFO juju-log etcd:13: Invoking reactive handler: reactive/hacluster.py:42:configure_hacluster
2019-11-23 15:53:12 ERROR juju-log etcd:13: Hook error:
Traceback (most recent call last):
  File "/var/lib/juju/agents/unit-kubernetes-master-1/.venv/lib/python3.6/site-packages/charms/reactive/__init__.py", line 74, in main
    bus.dispatch(restricted=restricted_mode)
  File "/var/lib/juju/agents/unit-kubernetes-master-1/.venv/lib/python3.6/site-packages/charms/reactive/bus.py", line 390, in dispatch
    _invoke(other_handlers)
  File "/var/lib/juju/agents/unit-kubernetes-master-1/.venv/lib/python3.6/site-packages/charms/reactive/bus.py", line 359, in _invoke
    handler.invoke()
  File "/var/lib/juju/agents/unit-kubernetes-master-1/.venv/lib/python3.6/site-packages/charms/reactive/bus.py", line 181, in invoke
    self._action(*args)
  File "/var/lib/juju/agents/unit-kubernetes-master-1/charm/reactive/hacluster.py", line 73, in configure_hacluster
    hacluster.add_systemd_service(name, service)
AttributeError: 'HAClusterRequires' object has no attribute 'add_systemd_service'

Crashdump is attached

Revision history for this message
Alexander Balderson (asbalderson) wrote :
George Kraft (cynerva)
Changed in charm-kubernetes-master:
status: New → Confirmed
Revision history for this message
George Kraft (cynerva) wrote :

Thanks for the report. Looks like this is happening because we messed up a stable backport for this bug: https://bugs.launchpad.net/charm-kubernetes-master/+bug/1841005

We backported the charm-kubernetes-master and layer-hacluster fixes, but did not backport the interface-hacluster fix that they depend on.

Revision history for this message
George Kraft (cynerva) wrote :

We just rebased stable branches in preparation for the CK 1.17 release. I've confirmed that the missing interface-hacluster fix is now in our stable branch, so we should expect this to be fixed in the CK 1.17 release.

Changed in charm-kubernetes-master:
status: Confirmed → Fix Committed
milestone: none → 1.17
assignee: nobody → George Kraft (cynerva)
Changed in charm-kubernetes-master:
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.