Commit Graph

827 Commits

Author SHA1 Message Date
Girish Shilamkar
b21030b851 Fixed a missing hunk from this commit aeb5ec07 2013-11-25 11:44:10 +05:30
Gaurav Aradhye
631743b44a CLOUDSTACK-5215: Correcting and refactoring code related to
getting free vlan
2013-11-21 11:00:15 +05:30
Girish Shilamkar
454d9b04c4 Fix marvin to refer to correct random_gen() function 2013-11-15 17:10:40 +05:30
Gaurav Aradhye
a95bea08e4 CLOUDSTACK-5180: Increasing the timeout for uploading volume 2013-11-15 16:20:46 +05:30
Ashutosh K
d8fd962a73 Including tests for VPC VM Lifecycle on Tagged hosts 2013-11-13 21:54:35 +05:30
Abhinandan Prateek
4cb311530c Revert "Updating pom.xml version numbers for release 4.2.1"
This reverts commit 0b9eadaf14.
2013-11-12 21:17:27 +05:30
Abhinandan Prateek
0b9eadaf14 Updating pom.xml version numbers for release 4.2.1
Signed-off-by: Abhinandan Prateek <aprateek@apache.org>
2013-11-12 21:15:01 +05:30
Santhosh Edukulla
7d02c71ff7 Fixed a connection issue under asyncmgr.
Fixed a connection issue under asyncmgr.
Added __init__.py files to directory to make it
a package.This file was missing under few directories and
so not appearing as packages while refactoring.
Adding one None Check

Conflicts:
	tools/marvin/marvin/asyncJobMgr.py

Signed-off-by: Girish Shilamkar <girish@clogeny.com>
2013-11-11 16:58:44 +05:30
SrikanteswaraRao Talluri
3e3b1c86e1 Fixed missing checkin while merging from master
Signed-off-by: SrikanteswaraRao Talluri <talluri@apache.org>
2013-11-11 15:47:56 +05:30
Girish Shilamkar
cff7e39339 Fixed few hunks which were incorrect.
While adding certain marvin related fixes from master to 4.2 branch
incorrect hunks were added. Fixed them.
2013-11-11 15:10:29 +05:30
Santhosh Edukulla
e82fe01692 CLOUDSTACK-5121: There was one wrong initialization of cloudstackConnection.
The bug mentioned is causing test cases to fail.

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

Conflicts:

	tools/marvin/marvin/cloudstackConnection.py
2013-11-10 17:28:32 -05:00
SrikanteswaraRao Talluri
f893a80d1d Modified remoteSSHClient references to SshClient 2013-11-08 19:52:41 +05:30
SrikanteswaraRao Talluri
9d00bfeba2 fixed indentaion problem in utils.py :359 2013-11-08 18:00:55 +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
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
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
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
Ashutosh Kelkar
e47dfb673c CLOUDSTACK-2243: Add automation tests for VMs base image update faclity
Signed-off-by: Girish Shilamkar <girish@clogeny.com>
2013-10-31 15:02:03 +05:30
Santhosh Edukulla
4d7c66bdec The code module represents enum for constant comparison
This module provides facilitation to use uniform codes across various test
features. Users can import this  module and use these codes to maintain
readability and one point of change.

