juju_stop_unit not working for k8s charms

Bug #2006673 reported by Ian Booth
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Triaged
High
Teodora Mihoc

Bug Description

juju_stop_unit keystone/0
error: stop units for {[keystone/0]} not supported

But the doc says otherwise

https://juju.is/docs/sdk/leader-elected-event#heading--emission-sequence

The code seems to have not implemented it yet

func (w *manager) stopUnitRequest(topic string, data interface{}) {
 units, ok := data.(message.Units)
 if !ok {
  w.logger.Errorf("data should be a Units structure")
 }
 response := message.StartStopResponse{
  "error": errors.NotSupportedf("stop units for %v", units).Error(),
 }
 w.hub.Publish(message.StopUnitResponseTopic, response)
}

So we need to either fix juju or update the doc

Changed in juju:
milestone: 3.1.1 → 3.1.2
Changed in juju:
milestone: 3.1.2 → 3.1.3
Changed in juju:
milestone: 3.1.3 → 3.1.4
Changed in juju:
milestone: 3.1.4 → 3.1.5
Changed in juju:
milestone: 3.1.5 → 3.1.6
Changed in juju:
milestone: 3.1.6 → 3.1.7
Changed in juju:
milestone: 3.1.7 → 3.1.8
Changed in juju:
assignee: nobody → Teodora Mihoc (tmihoc)
Harry Pidcock (hpidcock)
Changed in juju:
milestone: 3.1.8 → 3.3.3
Ian Booth (wallyworld)
Changed in juju:
milestone: 3.3.3 → 3.3.4
Changed in juju:
milestone: 3.3.4 → 3.3.5
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.