Commit Graph

7335 Commits

Author SHA1 Message Date
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 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 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
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 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
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
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
Edison Su cfe3a0fee3 CLOUDSTACK-4459: one more try, bypass libvirt to find volume if libvirt call failed 2013-08-27 14:16:23 -07:00
Murali Reddy 47fa6d9561 CLOUDSTACK-3010: [VMWare] [SharedNetworkWithServices] router VM
deployment fails with error "Message: Invalid configuration for device
'2'."

ensuring that direct network guru assigns a mac address for the nic that
it designs
2013-08-28 00:33:24 +05:30
Bharat Kumar f701831713 CLOUDSTACK-4498 we should not reserve memory and cpu for vmware VMs if the vmware.reserve.cpu and vmware.reserve.mem are set to false.
Conflicts:
	plugins/hypervisors/vmware/src/com/cloud/hypervisor/vmware/resource/VmwareResource.java

Signed-off-by: Jayapal <jayapal@apache.org>
2013-08-27 19:42:07 +05:30
Harikrishna Patnala 37d500d2a6 CLOUDSTACK-4482: getVMPassword() API call does not return password for Vms that are deployed with password enabled templates.
Improving the error message saying no ssh key pair is assinged to VM to get the encrypted password and included a check for password enabled template

Signed-off-by: Koushik Das <koushik@apache.org>
2013-08-27 16:26:40 +05:30
Likitha Shetty 7cc8ccead5 CLOUDSTACK-4471. If an instance fails to start then mark the volumes allocated as part of VM creation as removed and set the volume state as destroyed. 2013-08-27 15:52:10 +05:30
Kelven Yang 046a8a889a CLOUDSTACK-3237: add disk chain sync logic to handle out-of-band chain changes that could happen in storage live migration and VM snapshot operations 2013-08-26 18:11:22 -07:00
frank 697cc2e397 CloudStack CLOUDSTACK-4484
Vmware - Not able to fetch userdata from guest Vms using http://<router-address>/latest/user-data
2013-08-26 17:53:06 -07:00
Min Chen 5a11fe77ba CLOUDSTACK-3405: execute.in.sequence.hypervisor.commands and
execute.in.sequence.network.element.commands should be set to "true" by
default.
2013-08-26 15:52:24 -07:00
Koushik Das 9f9f438ab9 CLOUDSTACK-4350: [Performance Testing] Adding hosts take much longer time than baselines
During host connect multiple listeners gets invoked, one of them is the download listener.
As part of processConnect() method, it checks if templates needs to be downloaded to secondary
store for a particular HV type. As part of that check it computes list of HVs present in the
zone. The earlier logic was to query all hosts (excluding current one) and iterate over them to
make the list. This is not optimal and is bound to have some latency as the number of hosts
increases.
Optimized the logic by querying the list of HVs from the db. directly instead of iterating over
all hosts in the zone.
2013-08-26 15:54:36 +05:30
Min Chen f501c7bbe1 CLOUDSTACK-4481:API: listEventTypes returns nothing; raises ERROR in MS
logs.
2013-08-23 15:19:20 -07:00
Min Chen bb78cb94af CLOUDSTACK-4478:API: ListSwiftsCmd API missing. 2013-08-23 13:21:27 -07:00
Devdeep Singh 5b319ba0cb CLOUDSTACK-4470, findHostsForMigration api isn't setting the requiresStorageMotion flag to true
when a virtual machine is to be migrated across cluster and the source and destination host do
not share storage pools. migrationRequired flag was introduced in a recent commit that was always
set to false for XenServer. This caused the destination host to be flaged as not requiring
storage motion. Fixed the scope of the boolean and defaulted it to true. Other checks validate
if storage motion is required for XenServer.
2013-08-23 15:12:59 +05:30
Edison Su 17ffe48ad2 add table lock on snapshot, during taking snapshot 2013-08-22 20:39:09 -07:00
Edison Su d157e2970e add test 2013-08-22 15:10:50 -07:00
Marcus Sorensen e9c99fc0d4 CLOUDSTACK-4661: fix vpcid field in response of creating vpn gateway 2013-08-22 15:19:38 -06:00
Murali Reddy 255c8473db CLOUDSTACK-4442: Source NAT not applied when network starts up
fixing the buid break introduced with prev commit for this bug
2013-08-22 21:07:52 +05:30
Murali Reddy a0f23d0f94 CLOUDSTACK-4442: Source NAT not applied when network starts up
ensure on network implement/restart/shutdown an ip assoc is sent so that
source nat ip is associated with source nat service provider.
2013-08-22 18:45:33 +05:30
Koushik Das 5528ba4b20 CLOUDSTACK-3441: [Load Test] High delays between VM being allocated to Pod and network implementation causing delays in VM deployment
The locking code in implement/shutdown network code was not efficient. Even in order to check the current state of the network lock was getting acquired which is not required. This resulted in delays in deploy VM as can be seen from attached logs where the code waited on the lock just to check if network is implemented.
As part of the fix moved out code that is checking if the network is already implemented or shutdowned outside the lock.
2013-08-22 11:06:54 +05:30