255 Commits

Author SHA1 Message Date
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
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
Gaurav Aradhye
684573939f CLOUDSTACK-4452 - Fixed method is_snapshot_on_nfs and moved it to utils
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit 35ee38385ce0c54b3a16c3270db66d3eb3a56d04)
2013-08-26 10:40:44 +05:30
Prasanna Santhanam
4a96740681 CLOUDSTACK-4473: allow_egress referenced before assignment
When deploying with networkids allow_egress gets no default value. This
is a regression caused by fix for CLOUDSTACK-4418

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit 239ba9447109412cf48cfefc547d6b5fef83a4a9)
2013-08-23 17:02:34 +05:30
Prasanna Santhanam
b3306497fe CLOUDSTACK-4453: fetch host credentials from marvin config
Tests would fetch the credentials for the host to hop into router to
check for essential services. Each test would require to put in the host
information into the test data. Instead fetch the credential information
from the marvin configuration file.

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit 4b546ce85d40098ade69c575316e76e25a422a12)
2013-08-22 20:20:16 +05:30
Sowmya Krishnan
e4b5d4d62e CLOUDSTACK-3927, CLOUDSTACK-3928: Fix NS scripts to add/remove NS device in setupClass/tearDown
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit 1c31ee22d40d77c10593d87b8237cd0489d192cc)
2013-08-22 10:27:56 +05:30
Prasanna Santhanam
7e36dd6be8 CLOUDSTACK-4418: allow egress access to all networks for VMs on NAT
Tests doing operations within guests post VirtualMachine.create w. default
network offering fail since the egress policy with isolated networks and
sourcenat services is DENY.

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit 81b5146c8ed1a590b08b71a3e3421966974b74f9)
2013-08-21 15:20:27 +05:30
Prasanna Santhanam
61b787975c CLOUDSTACK-4283: remove hardcoded shared_vlan from test_shared_networks
SharedNetwork creation requires a pre-setup VLAN outside of the guest
VLANs defined during zone creation. Use a VLAN tag outside the guest
range as a shared network vlan to create shared networks.

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit 35867ccbd90c824b4faae438dac99400babeff95)
2013-08-13 15:31:43 +05:30
Prasanna Santhanam
fb58addc35 Fix snapshot GC test
Changes to object store removes SecondaryStorage host from the host
table. This affects the test where we identify the secondary storage nfs
host to login to where we verify if the snapshot is present on the
physical resource.

* added base classes for imagestore/stagingstore operations
* fixed the test to check only if NFS is used as backing store

TODO: Fix for s3 based storage layer

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit 4f973778bf6c2bfc7da2b8c785557e86f81af9d5)
2013-08-07 14:33:57 +05:30
SrikanteswaraRao Talluri
c853426c76 CLOUDSTACK-4098: Fix the test which deploys a VM from password enabled template.
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit 64591e65beb5734a2c99d4c2c8b9f03ab064a739)
2013-08-06 18:46:44 +05:30
Prasanna Santhanam
f37417e365 Fix pep8
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit 1060997bcd40282656503a15191abd1814bfe064)
2013-08-05 14:06:51 +05:30
Prasanna Santhanam
ccbcee5e00 isportable defaults to False
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-08-02 22:23:44 +05:30
Gaurav Aradhye
6ef51b4159 CLOUDSTACK:3594: Fixes related to affinity groups tests. Included two test suites those were missed because there was no decorator for test cases
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit 3028f4223b2a00f80159b387e86211effcfeda11)
2013-08-02 16:00:05 +05:30
Chip Childers
8225374138 Updating pom.xml version numbers for release 4.3.0-SNAPSHOT
Signed-off-by: Chip Childers <chipchilders@apache.org>
2013-08-01 10:35:00 -04:00
Prasanna Santhanam
d714ce54b5 CLOUDSTACK-3921: Don't change order of params in PublicIpAddress.create()
Or existing tests that depend on the order barf and fail.

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit ec054cde23113baa40ae35c6195bc666d3c1b8d0)
2013-08-01 19:25:37 +05:30
Prasanna Santhanam
d31fe92169 Remove unused code
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-08-01 16:10:57 +05:30
Sheng Yang
a3df696fd6 Automation: Fix SSH connection test
And increase default retry to 10 times, each 30 seconds.

