cmd/juju: destroy-service returns 0 when service is not in a state to respond to the destroy request

Bug #1307304 reported by Dave Cheney
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
juju-core
Triaged
High
Unassigned

Bug Description

ubuntu@winton-02:~$ juju status mysql
environment: manual
machines:
  "1":
    agent-state: started
    agent-version: 1.17.8.9001
    dns-name: 10.245.67.7
    instance-id: manual:10.245.67.7
    series: trusty
    hardware: arch=ppc64 cpu-cores=1 mem=8165M
services:
  mysql:
    charm: local:trusty/mysql-311
    exposed: false
    life: dying
    relations:
      cluster:
      - mysql
    units:
      mysql/0:
        agent-state: error
        agent-state-info: 'hook failed: "config-changed"'
        agent-version: 1.17.8.9001
        life: dying
        machine: "1"
        public-address: 10.245.67.7
ubuntu@winton-02:~$ juju destroy-service mysql ; echo $?
0

juju destroy-service should return none zero as the unit mysql/0 is in an error state so the destroy-service action cannot proceed.

Curtis Hovey (sinzui)
Changed in juju-core:
status: New → Triaged
importance: Undecided → High
milestone: none → 2.0
tags: added: destroy-environment hooks
Revision history for this message
William Reade (fwereade) wrote :

Disagree; the request to destroy the service has been accepted and acted upon. But it is reasonable (and kinder to the user) to change the behaviour of the associated units/machines, as in lp:1219902, of which I am marking this bug a dupe.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.