Destroying a service that is in trouble

Kapil Thangavelu kapil.thangavelu at canonical.com
Thu Jun 6 18:15:16 UTC 2013


at the moment juju-core needs the unit to be in a non error state. juju
resolved postgresql/0 should do the trick, early stage errors like
config-changed/install may need multiple runs. juju-deployer -T -W will do
it for you.

cheers,

Kapil


On Thu, Jun 6, 2013 at 2:05 PM, Andreas Hasenack <andreas at canonical.com>wrote:

> Is there a way to destroy this service:
>   postgresql:
>     charm: cs:precise/postgresql-27
>     exposed: false
>     relations:
>       db-admin:
>       - landscape
>       replication:
>       - postgresql
>     units:
>       postgresql/0:
>         agent-state: error
>         agent-state-info: 'hook failed: "relation-broken"'
>         agent-version: 1.11.1.1
>         life: dying
>         machine: "4"
>         public-address: 10.55.63.172
>
> I don't care about that relation error. In fact, I was on my way to
> destroying this service and I was trying to be nice and did a "juju
> relation-remove" first, but that failed due to a bug in the postgresql
> charm. In fact, I deployed the wrong charm, as I don't wanted the one from
> the store, that's why I'm trying to destroy this service.
>
> I don't want or need to resolve that state, I want the unit and the
> service gone so I can deploy again., the right postgresql charm this time.
> destroy-unit, remove-unit, destroy-service and terminate-machine don't do a
> thing.
>
>
> --
> Juju mailing list
> Juju at lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/juju
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/juju/attachments/20130606/d9e65ea4/attachment-0001.html>


More information about the Juju mailing list