2352 Commits

Author SHA1 Message Date
Prasanna Santhanam
7d6b4a4a97 Fix vpc network tests and reduce delay by removing wait for cleanup
CIDR dictionary changes in the test causing the subsequent test to fail.
Reinitialize the dictionary at the beginning of the test

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-06-19 16:55:22 +05:30
Prasanna Santhanam
b91978545a Don't wait for account gc
Account GC is automatic, it's not required to wait for cleanup in the
tearDown method

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-06-19 15:16:45 +05:30
Prasanna Santhanam
13e1f4fc1e Split Redundant Router tests
Each module of redundant router contains related tests for
services, network rules, upgrades, redundancy etc.

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-06-19 14:32:25 +05:30
Prasanna Santhanam
b0d186ce5b Remove wait during cleanup
Cleanups need not wait at teardown for accounts to be removed. This
slows down the test case. Send the cleanup request and forget instead

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-06-19 12:48:41 +05:30
Prasanna Santhanam
24258648bf serviceCapabilityList is case sensitive
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-06-19 12:48:37 +05:30
Rayees Namathponnan
b6850c28dc CLOUDSTACK-3021: Correct the order of resources
Resources are ordered so that the cleanup succeeds.
domains are deleted after accounts under the domain are removed.

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-06-19 09:28:16 +05:30
Prasanna Santhanam
97eb35c82b NAT rule creation gives ipaddress as nat_rule.ipaddress
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-06-18 15:08:11 +05:30
Prasanna Santhanam
9e2eeb21ab Remove invalid references to diskdevice from tests
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-06-18 12:47:50 +05:30
Prasanna Santhanam
8801205fcf CLOUDSTACK-2882: Correct the secondary disk device on KVM
On kvm the disk device serial order is /dev/vda|vdb|vdc and so on.
This also fixes CLOUDSTACK-3018 and removes the redundant test in
blocker bugs. The snapshot related tests are now include in snapshots
suite.

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-06-18 12:45:39 +05:30
rayeesn
76520e807f import tag missing from test_shared_networks.py
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-06-18 11:43:39 +05:30
rayeesn
85ed216087 Removed junk characters from test_netscaler_lb.py
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-06-18 11:02:08 +05:30
Prasanna Santhanam
363a7b933c list the VPCs with vpc id not network id
test failed because of incorrectly listing the VPC using the networkid.

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-06-17 22:25:01 +05:30
Prasanna Santhanam
f8965b6f07 Concentrated planner granularity is at pod level
user.concentrated pod planner will try and put the VMs in the same pod.
Correcting the assertion to verify same pod and not same cluster. Test
may have passed earlier because of presence of single pod in the
deployment.

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-06-17 19:44:33 +05:30
Gaurav Aradhye
6a5c9d777f CLOUDSTACK-2935: Corrected VPC code related to cleanup
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-06-17 19:40:03 +05:30
Prasanna Santhanam
28b598b4ac Fix VPC tests related to user roles
Many vpc tests fail because of incorrect apiClient passed in to create
the VPC, network etc. The exact method used is getUserApiClient to fetch
the apiclient for a specific user.

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-06-17 17:32:05 +05:30
Prasanna Santhanam
a5189b1550 Fix the listVPC based on user roles
listVPC based on user roles uses the old account.account reference
causing the test to fail.

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-06-17 17:32:05 +05:30
Wei Zhou
f4dcca6e47 CLOUDSTACK-3019: add missing tags for test integration.component.test_advancedsg_networks.py 2013-06-17 10:40:40 +02:00
Prasanna Santhanam
0587d3a496 Moving maintenance mode into component/maint
All tests that could possible disrupt the runs of other tests because of
putting resources into maintenace will be put under maint/. This should
allow us to run the tests sequentially when other tests are not running
on a deployment.

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-06-17 12:33:57 +05:30
Prasanna Santhanam
e405703d5c CLOUDSTACK-3024: Invalid reference to testclient close
Testclient does not expose a close() method anymore for closing the
connection to cloudstack

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-06-17 10:05:02 +05:30
rayeesn
bf0265d21d CLOUDSTACK-3020: Fix assert error
If you do not give a name during vm creation,  UUID will be set for Name
and Display name will be blank.

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-06-17 10:05:02 +05:30
rayeesn
2f345c5b4d test_accounts.TesttemplateHierarchy;ostype added
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-06-16 11:10:37 +05:30
Edison Su
f41c800d88 merge to master 2013-06-14 19:06:33 -07:00
Edison Su
a715eb8121 clean up storage related code, and add lru replacement algorithm for cache storage 2013-06-14 15:55:59 -07:00
Gaurav Aradhye
ed1980c741 Retrying the SSH connection for verifying RR load balancing
Attempt multiple-ssh connections to ensure the loadbalancing is going as
per round robin policy.

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-06-13 20:11:49 +05:30
Min Chen
18aeef3ef1 Merge branch 'master' (up to commit
c30d9be3cea30339cfff40c1002906634291b373) into object_store.
2013-06-12 11:20:32 -07:00
SrikanteswaraRao Talluri
862b955059 CLOUDSTACK-2363: Fix to conform to library changes
Several fixes for account.account references are fixed to the correct
account. reference

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-06-12 21:31:40 +05:30
Gaurav Aradhye
19bed63193 CLOUDSTACK-2898: Fixing test case issue test_network.py:test_delete_account
When the router for an account is deleted listRouters throws an
exception, handle the exception to pass the test.

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-06-12 20:25:20 +05:30
Prasanna Santhanam
3f3c6aa35f Test should find Routing hosts not specific hypervisor_type
Bug in listing hosts that can be used for deploying VMs. Use Routing
hosts to identify hosts regardless of hypervisor_type.

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-06-10 21:05:33 +05:30
Prasanna Santhanam
ef0e0f36b2 deployment planners plan per clusters not hosts
Concentration or Dispersion granularity is at the Cluster level and not
at the host level. So correcting the test to ensure

