crm_res_running doesn't check properly if a resource is running
Bug #1433377 reported by
Felipe Reyes
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
hacluster (Juju Charms Collection) |
Fix Released
|
High
|
Felipe Reyes |
Bug Description
crm_res_running[0] doesn't work as expected, when a resource is running and the status is asked to pacemaker the output is like "resource XXX is running on: NODE-YY", so the the condition "opt_name in output" is always True, no matter the resource is running or stopped
Example using a nova-cloud-
>>> import commands
>>> commands.
(0, 'resource res_nova_
>>> import pcmk
>>> pcmk.crm_
False
Related branches
lp://staging/~freyes/charms/trusty/hacluster/lp1433377
- Billy Olsen: Approve
- Jorge Niedbalski (community): Approve
-
Diff: 52 lines (+33/-3)2 files modifiedhooks/pcmk.py (+4/-3)
unit_tests/test_pcmk.py (+29/-0)
Changed in hacluster (Juju Charms Collection): | |
assignee: | nobody → Felipe Reyes (freyes) |
status: | New → In Progress |
Changed in hacluster (Juju Charms Collection): | |
status: | In Progress → Fix Committed |
Changed in hacluster (Juju Charms Collection): | |
milestone: | none → 15.04 |
importance: | Undecided → High |
status: | Fix Committed → Fix Released |
To post a comment you must log in.