Commit Graph

20968 Commits

Author SHA1 Message Date
Likitha Shetty 42941b3376 CLOUDSTACK-5122. System VMs are getting recreated with old template after upgrading to 4.2.
In VMware during VM start the existing disk information is used to configure the VMs. So even if a new disk is created using the new template VM continues to use the old disk.
Once the old root disk is marked for destroy force expunge it and sync the new disk into the VM folder before VM start
2013-11-10 23:05:37 +05:30
Likitha Shetty 6d8dbd5a75 CLOUDSTACK-5096. Corrupt template is left behind after the copy of a template from secondary to primary fails.
If HttpNfcLease initialization fails throw appropriate error
Catch throwable in addition to exceptions during file upload task while importing the OVA into vCenter
2013-11-10 13:13:29 +05:30
SrikanteswaraRao Talluri 858783e6e5 fixed indentation error in test_network.py 2013-11-09 11:56:54 +05:30
Frank.Zhang 88047a458b CLOUDSTACK-5112
[Baremetal]Make IPMI retry times configurable
2013-11-08 13:45:28 -08:00
SrikanteswaraRao Talluri 2526383b9e fixing indentation problem in test_network.py 2013-11-08 23:38:12 +05:30
Wei Zhou 20fd5dc84f CLOUDSTACK-4923: add missing Network limits in Domain details page 2013-11-08 16:17:53 +01:00
Bharat Kumar 934f1d9aaa BUG-ID: CS-17753 unable to attach more than 5 data volumes to a VM running on ESX due to SCSI ID conflict between new volume and ID reserved for the virtual SCSI adapter
Increasing the max data volumes limit in create-schema.sql  to 13 for vmware.
2013-11-08 19:53:56 +05:30
SrikanteswaraRao Talluri f893a80d1d Modified remoteSSHClient references to SshClient 2013-11-08 19:52:41 +05:30
Wei Zhou 86976fb298 CLOUDSTACK-5076: fix wrong bridge name in vm domain xml desc after upgrade from 4.0 or before to 4.2 2013-11-08 14:36:48 +01:00
Gaurav Aradhye 9e6a1eaffe CLOUDSTACK-5107: Decreasing memory in service offering so as
not to run out of resources

Signed-off-by: Girish Shilamkar <girish@clogeny.com>
2013-11-08 18:51:43 +05:30
SrikanteswaraRao Talluri 9d00bfeba2 fixed indentaion problem in utils.py :359 2013-11-08 18:00:55 +05:30
Likitha Shetty 3e8e44d582 CLOUDSTACK-4994. Cannot attach VMwareInstallerISO to VMs that are of guest operating system CentOS 6.1 CentOS 6.2 CentOS 6.3 CentOS 6.4.
Cause - This issue can occur in VMware setups if the guest operating system is not specified when we install the virtual machine. In which case, since we map the OS to 'Other OS', VMwareInstallerISO attachment fails.
Added the necessary guest OS mapping for VMware.
2013-11-08 17:52:38 +05:30
Harikrishna Patnala 27ea9274bd Template/ISO download fails cause the object to disappear from UI
Signed-off-by: Abhinandan Prateek <aprateek@apache.org>
2013-11-08 17:51:35 +05:30
venkataswamybabu budumuru 48d9e2443c Signed-off-by: venkataswamybabu budumuru <venkataswamybabu.budumuru@citrix.com>
Have added a test for transferring portable ip across different works with in the same zone.
2013-11-08 17:41:53 +05:30
Santhosh Edukulla 91669ea627 CLOUDSTACK-5099: Utils.py-has-wrong-reference, cleaned it. As well added Uniform naming convention
Signed-off-by: SrikanteswaraRao Talluri <talluri@apache.org>

Conflicts:
	test/integration/component/test_portable_ip.py
2013-11-08 17:06:52 +05:30
Santhosh Edukulla 9495fbc873 Increasing the timeout values to 600 seconds from 300 seconds
Timeout for ssh related test cases is increased based upon
few test run observations where ssh is taking more time during
restart scenarios as an example. We have done few changes to streamline
ssh library. This is in addition to those to keep less ssh script issues

