Unable to remove-offer
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Fix Released
|
High
|
Ian Booth |
Bug Description
Once an offer has be used by a relation, it seems that the offer cannot be removed. Steps to reproduce:
Deploy the attached .yaml in 2 different models (`juju deploy -m test ./ovn-chassis-
# offer ovn-dedicated-
juju offer test.ovn-
# relate vault to the remote ovn-dedicated-
juju add-relation -m ctrl vault admin/test.
# why is this not working?
juju remove-relation -m ctrl vault admin/test.
> ERROR "admin/
# try a different way (that seems to have worked)
juju remove-relation -m ctrl vault:certificates ovn-dedicated-
# now it fails
juju remove-offer admin/test.
> ERROR cannot delete application offer "ovn-dedicated-
Additional details:
$ juju offers -m test
Offer User Relation id Status Endpoint Interface Role Ingress subnets
ovn-dedicated-
$ juju remove-relation -m test 1
$ juju remove-offer admin/test.
21:00:35 INFO juju.cmd supercommand.go:56 running juju [2.9.29 54b87ef5071691a
21:00:35 DEBUG juju.cmd supercommand.go:57 args: []string{
21:00:35 INFO juju.juju api.go:78 connecting to API addresses: [172.17.
21:00:35 DEBUG juju.api apiclient.go:1153 successfully dialed "wss://
21:00:35 INFO juju.api apiclient.go:688 connection established to "wss://
21:00:35 DEBUG juju.api monitor.go:35 RPC connection died
ERROR cannot delete application offer "ovn-dedicated-
21:00:35 DEBUG cmd supercommand.go:537 error stack:
/build/
$ juju version
2.9.29-ubuntu-arm64
Changed in juju: | |
status: | Fix Committed → Fix Released |
To answer:
# why is this not working? ovn-dedicated- chassis test.ovn- dedicated- chassis" is not a valid application name
juju remove-relation -m ctrl vault admin/test.
> ERROR "admin/
You don't use the offer URL as an argument to "remove-relation". The relation is between the local application and the "SAAS" application as shown in status. Hence the second way
juju remove-relation -m ctrl vault:certificates ovn-dedicated- chassis: certificates
is the correct syntax. This is because you may well have consumed the offer (one or more) times using a local alias, and so must use the actual SAAS name from the consuming model, not the offer reference.