Commit Graph

7369 Commits

Author SHA1 Message Date
Min Chen 2ceea80a1d CLOUDSTACK-4862:Admin cannot delete shared network scoped to user
account.
2013-10-14 16:32:13 -07:00
Min Chen d4928d3797 CLOUDSTACK-4859:Add global config to disable storage migration during HA 2013-10-11 15:39:30 -07:00
Min Chen 975422a950 CLOUDSTACK-4816: Make S3 upload multipart or singlepart configurable. 2013-10-04 17:38:17 -07:00
animesh 21043bfe84 Updating pom.xml version numbers for release 4.2.1-SNAPSHOT
Signed-off-by: animesh <animesh@apache.org>
2013-10-03 17:13:17 -07:00
animesh 86c93637f5 Merging 4.2-forward into 4.2 2013-10-02 23:05:34 -07:00
Sheng Yang 92e9f6daf8 CLOUDSTACK-4745: Add StaticNatRule through firewall manager
This would fix CreateIpForwardingCmd API on 4.2+.
2013-09-26 14:05:13 -07:00
Abhinandan Prateek 2be3678602 Cloudstack-2997: the maxconn setting is masked by wrong conditions 2013-09-25 21:14:45 +05:30
Min Chen 143fb72e8b System vm not coming up in multizone upgraded enviornment if a system vm
template is register twice per zone.
2013-09-24 11:58:34 -07:00
Wei Zhou 5225bd434c CLOUDSTACK-4732: search network name for virtual router when listRouters by keyword
(cherry picked from commit 98c79cc313)
2013-09-24 15:01:53 +02:00
Wei Zhou a206f423a3 fix issue: listHosts with hahost throws exception 2013-09-24 11:59:05 +02:00
Alena Prokharchyk 1e1de555fa CS-18283: 2.2.x to 4.2 upgrade - corrected the Service Provider name for the Network offeirng that can be used in VPC (from VirtualRouter to VpcVirtualRouter)
(cherry picked from commit df52280409)

Signed-off-by: animesh <animesh@apache.org>
2013-09-20 11:09:01 -07:00
Alena Prokharchyk df52280409 CS-18283: 2.2.x to 4.2 upgrade - corrected the Service Provider name for the Network offeirng that can be used in VPC (from VirtualRouter to VpcVirtualRouter) 2013-09-20 10:21:48 -07:00
Alena Prokharchyk 9050cfad3d CLOUDSTACK-4704: 41-42 db upgrade - populate vpc_service_map table with the services/providers supported by VPC
(cherry picked from commit 798f34a49c)

Signed-off-by: animesh <animesh@apache.org>
2013-09-19 18:58:59 -07:00
Alena Prokharchyk 798f34a49c CLOUDSTACK-4704: 41-42 db upgrade - populate vpc_service_map table with the services/providers supported by VPC 2013-09-19 13:15:05 -07:00
Alena Prokharchyk cea14ce880 CLOUDSTACK-4573: fixed resource limit check when acquire public IP in VPC - update resource count for VPC public ip even when network_id is not set yet. 2013-09-19 10:57:34 -07:00
Edison Su 9bff36ef45 add sourcetemplateid for template created from volume/snapshot 2013-09-17 17:04:03 -07:00
Sheng Yang b96aefee2f CLOUDSTACK-4698: Check DHCP service in the network before get dhcp service provider 2013-09-17 16:01:01 -07:00
Prachi Damle 8dfd34cd7e CLOUDSTACK-4651: Restarting management server when volume Snapshot is still in progress for root volume of a VM , then there is no way to restart VM since the startVM job is stuck forever since the volume is in "Snapshoting" state.
Change:
-If no volume of the VM is usable, VM cannot be deployed or started. Atleast ROOT volume should always be in usable state to start up the VM
2013-09-13 16:55:44 -07:00
Prachi Damle f3be68a833 CLOUDSTACK-4664: [ZWPS] High delay to start a stopped VM which has ROOT/DATA volumes migrated to Second Zone wide primary Storage(More than 10 mins)
Changes:
- DeploymentPlanningManager needs to reuse the zone wide primary storage pool when VM's volume is READY
2013-09-13 16:55:41 -07:00
Min Chen d28cca7bf0 CLOUDSTACK-4671:ListZone API failed with Assertion error if assertion is
turned on for MS.
2013-09-13 16:53:54 -07:00
Kelven Yang 670fc7e6ec CLOUDSTACK-4659: Add the missing feature back for GC VMware worker VMs 2013-09-13 16:26:55 -07:00
Laszlo Hornyak 7df1b43162 simplify setCpuUsed
- variables inlined
- cpu utilization is not cast to float from double

