19209 Commits

Author SHA1 Message Date
Sateesh Chodapuneedi
664dc17b0b CLOUDSTACK-3303 Vmware - Put a mechanism to disable hot add vcpu if the number of cores per socket is not 1 and virtual machine hardware version=7
Following Hotadd memory checks are included now.
1) Check if guest operating system supports memory hotadd
2) Check if virtual machine is using hardware version 7 or later before enabling memory hotadd

Following Hotadd CPU checks are included now.
1) Check if guest operating system supports cpu hotadd
2) Check if virtual machine is using hardware version 8 or later.
3) Check if virtual machine has only 1 core per socket. If hardware version is 7, then only 1 core per socket is supported. Hot adding multi-core vcpus is not allowed if hardware version is 7.

Signed-off-by: Sateesh Chodapuneedi <sateesh@apache.org>
2013-07-10 17:58:42 +05:30
Devdeep Singh
033d05fa20 CLOUDSTACK-3443: Timeoffset on windows guest not persisted between VM stop and start on XenServer.
The problem was because in cloudstack when a vm is stopped it gets destroyed on the host. For a
windows vm the timeoffset (which can be set by changing the timezone from within the vm) is stored
in the platform:timeoffset attribute of vm record. The information is lost when the vm is destroted.
Made change to read and persist the platform:timeoffset vm attribute when an instance is stopped.
The value is persisted in the user_vm_details table. When the vm is started again the attribute is
set for the vm instance that gets created.
2013-07-10 17:36:06 +05:30
Murali Reddy
3c1b3c71fe CLOUDSTACK-3440: action events are not published due to conflict of
Eventutils and ActionEventUtils files

removing the 'EventUtils' file which got merged back during the Spring
changes to master at 4.1. 'EventUtils' file was replaced by
'ActionEventUtils', and the original file was removed for events
frameworks. This file conflict was resulting in action events not to be
published on to event bus
2013-07-10 16:44:08 +05:30
Wido den Hollander
8e4e56f731 CLOUDSTACK-3409: Do not clean up security group rules for Instances in the "paused" state.
When 'security_group.py cleanup_rules' is called by the KVM Agent it will clean up all Instances
not in the "running" state according to libvirt.

However, when a snapshot is created of a Instance it will go to the "paused" state while the snapshot
is created.

