Commit Graph

753 Commits

Author SHA1 Message Date
Prasanna Santhanam b9c15a4835 isportable defaults to False
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit d993dda55a69e38bd0fba24166ad6fdf0e97cfc7)
2013-08-02 22:24:18 +05:30
Gaurav Aradhye fd9cf9743b 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>
2013-08-02 16:00:15 +05:30
Prasanna Santhanam 3388291cc5 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>
2013-08-01 19:25:47 +05:30
Prasanna Santhanam 712d962943 Remove unused code
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit 7452bb858703d9a24e6d4bb50036851e06c8418a)
2013-08-01 16:10:30 +05:30
Sheng Yang fda055388e Automation: Fix SSH connection test
And increase default retry to 10 times, each 30 seconds.
2013-07-31 18:27:49 -07:00
Sheng Yang 4f111d2846 Marvin: Add missing __init__ to StaticRoute 2013-07-31 15:10:01 -07:00
Chip Childers c68eb4d41e Fixing setnextversion.sh 2013-07-31 11:09:52 -04:00
Prasanna Santhanam 7aafd06df6 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>
2013-07-31 17:21:01 +05:30
Prasanna Santhanam 805d087d87 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>
2013-07-31 17:21:01 +05:30
Prasanna Santhanam c93c321b3b 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>
(cherry picked from commit 28835054e6)
2013-07-30 15:03:25 +05:30
Girish Shilamkar 8be9a47542 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>
(cherry picked from commit 4054a8e2ac)
2013-07-29 20:00:17 +05:30
Prasanna Santhanam 672cae4eb2 CLOUDSTACK-3906: PrivateGw constructor
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-07-29 17:15:06 +05:30
Prasanna Santhanam 00f8942387 CLOUDSTACK-3906: unbound method PrivateGw.create is not @classmethod
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit 17b711bd7c)
2013-07-29 16:57:32 +05:30
Prasanna Santhanam 28a0b0c588 Fix broken pep8 from 1305697eaa
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-07-29 15:33:44 +05:30
Prasanna Santhanam 53feae08de Remove duplicate while-loop retries during ssh
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-07-29 14:51:37 +05:30
Prasanna Santhanam 908df7aabd Fix simulator and marvin
- Remove additional parantheses in marvin VirtualMachine.create(
- Implement createEntityExtractUrl command for simulator

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-07-28 10:20:16 +05:30
Min Chen 1305697eaa CLOUDSTACK-3818: NFS Cache Improperly Named. 2013-07-26 14:36:00 -07:00
Prasanna Santhanam 782333e14c 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>
(cherry picked from commit 0edd2a8e14482def0d2a73726b53dee4239e2822)
2013-07-26 19:39:37 +05:30
Prasanna Santhanam 8f153a65dd add deleteCacheStorage to TOC in API doc generator
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-07-26 09:46:27 +05:30
Prasanna Santhanam 2be96cf0b7 Fix pep8 that broken marvin build 10 days ago :(
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit 1f95493dfef7762625530f59c4b4de2b6c2165f0)
2013-07-25 23:00:31 +05:30
Prasanna Santhanam 2b0a972676 Fix bunch of affinity group tests
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-07-25 22:51:03 +05:30
Chip Childers b5bb0a5708 Updating build_asf from the 4.1 branch, where I fixed a couple of things 2013-07-25 12:31:08 -04:00
Prasanna Santhanam 1067888f6d 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>
2013-07-25 15:34:15 +05:30
Girish Shilamkar 4a7f5d59d6 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>
2013-07-24 16:52:45 +05:30
Girish Shilamkar b44c620850 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>
2013-07-22 22:53:09 +05:30
Prasanna Santhanam a659d78905 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>
2013-07-22 22:53:09 +05:30
Prasanna Santhanam fb75f51755 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>
2013-07-22 12:49:42 +05:30
Prasanna Santhanam 77aa85d257 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>
2013-07-22 12:20:36 +05:30
Prasanna Santhanam 17af34fd19 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>
2013-07-20 15:53:14 +05:30
Prasanna Santhanam 9c9003a0db 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>
2013-07-20 13:29:17 +05:30
Gaurav Aradhye 3c360ce028 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>
2013-07-20 12:28:06 +05:30
Sanjay Tripathi 5eaec0a5e0 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>
(cherry picked from commit ecfeaa1037)
2013-07-20 12:21:07 +05:30
Marcus Sorensen 30d4ef3af7 Summary: devcloud-kvm marvin zone config fix for 4.2, add provider to img store
Signed-off-by: Marcus Sorensen <marcus@betterservers.com> 1374264479 -0600
2013-07-19 14:07:59 -06:00
Gaurav Aradhye 6a5f13adec CLOUDSTACK-3452: Created security group for basic mode to allow SSH to vm
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-07-19 17:45:38 +05:30
Prasanna Santhanam 62bf8082f4 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>
2013-07-19 17:45:38 +05:30
Edison Su 83c7b9ae57 fix localendpoint npe 2013-07-17 16:28:49 -07:00
Girish Shilamkar 8e7c1aa133 CLOUDSTACK-3586: Fixed regression test cases for Affinity Groups
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit 234db0561f)
2013-07-17 19:27:33 +05:30
Edison Su ba4c4400b5 be able to upload template into swift 2013-07-16 18:05:01 -07:00
Prasanna Santhanam 7ec12dae06 CLOUDSTACK-2481: SystemVM template 64-bit patched with vhd-util
This allows a template of a snapshot operation

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-07-13 10:45:50 +05:30
Edison Su 8319473baa set vhd-util executable 2013-07-12 10:56:05 -07:00
rayeesn 9bc105f39a vmware - not reqiured to add host, host will be added as part of cluster
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit b3e2871e73)
2013-07-12 16:11:55 +05:30
Prasanna Santhanam e69ebab34e include account and domainid in affinity group creation
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit 02f207f6c9)
2013-07-12 10:19:44 +05:30
Prasanna Santhanam e0e8cb0d96 CLOUDSTACK-3273: ClassCastException when adding cache store via API
Filter the detail map sent over the wire into Map<String, String> before
processing underneath by  storage life cycle

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit f96b89f25e)
2013-07-05 15:33:10 +05:30
Prasanna Santhanam a14a9c1926 move isAlmostEqual to utils
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit da9552b7f3)
2013-07-04 20:15:31 +05:30
Edison Su 19651ff5fd fix marvin when deploy vmware setup 2013-07-03 14:33:17 -07:00
Prasanna Santhanam 48a2c761b4 pep8 fix
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit 3684bafd37)
2013-06-30 13:58:52 +05:30
Prasanna Santhanam f3e3048682 CLOUDSTACK-3074: include support for vmwaredc mapping to zone
vmware dc can be mapped to the zone after CLOUDSTACK-1963. include
support in marvin for adding the vmwaredc.

vmwaredc : {
    name:
    username:
    vcenter:
    password:
    zoneid:
}

Will be sent during pod creation before cluster creation.

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-06-29 10:03:51 +05:30
Mike Tutkowski 99227f7b3e SolidFire plug-in and related changes
SolidFire plug-in

SolidFire plug-in related
2013-06-28 16:59:21 -06:00
Prasanna Santhanam 9e474d018b do not flout pep8
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-06-28 19:02:59 +05:30
Prasanna Santhanam 9e8cf60b34 upgrade marvin classes to new style python objects
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-06-28 19:01:31 +05:30