So what you're saying Ian is that Juju is accidentally getting things right
here. It's not removing the application (great) but that's due to a failure
in our business logic, rather than because we've correctly identified that
the user attempting to sometime invalid (not great).
On Fri, 24 May 2019 at 11:15, Tim McNamara <email address hidden>
wrote:
> Public bug reported:
>
> When attempting to remove an application that has a consumer, Juju 2.6.2
> generates the following message:
>
> juju remove-application --force -m <saas-model> <app>
> removing application <app> failed: cannot destroy application "<app>":
> state changing too quickly; try again soon
>
> Without the --force option, we present a nicer message:
>
> juju remove-application -m wiki-prod mariadb
> removing application mariadb failed: cannot destroy application "mariadb":
> application is used by 1 offer
>
>
> Steps to reproduce:
>
> Step 1: set up models
>
> juju add-model wiki-prod localhost
> juju deploy mediawiki
> juju deploy --to 0 mariadb
> juju relate mediawiki:db mariadb:db
> juju offer mariadb:db
> juju expose mediawiki
> juju add-model wiki-staging localhost
> juju deploy mediawiki
> juju consume wiki-prod.mariadb
> juju consume wiki-prod.haproxy
> juju relate mediawiki:db mariadb:db
> juju expose mediawiki
>
> Step 2: Attempt to remove model
>
> juju remove-application --force -m wiki-prod mariadb
>
> ** Affects: juju
> Importance: Medium
> Assignee: Tim McNamara (tim-clicks)
> Status: Triaged
>
>
> ** Tags: force remove-application
>
> ** Changed in: juju
> Importance: High => Medium
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1830292
>
> Title:
> juju remove-application --force prints spurious output when live
> offer available
>
> Status in juju:
> Triaged
>
> Bug description:
> When attempting to remove an application that has a consumer, Juju
> 2.6.2 generates the following message:
>
> juju remove-application --force -m <saas-model> <app>
> removing application <app> failed: cannot destroy application "<app>":
> state changing too quickly; try again soon
>
> Without the --force option, we present a nicer message:
>
> juju remove-application -m wiki-prod mariadb
> removing application mariadb failed: cannot destroy application
> "mariadb": application is used by 1 offer
>
>
> Steps to reproduce:
>
> Step 1: set up models
>
> juju add-model wiki-prod localhost
> juju deploy mediawiki
> juju deploy --to 0 mariadb
> juju relate mediawiki:db mariadb:db
> juju offer mariadb:db
> juju expose mediawiki
> juju add-model wiki-staging localhost
> juju deploy mediawiki
> juju consume wiki-prod.mariadb
> juju consume wiki-prod.haproxy
> juju relate mediawiki:db mariadb:db
> juju expose mediawiki
>
> Step 2: Attempt to remove model
>
> juju remove-application --force -m wiki-prod mariadb
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/juju/+bug/1830292/+subscriptions
>
> Launchpad-Notification-Type: bug
> Launchpad-Bug: product=juju; milestone=2.6.3; status=Triaged;
> importance=Medium; <email address hidden>;
> Launchpad-Bug-Tags: force remove-application
> Launchpad-Bug-Information-Type: Public
> Launchpad-Bug-Private: no
> Launchpad-Bug-Security-Vulnerability: no
> Launchpad-Bug-Commenters: tim-clicks
> Launchpad-Bug-Reporter: Tim McNamara (tim-clicks)
> Launchpad-Bug-Modifier: Tim McNamara (tim-clicks)
> Launchpad-Message-Rationale: Subscriber
> Launchpad-Message-For: tim-clicks
>
So what you're saying Ian is that Juju is accidentally getting things right
here. It's not removing the application (great) but that's due to a failure
in our business logic, rather than because we've correctly identified that
the user attempting to sometime invalid (not great).
On Fri, 24 May 2019 at 11:15, Tim McNamara <email address hidden>
wrote:
> Public bug reported: /bugs.launchpad .net/bugs/ 1830292 /bugs.launchpad .net/juju/ +bug/1830292/ +subscriptions Notification- Type: bug Bug-Information -Type: Public Bug-Private: no Bug-Security- Vulnerability: no Bug-Commenters: tim-clicks Bug-Reporter: Tim McNamara (tim-clicks) Bug-Modifier: Tim McNamara (tim-clicks) Message- Rationale: Subscriber Message- For: tim-clicks
>
> When attempting to remove an application that has a consumer, Juju 2.6.2
> generates the following message:
>
> juju remove-application --force -m <saas-model> <app>
> removing application <app> failed: cannot destroy application "<app>":
> state changing too quickly; try again soon
>
> Without the --force option, we present a nicer message:
>
> juju remove-application -m wiki-prod mariadb
> removing application mariadb failed: cannot destroy application "mariadb":
> application is used by 1 offer
>
>
> Steps to reproduce:
>
> Step 1: set up models
>
> juju add-model wiki-prod localhost
> juju deploy mediawiki
> juju deploy --to 0 mariadb
> juju relate mediawiki:db mariadb:db
> juju offer mariadb:db
> juju expose mediawiki
> juju add-model wiki-staging localhost
> juju deploy mediawiki
> juju consume wiki-prod.mariadb
> juju consume wiki-prod.haproxy
> juju relate mediawiki:db mariadb:db
> juju expose mediawiki
>
> Step 2: Attempt to remove model
>
> juju remove-application --force -m wiki-prod mariadb
>
> ** Affects: juju
> Importance: Medium
> Assignee: Tim McNamara (tim-clicks)
> Status: Triaged
>
>
> ** Tags: force remove-application
>
> ** Changed in: juju
> Importance: High => Medium
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https:/
>
> Title:
> juju remove-application --force prints spurious output when live
> offer available
>
> Status in juju:
> Triaged
>
> Bug description:
> When attempting to remove an application that has a consumer, Juju
> 2.6.2 generates the following message:
>
> juju remove-application --force -m <saas-model> <app>
> removing application <app> failed: cannot destroy application "<app>":
> state changing too quickly; try again soon
>
> Without the --force option, we present a nicer message:
>
> juju remove-application -m wiki-prod mariadb
> removing application mariadb failed: cannot destroy application
> "mariadb": application is used by 1 offer
>
>
> Steps to reproduce:
>
> Step 1: set up models
>
> juju add-model wiki-prod localhost
> juju deploy mediawiki
> juju deploy --to 0 mariadb
> juju relate mediawiki:db mariadb:db
> juju offer mariadb:db
> juju expose mediawiki
> juju add-model wiki-staging localhost
> juju deploy mediawiki
> juju consume wiki-prod.mariadb
> juju consume wiki-prod.haproxy
> juju relate mediawiki:db mariadb:db
> juju expose mediawiki
>
> Step 2: Attempt to remove model
>
> juju remove-application --force -m wiki-prod mariadb
>
> To manage notifications about this bug go to:
> https:/
>
> Launchpad-
> Launchpad-Bug: product=juju; milestone=2.6.3; status=Triaged;
> importance=Medium; <email address hidden>;
> Launchpad-Bug-Tags: force remove-application
> Launchpad-
> Launchpad-
> Launchpad-
> Launchpad-
> Launchpad-
> Launchpad-
> Launchpad-
> Launchpad-
>