830 Commits

Author SHA1 Message Date
Gaurav Aradhye
23499efe42 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:57:57 +05:30
Santhosh Edukulla
0b617a13fd 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>
2013-10-31 17:54:13 +05:30
Ashutosh Kelkar
c53d4e9e14 CLOUDSTACK-2243: Add automation tests for VMs base image
update faclity

Signed-off-by: Girish Shilamkar <girish@clogeny.com>
2013-10-31 14:55:29 +05:30
Gaurav Aradhye
1972d6121d Adding missing test cases: Snapshots Improvement 2013-10-29 23:42:38 +05:30
Daan Hoogland
30aea0b308 forgot about rat 2013-10-29 14:35:45 +01:00
Rajani Karuturi
4c6add84d8 eclipse code formatter settings xml file 2013-10-29 14:03:27 +01:00
Prasanna Santhanam
6a904d2f9b fix pep8
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-10-29 16:19:48 +05:30
Prasanna Santhanam
ddf4dfa60a marvin: enable the nose-marvin plugin using the --with-marvin directive
enable the marvin plugin when the --with-marvin directive is given to nose. The
enableOpt value is set from the command line directive and self.enabled
(True|False) determines whether marvin's tests will run.  By default
non-default plugins like marvin will be disabled"

This fixes regression from 03830c5

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-10-29 15:46:50 +05:30
Min Chen
6be228a438 CLOUDSTACK-4024:Provide a way to upgrade from existing NFS secondary
storage to S3.
2013-10-28 21:01:31 -07:00
Santhosh Edukulla
03830c570e 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>
2013-10-28 12:49:41 +05:30
Santhosh Edukulla
b4ceefa469 Adding readable start and end time stamps
Signed-off-by: Santhosh Edukulla <Santhosh.Edukulla@citrix.com>
2013-10-28 11:29:27 +05:30
Abhinandan Prateek
499a8c0915 syncing 64 bit svm scripts 2013-10-24 18:52:13 +05:30
Santhosh Edukulla
0780604503 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-10-24 14:52:53 +05:30
John Kinsella
45e4d4fc3b Summary: Updated sudoers approved commands for cloud user
Detail: Previously the cloud user has full password-less sudo access.
This commit changes that to only allow access to a specific list of
commands. Been tested in production on ACS 4.0 and 4.2 mangement servers.

BUG-ID: CLOUDSTACK-967
Bugfix-for:
Reviewed-by:
Reported-by:
Signed-off-by: John Kinsella <jlk@stratosec.co> 1382560936 -0700
2013-10-23 13:42:16 -07:00
Santhosh Edukulla
d4072c6daa 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>
2013-10-23 13:53:43 +05:30
Santhosh Edukulla
3f656b0434 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-22 15:38:48 +05:30
Prasanna Santhanam
dfa0678fc6 marvin: a1b979da8 breaks formatting and pep8.
setup/dev/advanced.cfg is used by the simulator deployments that are
usually not https. disabled the http within this config file.

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-10-22 11:59:14 +05:30
Santhosh Edukulla
a1b979da86 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>
2013-10-22 11:32:10 +05:30
Hugo Trippaers
c94c0b53fd Rename the definition to we avoid grep problems as grepping for systemvmtemplate would include systemvmtemplate64 2013-10-17 16:05:11 +02:00
Hugo Trippaers
789438651a Fix systemvm build scripts with the new location of the systemvm patches.
And wondering why they are included here and not in the systemvm.iso.