a. concentrated planner puts the VMs in same cluster
b. dispersed planner puts the Vms in diff't clusters

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-06-10 20:40:07 +05:30
Wei Zhou
c2b20a455c Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/cloudstack 2013-06-10 14:15:52 +02:00
Wei Zhou
8220b9867c destroy vm after test in test_advancedsg_networks.py 2013-06-10 14:00:05 +02:00
Prasanna Santhanam
63494f8dfd rename the test methods to be more pythonic :)
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-06-10 16:37:41 +05:30
Prasanna Santhanam
03e283c4b3 Unskip skipped tests
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-06-10 15:50:50 +05:30
Prasanna Santhanam
4a99f47581 Fixes to test_vpc_lifecycle
- Removing redundant creation of VPC offerings
- Removing cleanup based on configurations.GC should happen by default
- Speed up the run by not waiting for complete gc.

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-06-10 15:41:56 +05:30
Prasanna Santhanam
6607b1e5f1 Adding serviceCapability LB:Public for VPC
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-06-10 14:52:47 +05:30
Prasanna Santhanam
20c1f2c346 CLOUDSTACK-2914: lbScheme Public should be specified in NetworkOffering
NetworkOfferings now require a mandatory scheme in the
serviceCapabilityList to create a VPC loadbalancer on the public side.
This commit fixes the test for VPC networks. Additionally there needs to
be a fix for making this the default behaviour so as not to hurt the
backwards compatibility.

