Commit Graph

2522 Commits

Author SHA1 Message Date
Prachi Damle fac54d2334 CLOUDSTACK-4221: Dedicated Resources: changes to associate the dedicated resource with the 'ExplicitDedication' affinity group
Changes:
- Implict creation of the 'ExplicitDedication' Affinity group during resource dedication
- Only one group per account or per domain will be present
- ListDedicatedResources by affinityGroup
- Deployment should consider dedicated resources associated to the group only
- Deleting affinity group should release the dedicated resouces
- Releasing the dedicated resources should remove the group associated if there are no more resources.
2013-08-10 11:02:57 -07:00
Prachi Damle b965032b57 CLOUDSTACK-4168 Root Admin should be able to create 'ExplicitDedication' affinity group at domain level and make it available for all accounts in the domain
Changes:
- 'ExcplicitDedication' type of group can be created/deleted by Root admin only
- Users can no longer create this type of affinity group
- RootAdmin can create this type of affinitygroup at domain level. Such a domain level group is available for all accounts in that domain for listing and for use during deployVM.
- The domain level affinitygroup should be visible to the users in that domain, domain admins and Root admin.
2013-08-10 11:02:42 -07:00
Koushik Das 21c74c6453 CLOUDSTACK-4179: [Performance Testing] Time taken for Deploy VM async job to complete is considerably higher
The time increased due to the newly added dedicated resources feature. During regular VM deployment, all dedicated resources are put in avoid list so that they are not considered for deployment.
Now the way to compute the list of dedicated resources is not optimal and performance deteriorates in an environment having lot of pods, clusters and hosts as the logic is to query db. for each suc resource.