Comment out auth exception part because sometime it caused failure when VM
is starting up.

Now we just wait anyway for 5 minutes if it's failing.
2013-07-31 18:28:33 -07:00
Sheng Yang
536c377752 Marvin: Add missing __init__ to StaticRoute 2013-07-31 15:10:39 -07:00
Prasanna Santhanam
cce14f3974 Include SSH retry logic when encountering channel failures.
Only on SSHExceptions we attempted retries, but during socket failures,
like Network Unreachable we failed the ssh connection immediately.

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit dcbb2fcaa18e3faaf1c0765633300f7d0fa46d2c)
2013-07-31 17:20:35 +05:30
Prasanna Santhanam
476bd93e43 Cleanup the marvin logger
It is useful to have the same logger used in the marvinplugin into the
testcase. The testcase can then append its name to the logger making
the logs specify exactly which test is executing when the logs are
generated

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit c84a2d8801b7898dbfee18e17950cb9fca7d36e7)
2013-07-31 17:20:35 +05:30
Prasanna Santhanam
28835054e6 CLOUDSTACK-3921: AssociateIpAddress fails
When you have a method with named parameters, all calls to it should
explicitly pass name=value pairs. Not doing so can result in the wrong
params being passed in the method call. This is a result of the
"services" dictionary being passed into the isportable flag failing the
API signature generation and hence the API call.

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-07-30 15:01:34 +05:30
Girish Shilamkar
4054a8e2ac CLOUDSTACK-3454: Fix test_portable_publicip
Added isportable param to associateIP API. Fixed base class
for PortableIP tio call portableip APIs.
Removed test_createPortablePublicIPAcquire from basic zone run
requires additional network creation handling which can be done
in component tests.

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-07-29 20:00:08 +05:30
Prasanna Santhanam
97424e2954 CLOUDSTACK-3906: PrivateGw constructor
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit b82c0c9e7b565a2373cf553f8413819afa37d8c3)
2013-07-29 17:11:50 +05:30
Prasanna Santhanam
17b711bd7c CLOUDSTACK-3906: unbound method PrivateGw.create is not @classmethod
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-07-29 16:57:04 +05:30
Prasanna Santhanam
20e64be8d7 Fix broken pep8 from 1305697eaa598a3bc59d5b81f5f838369c6d5b8e
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit 8545e6461880dae08a8b3f7d07d9302807982c29)
2013-07-29 15:33:23 +05:30
Prasanna Santhanam
ade13bb773 Remove duplicate while-loop retries during ssh
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit 53feae08de5f4d8072538e9060e5a6e074ebcdde)
2013-07-29 14:52:07 +05:30
Min Chen
c8cafb91a7 CLOUDSTACK-3818: NFS Cache Improperly Named. 2013-07-26 15:07:45 -07:00
Prasanna Santhanam
4be18aefc4 CLOUDSTACK-2450: Fix userdata to be urlencoded safely
urlencoding the userdata and quoting the = since apiserver will strip
them out. This will send an invalid userdata down to the plugin (vmops)
where base64 decoding fails causing vm deployment to fail.

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-07-26 19:40:22 +05:30
Prasanna Santhanam
8e72a728b7 Fix pep8 that broken marvin build 10 days ago :(
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-07-25 23:00:41 +05:30
Prasanna Santhanam
23e7753741 Fix bunch of affinity group tests
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit 2b0a97267617608e6695973bc768eec499b69eca)
2013-07-25 22:51:35 +05:30
Prasanna Santhanam
9e8663c7ca CLOUDSTACK-3617: Skip the test if config is not suitable
Provided a utility method to ensure the config is suitable for running
the test. If vm.instancename.flag is unset then skip the tests.

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit 8b8cee52f09f9f2c1b612ece16fc7ffc4b2c9176)
2013-07-25 15:34:04 +05:30
Girish Shilamkar
b8a38ca7bd CLOUDSTACK-3594: Fix regression in Affinity Groups tests
One of the patches introduced a regression where account
and domainid parameters were changed. Therefore Affinity
Groups for those accounts were not found and tests failed.

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit 4a7f5d59d6f77fdeb5623937f4efa2542f891573)
2013-07-24 16:53:45 +05:30
Girish Shilamkar
18fbbcfc5a CLOUDSTACK-3610: Fix regression test "test_accounts.TestUserLogin"
Now password is sent as clear text as per CLOUDSTACK-1734
So changed marvin to handle this. Plus domainid was not
passed in the testcase and marvin used "domainid" instead of
"domainId" as a parameter. Fixed these two errors.

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit dba09791fc99c342974d8ca1c69609c04f1a5512)
2013-07-22 19:36:28 +05:30
Prasanna Santhanam
4956e46884 CLOUDSTACK-3075: When only setUpClass() is creating account
Missed scenario for appending test case names to accounts when
setUpClass calls the account.creation integration library.

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit 9a5d2e9e36411ac5df17baca13874e0575233dac)
2013-07-22 19:36:27 +05:30
Prasanna Santhanam
a75a62a318 CLOUDSTACK-3075: Test names appended with <module>-<testname>
Prevent chained appending of the testclass/testnames to the accounnt
names.

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit fb75f51755a2a0f28766f3e15b3e349151c85334)
2013-07-22 12:50:28 +05:30
Prasanna Santhanam
2d55914e70 CLOUDSTACK-3075: append module/suite name
If the test doesn't create the account within the testXxx method we miss
the trail of the accountname because the setUpClass() created the
account. Append the module name in advance in such cases to identify the
account that was created in the suite before any tests were executed.

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit 6a8608a916eec2551797e93634d9716e9d15c783)
2013-07-22 12:19:03 +05:30
Prasanna Santhanam
2000005f90 CLOUDSTACK-3075: append test case name to account
Accounts will be prepended by the testcase name to ease analysis
post-test runs.

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit 17af34fd19ba9aa310a416e8e8cb80de37a018c2)
2013-07-20 15:53:50 +05:30
Prasanna Santhanam
b8148c6220 CLOUDSTACK-3452: Refactor VirtualMachine.create()
When creating a VM if it's going to a basic zone program sec.group rules
so as to allow SSH access for any tests requiring ssh access to the
guest. Similarly method used to program the NAT and PF for SSH access is
refactored and extracted into a separate method. By default no SSH
access is allowed if the mode is set to 'default'

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit 9c9003a0dba755135f643777083b80ec5fa3d910)
2013-07-20 13:31:03 +05:30
Gaurav Aradhye
4f8c43fc20 CLOUDSTACK:3452: Check if security groups feature is enabled in basic zone before creating security group while creating VM
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit 3c360ce02807240586d471ab4c0cbd24d76ed7e6)
2013-07-20 12:28:35 +05:30
Sanjay Tripathi
ecfeaa1037 CLOUDSTACK-3620: [Automation] API removevpnuser failed, in test case test_project_usage.TestVpnUsage.test_01_vpn_usage.
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-07-20 12:20:15 +05:30
Gaurav Aradhye
bd80efc49a CLOUDSTACK-3452: Created security group for basic mode to allow SSH to vm
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit 9c24c471bca83241a9ebf586567c0fd61231da19)
2013-07-19 17:44:52 +05:30
Prasanna Santhanam
ae2ee95069 CLOUDSTACK-3655: RvR fails with unexpected state
The guestcidr is no longer specified directly. Use the netmask and
gateway combination to create custom cidr network

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit a4d902fc9b48e963d5987965207e3745e1728741)
2013-07-19 17:44:52 +05:30
Edison Su
c618caf102 fix localendpoint npe 2013-07-17 16:29:52 -07:00
Girish Shilamkar
234db0561f CLOUDSTACK-3586: Fixed regression test cases for Affinity Groups
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-07-17 19:23:58 +05:30