core: Making sshPort field to be editable always

sshPort field was set to be editable only when vds is UP, but should be
editable in any state. When perform 'edit host' we can change the port
number, this can be done from any state.

Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=989493
Change-Id: I2c5b6a74450f8766fb13d21eea2402f41d431ffa
Signed-off-by: Yaniv Bronhaim <ybronhei@redhat.com>
pki: Add a script to extract parts from a PKCS#12

Add a script pki-pkcs12-extract.sh to extract the key and/or cert
from a PKCS#12 file, with or without encryption (for the key).

Change the setup code to use it.

Change-Id: Ica596fe3ef4e5f0a60ae99b0934b10433b9d5023
Signed-off-by: Yedidyah Bar David <didi@redhat.com>
engine: vms_sp.sql argument error in InsertVm function

Change-Id: I6adae39e819424ae53368a61fbe7b10500ad2dbb
Bug-Url: https://bugzilla.redhat.com/989221
Signed-off-by: Shahar Havivi <shavivi@redhat.com>
core: Add log for error on run-vm failure

In most cases, when running vm fails there is re-run.
when there is an error in the create process (for example before
createVmVdsCommand is called), the error is not logged anywhere.

This patch adds a log to this error,
also remove the word "VDSM" from the exception message,
unfortunately its not always vdsm fault.

Change-Id: Ia936fee01fa781eff5d5b3959ae6478129c2a136
Signed-off-by: Omer Frenkel <ofrenkel@redhat.com>
packaging: db: Updated psql usage never to ask passwords

Change-Id: Id44f803bafdcc0c5bc059b59842cff54e2e8e584
Signed-off-by: Alex Lourie <alourie@redhat.com>
userportal,webadmin: version in welcome page

- Fixed issue that caused myVersion to be displayed
instead of the actual version.
- Removed unused engineVersion.js file.

Change-Id: I4a0e28386e00b15e3f222e353965104be50d3938
Signed-off-by: Alexander Wels <awels@redhat.com>
root: branding: integrate properly with apache proxy

Change-Id: I6b2f6bf069b14b47d8128d2739e965b33888c1c0
Signed-off-by: Alon Bar-Lev <alonbl@redhat.com>
webadmin: new icon to host PreparingForMaintenance

Using unique icon when host is turned to PreparingForMaintenance

Change-Id: Iacae2d58feab5c30813a1d8383ca1abdb356ca5d
Signed-off-by: Yaniv Bronhaim <ybronhei@redhat.com>
webadmin: Adding tooltip and style to PublicKey field

Change-Id: I6fab16684a9b1bb57587e672ff1ba7fbf7eae40b
Signed-off-by: Yaniv Bronhaim <ybronhei@redhat.com>
webadmin: Using stored VDS.sshUsername instead of default root in reinstall
view

When loading InstallHost model we launched InstallPopupView filled with
root username in the ssh user name area. This patch uses the stored VDS
object and places in the username field the SshUsername that was saved during
first installation.

Change-Id: Ia9870d35f7dbabb102a809d02c356c15dd1bebff
Signed-off-by: Yaniv Bronhaim <ybronhei@redhat.com>
core: fixing findbugs errors

* fixing wrong caching
* no refernce to field

Change-Id: Iad6f990d93bfdc5bfbd7179cffee4893ef40ccc5
Signed-off-by: Gilad Chaplik <gchaplik@redhat.com>
core: External events' audit logs has not...

External events' audit logs has not records in AuditLogMessages.properties

Adding missing messages to AuditLogMessages.properties
In addition this patch moves initialization of those messages to their own
method in AuditLogDirector

Change-Id: Ie06d4bd179b077013116f7f9776827532ce05cea
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=987830
Signed-off-by: Eli Mesika <emesika@redhat.com>
userportal: Add entry to AppErrors.java

Add VM_POOL_CANNOT_ATTACH_TO_MORE_VMS_FROM_POOL method
to AppErrors.java

Change-Id: I1279d2393741075e973e4c46ea17a95237e00354
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=988036
Signed-off-by: Martin Betak <mbetak@redhat.com>
userportal: disable auto refresh on VmBasicDiskListModel

Disable auto refresh in UserPortal's 'Drives' panel (on basic view).
This solution is part of the effort to reduce resources consumption
due to reoccurring invocation of getdisksvmguid() stored procedure.

Change-Id: I92f9606bac0a3f78984a41146b5c7404ec6bd936
Signed-off-by: Daniel Erez <derez@redhat.com>
userportal: OtherOS VM - NPE in basic view

When creating a VM with 'Other' OS, the VM is not
displayed in basic view due to an NPE.

* Modified ApplicationResourcesWithLookup to correspond
  "OsType(Small/Large)Image" convention; I.e:
** s/other_LargeImage/otherLargeImage
** s/other_SmallImage/otherSmallImage
* Modified OsTypeImage -> defaultImageName() accordingly.

Change-Id: Id56e218a9895fa2fbaef48586272acfe80f9b382
Signed-off-by: Daniel Erez <derez@redhat.com>
packaging: Add backup and restore utility

Initial add of ovirt-engine-backup, a utility for backing up and
restoring an ovirt-engine environment.

Change-Id: I7f6c386a0f48ccd520978193639120999e00cf2a
Signed-off-by: Ofer Schreiber <oschreib@redhat.com>
Signed-off-by: Yedidyah Bar David <didi@redhat.com>
core: Removing the TX from RunVmOnce Command

Like its parent, RunVM, RunVmOnce should be non-transactive otherwise
failed attempts and rerun with VDSM commands will cause the TX to time
out.

Change-Id: I4ae2887e6b4d4958f06ff850f7b5a485a5023074
Bug-Url: https://bugzilla.redhat.com/989916
Signed-off-by: Roy Golan <rgolan@redhat.com>
core: fix generics errors in CommandFactory

Change-Id: I6ea20e92b214162ea4a19c2194f1ae85b52c3614
Signed-off-by: Roy Golan <rgolan@redhat.com>
engine: Add cpuShares attribute to a VM

We are deprecating niceLevel in favour of direct control over
the specific CPU QoS parameters. The first one we introduce in
this patchset is cpuShares.

Change-Id: I89c30a495629de9ebd37c476d035711b30797a91
Signed-off-by: Martin Sivak <msivak@redhat.com>
packaging: Redeploy ear in install-dev target

Touching the engine.ear.deployed will cause the ear to be redeployed by jboss scanner
when jboss is up and running.

Change-Id: I90c29becf4084a3d53505fedd181f876b9fb75f6
Signed-off-by: Roy Golan <rgolan@redhat.com>