Comment 2 for bug 1757926

Revision history for this message
Ian Booth (wallyworld) wrote : Re: [Bug 1757926] [NEW] Cannot remove an offer with relations

The idea was that you'd remove the relations first. There was an intent to add a --force or -y option to allow Juju to remove all existing relations prior to removing the offer. But we never got to it. Easy to add.

On 22/03/18 13:49, John A Meinel wrote:
> Can't you "juju remove-relation" first?
>
> John
> =:->
>
> On Thu, Mar 22, 2018 at 7:28 AM, Stuart Bishop <email address hidden>
> wrote:
>
> > Public bug reported:
> >
> > If I offer an application, I am unable to revoke the offer if there is a
> > consumer. If I'm the manager of the offer, I am in charge of those
> > resources and I should be able to revoke access without consulting the
> > consumers (which I might not have access to, and may even be hostile).
> >
> >
> > $ juju remove-offer admin/default.hosted-db
> > ERROR cannot delete application offer "hosted-db": offer has 1 relation
> >
> > ** Affects: juju
> >      Importance: Undecided
> >          Status: New
> >
> > --
> > You received this bug notification because you are subscribed to juju.
> > Matching subscriptions: juju bugs
> > https://bugs.launchpad.net/bugs/1757926
> >
> > Title:
> >   Cannot remove an offer with relations
> >
> > To manage notifications about this bug go to:
> > https://bugs.launchpad.net/juju/+bug/1757926/+subscriptions
> >
>