Signed-off-by: Laszlo Hornyak <laszlo.hornyak@gmail.com>
Signed-off-by: Min Chen <min.chen@citrix.com>
2013-09-11 18:33:18 -07:00
Laszlo Hornyak ec3464b660 simplified casting
double values do not need a Double object to be casted to long

Signed-off-by: Laszlo Hornyak <laszlo.hornyak@gmail.com>
Signed-off-by: Min Chen <min.chen@citrix.com>
2013-09-11 18:26:21 -07:00
Nitin Mehta 17a186557d CLOUDSTACK-2813 - Some deployment failures do not release the resources.
Applying the short term fix of force cleaning up if the answer recieved from startcommand is not valid
Signed off by : nitin mehta<nitin.mehta@citrix.com>
2013-09-11 12:19:23 +05:30
Nitin Mehta 9162b3c91f CLOUDSTACK-2813 - Some deployment failures do not release the resources.
Applying the short term fix of force cleaning up if the answer recieved from startcommand is not valid
Signed off by : nitin mehta<nitin.mehta@citrix.com>
2013-09-11 11:58:38 +05:30
Koushik Das ab60e9eae9 CLOUDSTACK-4636: In a scaled up setup all Vm's in a cluster were stopped and/or started after management server restart
Issue happens as there are more than one thread processing connect for a host simultaneously. The VM full sync. is not designed to work in this scenario and as a result user VMs may get stopped incorrectly.
Direct agent scan task runs at regular intervals (direct.agent.scan.interval defaulted to 90 secs) and identifies hosts that needs to be processed for connect. In a normal scenario hosts mostly get connected within that interval and there are no issues. But if due to some reason the connect process takes more time and is not completed by the time next agent scan runs. In this case, based on the db. state same hosts may get picked up again. And then there will be situations where more than one thread is processing connect for the same host.
The fix is to check if there is a thread already processing connect for a host and in this case all subsequent threads for that host will simply bail out. Also there may be a scenario where one thread already completed processing connect but another thread already got scheduled before that and will again repeat the same. This is also prevented by putting appropriate checks.
2013-09-10 11:54:32 +05:30
Edison Su cb170d6afd CLOUDSTACK-4627: fix NPE in vm migration 2013-09-09 15:58:22 -07:00
Sheng Yang e1e6f93306 Revert "CLOUDSTACK-2792: Send "saved_password" to BACKUP router when reset password for user VM"
This reverts commit 5a8a2a259e.

We would fix it in another way, since mgmt server may get state updated in
time.

Conflicts:
	server/src/com/cloud/network/router/VirtualNetworkApplianceManagerImpl.java
2013-09-05 14:55:45 -07:00
Min Chen 9f870eee0e CLOUDSTACK-4430: Add retry logic back in case of template reload needed
for vmware.
2013-09-04 15:02:28 -07:00
Min Chen e39a7d8e0d CLOUDSTACK-4600:Registered Cross-zone template does not populate
template_zone_ref for later added zones.(cherry picked from commit 3dc8b8863a)

Signed-off-by: animesh <animesh@apache.org>
2013-09-03 17:21:39 -07:00
Wei Zhou 51707d8c71 CLOUDSTACK-1192: fix collectVmDiskStatistics issue when stopping a vm
(Cherry-picked from commit 65c1c986da)
(cherry picked from commit d0ffc9e339)

Signed-off-by: animesh <animesh@apache.org>
2013-09-03 16:33:18 -07:00
Jayapal fbba6d0e3e CLOUDSTACK-4586 Added CIDR validation for SG Egress rules
(cherry picked from commit b99962d27f)

Signed-off-by: animesh <animesh@apache.org>
2013-09-03 16:32:45 -07:00
Edison Su b269a29f78 disk resize NPE, if the new disk offering doesn't have tags, then NPE
(cherry picked from commit 21a44e3ed1)

Signed-off-by: animesh <animesh@apache.org>
2013-09-03 16:31:41 -07:00
Min Chen 3dc8b8863a CLOUDSTACK-4600:Registered Cross-zone template does not populate
template_zone_ref for later added zones.
2013-09-03 16:31:40 -07:00
Saksham Srivastava eb85ff6f3b CLOUDSTACK-4572: findHostsForMigration API does not return correct host list
Changes:
Expected behavior:
The api should return the list of suitable/unsuitable hosts
Added fix that creates a deep copy of the the variable allHosts and prevents faulty host list return.
(cherry picked from commit 6354604eed)