Signed-off-by: Santhosh Edukulla <Santhosh.Edukulla@citrix.com>
2013-10-31 14:59:53 +05:30
Abhinandan Prateek
db880381d1 syncing 64 bit svm scripts 2013-10-24 18:50:34 +05:30
Gaurav Aradhye
0dabc6a651 CLOUDSTACK-4647: Fixed snapshot_gc test case and common util function is_snapshot_on_nfs
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit 0bbe5684981cf21d30455de4f12dd1c2e58d94ea)
2013-10-15 13:36:45 +05:30
Anshul Gangwar
2ef566e9ea added support for ispersistent parameter for networkoffering
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit 7b5daaea20)
2013-10-15 13:24:43 +05:30
Wei Zhou
2ebcfdb733 fix CS 4.2.1-SNAPSHOT apidocs build error 2013-10-08 13:59:36 +02: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
Gaurav Aradhye
503fe75dc9 CLOUDSTACK: 4706 - Adding missing method get_region in common.py
Signed-off-by: venkataswamybabu budumuru <venkataswamybabu.budumuru@citrix.com>
2013-09-30 15:18:30 +05:30
SrikanteswaraRao Talluri
6b28e03d6d CLOUDSTACK-4691: move egress rules host maintenance tests to maint folder
Signed-off-by: venkataswamybabu budumuru <venkataswamybabu.budumuru@citrix.com>
2013-09-30 15:06:46 +05:30
Wei Zhou
9d00a6da65 CLOUDSTACK-4726: complete secondary storage configuration in devcloud-advanced.cfg and devcloud-advancedsg.cfg 2013-09-23 11:09:05 +02:00
Anshul Gangwar
c93e6e216d CLOUDSTACK-2266: marvin tests for IP Address reservation within a network it also adds the ipaddress parameter to virtual machine's create method in base.py
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit 955408166c)
2013-09-18 09:23:03 +05:30
Gaurav Aradhye
23c759ec35 Automation - Portable Ip feature test cases
Signed-off-by: venkataswamybabu budumuru <venkataswamybabu.budumuru@citrix.com>
2013-09-13 17:27:57 +05:30
sailajam
e546fe0e71 Merge branch '4.2' of https://git-wip-us.apache.org/repos/asf/cloudstack into 4.2 2013-09-12 10:59:47 +05:30
Prasanna Santhanam
0a0ff45b16 CLOUDSTACK-4608: Resolve the hostname to fqdn from marvin config
In case the marvin configuration does not contain fqdn information fetch
and compare the fqdns of hostip from `cloud`.`host` with the fqdn
available on the client.

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit 433d5839a1)
2013-09-09 11:43:18 +05:30
Marcus Sorensen
b2c4529a8a Updating devcloud-kvm marvin config to enable InternalLbVM
upon zone deployment.
2013-09-07 23:08:50 -06:00
Gaurav Aradhye
751fe8e339 CLOUDSTACK-4531: Fixed indent problem with the patch.
Signed-off-by: venkataswamybabu budumuru <venkataswamybabu.budumuru@citrix.com>
2013-09-06 21:35:18 +05:30
Marcus Sorensen
8d043c0e4d Updating devcloud-kvm marvin config to enable InternalLbVM
upon zone deployment.
2013-09-05 22:45:40 -06:00
Sowmya Krishnan
c1ea61a0e7 CLOUDSTACK-4487 Fix adding Netscaler service provider if not already done
Signed-off-by: venkataswamybabu budumuru <venkataswamybabu.budumuru@citrix.com>
2013-09-05 15:06:10 +05:30
Girish Shilamkar
4f3b411d4c CLOUDSTACK-4531: Resolved ssh error for basic zone. Public ip should be used for ssh instead of ipaddress of nic
Signed-off-by: venkataswamybabu budumuru <venkataswamybabu.budumuru@citrix.com>
2013-09-05 10:07:38 +05:30
Prasanna Santhanam
204f85b051 CLOUDSTACK-4499: Wait until hosts are up before adding storage pools
This works around the delay caused in adding Xen 6.1/6.2 hosts where
host takes two attempts to transition to Up state. We will wait for one
minute per cluster before attempting to add storage pool in the cluster.

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit 22ee499c3571b2a6b6921abb36c679128893c415)
(cherry picked from commit dc071e963e)

Signed-off-by: animesh <animesh@apache.org>
2013-09-03 16:00:37 -07:00
Prasanna Santhanam
72a026cea2 Fix pep8 formatting to fix cloudstack-marvin build
(cherry picked from commit 5326833971)
2013-08-30 12:41:16 +05:30
Gaurav Aradhye
f585c605e2 Automation: Limit Resources - Adding tests related to CPU limits
Reviewed-by: Sanjay Tripathi <Sanjay.Tripathi@citrix.com>
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit 95e4b7afa8)
2013-08-29 14:14:32 +05:30
Girish Shilamkar
de86e5e63d CLOUDSTACK-4407: Use extractTemplate API to get hypervisor specific template information
Template url, hypervisor and format were defined in Service class to be Xenserver specific
and therefore registering a new template failed on Vmware and KVM.
Fixed this to get hypervisor specific info for registering new template.

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit 20256706b376551fe8993ee2e73c61df31dcb6de)
2013-08-29 12:38:34 +05:30