Signed-off-by: Santhosh Edukulla <Santhosh.Edukulla@citrix.com>
Signed-off-by: SrikanteswaraRao Talluri <talluri@apache.org>
2013-11-08 16:43:11 +05:30
Santhosh Edukulla cf7532e848 Added fix for bug 5056.
The fix contains fixes related to ssh library majorly.
Complete description should be available under bug
description.

Signed-off-by: Santhosh Edukulla <Santhosh.Edukulla@citrix.com>
Signed-off-by: SrikanteswaraRao Talluri <talluri@apache.org>
2013-11-08 16:42:13 +05:30
Santhosh Edukulla c76da53123 CLOUDSTACK-5032 Provides custom assert facility to test features
Added assertElementInList to cloudstackTestCase.
Users can use this new custom addition to add
assertions, thus replacing current multiple assertions

Signed-off-by: Santhosh Edukulla <Santhosh.Edukulla@citrix.com>
2013-11-08 15:37:26 +05:30
Santhosh Edukulla 87983e09e2 Added few changes related to bug 4920. Removed unwanted code
There were few unwanted calls as part of test client, did some clean up
Made the test client API uniform to accept both mgmt and dbsvr details
Did some minor bug fixes as well.

Signed-off-by: Santhosh Edukulla <Santhosh.Edukulla@citrix.com>

Conflicts:
	tools/marvin/marvin/cloudstackConnection.py
	tools/marvin/marvin/cloudstackTestClient.py
	tools/marvin/marvin/configGenerator.py
	tools/marvin/marvin/deployDataCenter.py
2013-11-08 15:29:53 +05:30
John Kinsella 79ef40c0a9 Summary: Implement stored-password encryption for Stratosphere plugin
BUG-ID: CLOUDSTACK-4929
Bugfix-for:
Reviewed-by:
Reported-by:
Signed-off-by: John Kinsella <jlk@stratosec.co> 1383882870 -0800
Signed-off-by: Abhinandan Prateek <aprateek@apache.org>
2013-11-08 15:17:22 +05:30
Santhosh Edukulla fba874120b Adding few changes and cleaning up the code
- Added few common naming conventions
- Cleanedup code
- Added a simple utility function

Signed-off-by: Santhosh Edukulla <Santhosh.Edukulla@citrix.com>

Conflicts:
	tools/marvin/marvin/codes.py
	tools/marvin/marvin/integration/lib/utils.py
2013-11-08 14:40:58 +05:30
Santhosh Edukulla 6e1821f585 CLOUDSTACK-4832. Added support for https to marvin.
advanced.cfg: Contains three additional flags "useHttps,certCAPath,certPath"
for https usage in marvin for establishing cs connection. We will use the
configuraiton under advanced.cfg provided by user to establish connection over
https. If establishing the connection over https failed, then the default certs
will be used.  or else raise the exception, the existing http will work as it
is when useHttps flag set to "False"

Signed-off-by: Santhosh Edukulla <Santhosh.Edukulla@citrix.com>
Signed-off-by: Prasanna Santhanam <tsp@apache.org>

Conflicts:
	tools/marvin/marvin/cloudstackConnection.py
2013-11-08 14:40:58 +05:30
Sebastien Goasguen 0f0889ae2d CLOUDSTACK-4998 additional bug fixed 2013-11-08 03:49:36 -05:00
Santhosh Edukulla b18e730108 Added a verifyElementInList utility function
The purpose is to verify a given element in list
at a given position with few error checks like
list type,empty list and position
Returns appropriate codes based upon the inputs.
Can be used under tests instead of multiple asserts

Signed-off-by: Santhosh Edukulla <Santhosh.Edukulla@citrix.com>

Conflicts:
	tools/marvin/marvin/codes.py
2013-11-08 13:42:19 +05:30
Santhosh Edukulla e7b6ee10ed Fixed Bug: 4899
Added Configuration Support to Marvin.

1. It provides the basic configuration facilities to marvin.

2. User can just add configuration files for his tests, deployment
              etc, under one config folder before running their tests.
              cs/tools/marvin/marvin/config.
              They can remove all hard coded values from code and separate
              it out as config at this location.
              Either add this to the existing setup.cfg as separate section
              or add new configuration.
3. This will thus removes hard coded tests and separate
              data from tests.

4. This API is provided as an additional facility under
              cloudstackTestClient and users can get the
              configuration object as similar to apiclient,dbconnection
              etc to drive their test.

