18099 Commits

Author SHA1 Message Date
Marcus Sorensen
800cd391d5 RPM build - run mvn clean before building packages, to get a build from fresh
source

Signed-off-by: Marcus Sorensen <marcus@betterservers.com> 1369936033 -0600
2013-05-30 16:13:40 -06:00
Prachi Damle
7296cca9ac CLOUDSTACK-2771: Unable to create guest VM in basic zone: Zone is dedicated
Changes:
- Check the domain of the dedicated zone
2013-05-30 14:50:55 -07:00
Sheng Yang
70ca581499 CLOUDSTACK-2772: Programming firewall rules to VR when recovering redundant network 2013-05-30 14:10:18 -07:00
Alena Prokharchyk
1300fc8128 AccountManager/Service: reduced visibility for methods that are called only from AccountManagerImpl itself 2013-05-30 11:18:32 -07:00
Alena Prokharchyk
973fc84d6c AccountManager: fixed unchecked conversion warning 2013-05-30 11:18:32 -07:00
Alena Prokharchyk
4701dd760b Removed unused code from ManagementServerImpl 2013-05-30 11:18:31 -07:00
Alena Prokharchyk
0ea409546e RulesManager interface: changed visibility for methods that are being called only from RulesManagerImpl class, from public and defined in the interface, to private/protected 2013-05-30 11:18:31 -07:00
Min Chen
9378820b9e Revert 285e8213fed8b0d6a8afc73b686b99a4fcfe5b4a, since it is already
covered by recent commit 08ac8fb4687fb14cf9524a022527a64e033be9ab in a
more robust way to handle upgrade.
2013-05-30 09:54:42 -07:00
radhikap
dd9b75020c CLOUDSTACK-2764 2013-05-30 18:24:38 +05:30
Abhinandan Prateek
3000cb31af CLOUDSTACK-2434: Enable irq balance on system VM 2013-05-30 17:35:30 +05:30
Koushik Das
fd79f6b602 CLOUDSTACK-2276: NPE while attaching the volume to the instance which is created from ROOT Disk Snapshot
The NPE comes as the storage pool id is set to null in the in-memory volume object which is not in sync with the db. entry. Reloading the volume from db. fixes the issue
2013-05-30 17:20:44 +05:30
Kishan Kavala
3115ddf007 Added networkAclId to listNetworkResponse. Log ACL provider while applying network ACLs 2013-05-30 16:36:21 +05:30
radhikap
4b8bacd98a more additions on internal lb-vpc 2013-05-30 16:33:48 +05:30
radhikap
08e5a45def CLOUDSTACK-769 2013-05-30 16:18:18 +05:30
Pranav Saxena
35fe8e86c0 removing the tooltip helper for implicit dedication 2013-05-30 15:30:32 +05:30
Pranav Saxena
ef8663998a Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/cloudstack 2013-05-30 15:28:07 +05:30
Pranav Saxena
6cbd85f095 Implicit Dedication UI changes 2013-05-30 15:27:18 +05:30
Nitin Mehta
0a5e3fa607 CLOUDSTACK-2060
Global config to turn off dynamically scale vm functionality
2013-05-30 15:11:08 +05:30
Saksham Srivastava
965c7b9c35 Patch 2: CLOUDSTACK-681: Dedicated Resources - Explicit Dedication, Private zone, pod, cluster or host
Patch 2 for https://reviews.apache.org/r/11379/
Created for files server/src/com/cloud/deploy/DeploymentPlanningManagerImpl.java, server/test/com/cloud/vm/DeploymentPlanningManagerImplTest.java, server/test/org/apache/cloudstack/affinity/AffinityApiUnitTest.java
2013-05-30 01:07:07 -07:00
Saksham Srivastava
17267794ad CLOUDSTACK-681: Dedicated Resources - Explicit Dedication, Private zone, pod, cluster or host. <Patch1>
This feature allows a user to deploy VMs only in the resources dedicated to his account or domain.

