HA LVM should only remove missing PVs on stop when they belong to mirrors

This adds --mirrorsonly to the 3 'vgreduce --removemissing' calls in the
LVM agents.

You'll also notice that it adds another self_fence check after we fail to
remove tags.  In my previous comment, I pointed out that in the case of
single-host by_lv, after we vgreduce we then can't deactivate the logical
volume again because it doesn't exist.  This results in us executing
self_fence, which may have just been a happy accident.  But when we avoid
making metadata changes by adding --mirrorsonly, the subsequent deactivation
is still successful, and thus we miss the self_fence logic.  So, I added
another check so we still catch the failure and fence ourselves in this
situation.

J.B - Retain the loop in 'vg_stop_clustered' that waits for udev to settle
      when trying to deactivate the volume group.  Failure to do so can
      lead to failure to deactivate the volume group.

Signed-off-by: John Ruemker <jruemker@redhat.com>
Signed-off-by: Jonthan Brassow <jbrassow@redhat.com>
Medium: apache: remove unnecessary and imperfect checks from validate_all (bnc#827927)

The validate_all test fails with the status URL set to
https://... However, better not to pretend that we can match all
valid URLs---that is anyway going to be reported by httpd in
resource probe.

Further, tests for the port and config file are redundant.
No longer define a domain, but use "virsh create" to start it non-persistent

See ticket #240:
- no longer define a domain, but use "virsh create" to start it
- get rid of the statefile (which is then no longer needed) and remove 2 unused functions then
- take into account "domstate" output for not defined domains
Low: tomcat: use ocf_is_true for catalina_rotate_log parameter.
Low: tomcat: remove bashisms
Low: tomcat: simplify parameter validation
Medium: tomcat: multiple tomcat instances based on CATALINE_BASE

The tomcat document tells that multiple tomcat instances should
be based on CATALINA_BASE.
See RUNNING.txt from the tomcat distribution for the detail.
Medium: tomcat: use root as the default for tomcat_user instead of RUNASIS mode

It is more simple and consistent behavior with jboss RA, and
also eliminates a bug when catalina_rotate_log=YES in RUNASIS mode.

This change should not affect to any cluster configurations because
Pacemaker/lrmd always invoke an RA as root.
Low: ocft: tomcat: add test case for tomcat
Merge pull request #280 from kskmori/tomcat-multiinstance-for-merge

Tomcat multi-instance support based on CATALINA_BASE (revised)
Low: jboss: remove a bogus option in the default of run_opts

'-l lpg4j' was a typo of '-l log4j' and the option should have never been effective by default.
Low: jboss: eliminate bash dependency
Low: jboss: correctly pass the environment variables with space characters
Low: jboss: change type of rotate_consolelog from string to boolean
Low: jboss: add output_thread_dump()
Low: jboss: add wait_process_exit() to remove redundancy code
Low: jboss: add finished message of start and stop
Low: jboss: skip the unnecessary processing at the time of the JBoss stop
Low: jboss: cosmetic changes

- replace tabs with spaces
- improve indentation
- Delete unnecessary spaces
Medium: jboss: add jboss_version parameter to support JBoss 6

The usage of JBoss was greatly changed as of JBoss 6, and also
the appropriate default values have to be set for each version of JBoss.
You need to specify the version of JBoss manually
because there is no reliable way to detect the version of JBoss.