Destroying a service that is in trouble

Andreas Hasenack andreas at canonical.com
Thu Jun 6 18:05:31 UTC 2013


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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/juju/attachments/20130606/a62b7cde/attachment.html>


More information about the Juju mailing list