Also giving the systemvm a little more space to fix the out-of-diskspace error during the build
2013-10-17 14:57:33 +02:00
Gaurav Aradhye
0a8bce5cf6 CLOUDSTACK-4647: Fixed snapshot_gc test case and common util function is_snapshot_on_nfs
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-10-15 13:37:08 +05:30
Anshul Gangwar
7b5daaea20 added support for ispersistent parameter for networkoffering
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-10-15 13:22:42 +05:30
Prasanna Santhanam
52c2bc0baf pep8: fix regression from 10938612cc9f518e254f8756581548eeb52913b4
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-10-10 17:47:52 +05:30
Daan Hoogland
10938612cc [CLOUDSTACK-4832] no cert verification on https 2013-10-08 17:35:46 +02:00
Darren Shepherd
23ddf29532 Fix vmware code inclusion into systemvm.iso and other random nonoss->noredist 2013-10-07 09:20:41 -07:00
Prasanna Santhanam
5ed493c6e6 pep8: fix recent pep8 violations
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-10-04 14:13:37 +05:30
Gaurav Aradhye
b7e00d3700 CLOUDSTACK: 4706 - Adding missing method get_region in common.py
Signed-off-by: venkataswamybabu budumuru <venkataswamybabu.budumuru@citrix.com>
(cherry picked from commit 503fe75dc93be209f0382ddf9c0b548009342565)
2013-09-30 15:19:58 +05:30
SrikanteswaraRao Talluri
65da24c35e CLOUDSTACK-4691: move egress rules host maintenance tests to maint folder
Signed-off-by: venkataswamybabu budumuru <venkataswamybabu.budumuru@citrix.com>
(cherry picked from commit 6b28e03d6d88e9b6bd9d0521a45c93d5b4af6501)
2013-09-30 15:12:20 +05:30
Edison Su
b3ac12e171 delete snapshot_store_ref if the snapshot is in error state 2013-09-25 15:51:55 -07:00
Wei Zhou
567a05d18a CLOUDSTACK-4726: complete secondary storage configuration in devcloud-advanced.cfg and devcloud-advancedsg.cfg
(cherry picked from commit 9d00a6da654bcf12ed2ad67b23efc0032abe858c)
2013-09-23 11:10:33 +02:00
Darren Shepherd
decc04b294 Run veewee using 'bundler exec'
Signed-off-by: Hugo Trippaers <htrippaers@schubergphilis.com>
2013-09-22 10:56:22 +08:00
Hugo Trippaers
15a97ec412 Cleanup pom.xml in various projects to properly use managed versions and other defaults 2013-09-21 17:21:06 +08:00
Anshul Gangwar
955408166c 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>
2013-09-18 09:21:24 +05:30
Gaurav Aradhye
ae1cebf4e9 Automation - Portable Ip feature test cases
Signed-off-by: venkataswamybabu budumuru <venkataswamybabu.budumuru@citrix.com>
(cherry picked from commit 23c759ec356d90801b7117cbb4b44e730bcad374)
2013-09-13 17:35:08 +05:30
Prasanna Santhanam
a987a8aca1 Fix apidoc build
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-09-11 09:40:48 +05:30
Prasanna Santhanam
433d5839a1 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>
2013-09-09 11:41:13 +05:30
Gaurav Aradhye
eb390fba22 CLOUDSTACK-4531: Fixed indent problem with the patch.
Signed-off-by: venkataswamybabu budumuru <venkataswamybabu.budumuru@citrix.com>
(cherry picked from commit 751fe8e339750c79d9a30c28f7ef8b0b87bad10a)
2013-09-06 21:36:42 +05:30
Marcus Sorensen
fd42c90313 Updating devcloud-kvm marvin config to enable InternalLbVM
upon zone deployment.
2013-09-05 22:48:26 -06:00
Sowmya Krishnan
8b5cb374b9 CLOUDSTACK-4487 Fix adding Netscaler service provider if not already done
Signed-off-by: venkataswamybabu budumuru <venkataswamybabu.budumuru@citrix.com>
(cherry picked from commit c1ea61a0e736ce626c0d1f21e90cf9aaf7f89964)
2013-09-05 15:08:43 +05:30
Girish Shilamkar
0fb2014d19 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>
(cherry picked from commit 4f3b411d4cf9a6986337dea98cd902b25efefb95)
2013-09-05 10:20:17 +05:30
Ian Duffy
bdba0ddeed Bring up to date with master 2013-08-31 00:25:48 +01:00
Prasanna Santhanam
5326833971 Fix pep8 formatting to fix cloudstack-marvin build 2013-08-30 12:40:42 +05:30
Gaurav Aradhye
95e4b7afa8 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>
2013-08-29 14:13:39 +05:30
Girish Shilamkar
c6f0d46911 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 14:10:54 +05:30
Prasanna Santhanam
1058654cb4 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)
2013-08-29 14:10:54 +05:30
Ashutosh Kelkar
a7833cdfb4 CLOUDSTACK-4303: Add missing base.py changes
egressdefaultpolicy parameter was not set in base.py. Therefore
egress test failed. Added this missing change.

Signed-off-by: Jayapal <jayapal@apache.org>
2013-08-27 16:08:37 +05:30
Prasanna Santhanam
de770d37ec CLOUDSTACK-4452: Fix the mount format to host:dir
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit eabd53b9719fe38b933efe1169c420c88ad5ecf5)
2013-08-27 15:28:20 +05:30
Sowmya Krishnan
f1c6535f6e CLOUDSTACK-4510 Move NS scripts to appropriate suites and related common.py fixes
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit f7df3ef9f1d6127d5438e58af7dccfbd1f58461c)
2013-08-27 10:59:13 +05:30
Chip Childers
b1ee33abc0 Adding httpclient ssl source files to legal documentation
(cherry picked from commit a70708de482fb6de72e5934f1d95809b3c68d194)
2013-08-26 12:36:59 -04:00
Prasanna Santhanam
02e7630f1c CLOUDSTACK-4452: Cleaning up the is_snapshot_on_nfs utility
- Pass in config and determine the mgmtsvr credentials
- remove the dir_paths param which is not reqd.
- pass all entities as uuids and convert to ids within the method

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-08-26 11:10:06 +05:30