Signed-off-by: animesh <animesh@apache.org>
2013-09-03 16:25:49 -07:00
Kelven Yang 34ee6f90bb CLOUDSTACK-4458: Volume attach/detach command needs to sent to hypervisor resource even when target VM is in Stopped state
(cherry picked from commit 995e193be2)

Signed-off-by: animesh <animesh@apache.org>
2013-09-03 15:59:25 -07:00
Prachi Damle 72a3cbb82e CLOUDSTACK-4528 [Vmware] new mapping vmware datacenter cloudstack zone - Virtual Router host migration across cluster FAIL
Change:
- Also add a check in migrateSystemVM API to check that source and destination host are in the same cluster
(cherry picked from commit b24e9a6dd5)

Signed-off-by: animesh <animesh@apache.org>
2013-09-03 15:57:52 -07:00
Prachi Damle cd592f5c23 CLOUDSTACK-4528: [Vmware] new mapping vmware datacenter cloudstack zone - Virtual Router host migration across cluster FAIL
Changes:
- listHosts within same cluster for migration of system and router VMs
(cherry picked from commit 52f4683099)

Signed-off-by: animesh <animesh@apache.org>
2013-09-03 15:57:31 -07:00
Wei Zhou d0ffc9e339 CLOUDSTACK-1192: fix collectVmDiskStatistics issue when stopping a vm
(Cherry-picked from commit 65c1c986da)
2013-09-03 13:13:58 +02:00
Jayapal b99962d27f CLOUDSTACK-4586 Added CIDR validation for SG Egress rules 2013-09-03 14:17:16 +05:30
Edison Su 21a44e3ed1 disk resize NPE, if the new disk offering doesn't have tags, then NPE 2013-08-30 18:15:20 -07:00
Saksham Srivastava 6354604eed CLOUDSTACK-4572: findHostsForMigration API does not return correct host list
Changes:
Expected behavior:
The api should return the list of suitable/unsuitable hosts
Added fix that creates a deep copy of the the variable allHosts and prevents faulty host list return.
2013-08-30 12:31:25 -07:00
Wei Zhou 948014dee6 CLOUDSTACK-4566: fix incorrect values in resource_count table for resource limitation
There are three issues in resource_count table
(1) expunge a vm, the public_ip decreases and becomes -1 in basic zone.
(2) recover a vm, the volume increase.
(3) restore a vm, the volume decrease.
2013-08-30 08:51:01 +02:00
Kelven Yang 995e193be2 CLOUDSTACK-4458: Volume attach/detach command needs to sent to hypervisor resource even when target VM is in Stopped state 2013-08-28 18:38:12 -07:00
Prachi Damle b24e9a6dd5 CLOUDSTACK-4528 [Vmware] new mapping vmware datacenter cloudstack zone - Virtual Router host migration across cluster FAIL
Change:
- Also add a check in migrateSystemVM API to check that source and destination host are in the same cluster
2013-08-28 15:55:27 -07:00
Prachi Damle 52f4683099 CLOUDSTACK-4528: [Vmware] new mapping vmware datacenter cloudstack zone - Virtual Router host migration across cluster FAIL
Changes:
- listHosts within same cluster for migration of system and router VMs
2013-08-28 15:55:24 -07:00
Min Chen ddc4990a0d CLOUDSTACK-4530:Create Template from a Snapshot fails with unable to
find any snapshot ova/ovf when we have multiple secondary storage for a
zone.
(cherry picked from commit 4ba68e3b3f)

Signed-off-by: animesh <animesh@apache.org>
2013-08-27 21:56:03 -07:00
Edison Su 1b90a4554f CLOUDSTACK-3535: fix regression introduced in 5d9fa5d42e
(cherry picked from commit 6b4aed2aca)

Signed-off-by: animesh <animesh@apache.org>
2013-08-27 19:55:23 -07:00
Edison Su 6b4aed2aca CLOUDSTACK-3535: fix regression introduced in 5d9fa5d42e 2013-08-27 18:08:33 -07:00
Min Chen 4ba68e3b3f CLOUDSTACK-4530:Create Template from a Snapshot fails with unable to
find any snapshot ova/ovf when we have multiple secondary storage for a
zone.
2013-08-27 16:56:49 -07:00