Commit Graph

20956 Commits

Author SHA1 Message Date
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
Sebastien Goasguen 966db3c8c2 fixing simulator for missing haplanners 2013-11-05 09:51:52 +01:00
Likitha Shetty bc36aa026f CLOUDSTACK-5028. Vmware instance fails to start when the chain_info of any volume that belongs to the VM is longer than 255 characters.
If the VM has snapshots then the chain_info of a volume can be longer than 255 characters.
Increasing the column length of chain_info in VolumeVO to match the maximum length of type text(db schema type)
2013-11-05 13:20:24 +05:30
Marcus Sorensen 5cc9b1de66 CLOUDSTACK-3216 /var/log/cloud.log did not have a logrotate script, here
is a basic one.
2013-11-04 08:48:37 -07:00
suresh 9bf30479fc CLOUDSTACK-2272: testscript validates the vmdeployment with userdata 2013-11-04 16:58:55 +05:30
David Grizzanti d6420cd91e CLOUDSTACK-5023: Deleting Port Forwarding Rule fails when generating usage events are enabled 2013-11-03 20:43:13 +01:00
Edison Su 89206094ae CLOUDSTACK-5022 - [Automation] Failed to create volume from snapshot in KVM 2013-11-01 13:43:07 -07:00
Girish Shilamkar ba8be7cbed CLOUDSTACK-3961: Added a function to get free vlan 2013-11-01 17:30:48 +05:30
Nitin Mehta f9b658f6af CLOUDSTACK-5013:
Add the format for volumes table for uploaded volumes. Since volume_host_ref still exists, using that for populating it
Signed off by : nitin mehta<nitin.mehta@citrix.com>
2013-10-31 13:51:49 -07:00
Girish Shilamkar dc081c9f6b CLOUDSTACK-4256: Fixed Shared Network test cases using random private
ips for shared networks
2013-10-31 22:22:47 +05:30
Gaurav Aradhye c61c592677 CLOUDSTACK-4995: Fixed test_reset_ssh_keypair which checks the state of the VM
Signed-off-by: Girish Shilamkar <girish@clogeny.com>
2013-10-31 21:55:32 +05:30
Girish Shilamkar 733c355eaa CLOUDSTACK-4335: Delete test_deployVmSharedNetworkWithoutIpRange
test_deployVmSharedNetworkWithoutIpRange creates a shared network
without start and end ip. This is no longer permitted and creation
of shared network will fail with error "insufficient capacity". So
remove this test which is invalid.

Signed-off-by: Girish Shilamkar <girish@clogeny.com>
2013-10-31 18:29:46 +05:30
Wei Zhou 743eed8771 CLOUDSTACK-4987: only shared network and isolated network with same account can be assigned to a VM 2013-10-31 11:27:56 +01:00