Commit Graph

776 Commits

Author SHA1 Message Date
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
Marcus Sorensen 8d043c0e4d Updating devcloud-kvm marvin config to enable InternalLbVM
upon zone deployment.
2013-09-05 22:45:40 -06:00
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
Edison Su a23322bf20 Merge branch '4.2-forward' into 4.2 2013-08-26 16:18:12 -07:00
Chip Childers 0cefd6c972 Adding httpclient ssl source files to legal documentation
(cherry picked from commit a70708de48)
2013-08-26 12:36:13 -04:00
Chip Childers a70708de48 Adding httpclient ssl source files to legal documentation 2013-08-26 12:33:01 -04:00
Prasanna Santhanam 81d489dc94 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>
(cherry picked from commit 02e7630f1c)
2013-08-26 11:11:30 +05:30
Gaurav Aradhye 35ee38385c CLOUDSTACK-4452 - Fixed method is_snapshot_on_nfs and moved it to utils
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-08-26 10:40:19 +05:30
Prasanna Santhanam e39156e4d6 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>
2013-08-23 17:03:19 +05:30
Animesh Chaturvedi 06f28722b6 Updating pom.xml version numbers for release 4.2.0
Signed-off-by: Animesh Chaturvedi <animesh@Animesh-LinuxDev.citrite.net>
2013-08-22 17:15:42 -07:00
Prasanna Santhanam 69f6f49ae1 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>
2013-08-22 20:20:35 +05:30
Jessica 057705e4f2 CLOUDSTACK-4429. DOC. Fix broken link in header of API Reference TOC page. The link pointed to the Developer's Guide on the old doc site. Changed to point to the new doc site. Does not point to a specific doc version, so this text can be re-used without change for future software releases.
(cherry picked from commit aeb962ad13)

Signed-off-by: animesh <animesh@apache.org>
2013-08-21 23:48:42 -07:00
Sowmya Krishnan 1c31ee22d4 CLOUDSTACK-3927, CLOUDSTACK-3928: Fix NS scripts to add/remove NS device in setupClass/tearDown
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-08-22 10:06:51 +05:30
Jessica aeb962ad13 CLOUDSTACK-4429. DOC. Fix broken link in header of API Reference TOC page. The link pointed to the Developer's Guide on the old doc site. Changed to point to the new doc site. Does not point to a specific doc version, so this text can be re-used without change for future software releases. 2013-08-21 16:14:18 -07:00
Prasanna Santhanam 81b5146c8e 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>
2013-08-21 15:19:26 +05:30
Edison Su dfa81da53a delete snapshot_store_ref if the snapshot is in error state 2013-08-20 15:33:24 -07:00
Prasanna Santhanam 087a9ea76f 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>
2013-08-13 15:32:31 +05:30
Chip Childers f92ccb4244 fixing build error with message Need to add a category for createCacheStore.xml to <https://builds.apache.org/job/cloudstack-apidocs-master/ws/tools/apidoc/gen_toc.py>:known_categories 2013-08-08 09:38:00 -04:00
Chip Childers 70facdcc58 Adding CacheStores category for API docs, to resolve: Exception: Need to add a category for listCacheStores.xml to /home/hudson/jenkins-slave/workspace/cloudstack-apidocs-master/tools/apidoc/gen_toc.py:known_categories 2013-08-07 15:59:53 -04:00
Prasanna Santhanam b0ffc88baa 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>
2013-08-07 14:34:51 +05:30
SrikanteswaraRao Talluri 64591e65be CLOUDSTACK-4098: Fix the test which deploys a VM from password enabled template.
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-08-06 18:46:29 +05:30
Gaurav Aradhye 909b28793c Automation: Adding Memory limits tests from Resource Limits Tests 2013-08-06 09:42:41 +05:30
Prasanna Santhanam dbd321b022 Fix pep8
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-08-05 14:06:11 +05:30
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