CLOUDSTACK-6914: Fixed the mentioned issue

Signed-off-by: Abhinandan Prateek <aprateek@apache.org>
CLOUDSTACK-5150 - set the template size from source

Signed-off-by: Daan Hoogland <daan@onecht.net>
(cherry picked from commit 883d8f11196e9ca55324bcf075880e077a2d3df3)
CLOUDSTACK-6925: [OVS] get rid custom logic to create bridges on hosts
in the XenServer pool for GRE tunnel networks

Fix uses XenServer recommended way
Network.other_config:assume_network_is_shared=true
which ensures bridge is created automatically on hosts in the pool for
GRE tunnel networks. Fix also gets rid of  error prone custom logic that ensures
bridge is created by plugging a VIF into the dom0 and connected to
GRE tunnel network.

Conflicts:
	plugins/hypervisors/xenserver/src/com/cloud/hypervisor/xenserver/resource/CitrixResourceBase.java
refactor unused code in storagePoolHasEnoughIops method
CLOUDSTACK-6929: HAPlanner (SkipHeuresticsPlanner) gets added into the list of regular planners currently, add it in the exclude list. Also create allocator order list
(cherry picked from commit 6fca4eb0f1193b4612d1057784d24d7db1d7b048)
Add ReflectionUse annotation for marking up *un-used* methods
 CLOUDSTACK-6906: Fixed volume resize BVT failure
CLOUDSTACK-6887: Code enhancement to ensure better cleanup
CLOUDSTACK-1466: Automatiion - Primary Storage Limits test cases
CLOUDSTACK-6932: Removing redundant file test_escalations.py
CLOUDSTACK-6935 refactor StoragePoolAllocator#filter logic

to support IOPS capacity control in a cluster wide storage pool and a
local storage pool
to enable hypervisor type check, storage type check for root volume and
avoid list check
List view: Pass ID to action pre-filters
Revert "CLOUDSTACK-6935 refactor StoragePoolAllocator#filter logic"

This reverts commit 31de58edab563eb1cb50c5c06437fdd3efc6a3d2.
CLOUDSTACK-6936: UI - (1)dialog widget > dropdown field > provide a blank option if there is no data for option(s) in a dropdown field. (2) Add Primary Storage dialog - cluster dropdown field - still calls args.response.success() when there is no data for option(s).
CLOUDSTACK-6934: don't try to detach volume from host when volume was never allocated to a primary storage
CLOUDSTACK-6935 refactor StoragePoolAllocator#filter logic

to support IOPS capacity control in a cluster wide storage pool and a
local storage pool
to enable hypervisor type check, storage type check for root volume and
avoid list check

Since original commit(31de58edab563eb1cb50c5c06437fdd3efc6a3d2) contained
a bug, it was reverted and this commit is a revised one.
Detail view: support per-action filtering

Adds support for adding preFilter on a per-action basis, to assist in
plugin development. If action.preFilter function is passed, and returns
true/false, the action is shown/hidden. If no preFilter is specified,
then the action will be passed through the detail view's standard filter.

Example:

testAction: {
    label: 'Test Action',
    ...
    preFilter: function(args) {
        return false; // Action will be hidden
    },
    ...
}
CLOUDSTACK-6662
CLOUDSTACK-6844

 exit status delivery might get delayed

 Please enter the commit message for your changes. Lines starting
CLOUDSTACK-6940:Templates cannot be downloaded from URLs without
matching file extensions.
CLOUDSTACK-6941: Can't choose storage for the volume, when attaching uploaded data volume to VM

Changes:
- Only way to choose a certain storage pool is by using disk_offering_tags
- Added a parameter to take in a disk offering Id.
- Admin will have to create a custom sized disk offering and tag it as necessary for the user
- This custom offering Id should be passed during uploadVolume to associate the volume with this disk offering