Fixed length calls (bnc#879657)

It is possible that crowbar bails out while apply a pacemaker proposal
with an exception that length is not a method of NilClass. With this fix
it should be fine now.
Use more descriptive msg on sbd init check failure

Stonith + SBD deployment can fail due to SBD not being created on the
shared disk. The message does not really tell what went wrong and what
should be done to fix it. Use a more descriptive one.

The SBD creation is a destructive op and a typo could wipe the user
data, so this is the reason that sbd create is not run by default.

An alternative would be to run the sdb create tonly after user types
the volume name into the input field in the UI twice, for confirmation.
Merge pull request #120 from bkutil/sbd_message

Use more descriptive msg on sbd init check failure
Merge pull request #118 from tboerger/feature/fixed-length

Fixed length calls (bnc#879657)
Fixed length calls (bnc#879657)

It is possible that crowbar bails out while apply a pacemaker proposal
with an exception that length is not a method of NilClass. With this fix
it should be fine now.

(cherry picked from commit 7c2fede9fc355db2b108e2fc720218e5f2c597c3)
Merge pull request #119 from tboerger/feature/roxy-fixed-length

Fixed length calls (bnc#879657)
Fix conversion of per node stonith parameters

This converts the per node stonith parameters from Chef::Node::Attribute to a
"normal" ruby hash when stripping the domain from the node names. It seems
assigning a hash of Chef::Node::Attribute objects to the node attributes
doesn't work. When accessing the values later on (in pacemaker::stonith) they
just evaluated to nil.

https://bugzilla.novell.com/show_bug.cgi?id=887244
Fix extraction of stonith parameter from parameter string

Pacemaker::Resource.extract_hash() is written to extract things from a complete
CIB object definition. Therefore it rightfully expects whitespaces before the
data_type ("params" in this case). So we just add those here to make the string
parsable by extract_hash.

https://bugzilla.novell.com/show_bug.cgi?id=887244
Merge pull request #121 from rhafer/per_node_stonith

Per node stonith config
Fix javascript after barclamp-crowbar change

https://github.com/crowbar/barclamp-crowbar/pull/1091 exposes a bug in
the javascript where we don't specify the default value of a json
attribute we try to read and that doesn't initially exist.
Merge pull request #122 from vuntz/fix-js

Fix javascript after barclamp-crowbar change
Properly escape the per-node STONITH parameters

https://bugzilla.novell.com/show_bug.cgi?id=888637
Merge pull request #124 from vuntz/escape-per-node

Properly escape the per-node STONITH parameters
Fix validation of SBD devices when none is specified

https://bugzilla.novell.com/show_bug.cgi?id=888060
webui: Do not save empty sbd device if there's a trailing , or space
Merge pull request #123 from vuntz/fix-validation-sbd

Fix validation of SBD devices when none is specified
use --wait with crm node maintenance/ready to avoid races

https://mailman.suse.de/mailman/private/ha-devel/2014-May/003603.html
(sorry - SUSE internal-only mailing list; but thread available on request)
use --wait with crm resource start/stop to avoid races

https://mailman.suse.de/mailman/private/ha-devel/2014-May/003603.html
(sorry - SUSE internal-only mailing list; but thread available on request)
Start STONITH primitive resources

For some reason, sometimes, I see them not running after the cluster
creation. Since we're supposed to explicitly start all primitives, this
should work better.
adding recipe for creating apache pacemaker primitive
(to be reusable from other barclamps)

include apache2::mod_status

pick non-ssl port for server-status

porvide list of ports for a service; correct way to find existing one