This leads to Security Rules being removed when a Instance is being snapshotted and the cleanup process
is initiated.
2013-07-10 13:12:46 +02:00
Wei Zhou
d65f47c76a CLOUDSTACK-3438: update CPVM SSL certificate for both Premium and non-Premium cases 2013-07-10 12:20:57 +02:00
Koushik Das
aed49572c7 CLOUDSTACK-2918: In a scaled up environment, hosts fail to come up after Management server restart in clustered set up
Summary of changes in the fix
- Optimized host scan logic, now instead of iterating over each cluster host scan is done for a batch of clusters
- Made host scan task interval configurable
2013-07-10 12:13:24 +05:30
Mike Tutkowski
06f73092fb Changes related to Review Board comments 2013-07-09 22:50:14 -06:00
Kelven Yang
120b8d409f CLOUDSTACK-3433: Relax the same package restriction for Command and its derived classes in ArrayTypeAdaptor<T> 2013-07-09 18:50:39 -07:00
Sheng Yang
7d8f6c7022 CLOUDSTACK-3417: Prevent conflict of existed foreign keys of baremetal when upgrade
Now we dropped the keys(if any) then re-add them.
2013-07-09 16:36:52 -07:00
Jessica Wang
7b783f0df4 CLOUDSTACK-3427: UI > UCS manager > implement listUcsBlade API. 2013-07-09 16:08:19 -07:00
Edison Su
5db3057b05 move simulator classes into simulatorcomponent.xm 2013-07-09 15:36:45 -07:00
Jessica Wang
72499abbb6 CLOUDSTACK-3429: UI > zone wizard > advanced sg-enabled > exclude Hyperv from hypervisor dropdown. 2013-07-09 15:33:51 -07:00
Jessica Wang
40678a27da CLOUDSTACK UI - remove obsolete code (window.name is no longer used). 2013-07-09 15:25:40 -07:00
Jessica Wang
e30ce5c9e8 CLOUDSTACK-3427: UI > UCS manager > implement listUcsProfile API. 2013-07-09 14:59:29 -07:00
Jessica Wang
bc8f32363e CLOUDSTACK-3427: UI > UCS manager > implement addUcsManager API. 2013-07-09 14:30:34 -07:00
Brian Federle
70c4a97eaa UI: Add initial UCS section to infrastructure page 2013-07-09 13:48:48 -07:00
Edison Su
5e13327339 fix simulator 2013-07-09 10:42:15 -07:00
Edison Su
94aa67eae0 fix simulator 2013-07-09 10:42:03 -07:00
Marcus Sorensen
e731722263 CLOUDSTACK-3422 - fix null pointer in usage and action events when
deleting resources whose account has been removed
2013-07-09 09:48:24 -06:00
rayeesn
3e7cebee29 Followup fix for CLOUDSTACK-2777, crypto.properties and xes.keystore moved to AWSAPI installation location and changed permission to 666 2013-07-09 21:07:32 +05:30
Kishan Kavala
acb4a19633 CLOUDSTACK-2429: Multiple private gateways are allowed within a VPC. Check for conflicting routes in all gateways when adding a new static route 2013-07-09 17:27:06 +05:30
Likitha Shetty
58d648345e CLOUDSTACK-2777. Apache build should create jar file cloud-ec2.aar and package it under webapps7080/awsapi/WEB-INF/services 2013-07-09 15:24:41 +05:30
radhikap
44b219ec75 network acl concepts CLOUDSTACK-2806 2013-07-09 13:45:58 +05:30
Jayapal
4779a00594 CLOUDSTACK-3404 fixed vm deploy in ipv6 network, dhcp_release is performed only in ipv4 2013-07-09 13:15:45 +05:30
Jayapal
e46b90078e CLOUDSTACK-3352 fixed removing previous acl rules when emply acl is applied 2013-07-09 12:50:39 +05:30
Marcus Sorensen
97f1e88314 Summary: usage db connection missing url parameters property
Detail: users should be able to add url parameters to the usage database
connection string, just like with the cloud database

BUG-ID: CLOUDSTACK-3410
Bugfix-for: 4.2
Signed-off-by: Marcus Sorensen <marcus@betterservers.com> 1373350596 -0600
2013-07-09 00:16:36 -06:00
Marcus Sorensen
6f9d5db0e3 Summary: update user data on all networks a VM is connected to
Detail: Get list of all nics and update user data on them, rather than just
the default nic for the VM. This makes the results consistent with the password
and SSH key metadata.

BUG-ID: CLOUDSTACK-3408
Bugfix-for: 4.1.1, 4.2.0
Signed-off-by: Marcus Sorensen <marcus@betterservers.com> 1373345338 -0600
2013-07-08 22:48:58 -06:00
Brian Federle
9e5449c347 Detail view: Fix context not being refreshed on perform action 2013-07-08 15:53:14 -07:00
Brian Federle
a876a575dd CLOUDSTACK-3337: Don't show current ACL list in dropdown 2013-07-08 15:53:14 -07:00
Brian Federle
0fc47c215f VPC JS: Code cleanup 2013-07-08 15:53:14 -07:00
Alena Prokharchyk
833c83d7f7 CLOUDSTACK-3387: deleteTemplate - log the exception message when delete command fails 2013-07-08 15:44:03 -07:00
Brian Federle
33b6e304c2 CLOUDSTACK-3253: Don't allow default ACL lists to be removed 2013-07-08 14:22:50 -07:00
Jessica Wang
a03eeae59c CLOUDSTACK-3341: UI > template/ISO page > downloadTemplate/downloadISO action - do not decode URL return in extractTemplate API response. 2013-07-08 13:12:57 -07:00
Alena Prokharchyk
f68a74eada CLOUDSTACK-3356: list shared networks available for projects when call is executed by the admin who is not a part of the project 2013-07-08 11:28:15 -07:00
Brian Federle
cbfb4e3976 ACL item reorder: Fix error message box 2013-07-08 11:08:52 -07:00
Brian Federle
c94cb0fc41 CLOUDSTACK-3153: On reorder, only update target ACL item's number 2013-07-08 10:58:04 -07:00
Brian Federle
1b86759f7a ACL UI: Sort ACL items by number 2013-07-08 10:57:20 -07:00
Sateesh Chodapuneedi
91d31b29b8 CLOUDSTACK-3304 [Vmware][Dynamic Scaling] - Enforce checks for maximum hotadd memory limit & memory increment size in CS
Retrieve maximum hotadd memory limit & hotadd memory increment size from running VM's configuration to validate dynamic scale memory limit while scaling up a VM.

