core : Removing duplicate code and class ImportExportCommon

The following patch is removing uneeded and duplicate code, as
a result ImportExportCommon (R.I.P) was removed

Change-Id: I761a808d40a2e529692b0dcd258b883ccba779db
core: Prestarted Vm Validation And Periodic Job

This patch fixes the validation when editing or adding a Vm Pool.
It makes sure that the number of prestarted Vms does not exceed the
number of Vms in the pool.

It also modifies the VmPoolMonitor to stop trying to prestart
Vms for a Vm Pool, after 3 attempts that failed.

Change-Id: I612f40e28368b7f5015946fa0df60ed6409ca382
core: Rename upgrade script

Change-Id: I13ff4e6e225841465cf78f40bbdf4f323fed1c01
Iscsi Login Passes Wrong Portal

Right now pass hard-coded "0" (like GUI) but later on
externalize this variable to the user.

Change-Id: Id71015c28f3631f01cdeaed5593a19cfa9a6c03c
core : Making a check if vm in preview to be not related to provided images

The patch is moving a check if image in preview to be not related to provided images

Change-Id: Ibb373d840383a8cddf9f494b32124ae79e755ef7
core : RunVm should be cheked only plugged images

The following patch is done inorder to chek only plugged images at canDoAction of RunVm

Change-Id: Icba0c158825fec2a1b518d2169412c61fa0456b3
core: Adding quota id when updating image

Re-adding set for quota id when updating image at diskImageDAO

Change-Id: Ia34979ff53003ea82a58758fa69ffa2826630888
core: Adding new error message

Adding ACTION_TYPE_FAILED_VM_SNAPSHOT_HAS_NO_CONFIGURATION error message

Change-Id: Iada27020198fd846eabfa9dc8b93a71a77ddddae
Acked-By:
frontend: Adding new error message

Adding new error message of ACTION_TYPE_FAILED_VM_SNAPSHOT_HAS_NO_CONFIGURATION

Change-Id: If12e12a81527029168a25c18a7e6f6cdbf5d0526
Acked-By:
DO NOT SUBMIT core: refactor at AddVmCommand

Moving the part of copying VM devices to a method.
This method will be overriden in AddVmFromSnapshot
(as the devices should be copied from the VM
configuration)

Change-Id: Ia69751da29ce1a71cabb827763a94e2dc2d542bb
Acked-By:
DO NOT SUBMIT core: Introducing AddVmAndCloneImageCommand

This base class is responsible for providing
helper methods to perform Adding a VM with
image cloning using the MoveOrCopyImageGroup
child command

Acked-By:

Change-Id: I7ff02972a4bfaa5696ac07eab7f825468fc52dfe
Acked-By:
DO NOT SUBMIT common: Introducing new Action type

Introducing the AddVmFromSnapshot
action type for cloning a vm from
snapshot

Change-Id: I5b1eb3f853e82cbe9c7df7e48761caf74e46cd6d
Acked-By:
DO NOT SUBMIT common: Adding AddVmFromSnapshot params

Adding parameters for AddVmFromSnapshot class

Change-Id: Ife76519f4210b7a71a7a7b03c2a1026e55110009
Acked-By:
DO NOT SUBMIT core: Introducing changes to commands hierarchy

Introducing AddVmAndCloneImageCommand that will serve
as base class for AddVmFromSnapshot (and later on for
AddVmFromTemplate).
Also, some cleanups and changes of method names to
support Java naming conventions.

Change-Id: Ie7f4abd569a8a620ca9657d4c472bb7b59a57429
Acked-By:
DO NOT SUBMIT core: Introducing AddVmFromSnapshot command

Introducing the AddVmFromSnapshot command that
holds the logic for CloneVmFromSnapshot

Still needs integration with quota.
Should not clone from down VM, once integration with
snapshots feature is configured

Change-Id: I0ac7e0c801faf6bca9932c5ed47dc6a065c1ac51
Acked-By:
DO NOT SUBMIT core: Adding tests for AddVmFromSnapshot

Adding unit-tests for AddVmFromSnapshot

Change-Id: I75c6e9968c042c330f21189fc3928521580a8c9e
acked-by:
core: Fixing move or copy image group command

This problem occurs as a result of not passing destination
image ID and using the default ImageId

Acked-By:

Change-Id: I29e253c605b861d1ddbea4890096a8c884f80a3d
engine: add gluster volume id and name to audit log

add support for gluster volume id and name in audit log table, entity and auditLogableBase

Change-Id: I09c618f2adc0a753d595937586096abfdbc9ada3
DO NOT SUBMIT api: Adding support for clone vm from snapshot

Adding support for clone vm from snapshot, and a test for it.
In addition, Adding a mapper for Snapshot business entity
(previously, all Snapshot mappers mapped from DiskImage business entity)

Change-Id: Ie8b8285cfe193a1d501c28af042021f4649bc299
Acked-By:
core: Send images list to vm device creation

Sending the created images straight to VM device creation.
This is required to remove image_vm_map, otherwise the disks cannot be
found before the appropriate VM device is added.

Change-Id: I6f6356584dd4866042a5903982fce4467c855ed4