ClusterLabs / pcs

Pacemaker command line interface and GUI
GNU General Public License v2.0
250 stars 116 forks source link

utils.py : stonithCheck #28

Closed cjschroeder closed 11 years ago

cjschroeder commented 11 years ago

The following message is issued even though stonith devices are defined. Not sure if this has other negative impacts at this time.

WARNING: no stonith devices and stonith-enabled is not false

stonithCheck limits its search:

primitives = et.findall("configuration/resources/primitive") for p in primitives: if p.attrib["class"] == "stonith": return False

But it's possible to have a primitive resource nested inside of a clone.

feist commented 11 years ago

Thanks for the feedback. Looks like I missed this check, it shouldn't affect anything (except for printing the error message).

I've fixed this in this commit: 4aea96d1cbd375c0ecdca2f0bc56caddeb88177d