5. They just add their configuration for a test,
              setup etc,at one single place under configuration dir
              and use "getConfigParser" API of cloudstackTestClient
              It will give them "configObj".They can either pass their own
              config file for parsing to "getConfig" or it will use
              default config file @ config/setup.cfg.
6. They will then get the dictionary of parsed
              configuration and can use it further to drive their tests or
              config drive
7. Test features, can  drive their setups thus removing hard coded
          values. Configuration default file will be under config and as
              setup.cfg.
8. Users can use their own configuration file passed to
              "getConfig" API,once configObj is returned.

Signed-off-by: Santhosh Edukulla <Santhosh.Edukulla@citrix.com>

Conflicts:
	tools/marvin/marvin/cloudstackTestClient.py
	tools/marvin/marvin/integration/lib/utils.py
2013-11-08 13:31:52 +05:30
Santhosh Edukulla 3a31a7e65d Adding readable start and end time stamps
Signed-off-by: Santhosh Edukulla <Santhosh.Edukulla@citrix.com>
2013-11-08 13:04:38 +05:30
Santhosh Edukulla ae852adabb CLOUDSTACK-4885: basic timing profiler for tests
This will add time taken in seconds along with start and end timestamp
logging facility for test cases.Currently this is not
available for console logs

Signed-off-by: Santhosh Edukulla <Santhosh.Edukulla@citrix.com>
2013-11-08 12:58:26 +05:30
Gaurav Aradhye b9547b07c0 CLOUDSTACK-4648: Fixed Snapshots test cases
Fixed following test cases:
1) test_01_volume_from_snapshot
2) test_03_snapshot_detachedDisk
3) test_07_template_from_snapshot

All three test cases are running successfully on XenServer but test cases (01 and 07) failing on KVM due to a common issue.
Product defect logged for this: https://issues.apache.org/jira/browse/CLOUDSTACK-5097

test_03 is running ok on KVM too, the problem was - disk was not getting detached because it was not unmounted before detaching. Added code to unmount the disk.

Signed-off-by: Girish Shilamkar <girish@clogeny.com>
2013-11-08 12:48:37 +05:30
Girish Shilamkar 8f76c49a99 CLOUDSTACK-4934: Renamed Limit Resources tests so that they have unique name.
Signed-off-by: SrikanteswaraRao Talluri <talluri@apache.org>
2013-11-08 10:34:33 +05:30
Alena Prokharchyk 17c0cb48e1 CLOUDSTACK-5089: fixed VPCDao to set the accountId field correctly 2013-11-07 15:40:25 -08:00
Prachi Damle 4e632afd55 CLOUDSTACK-4755: cloudstack 4.x does not allow memory upgrade
Changes:
- Set total capacity of a host if it has changed in the CapacityChecker thread
- Fix bug while setting the reserved/used cpu/mem capacity - only one of them used to get set
2013-11-07 15:23:14 -08:00
Jessica Wang f1568f953c CLOUDSTACK-4058: UI > Host detail page > (1) Add Hypervisor, HypervisorVersion field.
(2) Remove CloudstackVersion field.
2013-11-07 13:29:01 -08:00
Ashutosh K 527f03722f CLOUDSTACK-4996: Resolved gateway accessibility issue
Gateway of isolated network is pinged instead of shared
network
Signed-off-by: Girish Shilamkar <girish@clogeny.com>
2013-11-07 16:01:41 +05:30
Wei Zhou de448ec479 CLOUDSTACK-5042: change cloud.keystore to cloudmanagementserver.keystore and install it 2013-11-07 11:09:06 +01:00
Wei Zhou 0227e0013a remove network limitation of nics on systemvms 2013-11-07 11:07:48 +01:00
Wei Zhou 09e7ab9750 CLOUDSTACK-5042: fix NPE error as BroadcastUri is NULL in shared network after upgrade from 2.2.14 2013-11-07 11:07:24 +01:00
Wei Zhou a33f0e7bdd check Linux bridge status before remove it 2013-11-07 11:06:42 +01:00
Likitha Shetty ed3d82eabb CLOUDSTACK-3715. Increasing VMware vCenter session timeout value to 20 minutes from 10 minutes. 2013-11-07 11:07:05 +05:30
Jessica Wang 7bce498c19 CLOUDSTACK-5037: UI > Infrastructure > clusters > Settings tab > when "cpu.overprovisioning.factor" or "mem.overprovisioning.factor" is changed, pop up a warning message > change text. 2013-11-06 15:52:48 -08:00
Edison Su 4f9af26bea CLOUDSTACK-5065: isExternalSnapshot should return true for CLVM and RBD only 2013-11-06 15:32:32 -08:00
Sheng Yang 004efe1c0f CLOUDSTACK-5066: Don't remove the current VPN users when updating
If one VPN user and password is existed in current setup, then don't touch it,
otherwise would result in this user's existing connection be dropped.
2013-11-06 15:30:09 -08:00
Jessica Wang 7215677543 CLOUDSTACK-5037: UI > Infrastructure > clusters > Settings tab > when "cpu.overprovisioning.factor" or "mem.overprovisioning.factor" is changed, pop up a warning message "Please note - you are changing the over provisioning factor for a cluster with vms running. Please refer to the admin guide to understand the capacity calculation." 2013-11-06 12:21:40 -08:00
Jessica Wang 5e9dea1fc5 CLOUDSTACK-5048: UI > VPC section > Create Load Balancing rule > hide Autoscale button since Autoscale is not supported in VPC. 2013-11-06 11:36:13 -08:00
Sateesh Chodapuneedi 2210f1b0e4 CLOUDSTACK-5061 - Cloudstack doesn't consider storage overprovisioning factor when using thin Provisioning over VMWare VMFS datastores
Fix is use the storage overprovisioning factor (global configuration parameter "storage.overprovisioning.factor") to calculate total provisioning capacity for storage space allocation over VMFS based storage pools as well.
There are two level of thin provisioning provided in VMware, storage level and file-level (VMDK) thin provisioning. in CloudStack, all volumes are provisioned with thin VMDK format, so at hypervisor level, we ALWAYS do thin provisioning. If storage vendor has the ability to provide storage level thin provisioning in addition to VMDK thin provisioning, it is also allowed since it is transparent to Cloudstack.