1. Resources(Zones, Pods, Clusters or hosts) can be dedicated to an account or domain.
   Implemented 12 new APIs to dedicate/list/release resources:
   - dedicateZone, listDedicatedZones, releaseDedicatedZone for a Zone.
   - dedicatePod, listDedicatedPods, releaseDedicatedPod for a Pod.
   - dedicateCluster, listDedicatedClusters, releaseDedicatedCluster for a Cluster
   - dedicateHost, listDedicatedHosts, releaseDedicatedHost for a Host.
2. Once a resource(eg. pod) is dedicated to an account, other resources(eg. clusters/hosts) inside that cannot be further dedicated.
3. Once a resource is dedicated to a domain, other resources inside that can be further dedicated to its sub-domain or account.
4. If any resource (eg.cluster) is dedicated to a account/domain, then resources(eg. Pod) above that cannot be dedicated to different accounts/domain (not belonging to the same domain)
5. To use Explicit dedication, user needs to create an Affinity Group of type 'ExplicitDedication'
6. A VM can be deployed with the above affinity group parameter as an input.
7. A new ExplicitDedicationProcessor has been added which will process the affinity group of type 'Explicit Dedication' for a deployment of a VM that demands dedicated resources.
   This processor implements the AffinityGroupProcessor adapter. This processor will update the avoid list.
8. A VM requesting dedication will be deployed on dedicatd resources if available with the user account.
9. A VM requesting dedication can also be deployed on the dedicated resources available with the parent domains iff no dedicated resources are available with the current user's account or
   domain.
10. A VM (without dedication) can be deployed on shared host but not on dedicated hosts.
11. To modify the dedication, the resource has to be released first.
12. Existing Private zone functionality has been redirected to Explicit dedication of zones.
13. Updated the db upgrade schema script. A new table "dedicated_resources" has been added.
14. Added the right permissions in commands.properties
15. Unit tests:  For the new APIs and Service, added unit tests under : plugins/dedicated-resources/test/org/apache/cloudstack/dedicated/DedicatedApiUnitTest.java
16. Marvin Test: To dedicate host, create affinity group, deploy-vm, check if vm is deployed on the dedicated host.
2013-05-30 01:07:01 -07:00
Mice Xia
4989f73fda fix CLOUDSTACK-2128, should save network offering id into usage event 2013-05-30 15:26:39 +08:00
Saksham Srivastava
62413eec10 CLOUDSTACK-2130: Fix resource_name for old NIC ID
Signed-off-by: Mice Xia <mice_xia@tcloudcomputing.com>
2013-05-30 15:24:33 +08:00
Sateesh Chodapuneedi
4b9b475336 Add method getVolumeRelativeDirInSecStroage to fix compile error. 2013-05-30 11:23:12 +05:30
Prasanna Santhanam
718bc97a7e CLOUDSTACK-1824: Stop service displayed as cloud-management
service cloudstack-management is being displayed as cloud-management

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-05-30 11:12:20 +05:30
Ashutosh
85062a75ae Test cases for assignVirtualMachne feature.
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-05-30 11:03:25 +05:30
Prachi Damle
34943adfc6 CLOUDSTACK-2366: Anti-Affinity - DeleteAffinityGroup API should allow for deletion of Afffinity group even when VMs are associated with it.
Changes:
- Allowing group to be deleted even when VMs are associated to it.
2013-05-29 17:59:32 -07:00
Anthony Xu
68275fbd6b only basic zone is pod based network 2013-05-29 17:47:51 -07:00
Anthony Xu
7b8ae4d511 virt-what does't report correct hypervisor on some new platform, use /proc/xen for XS 2013-05-29 17:05:03 -07:00
Anthony Xu
51930405d9 Don't need to handle dhcp entry differently for different guest OS 2013-05-29 16:51:42 -07:00
Anthony Xu
271cf92ab7 allow subdomain access parent domain's network 2013-05-29 16:27:08 -07:00
Anthony Xu
fdc9f10cc1 fix , Windows 2008 32bit instance can't get IP address,
normally, in dhcp reply, the target ip is allocated ip for VM.
but windows 2008 32bit has special field in dhcp reply, which makes dhcp reply use 255.255.255.255 as target ip, which is blocked by SG rule,
2013-05-29 16:01:22 -07:00
Anthony Xu
ddba994a97 unitNumber is per adapter/controller not per VM in wmware, after this patch, you can plug in up to 10 NICs to vmware VM 2013-05-29 15:57:25 -07:00
Anthony Xu
a8bb62c35c lockRow doesn't work without transaction, start transaction before lockRow 2013-05-29 15:48:23 -07:00
Anthony Xu
354d259d55 volume size is virtual disk size not physical size, so uploaded volume should use virtual size 2013-05-29 15:37:13 -07:00
Anthony Xu
56535a7a83 zero size of template/volume being registered causes infinite loop on SSVM,
the fix is if the size is 0, return success without download
2013-05-29 15:18:20 -07:00
Anthony Xu
a4d428434d Don't use volume name as snapshot name because volume name may incude space, \ and other special character, which cannot be part of path name in vmware
after this commit, snapshot name is volumeUuid_timestring.
2013-05-29 15:10:49 -07:00
Anthony Xu
3ae00f4b2f update volume API needs to respect the account and domain 2013-05-29 14:45:15 -07:00
Sheng Yang
83c13fcf27 CLOUDSTACK-2614: Fix the permission of patchviasocket.pl
It's non-executable now, which cause trouble on deb package.
2013-05-29 14:24:49 -07:00
Anthony Xu
a91f04e759 migrate volume in Vmware leaves a copy of this volume untracked in secondary storage,
this patch removes the volume in secondary storag after volume migration
2013-05-29 14:11:57 -07:00
Anthony Xu
0b728f2e77 remove unused file 2013-05-29 13:51:22 -07:00
Anthony Xu
6a7cc2021e when VR is rebooted, CloudStack will reapply all ips/rules to VR,
this patch will reduce time the VR reboot takes
 - remove 1 s sleep in vmware
 - reduce the time arping takes