Signed-off-by: Sateesh Chodapuneedi <sateesh@apache.org>
2013-07-08 21:17:49 +05:30
Koushik Das
33ed076969 CLOUDSTACK-3393: Local disk recreated for stopped VM when started
Recreating local disk will result in cleanup of the old disk and this will lead to data loss. So preventing this and bailing out with error. Once migration of local disk is supported then another option is to migrate the existing disk to the new local storage pool.
2013-07-08 17:02:35 +05:30
radhikap
03c8f74e98 CLOUDSTACK-2806 2013-07-08 16:56:27 +05:30
Likitha Shetty
24e9797807 CLOUDSTACK-3112. UserCredentials that is injected in AuthenticationHandler is not picked up 2013-07-08 15:37:57 +05:30
toshiaki.hatano
814630c542 CLOUDSTACK-3384: CloudStack allow VLAN range between 0-4096. Should be 0-'4095'. 2013-07-08 15:19:12 +05:30
Murali Reddy
ea8b85af2a CLOUDSTACK-234: create/delete firewa/lb/pf rule: send ip assoc command
only on first rule is created on the IP and last rule is revoked on the
IP

Current suboptima logic of IP Assoc

 - On associate IP to GuestNetwork there is an IPAssoc command sent to
   corresponding network service providers of the network
 - On every rule apply on IP associated with the network send IP assoc
   to the network service providers
 - On every rule deletion on IP associated with a network sernd IP assoc
   command to the network service providers

With this fix logic of IP assoc is changed as below which eliminates
executio of unnessary and expensive IpAssocCommand resource command

 - On associate IP to GuestNetwork, associate IP only to the network,
   Untill any service is associated with the IP dont send IP Assoc
 - On creation of first rule on the IP send IPAssoc to corresponding
   network service provider. Since IP is used for a service, IPAssoc
   need to be sent to correpondign service provider
 - On deletion of last rule on the IP send IPAssoc to corresponding
   network service provider. When last rule is deleted, IP has no
   service associated with it, so send IP assoc to service provider to
   remove the IP association
2013-07-08 14:52:12 +05:30
Pranav Saxena
836215c7f2 pod/host dedication failure cases 2013-07-08 14:49:47 +05:30
radhikap
a711db5a3d CLOUDSTACK-3389 2013-07-08 13:34:34 +05:30
Sateesh Chodapuneedi
5f395e41ab CLOUDSTACK-2592 [Automation]: Scale up VM on VMWARE without license doesn't throw appropriate error
Now ESXi server license would be fetched to see if HOTPLUG feature is license or not.
Throw Exception if the feature is not licensed.

Also added FeatureKeyConstants enum type to maintain list of various features to be checked whether licensed or not.
2013-07-08 12:49:39 +05:30
radhikap
a9aa659273 CLOUDSTACK-847 ui part 2013-07-08 12:28:21 +05:30
Harikrishna Patnala
d249bc7ce6 CLOUDSTACK-3354: The CentOS built-in is dynamically scalable
Marking default CentOS template as dynamically_scalable template. The
PV tools are installed in our CentOS 5.6 template already.

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-07-08 12:24:48 +05:30
Prasanna Santhanam
6735532765 do not wait for cleanup
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-07-06 20:18:23 +05:30
Prasanna Santhanam
f337fed1ec do not wait for cleanup
simply cleanup and exit and network.gc will happen later

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit 620ed6e0f177bf32aa8d966cade07b93c7045dc9)
2013-07-06 19:19:33 +05:30