Commit Graph

7392 Commits

Author SHA1 Message Date
Alena Prokharchyk c1131d1b7f CLOUDSTACK-4649: addResourceDetail - added support for userVm resource. Now "hypervisortoolsversion" get stored in user_vm_details table, and being returned as a part of listVirtualMachines call ("details" parameter) 2013-10-22 13:34:50 -07:00
Alena Prokharchyk 9d41fdfecf CLOUDSTACK-4649: allow to update template details with addResourceDetails API 2013-10-22 13:34:50 -07:00
Anthony Xu c31f87c078 CLOUDSTACK-4649:
vm sync tracks the pv driver version for xenserver

 Anthony
2013-10-22 11:21:28 -07:00
Alena Prokharchyk 3b28f73bea CLOUDSTACK-4743: durning the accountCleanup, never attempt to release the public ips when the guest networks of the account failed to cleanup 2013-10-22 09:41:20 -07:00
Anthony Xu 9a27690093 CLOUDSTACK-4649:
xs 6.1/6.2 introduce the new virtual platform, so there are two virtual platforms, windows PV driver version must match virtual platforms,
this patch tracks PV driver versions in vm details and template details.

Anthony
2013-10-21 16:10:07 -07:00
Alena Prokharchyk 2e75e8ced0 CLOUDSTACK-4894: DestroyVirtualMachine API - added "expunge" admin-only parameter. When passed as true, the vm gets expunged immediately (false by default to preserve the initial command behavior) 2013-10-21 09:51:46 -07:00
Prachi Damle 4b80f9ba81 Adding additional debug log to be able to identify HA case 2013-10-18 17:06:12 -07:00
Nitin Mehta de28812add CLOUDSTACK-4746:
From functionality point of view following will be changes.
-> Threshold will not be applied for vms undergoing HA process (say during host going down event).
-> Threshold will not be applied for vms undergoing maintenance.
-> Threshold will apply for stop-start vm "after" the skip.counting.hours
(time till which we reserve the capacity for the stopped vm).
Reason being stop-start is a user initiated action and we are giving a time
window  (skip.counting.hours) till which its guaranteed to start in the same
cluster.
After that time, threshold check applies bcz we still want to reserve the
capacity for urgent situations like HA, putting host into maintenance rather than get it consumed in such user
initiated actions.

Signed off by : nitin mehta<nitin.mehta@citrix.com>
2013-10-18 15:22:25 -07:00
Harikrishna Patnala 5eb5594e8e CLOUDSTACK-4783: Added supported for listing all templates/ISOs with showremoved = true 2013-10-18 19:05:21 +05:30
Murali Reddy 779ef4b4c5 CLOUDSTACK-3911: [PortableIP] there is no check while adding a zone
public range to see whether the same VLAN exists in portable IP range.

added check to enusre a VLAN id used for a public IP range is not used
for portable ip range
2013-10-18 17:23:23 +05:30
Koushik Das 624b324cc1 CLOUDSTACK-4681: data disk with local disk offering are geting created on shared storage
The cluster and zone wide storage pool allocators returned shared pools even for volumes meant to be on local storage pool.
If the VM uses local disk then cluster and zone storage allocators should not handle it and return null or empty list.

Also fixed the deployment planner to avoid a cluster if
a. avoid set returned by storage pool allocators is empty OR
b. all local or shared pools in a cluster are in avoid state
2013-10-18 16:34:47 +05:30
Damodar Reddy 51a4d2677c CLOUDSTACK-4811:Fixed zone creation wizard is allowing to accept wrong sub net mask which is cauing wrong cidr value for a given ip range
Signed-off-by: Jayapal <jayapal@apache.org>
2013-10-18 15:51:13 +05:30
Murali Reddy c1294fdfa0 CLOUDSTACK-4596: CloudStack is currently allowing same ip range to be
defined in different VLANs across public and portable ranges

added checks to restric same ip range to be configure as both public ip
range and portable ip range
2013-10-18 15:08:07 +05:30
Anshul Gangwar 2b6b99ffb3 CLOUDSTACK-4792: added the connection and socket timeout parameters for SMTP and sending message in new thread so that HA doesn't get blocked beacause of hang in sending email alert 2013-10-18 12:05:20 +05:30
Sheng Yang 93188b449c CLOUDSTACK-4786: Reset Redundant Router priority after all the routers are stopped
This patch would reset the priority in such condition:
1. All redundant routers are stopped, e.g. due to network GC
2. User start one VM in the network
3. The routers would be brought up with reseted priority(100 & 99).

This would resolve the issue of network GC result in lower limit of redundant router priority reached.
2013-10-17 18:16:50 -07:00
Sheng Yang 7d7bd2afdf CLOUDSTACK-4836: Fix VPN user are not programmed after restart network 2013-10-17 18:08:23 -07:00
Koushik Das 7e500a5de8 CLOUDSTACK-4551: Migrating the data volume from NFS to local storage ,underlying disk offering is not changed.
Even though the volume may get migrated from shared to local storage, it is not possible to update the disk offering.
The fix is to disallow migration from shared to local store.
2013-10-17 12:17:58 +05:30
Min Chen d17024c09b CLOUDSTACK-4816:provide configurable option to choose single vs
multipart upload to S3 object storage based on object size.
2013-10-16 17:56:19 -07:00
Edison Su 1a907eb4e4 CLOUDSTACK-4725: if storage pool has different path, but the uuid is the same, then treat them as the same storage pool 2013-10-16 15:22:45 -07:00
Nitin Mehta f91b649b3b CLOUDSTACK-4882:
list Clusters/pods/zones API not accounting for reserved in the used capacity percentage.
Fix listCapacity cmd for reserved as well
Signed off by : nitin mehta<nitin.mehta@citrix.com>
2013-10-16 15:01:33 -07:00
Kishan Kavala e88377a5e5 CLOUDSTACK-4095 : Remove region_id from Transaction. Read from db.properties whenever required 2013-10-16 19:37:13 +05:30
Murali Reddy 4d07493a5e CLOUDSTACK-4717: associate IP does not work on shared networks with out
source NAT service

relax the restriction that the source nat service should be avaiable in
the network inorder to associate a public ip to the network
2013-10-16 18:19:04 +05:30
Koushik Das 4cc8af0532 CLOUDSTACK-4682: VMs are getting deployed with shared service offering and local compute offering
VM deployment is fine, issue is in attach volume where all possible scenarios are not handled.
The following needs to be logic of attached volume:
1. if data volume scope is zone then allow attach (this is already there)
2. if data volume scope is cluster
   a. if root volume scope is host, allow if both are in same cluster (already there)
   b. if root volume scope is zone, allow if vm and data volume in same cluster (fixed as part of this commit)
3. if data volume scope is host allow if vm and data volume in same host (fixed as part of this commit)
2013-10-16 17:16:13 +05:30
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