Add charm metadata for 'juju run-action' on the operator pod

Bug #1870487 reported by John A Meinel
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Triaged
Low
Unassigned

Bug Description

At least as far as I can tell, you can't do:

  juju run-action --operator

We do support 'juju run --operator'. There are use cases for getting information from the state that the charm is acting on, not just the state that the application is operating on.

(sorry about the earlier confusion around juju-v3 feature flag, that isn't actually relevant here.)

John A Meinel (jameinel)
summary: - 'juju run --operator' only available with juju-v3 set
+ 'juju run --operator' not available for 'juju run-action'
description: updated
Revision history for this message
Ian Booth (wallyworld) wrote : Re: 'juju run --operator' not available for 'juju run-action'

actions that are for k8s operator charms (you need to turn on the k8s-operators feature flag to use this capability) automatically run actions on the charm pod as there is no separate workload.

But yes, actions currently only run on the workload pod as the expectation was that the semantics would be similar to vm deployments; actions are operations on the workload.

Do we have any use cases that we don't yet satisfy either of the above scenarios?

Revision history for this message
Ian Booth (wallyworld) wrote :

We discussed adding additional action metadata to signal that an action needs to be run on the operator pod - this is a charm author responsibility, not the end user of the charm. Hence the --operator flag on juju run-action doesn't really make sense. Moving to 2.8.1 but might get pushed out to 2.9

Changed in juju:
milestone: 2.8-beta1 → 2.8.1
summary: - 'juju run --operator' not available for 'juju run-action'
+ Add charm metadata for 'juju run-action' on the operator pod
Revision history for this message
Tim Penhey (thumper) wrote :

I'm going to suggest we hold off on all this for now as we are in at state of flux around the architecture of the juju unit w.r.t. k8s. We don't want to do work that we'll have to undo.

tags: added: act
tags: added: actions
removed: act
Changed in juju:
milestone: 2.8.1 → 2.8-next
Revision history for this message
Canonical Juju QA Bot (juju-qa-bot) wrote :

This bug has not been updated in 2 years, so we're marking it Low importance. If you believe this is incorrect, please update the importance.

Changed in juju:
importance: High → Low
tags: added: expirebugs-bot
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.