BZ-1124767: Setting appropriate defaults for new properties trustStrategy and hostnameVerification introduced in BZ-1062552.

These defaults are used when the property is loaded from the resource's
plug-in configuration. This is necessary to handle situations in where a
resource was already in inventory when the new plug-in is installed.
Bug 1128141 - HostController gets DOWN when name attribute in host.xml is
empty

Fallback to detect host name using on $HOSTNAME and others in case we don't
find it in host.xml

(cherry picked from commit 9c2868cc0d54b3394edaf1ccea6f60c2ec959d69)
Signed-off-by: Libor Zoubek <lzoubek@redhat.com>
[1127654] - Patternfly theme: various minor UI issues - Replacing Header Icons and fix spacing (kudos to asantos)

(cherry picked from commit 1b695d390fa41ce3d4a2ad1506121468a70488e1)
Signed-off-by: Jirka Kremser <jkremser@redhat.com>
(cherry picked from commit fdbe00f31d6f908246752e8a9854236f766e2425)
Signed-off-by: Jirka Kremser <jkremser@redhat.com>
[BZ 1127654] - Patternfly theme: various minor UI issues - window header icons, better icon for pencil (edit), fixing mouse cursor for header icons

(cherry picked from commit 98d63c2d7d8190ca4849f31c27bb98ec0ae0a4b7)
Signed-off-by: Jirka Kremser <jkremser@redhat.com>

Conflicts:
	modules/enterprise/gui/coregui/src/main/webapp/org.rhq.coregui.CoreGUI/sc/skins/CoreGUI/skin_styles.css
Merge pull request #107 from loleary/loleary/bug/1124767/jon3.3.x

BZ-1124767: Setting appropriate defaults for new properties trustStrateg...
Add some logging that would have been helpful investigating bug 1117449.
[BZ 1117449] Add logging to NativeSystemInfo to detect why Java platform was selected

Cherry-Pick master 2a09fd40f5d0b25c5d1c3ba37c553095dc366e60
removing the unused '/rhq' directory that came up from Alan's commit eeaad79aca7f7dc07b96993e9ed2362d26fdd8c0

(cherry picked from commit 8e98bb29867917778fbecb7168516196e4cf8e07)
Signed-off-by: Jirka Kremser <jkremser@redhat.com>
[BZ 1120411] Only allow selecting a proper jdbc driver in the datasource configuration

(cherry picked from commit 28df962ff235511387aff36d79133ed503dc7769)
[BZ 1120411] Datasources (*) should not be tested like a datasource

(cherry picked from commit a106392596b6f8e717ee57c7a7b33d8ea891b9e4)
[BZ 1120411] Fix the integration tests and move selection from profile to managed

(cherry picked from commit c83e8c4536b07b7ea9b6571ef68af11c41018234)
[BZ 1125972] - JON 3.3 Administration/Affinity Groups page is incorrect. Button is missing to create new affinity group - This issue was caused by spaces in id (BaseWidget.setID())

Cherry-pick master ca1a0fd855e2986cbb719d6bf501fd1dd2fa373f
[BZ 1125972] - JON 3.3 Administration/Affinity Groups page is incorrect. Button is missing to create new affinity group - Using utility method for replacing spaces and other forbidden characters in smart gwt id field for UI components.

Cherry-pick master 20eba2225c7b5e51cd495142208a305c48a482ec
[BZ 1083479] - Second invocation of about dialog fails - creating the dialog from scratch (instead of using the cached instance that was causing the issue). Also adding a link to GitHub commit corresponding to the build number (only for RHQ).

(cherry picked from commit 177ee40d9251de5207d58bf417c51187bc7bd38c)
Signed-off-by: Mike Thompson <mithomps@redhat.com>
Bug 1074633 - RFE: Manage storage node snapshots

Added "Take Snapshot" operation to StorageNode resource. This operation
takes several other parameters and it can either move or delete older
snapshots. Basically it allows to
 - keep N latest snapshots and move/delete older ones
 - keep snapshots not older than N days and move/delete the older ones

(cherry picked from commit 2ac701032cf7b05de8a285210de619a5f62e5191)
Signed-off-by: Jirka Kremser <jkremser@redhat.com>
Bug 1074633 - RFE: Manage storage node snapshots

StorageNodeComponentItest - output more details when assertion fails

(cherry picked from commit 2de223b66109636a8b073e70e510f35cd6b70238)
Signed-off-by: Jirka Kremser <jkremser@redhat.com>
Bug 1074633 - RFE: Manage storage node snapshots

next attempt to fix storageNode takeSnapshots itests

(cherry picked from commit 0bef943a102c2bd13f42964fa35c8dd651ca9790)
Signed-off-by: Jirka Kremser <jkremser@redhat.com>
Bug 1074633 - RFE: Manage storage node snapshots

2nd piece of impl above BZ. This patch adds server side capability to manage
snapshots for storage cluster. This basically means that we regularly run
takeSnaphost operation with several parameters - so user can decide whether
to keep all of them, keep last or move older ones to specified location.

6 new private/readonly system settings have been introduced - those settings
can be updated only via Storage admin pages.

User can enable/disable snapshots management of storage cluster and set cron
expression to run management task regulary (additional 4 settings are
basically parameters for takeSnapshot operation introduced within previous
commit for this BZ). When Cluster Setting is saved in UI we re-schedule
takeSnapshot operations on all StorageNode resources in inventory.

Snapshot related code was removed from
StorageNodeManagerBean#runClusterMaintenance()

(cherry picked from commit 6640eabc6735327f8261f0fed23afd942d0ce801)
Signed-off-by: Jirka Kremser <jkremser@redhat.com>
[BZ 1122549] - LDAP user registration screen does not appear when 'Enable Login Without Roles' has value 'No' - SubjectManagerBean.processSubjectForLdap() was calling the SubjectManagerBean.login() where the exception was thrown, but the roles get assigned after this step. Now the login method is called with additional parameter that says 'don't do the role checking'. There was also a logical error that actually caused that no RHQ roles (based on LDAP group) were assigned at all (it was done correctly only when the log level was set to DEBUG)

(cherry picked from commit 12c727d8b96694fb60cb119b95aceeeeece02190)
Signed-off-by: Libor Zoubek <lzoubek@redhat.com>
Fix output when updating storage schema

(cherry picked from commit 264724056b03cd7f44b39d916ebaa11d92cf3dfd)
Signed-off-by: Libor Zoubek <lzoubek@redhat.com>