revision option requires channel option while they are mutually exclusive.

Bug #1969929 reported by Yazan Salti
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Canonical Juju
Fix Released
Medium
Heather Lanigan

Bug Description

I was trying to deploy an older version of charmed-kubernetes, version 1.21 to be precise.
When running the command: juju deploy charmed-kubernetes revision=733
I get the following error: ERROR when using --revision option, you must also use --channel option
However when I add the channel option, for example: juju deploy charmed-kubernetes revision=733 channel=1.21/stable
I get the following Error: ERROR revision and channel are mutually exclusive when deploying a bundle. Please choose one.
when running the command with --debug:
 DEBUG cmd supercommand.go:537 error stack:
/build/snapcraft-juju-35d6cf/parts/juju/src/cmd/juju/application/deployer/deployer.go:458: revision and channel are mutually exclusive when deploying a bundle. Please choose one.
/build/snapcraft-juju-35d6cf/parts/juju/src/cmd/juju/application/deployer/deployer.go:70:
/build/snapcraft-juju-35d6cf/parts/juju/src/cmd/juju/application/deploy.go:863:

Juju version: 2.9.28

I tried it on Openstack, Microk8s and AWS.

To reproduce the issue just run the commands above.

Changed in juju:
assignee: nobody → Heather Lanigan (hmlanigan)
importance: Undecided → Medium
status: New → Triaged
Changed in juju:
milestone: none → 2.9.30
status: Triaged → In Progress
Revision history for this message
Heather Lanigan (hmlanigan) wrote :
Changed in juju:
status: In Progress → Fix Committed
Changed in juju:
milestone: 2.9.30 → 2.9.31
Changed in juju:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.