2013-05-29 13:45:07 -07:00
Anthony Xu
9905f656a5 only check hypervisor type for security enabled advanced zone 2013-05-29 11:32:15 -07:00
Nitin Mehta
8d1189c2ae CLOUDSTACK-2060
Global config to turn off dynamically scale vm functionality
2013-05-29 19:02:06 +05:30
Murali Reddy
cea9e3919a fixing unit tests to comply with bug "CLOUDSTACK-2477: [GSLB]
CloudStack currently allows admin to map LB rule of one account to GSLB
rule of a different account"
2013-05-29 18:54:36 +05:30
Murali Reddy
ee317287b3 CLOUDSTACK-2285: [GSLB] addNetscalerLoadBalancer with GSLB functionality shouldn't be
exposed in basic zone

imposing restriction that NetScaler can only be added when EIP/ELB
service are available in basic zone.
2013-05-29 18:54:36 +05:30
Murali Reddy
c8a0c40a2f CLOUDSTACK-2477: [GSLB] CloudStack currently allows admin to map LB rule
of one account to GSLB rule of a different account

ensuring account id of GSLB rule and LB rule are same
2013-05-29 18:54:35 +05:30
Murali Reddy
2b93969823 add upgrade path to "cloud.dns.name" global config value.
fail creating GSLB rule if DNS name is not confiugred
2013-05-29 18:54:35 +05:30
Kishan Kavala
e3a104aa58 fix networkAclServiceTest failure 2013-05-29 17:14:36 +05:30
Koushik Das
84d904abf2 CLOUDSTACK-2719: Additional public IP is getting acquired during Cisco VNMc provider Guest Network restart (cleanup=true)
An extra public ip is acquired while implementing the vnmc element as there is a limitation where in the source nat cannot be used as asa outside ip.
As a result of this when the network gets re-implemented an additional ip is acquired every time. The fix involves checking for existing public ips
in the network and reuse it in case it is not a source nat ip for assigning to asa outside interface.
2013-05-29 14:20:21 +05:30
Prasanna Santhanam
7fb6eaa0ca Attributes for tests
Removing simulator attribute as the NetworkACL related support is to be
extended on the simulator.

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-05-29 10:01:20 +05:30