Wrong error message when calling remove-relation with a subordinate charm
Bug #993492 reported by
Thomas Herve
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pyjuju |
Triaged
|
Low
|
Unassigned |
Bug Description
I tried to call remove-relation between a subordinate charm and a normal service, and I got this:
$ juju remove-relation sub normal
Unsupported attempt to destroy subordinate service 'normal' while principal service 'sub' is related.
First the message is somewhat wrong, as it says "destroy subordinate service" whereas I only call remove-relation (though that may the same). More importantly, the names are inverted.
Related branches
lp://staging/~bcsaller/pyjuju/subordinate-removes
- Juju Engineering: Pending requested
-
Diff: 550 lines (+264/-43)11 files modifiedjuju/control/destroy_service.py (+2/-2)
juju/control/remove_relation.py (+5/-3)
juju/control/tests/test_destroy_service.py (+18/-4)
juju/control/tests/test_remove_relation.py (+2/-2)
juju/hooks/tests/test_invoker.py (+2/-0)
juju/lib/testing.py (+3/-3)
juju/state/hook.py (+9/-3)
juju/state/tests/test_service.py (+78/-22)
juju/unit/lifecycle.py (+64/-0)
juju/unit/tests/test_lifecycle.py (+76/-2)
juju/unit/workflow.py (+5/-2)
Changed in juju: | |
milestone: | galapagos → honolulu |
Changed in juju: | |
milestone: | 0.6 → none |
Changed in juju: | |
milestone: | none → 0.8 |
Changed in juju: | |
importance: | Medium → Low |
To post a comment you must log in.
This is indeed wrong and quite misleading. It should be clarified.