Signed-off-by: Sateesh Chodapuneedi <sateesh@apache.org>
2013-11-06 17:37:22 +05:30
Likitha Shetty 9a8dddac2f Revert "CLOUDSTACK-3715. Socket timeout error is observed in VMware setup if a VMware task (RelocateVM_Task, CloneVM_Task etc.) takes more than 10 minutes. Making this value configurable to allow admins to modify the timeout if required. It defaults to the current value i.e. 10 minutes."
This reverts commit 0a1012817a.
2013-11-06 20:05:14 +05:30
Girish Shilamkar ed76e8a610 CLOUDSTACK-4686: Fixed volume limit for domain 2013-11-06 12:26:37 +05:30
Nitin Mehta 544d1594f0 CLOUDSTACK-5038:
used cpu is getting bumped up when the over provisioning factor > 1. This was because we didnt record the overprovisioning factors of the vms which got deployed pre 4.2
Upgrade path will fix that by populating the cpu/mem overprovisioning factors for each of the vms in user_vm_details table using the global overprovisioning factor.
Reviewed by : bharat kumar <bharat.kumar@citrix.com>
Signed off by : nitin mehta<nitin.mehta@citrix.com>
2013-11-05 16:35:07 -08:00
Jessica Wang 648f10401f CLOUDSTACK-5048: UI > Create Load Balancing rule > hide Autoscale button if LB provider is not Netscaler since Autoscale is only supported on Netscaler, but not on other provider like VirtualRouter. 2013-11-05 15:11:05 -08:00
Brian Federle 5721cfdc6b multiEdit: extend field hide/show functionality
-Support passing isHidden option as closure, for conditional hide/show
 based on context

-Adds new option format for isHidden option:

return false == show field and all columns (default)
return true == hide only header and form column
return 2 == hide header and form, as well as returned item column -- these
item columns will be skipped over entirely, not just hidden
2013-11-05 14:37:31 -08:00
Likitha Shetty 0a1012817a CLOUDSTACK-3715. Socket timeout error is observed in VMware setup if a VMware task (RelocateVM_Task, CloneVM_Task etc.) takes more than 10 minutes. Making this value configurable to allow admins to modify the timeout if required. It defaults to the current value i.e. 10 minutes. 2013-11-05 15:56:28 +05:30