packaging: updated unattended upgrade mode

This patch provides an option for the upgrade
utility that allows running a DB fix mode
automatically.

Bug-Url: https://bugzilla.redhat.com/893459
Change-Id: Ie8f64a8369633562e4b919cb64c80793c194bff9
Signed-off-by: Alex Lourie <alourie@redhat.com>
userportal: changed Spice to SPICE

Removed the hardcoded Spice string from ConsoleProtocol.

Change-Id: I7e610d12a2966ccff81e722d41c3bcde4c6a4be7
Bug-Url: https://bugzilla.redhat.com/876900
Signed-off-by: Tomas Jelinek <tjelinek@redhat.com>
findbugs: Dead store to local variables

Change-Id: I69f4fa8cfff6209b106914b22a2c221193a748c9
Signed-off-by: Shahar Havivi <shavivi@redhat.com>
findbugs: use StringBuilder in a for loop

Change-Id: If11e9b335a741aaa364893474573d226ca9ece72
Signed-off-by: Shahar Havivi <shavivi@redhat.com>
findbugs: Call to equals compare different types

Change-Id: Ia35fdbd31536ce983f23cd251baf4d4a4e46ee21
Signed-off-by: Shahar Havivi <shavivi@redhat.com>
findbugs: Potentially dangerous use of non-short-circuit logic

Signed-off-by: Shahar Havivi <shavivi@redhat.com>
Change-Id: I101e2ae3b9a1886d5394984c728e4844d1eb189f
webadmin: vm->change cd, "Eject" is not localized

The default value "[Eject]" and "No CDs" in the drop down menu is not
localized.

Change-Id: I23516d20f2b1aeb8a57651671388cba701646b22
Signed-off-by: Alona Kaplan <alkaplan@redhat.com>
engine: adding gluster_server table and dao operations

A new table 'gluster_server' is added. Currently this will
store the gluster UUID of the server and the table has a
reference field(vds_id) to vds_static table.

All the operations on this table like insert, update and
remover are implemented

Change-Id: I04ba0a7bf1eaa964db731cdfa24ab6875e0b1513
Signed-off-by: Kanagaraj M <kmayilsa@redhat.com>
findbugs: Null check of value previously dereferenced

Change-Id: Ic5a1e4ea6f2338c53db028033297c48397354ef6
Signed-off-by: Shahar Havivi <shavivi@redhat.com>
findbugs: String comparison is not using equals method

Change-Id: I740261ed3383e147928505ea53edc19e2996ce69
Signed-off-by: Shahar Havivi <shavivi@redhat.com>
findbugs: Comparing integer by its reference value

Change-Id: If780c1f44b1750dba343831e58f866359eded941
Signed-off-by: Shahar Havivi <shavivi@redhat.com>
packaging: Reverting the execution of encodingvalidator

This patch removes execution of the encodingvalidator
utility on upgrade and restores running validators with
SERVER_ADMIN permissions.

Change-Id: Iabb320fd8d4df8b2a3f943a98dd3309469c730b7
Bug-Url: https://bugzilla.redhat.com/893459
Signed-off-by: Alex Lourie <alourie@redhat.com>
restapi : if "filter: ..." header is set, use query instead of search to list items

When the filter option is specified the api query should not
throw a insufficient permissions exception. Instead the query should
return a list of objects that the user has permissions for.

This patch fixes /events/{id}

Change-Id: Ia2ab0e1e62b9cc67fad51da5e5e0b2c1163087a6
Bug-Url: https://bugzilla.redhat.com/869334
Signed-off-by: Ravi Nori <rnori@redhat.com>
core : power management types are not updated

Power management types from rest api and admin portal
dont match. The rest api does not values from database.

Change-Id: Ibd1f82f1508ff1c2f1148692b49b47c535dbbaa1
Bug-Url: https://bugzilla.redhat.com/955573
Signed-off-by: Ravi Nori <rnori@redhat.com>
engine: Refactoring AddVdsCommand#canDoAction()

to use failCanDoAction(), saving few lines of code. Also made sure that
the gluster specific validation happens only if all previous validation
was successful.

Change-Id: Id2525aa9ce72654fea18eb60948a87d95a636602
Signed-off-by: Shireesh Anjal <anjalshireesh@gmail.com>