test still fails because of CLOUDSTACK-2915 however which is a related
network ACL backwards compat issue. See bug for more details.

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-06-10 13:38:33 +05:30
Prasanna Santhanam
52f9d5efe2 Improve debug message when failing the test
Added the listVM response as part of debug logging

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-06-10 13:38:33 +05:30
Prasanna Santhanam
8bc72ad55c Unskip all skipped tests
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-06-10 10:04:52 +05:30
Prasanna Santhanam
c30d9be3ce Remove vm from cleanup list
VM will be cleaned up when the account is cleaned up

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-06-08 13:27:08 +05:30
Prasanna Santhanam
195e823b10 CLOUDSTACK-2882: Fix the diskdevice based on hypervisor
KVM > /dev/vda
Xen > /dev/xvdd

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-06-07 17:08:19 +05:30
Prasanna Santhanam
302741d309 Log the actual NAT ip attempting to SSH into
VM IP is the guest IP and it's the NAT ip that is used for ssh.

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-06-07 15:02:55 +05:30
Prasanna Santhanam
1c9cd9d360 CLOUDSTACK-2884: str object interpreted as index
Casting to an int for almostEqual comparison

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-06-07 14:49:00 +05:30
Prasanna Santhanam
6208a51283 CLOUDSTACK-2889: Resize volume unsupported on vmware
Skip the tests if the VM deploys on a VmWare host since we do not
support resizing volumes on vmware (yet)

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-06-07 11:31:10 +05:30
Prasanna Santhanam
c05c1052f5 VM objects are required for deletion/remove from LB
Application Loadbalancer remove and delete will get the id/uuid from the
vm object.

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-06-06 09:37:42 +05:30
Prasanna Santhanam
1ddcd3e697 refactor network acl test to use marvin libraries
Refactor the network ACL test to use the integration libraries

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-06-05 20:32:34 +05:30
SrikanteswaraRao Talluri
c1e9b8c48c CLOUDSTACK-2851: test_service_offering.py has account details missing
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-06-05 20:32:34 +05:30
SrikanteswaraRao Talluri
2c84866e02 CLOUDSTACK-2858: Fix copy tempate/iso tests
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-06-05 18:32:27 +05:30
Prasanna Santhanam
0a9b9f7944 Internal LB test refactored to use integration lib
Refactoring the internal lb test to use the marvin libraries. Also added
reqd methods for the internal lb related APIs into integration.lib

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-06-05 17:00:47 +05:30
Saksham Srivastava
17267794ad CLOUDSTACK-681: Dedicated Resources - Explicit Dedication, Private zone, pod, cluster or host. <Patch1>
This feature allows a user to deploy VMs only in the resources dedicated to his account or domain.

1. Resources(Zones, Pods, Clusters or hosts) can be dedicated to an account or domain.
   Implemented 12 new APIs to dedicate/list/release resources:
   - dedicateZone, listDedicatedZones, releaseDedicatedZone for a Zone.
   - dedicatePod, listDedicatedPods, releaseDedicatedPod for a Pod.
   - dedicateCluster, listDedicatedClusters, releaseDedicatedCluster for a Cluster
   - dedicateHost, listDedicatedHosts, releaseDedicatedHost for a Host.
2. Once a resource(eg. pod) is dedicated to an account, other resources(eg. clusters/hosts) inside that cannot be further dedicated.
3. Once a resource is dedicated to a domain, other resources inside that can be further dedicated to its sub-domain or account.
4. If any resource (eg.cluster) is dedicated to a account/domain, then resources(eg. Pod) above that cannot be dedicated to different accounts/domain (not belonging to the same domain)
5. To use Explicit dedication, user needs to create an Affinity Group of type 'ExplicitDedication'
6. A VM can be deployed with the above affinity group parameter as an input.
7. A new ExplicitDedicationProcessor has been added which will process the affinity group of type 'Explicit Dedication' for a deployment of a VM that demands dedicated resources.
   This processor implements the AffinityGroupProcessor adapter. This processor will update the avoid list.
8. A VM requesting dedication will be deployed on dedicatd resources if available with the user account.
9. A VM requesting dedication can also be deployed on the dedicated resources available with the parent domains iff no dedicated resources are available with the current user's account or
   domain.
10. A VM (without dedication) can be deployed on shared host but not on dedicated hosts.
11. To modify the dedication, the resource has to be released first.
12. Existing Private zone functionality has been redirected to Explicit dedication of zones.
13. Updated the db upgrade schema script. A new table "dedicated_resources" has been added.
14. Added the right permissions in commands.properties
15. Unit tests:  For the new APIs and Service, added unit tests under : plugins/dedicated-resources/test/org/apache/cloudstack/dedicated/DedicatedApiUnitTest.java
16. Marvin Test: To dedicate host, create affinity group, deploy-vm, check if vm is deployed on the dedicated host.
2013-05-30 01:07:01 -07:00
Ashutosh
85062a75ae Test cases for assignVirtualMachne feature.
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-05-30 11:03:25 +05:30