The fix is to optimize the logic not to loop through all resources but get the list of each resource type in a single query.
2013-08-09 16:03:17 +05:30
Alena Prokharchyk 6999fca4d7 CLOUDSTACK-4193: don't let privateGateway to be created with NULL networkId 2013-08-08 10:49:25 -07:00
Likitha Shetty c84f373d47 CLOUDSTACK-4182. Id field is not set in the xml response for DeployVirtualMachine/CreateVolume/CreateNetwork API's. 2013-08-08 14:29:19 +05:30
Murali Reddy 8447b66b38 CLOUDSTACK-2955: [PortableIPrange deletePortableIpRange fails because of
UI firing an incorrect API

adding 'portableiprange' tag to the job result of
CreatePortableIpRangeCmd api job response
2013-08-06 15:59:22 +05:30
Wei Zhou 2b980ef88f CLOUDSTACK-3947: Fix similar issues related to getSyncObjType / getSyncObjId
(cherry picked from commit 5cfc69a7aa)
2013-08-06 10:49:12 +02:00
Sateesh Chodapuneedi b0e61f9d79 CLOUDSTACK-4097 2 optional parameters of addCluster API are not declared correctly
Signed-off-by: Sateesh Chodapuneedi <sateesh@apache.org>
2013-08-06 06:30:39 +05:30
Jessica Wang 8fe7a65f0a This reverts commit c4589e6ec7. Should not unescape queryFilter on server-side. 2013-08-05 14:52:39 -07:00
Min Chen 13d44fd7a6 CLOUDSTACK-3861 and CLOUDSTACK-3862: Deprecate old S3/Swift classes. 2013-08-02 16:05:53 -07:00
Min Chen 612ac971bc CLOUDSTACK-4053: Removal of AddSwiftCmd and ListSwiftsCmd APIs broke api
back compatibility.
2013-08-02 14:26:08 -07:00
Min Chen ad20a9b6fa CLOUDSTACK-3748:AddS3Cmd NPE. 2013-08-02 13:42:19 -07:00
Min Chen 838c972da0 CLOUDSTACK-3748: AddS3Cmd NPE. 2013-08-02 13:42:19 -07:00
Bharat Kumar 4fb4afb88a Cloudstack-3753 Multiple VLAN range API need to accept a list rather than "add" or "remove" per command
Reviewed-by: Alena Prokharchyk
2013-08-01 10:40:56 -07:00
Likitha Shetty f744614769 CLOUDSTACK-3981. ListAccounts always sets 'networkTotal' to 0.
Add vpc resource count to the response. And set the right values for network resource count.
2013-08-01 14:15:31 +05:30
Wei Zhou 478eae8287 CLOUDSTACK-3947: Override getSyncObjType and getSyncObjId in CreateLBStickinessPolicyCmd.java to prevent concurrent operations on Loadbalancer in a network
(cherry picked from commit d571b49d00)
2013-08-01 10:04:48 +02:00
Bharat Kumar 5c18483d81 Cloudstack-2997 unable to update concurrent_conncetions feild in network_offerin.
Signed-off-by: Abhinandan Prateek <aprateek@apache.org>
2013-07-31 15:32:28 +05:30
Alena Prokharchyk 026cca46c6 CLOUDSTACK-3948: fixed createAutoscaleVmProfile - for situation when no autoscaleUserId is passed in, take it from caller user id, not caller account id 2013-07-30 14:31:22 -07:00
Harikrishna Patnala a5054c1cde CLOUDSTACK-3848: Usage events for dynamic scaling of cpu/ram operation on VM 2013-07-30 22:04:12 +05:30
Kishan Kavala 1550f5e26c CLOUDSTACK-3439: Include dynamically created nics in Prepare for migration command in KVM 2013-07-30 18:23:56 +05:30
Isaac Chiang c24db863a6 CLOUDSTACK-3935:Inconsistent json object name for image store api 2013-07-30 18:59:35 +08:00
Jonathan Creasy 2388157596 Fixing typo of "createing" that should be "creating" https://issues.apache.org/jira/browse/CLOUDSTACK-3915
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-07-30 09:41:05 +05:30
Mice Xia acd2396660 fix CLOUDSTACK-3591 add usage recording for VM snapshots 2013-07-29 17:57:20 +08:00
Prasanna Santhanam 11e3a43ebe CLOUDSTACK-2715: Making MigrateSysteVm response uniform
with responses on other systemVm apis. All systemVM apis return
SystemVmResponse - rebootSystemVm, stopSystemVm etc. MigrateSystemVm is
now made uniform.

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-07-29 12:34:56 +05:30
Prachi Damle 027d4873b4 CLOUDSTACK-3343 UI/API should also return the mode(Strict/Preferred) when listing the ServiceOffering that uses ImplicitDedicationPlanner
Changes:
- API is fixed to return the service_offering details
2013-07-28 22:10:37 -07:00
Bharat Kumar 6f9c26ea49 Cloudstack-2997 Make haproxy maxconn configurable
Signed-off-by: Abhinandan Prateek <aprateek@apache.org>

Conflicts:
	api/src/org/apache/cloudstack/api/ApiConstants.java
	engine/schema/src/com/cloud/offerings/NetworkOfferingVO.java
	server/src/com/cloud/network/router/VirtualNetworkApplianceManagerImpl.java
	setup/db/db/schema-410to420.sql
2013-07-29 10:07:15 +05:30
Alena Prokharchyk 07bf2b2227 CLOUDSTACK-3868: fixed "count" param in listUsageRecords API to return the actual number of records matching the search criteria. Used to return the wrong value - the number of records per page 2013-07-26 15:37:20 -07:00
Min Chen 1305697eaa CLOUDSTACK-3818: NFS Cache Improperly Named. 2013-07-26 14:36:00 -07:00
Rajesh Battala 7b728cdb71 CLOUDSTACK-62 [AWS Style Health Checks] Response of the API listLoadBalancerRuleInstances should show the service state of a VM if health check is configured for it
Conflicts:

	api/src/org/apache/cloudstack/api/ApiConstants.java
	api/src/org/apache/cloudstack/api/response/UserVmResponse.java
2013-07-26 16:27:16 +05:30
Min Chen 11e001d756 CLOUDSTACK-3709: Add the missing file. 2013-07-25 17:02:30 -07:00
Min Chen e23e6b02db CLOUDSTACK-3709:[Object_Store_Refactor][UI] Can't delete NFS Cache
storage through UI.  Fixed at API side.
2013-07-25 17:02:30 -07:00
frank 4191f157c1 change associatesUcsProfileToBlade to async api 2013-07-25 15:25:29 -07:00
Murali Reddy f4e9282609 CLOUDSTACK-3764: [EIP/ELB] [BasicZone] Unable acquire IP as non-ROOT
domain users

Since the basic zone network is owned by 'Root' domain, domain access
checkers will fail for the accounts in non-root domains while acquiring
public IP. So add an exception for the 'Basic' zone shared network with
EIP/ELB service.
2013-07-25 19:15:48 +05:30
Harikrishna Patnala 4c81ea69c4 Fix for CLOUDSTACK-2536
Removing memoryovercommitratio and cpuovercommitratio parameters from addCluster and updateCluster APIs,
since these can be configurable using updateConfiguration API at cluster level.
By default while creating cluster these values are taken from global configuration parameters.

Conflicts:
	server/src/com/cloud/resource/ResourceManagerImpl.java
2013-07-25 13:56:59 +05:30
Edison Su bfe30cd2e3 CLOUDSTACK-3681: fix bunch of bugs related to vmware, regarding to snapshot 2013-07-24 15:54:36 -07:00
Saksham Srivastava d89115b5cf CLOUDSTACK-2508: Template usage should report both physical and virtual sizes 2013-07-24 18:20:37 +05:30
Alena Prokharchyk 8d1a670026 CLOUDSTACK-3478: fixed volume destroy. #1 - don't call destroy() when the volume is in Expunged/Expunging/Destroy state. #2 - added state transition for Expunged state 2013-07-23 14:40:30 -07:00
Alena Prokharchyk 4e59c4daf9 CLOUDSTACK-3720: fixed API doc for listResourceLimits API 2013-07-22 13:24:17 -07:00
Min Chen ce6a5d7183 CLOUDSTACK-3274: API Refactoring: secretkey and accesskey of the backing
store is found in plaintext in the logs.
2013-07-20 17:30:53 -07:00
Harikrishna Patnala 12c711cef7 CLOUDSTACK-3358: create template from a volume/snapshot should also take input from User/Admin whether xstools / vmware tools installed in the VM
Signed off by : Nitin Mehta<nitin.mehta@citrix.com>
2013-07-19 11:54:36 +05:30
Ian Duffy c4589e6ec7 CLOUDSTACK-3344: unescape value 2013-07-18 15:22:04 +05:30
Alena Prokharchyk 5d390ec7a3 CLOUDSTACK-3584: fixed security group related apis with the correct class reference for projectid parameter 2013-07-17 10:53:41 -07:00
Bharat Kumar 956a2a68ce Incorportaed the review changes Now dhcpservice IPs are removed when last vm from the subnet is removed.
Signed-off-by: Abhinandan Prateek <aprateek@apache.org>
2013-07-17 16:53:11 +05:30
Edison Su ba4c4400b5 be able to upload template into swift 2013-07-16 18:05:01 -07:00
Prachi Damle 9a9d277884 CLOUDSTACK-2159 Anti-Affinity - When "HostAntiAffinityProcessor" plugin is not included in the deployment , deployVirtualMachine() command does not error out when passing the affiitygroupnames parameter.
Changes:
- Added a check during vm deployment to see if a processor for the affinity group type is available
2013-07-16 15:23:08 -07:00
Prachi Damle d70076e6a5 CLOUDSTACK-2155: Anti-Affinity -When Vm deployment is done in parallel , anti-affinity rule is not honored.
Changes:
- Locking the group and save reservation mechanism done by DPM
- Added admin operation to cleanup VM reservations
- DPM will also cleanup VM reservations on startup
2013-07-16 13:41:16 -07:00
Prachi Damle 9cb91ba58c CLOUDSTACK-2155 Anti-Affinity -When Vm deployment is done in parallel , anti-affinity rule is not honored.
Changes to check if the destination found does not conflict with any vm reservation
2013-07-16 13:41:12 -07:00
Alena Prokharchyk bd0cfd9c06 CLOUDSTACK-1948: fixed pagesize to support -1 (unlimited) value 2013-07-15 11:51:59 -07:00
Toshiaki Hatano 8065a5570d CLOUDSTACK-3431: KVM: cloudstack-plugin-hypervisor-kvm with BridgeVifDriver doesn't cleanup vNet due to multiple reasons
- Move vnetBridge clean up function from LibvirtComputingResource to BridgeVifDriver
-- since only BridgeVifDriver have to handle this event
- LibvirtComputingResource now properly call VifDriver.unplug() when it receives UnPlugCommand

- Remove not working and no longer used method getVnet(String) from VirtualMachineName
- Remove not working and no longer used method getVnet() from StopCommand
- Remove unused constructer StopCommand(VirtualMachine, String, boolean) from StopCommand
- Remove unused member vnet from StopCommand
- Remove unused member _modifyVlanPath from OvsVifDriver

Tested with 2 KVM hosts and confirmed it correctly manipulate vnetBridge with start, stop, migrate, plug, and unplug event

Signed-off-by: Hugo Trippaers <htrippaers@schubergphilis.com>
2013-07-15 09:11:43 +02:00
Edison Su 7e6c1a0bf7 CLOUDSTACK-3400: add swift support 2013-07-13 01:52:03 -07:00