userportal,webadmin: guide link opens with scrollbar

- Fixed the guide link not opening with a scrollbar causing
users not to be able to scroll the guid.

Change-Id: I006b68f2f8748f5621e86e8ffc07e33a03064bce
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=917970
Signed-off-by: Alexander Wels <awels@redhat.com>
core: InitVdsOnUp- proceed regardless of ConnectHostToStoragePoolServers

When running InitVdsOnUp, attempt to connect to the pool regardless of
the result of the connect to the storage pool servers.

Change-Id: Ia69b62807331d4a47482f71fe88aa3e2ad7b7448
Signed-off-by: Liron Aravot <laravot@redhat.com>
core: inactive domain can be selected as master

When attempting to reconstruct after failure in irs command and there's no
domain in Active/Unknown status there will be an attempt to use an inactive domain.

Change-Id: I9031e2fe0afc161c1a3acdddc9b1e7a58626a159
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=923116
Signed-off-by: Liron Aravot <laravot@redhat.com>
userportal, webadmin: change available locales

available locales in the GUI applications are updated to be more
specific ones, so that in the future it will be simpler to deal with
adding different falvours of certain languages if necessary.

non-English .properties files will be updated in the next patch in the
series.

Change-Id: Id6055b45e89bb4e54b399cf5be6db37d22662b53
Bug-Url: https://bugzilla.redhat.com/957551
Signed-off-by: Einav Cohen <ecohen@redhat.com>
userportal, webadmin: change available locales - part 2

renamed the non-English .properties files to match the locales that the
GUI is compiled with (these locales were changed in part 1).

Change-Id: I2eb1146d278fc0cb830049d9e5190a9b179ce0e3
Bug-Url: https://bugzilla.redhat.com/957551
Signed-off-by: Einav Cohen <ecohen@redhat.com>
userportal: Fix exception on browser resizing

The SideTabExtendedResourceView listens to Window.addResizeHandler
and tries to change it's widget hights.

The problem is, that this recieves the events also when the resources
view is not visible so the widgets' heights are 0 leaving the
calculated new height negative. This throws an assertion exception:
"CSS heights should not be negative".

Fixed by guarding that this size will never be less than zero.

Change-Id: I43238b399a7e4148ebb3c75b3afdac807ad78202
Signed-off-by: Tomas Jelinek <tjelinek@redhat.com>
restapi : don't set jsessionid cookie when authentication fails(#927140)

Rest APi returns session id when authentication fails and the user
makes calls with "prefer: persistent-auth"

Change-Id: I84907ab56e99ebb875124f42345d691edad3cdbe
Bug-Url: https://bugzilla.redhat.com/927140
Signed-off-by: Ravi Nori <rnori@redhat.com>
restapi: Added usages option to CLI add cluster network

When adding a network via CLI, in cluster context, added the ability to
pass the usages option - same as when updating a network.

Change-Id: Id4573674ddd1015eba33a05b95d687f685f707c4
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=949884
Signed-off-by: Lior Vernia <lvernia@redhat.com>
restapi: disabling POST & DELETE implementations for quota

It is not fully implemented, therefore removing it.

Change-Id: I819cad0212ea941fa5ff3dcf14386201b7a0577d
Bug-Url: https://bugzilla.redhat.com/950464
Signed-off-by: Gilad Chaplik <gchaplik@redhat.com>
gluster: Override CommandBase.getJobMessageProperties

The patch overrides the basic implementation of getJobMessageProperties
with a concrete one relevant to Gluster commands:
1. Commands inherited from GlusterCommandBase define the Cluster name.
2. Commands inherited from GlusterVolumeCommandBase define Volume name
as well as Cluster name.

Change-Id: I393621e3f52b343b8dc5916f20497a0da3aa3bf1
Signed-off-by: Moti Asayag <masayag@redhat.com>
tools: enable unit tests

The tools package contains some useful unit tests, which are
unfortunately disabled since they are intermixed with integration tests.

This patch replaces the all-out disabling of the package's tests with a
black list of component tests, allowing the unit tests to run in build
time.

Change-Id: Ic9205fd5d46fb8e44c0ad87cfbe4c3b5c7817dbe
Signed-off-by: Allon Mureinik <amureini@redhat.com>
tools: move profile to the end of the pom

Moved the optional itests profile to the end of the pom file to make it
more readable.

Now, the regular build flow can be read without the conceptual
interruption of an optional profile.

Change-Id: I611035ea98c5254c1e5b86d057255447d1ce313e
Signed-off-by: Allon Mureinik <amureini@redhat.com>
Adding parameters to delay fence based on host's load

Before performing fencing to host, we wait TimeoutToResetVdsInSeconds.

This patch adds a formula based on vms count and SPM status that
calculates different timeout period before starting the fence.

Change-Id: I69c15b254cb5323416aaa33756866218870056d2
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=924801
Signed-off-by: Yaniv Bronhaim <ybronhei@redhat.com>