Commit Graph

2439 Commits

Author SHA1 Message Date
Gaurav Aradhye f946747091 Automation: Resource Limits - memory limits test cases 2013-09-13 15:34:12 +05:30
venkataswamybabu budumuru 2ea66124f2 Signed-off-by: venkataswamybabu budumuru <venkataswamybabu.budumuru@citrix.com>
Corrected Indentation issues.
2013-09-12 18:33:41 +05:30
venkataswamybabu budumuru 4356ecc627 Signed-off-by: venkataswamybabu budumuru <venkataswamybabu.budumuru@citrix.com>
Skipped the test "test_createSharedNetwork_usedVlan" as there is another test
(test_createSharedNetwork_usedVlan2) which is covering the righ scenario.
moreover this test is creating issues for couple of other tests due to
incompleteness
(cherry picked from commit 237f8ec702)
2013-09-12 18:26:31 +05:30
sanjeevneelarapu ce479ef0d2 CLOUDSTACK-702: Tests for Multiple IP Ranges 1. Removed advanced tag from all the tests. At the movement scripts support only basic zone 2. Added a test to deploy guest vm after adding ip range in new CIDR
CLOUDSTACK-702: Removed test for deploying vm after adding new cidr
1.This test would block parallel execution of remianing tests
2.Removed list_Routers proc and unused code
3.Added few more debug statements

Signed-off-by: sanjeevneelarapu <sanjeev.neelarapu@citrix.com>
Signed-off-by: venkataswamybabu budumuru <venkataswamybabu.budumuru@citrix.com>
(cherry picked from commit daaec56d40)
2013-09-06 15:27:59 +05:30
sanjeevneelarapu 883b9802d4 CLOUDSTACK-4203: Adding a test for migrating volumes of stopped vms to test_stopped_vm.py
Signed-off-by: sanjeevneelarapu <sanjeev.neelarapu@citrix.com>
Signed-off-by: venkataswamybabu budumuru <venkataswamybabu.budumuru@citrix.com>

s
(cherry picked from commit dfee47e3b6)
2013-09-05 18:54:33 +05:30
Ian Duffy 7ded3c803d Prep for merge with master 2013-08-31 21:55:27 +01:00
Prasanna Santhanam fb7eb06198 get host credentials from marvin configuration for ssvm test
(cherry picked from commit 6371d3b98c56784e4a3588c2546be18aa79cb595)
2013-08-31 12:50:58 +05:30
Ian Duffy bdba0ddeed Bring up to date with master 2013-08-31 00:25:48 +01:00
Prasanna Santhanam 3c38a1cd9f cpu_limits module of tests 2013-08-29 14:30:55 +05:30
Prasanna Santhanam 58bcce0142 Formatting and tab errors in the new test suites for limits
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-08-29 14:27:34 +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
venkataswamybabu budumuru 2abb1cb282 CLOUDSTACK-4378 : Fixing the typo in Apache License Text
Signed-off-by: venkataswamybabu budumuru <venkataswamybabu.budumuru@citrix.com>
2013-08-27 15:23:04 +05:30
venkataswamybabu budumuru fab3185187 CLOUDSTACK-4378 : Existing tests were deploying VMs as admin and creating
affinity groups as admin. There are few reason why this needs to be changed and
the reasons are as mentioned below
1. we usually create an account for each test and we run the test as the newly
created account and not as admin.
2. tests were failing during deployVirtualMachine step when they are run as
admin and if anyone during these tests create an additional isolated networks
as admin account .
(P.S: current deployVirtualMachine in the scripts is not taking the networkId
and hence it fails when there are multiple isolated networks because it doesn't
know which one to pick)
Signed-off-by: venkataswamybabu budumuru <venkataswamybabu.budumuru@citrix.com>
(cherry picked from commit 98dfd65291)
2013-08-27 13:53:28 +05:30
Sowmya Krishnan 6334b738d0 CLOUDSTACK-4491: Added missing NS setup
Signed-off-by: venkataswamybabu budumuru <venkataswamybabu.budumuru@citrix.com>
(cherry picked from commit 239281a401)
2013-08-27 12:13:46 +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 f7df3ef9f1)
2013-08-27 10:59:13 +05:30
Jayapal 6837f162ab Marvin test cases for multiple ip address per nic 2013-08-26 17:11:02 +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 35ee38385c)
2013-08-26 10:40:44 +05:30
Sowmya Krishnan f724c91296 CLOUDSTACK-4487: No need to delete offerings or wait on offering cleanup
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit bc5b6ae0e4)
2013-08-26 10:36:29 +05:30
Girish Shilamkar 6c73308d0c CLOUDSTACK-4144: Add free vlan to shared network in TestVMLifeCycleSharedNwVPC
Shared network has to have specifyVlan = True. So changed it to True
and aded a function to get free vlan.

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit 9ff40829a9)
2013-08-24 10:06:22 +05:30
Prasanna Santhanam aec21b3a36 local storage is not enabled on the zone
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit d8e5b8907bc97ca58017c0aedff03658a63f1955)
2013-08-24 10:04:06 +05:30
Prasanna Santhanam 7d4a575631 Appropriately skip the test_nic setup when in a basic zone 2013-08-23 17:02:35 +05:30
SrikanteswaraRao Talluri 08627aa753 CLOUDSTACK-4448: Fix test_03_RouterStartOnVmDeploy to stop all the pre-existing VMs before starting the test
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit 4a8119c807)
2013-08-23 12:39:49 +05:30
SrikanteswaraRao Talluri c5165643f4 CLOUDSTACK-4447: Fix router tests by listing Routers for that account of type 'Isolated'.
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit db673b2b9b)
2013-08-23 12:39:48 +05:30
SrikanteswaraRao Talluri 0454723f98 CLOUDSTACK-4425:Fix to attach uploaded volume to a stopped VM test
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit 8762a0d0c6)
2013-08-23 12:39:48 +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
SrikanteswaraRao Talluri c36cf73cfb CLOUDSTACK-4437: Fix iso usage event count to match the number of image stores
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit 502b2ff0f90f5b0e8741335643f7710ce650633f)
2013-08-22 12:39:42 +05:30
Prasanna Santhanam 197108c6a3 CLOUDSTACK-4442: Include a test for creating networks with sourcenat only
The test attempts to create a network with offering serving only
dhcp,dns and sourcenat. However the source NAT functionality itself
isn't tested as reported in the bug. So the test will pass.

TODO: come up with a way to test source nat without enabling additional
services for pf/staticnat

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit 79df10ee24840dc7fe8fdb4ccbde240658a109fc)
2013-08-22 12:39:31 +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 1c31ee22d4)
2013-08-22 10:27:56 +05:30
Gaurav Aradhye 26705cf53f CLOUDSTACK-4422: Corrected the wrong service paths
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit cff832044043a361d360f775c7227a77ac99509a)
2013-08-21 15:42:52 +05:30
Prasanna Santhanam eeb53d52ee CLOUDSTACK-4225: Remove additional / in the nfs path
nfs://nfs-server://export/share ->
nfs://nfs-server:/export/share

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit f056af8cbd)
2013-08-21 15:20:27 +05:30
Prasanna Santhanam 3a29c73447 CLOUDSTACK-4225: list the snapshot path on secondary store
list the snapshot on secondary store. avoid changing directories and
additional debug commands.

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit 5b66677d74)
2013-08-20 19:39:43 +05:30
Prasanna Santhanam 463afeef3b CLOUDSTACK-4225: new_virtual_machine is not a attr of the test
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit 3605280a2eb49c719c022d411fd90596c7a2a24e)
2013-08-20 19:33:33 +05:30
Gaurav Aradhye ac77660864 CLOUDSTACK-4356: Added code for checking empty host, skip the test if no empty host found
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-08-20 17:31:24 +05:30
Prasanna Santhanam 9ed5083f9b CLOUDSTACK-4257: Additional asserts for storage migration test
Test whether valid storage pools are listed and at least one pool is
available for migration.

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit a82f66e0fa)
2013-08-20 17:28:41 +05:30
Saksham Srivastava ed745d3489 CLOUDSTACK-4257: [Automation] test_storage_motion test cases failed during with unexpected result in listStoragePool API call
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit a9e45bf776)
2013-08-20 17:28:41 +05:30
Sheng Yang 3c1b6c69be Automation: Disable TestVMLifeCycleSharedNwVPC test suite
Rather than TestVMLifeCycleVPC.

Shared network's setup is wrong.
2013-08-19 11:25:37 -07:00
Prasanna Santhanam 0eb1690872 CLOUDSTACK-4340: Add more debug logging
VM (id) moves from host (id) to host (id)

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit da0bb63005)
2013-08-19 15:42:37 +05:30
Prasanna Santhanam aec34865ea CLOUDSTACK-4396: Invalid case comparison leaves egress rule unprogrammed
Thereby failing the wget for the cloud-setup-guest-password script which
in turn fails the test.
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit 8576b1ddc9)
2013-08-19 15:18:04 +05:30
Prasanna Santhanam f13a6a0deb CLOUDSTACK-4225: Fix template references in setUpClass
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit 7768613edc)
2013-08-19 15:00:21 +05:30
Prasanna Santhanam 12380835b5 CLOUDSTACK-4394: remove cleanups for offerings
offerings do not need to be cleaned up

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit b9c2471cfc5e051db4478783c6928f6e0c5a1f7a)
2013-08-19 14:39:43 +05:30
Ashutosh K d5203b19e0 Additional tests for custom_hostname
- vm with existing displayname
- change display name post deploy
- deploy with unsupported chars in display name
- vm.instancename.flag = true and deploy vm
- vm.instancename.flag = false and deploy vm

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-08-15 10:46:29 +05:30
Ashutosh K 31c4a9159a Removed Invalid test from TestRemoveUserFromAccount see -> http://markmail.org/message/vk7wyl3b57cltj44
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit 84e81df2a3)
2013-08-15 10:44:43 +05:30
Ashutosh K 0d0409bddb CLOUDSTACK-3594: New affinity group tests
- list all vms in affinity group
- delete an affinity group by id
- admin deletes affinity groups
- list affinity groups as admin
- list affinity groups by accountid/domainid
- list affinity groups by group id
- user deletes his affinity group

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit 682e995a4a)
2013-08-15 10:38:37 +05:30
Sanjay Tripathi 151fc3e837 CLOUDSTACK-3688: Test cases test_accounts.TestDomainForceRemove.test_forceDeleteDomain, not found the domain to delete and failed.
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-08-14 20:04:55 +05:30
Prasanna Santhanam 500545cb82 flaky RvR tests to run sequentially
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit a04599b3ca)
2013-08-14 19:54:05 +05:30
Prasanna Santhanam d771e3fa5b CLOUDSTACK-3961: multi network test in VPC
Test delete network rules in a VPC. Multiple Fixes
- correct protocol ICMP->TCP
- Remove LB actions from non-lb network
- correct private gateway CIDRs to not overlap with vpc guest cidrs
- remove unrequired SSH on non-lb network
- typos

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-08-14 17:04:23 +05:30
Prasanna Santhanam 21d8982484 CLOUDSTACK-4252: Correct the cleanup order of resources
Apply a LIFO cleanup when deleting cloud resources

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit 9e7983ac18)
2013-08-14 16:32:30 +05:30
Prasanna Santhanam 465adf984d CLOUDSTACK-4258: Additional debug to the assertion
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-08-14 15:27:42 +05:30
Prasanna Santhanam 042f998db4 CLOUDSTACK-4262: Wait twice network.gc for vpcvr shutdown
Wait a little bit longer for the VpcVr to shutdown on network shutdown.

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit 4ed5033a59c7aa5fe95f865c5fcbdba21c03616e)
2013-08-14 15:27:42 +05:30
Prasanna Santhanam 211f519421 Additional logging and better error reporting on assert fail
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit 05bb315636eba87722ce3f49fe61bdd6bc4dcc32)
2013-08-14 15:27:42 +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
Rayees Namathponnan ab254a5131 TestVMLifeCycleSharedNwVPC need to disable since its failing, netscaler configuration need to change
Signed-off-by: Edison Su <sudison@gmail.com>
2013-08-12 17:20:01 -07:00
Prasanna Santhanam 73d49d0907 Fix test naming to reflect the test purpose
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit 445341355d18d280c745e8a1abcf39bafd938f91)
2013-08-12 14:42:33 +05:30
Prasanna Santhanam 59f944d7c3 CLOUDSTACK-3017: Add tags to Cisco ASA tests
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit cdff1360674385e538cd9128160030f08588bda9)
2013-08-12 12:03:45 +05:30
SrikanteswaraRao Talluri 4bdaffb66a CLOUDSTACK-4230: Fix the script to not to add egress rule if zone network type is not advanced
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit 8872af90d3d1014bf3fdfeb5f78652d5184f42cc)
2013-08-10 19:17:54 +05:30
Prasanna Santhanam 3ba68a1624 Add more debug logging to download detached volume test
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit 3455a76237)
2013-08-10 16:19:10 +05:30
Prasanna Santhanam 472370f888 CLOUDSTACK-4225: change to directory where snapshots are mounted
return back to HOME_DIR and unmount the secondary storage

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit 99329dfa4a)
2013-08-10 16:18:59 +05:30
Prasanna Santhanam 2100789f23 Fix indent to stop tabnanny from complaining
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit 78c802da1343abe2c82f9a7dfb7903f81287abe9)
2013-08-09 15:55:13 +05:30
Prasanna Santhanam 75cd6cce40 Fix VPC test
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-08-09 12:08:27 +05:30
Prasanna Santhanam b3fb75e6c6 Fix redundant router deployment tests
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-08-09 12:08:16 +05:30
Prasanna Santhanam bad72a0aeb Fix volumes tests
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-08-09 12:08:02 +05:30
Prasanna Santhanam ed70eaf2ce include test for volumes created in non-root domains
Test verifies that volumes in non-root domains are visible to the user
that created them.

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-08-08 22:20:04 +05:30
Girish Shilamkar f1734ed71d CLOUDSTACK-4144 Make specifyVlan to false for shared network
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-08-08 16:59:49 +05:30
Saksham Srivastava ac6b26ff81 CLOUDSTACK-4021:[Automation] TestExplicitDedication.test_01_deploy_vm_with_explicit_dedication failed to deploy VM
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit 8191f5c690)
2013-08-08 16:57:47 +05:30
Prasanna Santhanam ceec1fb243 Fix the kwargs passed in as dict to listVirtualMachines
listVirtualMachines queried using tags needs the tags (key,value) to be
passed as a dictionary.

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit c2840b93f5)

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-08-08 12:09:32 +05:30
Sheng Yang 17b2bda13c CLOUDSTACK-3939: Add wait time after VM boot up
If VR is reboot before VM booted up, VM cannot get IP. Add timeout for VM
booting up.
2013-08-07 17:43:05 -07:00
Sheng Yang cab72c0193 Automation: Fix test_redundant_router_network_rules.py
Stop VR after VM booted up.
2013-08-07 16:08:59 -07:00
Sheng Yang 8e395b2a89 Automation: Fix test_vpc.py 2013-08-07 15:51:06 -07:00
Prasanna Santhanam d1c01a79a5 Fix missing key
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-08-07 22:52:45 +05:30
Girish Shilamkar 1a46bbd893 Test assumes storagetype to be local therefore test_egress_fw_rules fail.
Removed storagetype definition.

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-08-07 20:30:52 +05:30
Gaurav Aradhye a6076818e0 Automation: Affinity Groups- Removing invalid test case
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit ae378940c3)
2013-08-07 19:44:16 +05:30
Prasanna Santhanam 37b8775203 fix snapshots tests
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit baf0400124)
2013-08-07 19:38:01 +05:30
Prasanna Santhanam 8ac1796226 Fix invalid references
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-08-07 16:10:53 +05:30
Prasanna Santhanam 70fdd43c84 Fix snapshot limit tests
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit 79cd3df6fb)
2013-08-07 15:09:46 +05:30
Prasanna Santhanam 03439e497e remove local path in cloud-set-guest-password script
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit 2d4e17e8d4)
2013-08-07 14:48:21 +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
Alena Prokharchyk 638f8e0046 CLOUDSTACK-4120: fixed automation script for resource tags 2013-08-06 12:54:50 -07:00
rayeesn 78bc6314ea updated interface in netscaler config test script
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-08-06 22:03:09 +05:30
Prasanna Santhanam 14a889df36 Add missing sleep
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit 22da47087b0ed67bb8bf30b92b1199cc67898150)
2013-08-06 19:55:29 +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 64591e65be)
2013-08-06 18:46:44 +05:30
Prasanna Santhanam 31493d8d83 add cleanup list
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit 7f25510a280271a890a4db8d565fdc75316c66ae)
2013-08-06 16:58:18 +05:30
Prasanna Santhanam c5054d8957 Fix egress rules offering - rvr not required
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit b1e6188308d43183219e9844fa7465a66064c586)
2013-08-06 15:55:46 +05:30
Prasanna Santhanam 8d0f08a4b8 Egress Rules: Corrections to few areas
1. correcting the log_test_exceptions decorator so nose testrunner can
detect and document the running test
2. correct the wait for network cleanup -> network.gc
3. Remove commented skips
4. Sanitize host passwords

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-08-06 13:22:59 +05:30
ashutoshkelkar c1f8dc982d Adding Tests for Egress Firewall rules advance zone. Code review changes and added tests for RVR and DB table value checks
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-08-06 13:22:59 +05:30
Prasanna Santhanam da1a79dab7 remove hardcoded vlan for shared network test
use a vlan outside of the vlans managed by cloudstack.

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-08-05 22:05:21 +05:30
Prasanna Santhanam f17e046319 Log the API exception for debugging
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-08-05 20:16:15 +05:30
Prasanna Santhanam 0561daa54d No need to cleanup lightweight entities like offerings
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit 1670aeac360b591f513a76a0c77158672f3e387f)
2013-08-05 20:14:07 +05:30
Sheng Yang b96fea2e06 Automation: BVT: Fix test_guest_vlan_range.py due to updated API 2013-08-02 16:47:32 -07:00
Sheng Yang 498c18f654 Automation: Fix test_vpc_network_staticnatrule.py 2013-08-02 14:04:35 -07:00
Prasanna Santhanam b8c01cfdd0 moving rvr deployment planning to maint suites
this suite performs enable/disable of pods/clusters in the zone causing
other tests to fail deploying VMs. Move it to sequential execution suite
in the maintenance tests

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit 73de7646ffd289b779d5c45cfee84e07551c3a0c)
2013-08-02 22:23:44 +05:30
Prasanna Santhanam 51cacadead vpn tags are not supported resource types
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit 6f63817d07)
2013-08-02 22:10:48 +05:30
Prasanna Santhanam 04cc1be58a make name=value when calling publicipaddress
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-08-02 22:05:13 +05:30
Prasanna Santhanam 052d6e251b CLOUDSTACK-3926: Add isportable=True explicitly
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-08-02 18:16:49 +05:30
Gaurav Aradhye 514cb91906 CLOUDSTACK:3798: Removed wrong assert. Login was getting successful, assert was failing. Anyway it is being checked in the assert below for sesionKey
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit cb1a5a49f4)
2013-08-02 16:47:35 +05:30
Bharat Kumar eaeef9e994 CLOUDSTACK-3753 fixed the test test_non_contigiousvlan.py
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit 6e83a54ffb)
2013-08-02 16:34:10 +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
Prasanna Santhanam 16c1de84e0 Remove duplicate tests for stopped_vm
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-08-02 12:52:26 +05:30
Sheng Yang f3dd0c6008 Automation: More fix fox test_vpc_vm_life_cycle.py
You cannot reach VPC router IP because you're in one of it's networks.

As well as adding missing import for test_vpc_network_pfrules.py
2013-08-01 18:52:30 -07:00
Rayees Namathponnan 07dcd6ffb1 Automation: fixed cleanup issue with test_vpn_user.
Reviewed-by: Sheng Yang <sheng.yang@citrix.com>
Signed-off-by: Sheng Yang <sheng.yang@citrix.com>
2013-08-01 18:09:51 -07:00
Sheng Yang 6007380252 Automation: Reconnect the ssh for test_vpc_vm_life_cycle.py
Since VM are reused for test cases, we need to reconnect the SSH client to avoid
error like:

Failed to SSH into VM, SSH session not active
2013-08-01 18:00:23 -07:00
Prasanna Santhanam 912754249c CLOUDSTACK-2921: Added more logging to attach failure
Also reduced size of attached disk to 1GB

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit ba059dd0ae)
2013-08-01 22:23:28 +05:30
Prasanna Santhanam 7b352603bd CLOUDSTACK-2921: Fix the change service offering test on stoppedvm
There is no need to attach a volume to the VM when doing the
changeserviceOffering test. Condensed the test to verify that the VM's
offering is changed successfully when stopped and reflects when VM is
started.

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit 35492a3668)
2013-08-01 21:54:43 +05:30
Prasanna Santhanam e8594a22ef CLOUDSTACK-3865: Additional debug logging for size mismatch
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit 76764e115d311611096fd5df6ce849c12b22ed7f)
2013-08-01 21:18:45 +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 a2dc4b1ca9 CLOUDSTACK-3989: We don't hold the vm object
VirtualMachine.list( only gives the list of vms but not the vm object as
returned by VirtualMachine.create( any operations on the listed VMs then
fails. Explicit call to startVirtualMachine as in setUpClass fixes this.

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit f064ad22dc)
2013-08-01 16:43:25 +05:30
Prasanna Santhanam eb5099a2a2 Include the exception from urllib in wget test
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-08-01 16:23:16 +05:30
Prasanna Santhanam b303fd3428 CLOUDSTACK-3999: Fix the skipTest typo
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-08-01 16:10:57 +05:30
Sheng Yang bb95624708 Automation: More fix for test_vpc_network_lbrules.py 2013-07-31 23:14:50 -07:00
Sheng Yang c92cb4f3d0 Automation: Removing the template's UUID
My bad...
2013-07-31 22:41:47 -07:00
Sheng Yang 6ebf7e273d Automation: Fix test_vpc_network_lbrules.py 2013-07-31 22:34:22 -07:00
Sheng Yang 7e9e804484 Automation: Fix test_vpc_network_pfrules.py
Need to wait VM to boot up before stop the VR.

Also test 4 is identical to test 3, fix it.
2013-07-31 19:09:45 -07:00
Sheng Yang b0dda92025 Automation: Fix test_vpc_routers.py
Account cannot be cleaned per test case since it's setup in setUpClass()
2013-07-31 15:03:58 -07:00
Prasanna Santhanam fee7a868e1 CLOUDSTACK-3916: Fix silly string formatting mistake
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-07-31 11:12:48 +05:30
SrikanteswaraRao Talluri bd7bff792b CLOUDSTACK-3923: Fix the scripts to select default vpc offering
CLOUDSTACK-3923: Fix the scripts to select default vpc offering

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-07-31 11:12:48 +05:30
Sheng Yang 7882ef512c CLOUDSTACK-3864: Fix test_blocker_bugs.py for firewall
Currently we're using enable/disable static nat rather than create IP forwarding
command. The list of StaticNAT won't work.

Also change to use API to verify the rules rather than look into db directly.
2013-07-30 19:04:35 -07:00
Sheng Yang e4f8068ef1 CLOUDSTACK-3826: Automation: Fix test_vpc_routers
1. You cannot check routers after your destroy them
2. You cannot use the old value in checking migration status.
3. You cannot upgrade VR to a non-system offering.
2013-07-30 16:52:53 -07:00
Gaurav Aradhye 906ea82572 CLOUDSTACK-3168: Fix test_reboot_router.py to ssh using public IP
test_reboot_router.py was trying to ssh to vm using private IP
and hence it failed with error "No route to host."
Fixed the testcase to ssh using public IP.

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-07-30 20:12:23 +05:30
Prasanna Santhanam e78f93224f Fix url for upload volume test
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit d0a851ec5de261c83babd94a07dd1091f804110d)
2013-07-30 15:49:35 +05:30
Prasanna Santhanam d875a36e5c CLOUDSTACK-3916: The size test is invalid
ISO size can differ from the mounted packages within the ISO. Remove the
size check and only perform attach and detach in the guest.

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-07-30 14:12:33 +05:30
Prasanna Santhanam 8ca5097752 CLOUDSTACK-3930 : Add cleanup
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit 308fa41416dc37b4651087c8e30da31a0e9a63d3)
2013-07-30 13:51:54 +05:30
Prasanna Santhanam 1efa542433 CLOUDSTACK-3929: Remove references to unittest.
Skip is done using cloudstackTestCase inheriting from unittest as
self.SKipTest

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit 797450a5ba)
2013-07-30 12:41:18 +05:30
Prasanna Santhanam f4dd80989f add debug message
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit 56043eb6cf)
2013-07-30 11:43:02 +05:30
Sheng Yang 16c3d21eec Automation: add object to cleanup set immediately after creation
Otherwise it's possible that the later failure would prevent the object from
been clean up.
2013-07-29 17:15:34 -07:00
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
Gaurav Aradhye 3a3145507d CLOUDSTACK-3841: Fixed test case issue. The exception raised earlier was valid behaviour, added missing assertRaiss statement
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit 67c96d419d)
2013-07-29 19:57:33 +05:30
Prasanna Santhanam dd1717883e remove vpc offering from cleanup.
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit 83f4c3289a)
2013-07-29 16:38:15 +05:30
Prasanna Santhanam e4de46e4b1 CLOUDSTACK-3901: Test for vpc offerings
- Fix the test that ensures vpc offerings cannot be created with
  firewall service
- CLOUDSTACK-3902 blocks the fix for vpc offerings created without
  source nat service. Without source NAT VPC creation should fail.

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-07-29 16:21:07 +05:30
Prasanna Santhanam 098c2db4b7 CLOUDSTACK-3900: Remove the offering that is deleted before cleanup
One of the VPC offerings (4) is deleted in the test before moving into
teardown. This offering should be removed from cleanup.

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit d66edb5e2b)
2013-07-29 15:56:26 +05:30
Sowmya Krishnan eae874918d CLOUDSTACK-3744 Fixed order of cleanup objects, removed offerings cleanup
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit 08c82883f6)
2013-07-29 15:35:29 +05:30
Prasanna Santhanam ade13bb773 Remove duplicate while-loop retries during ssh
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit 53feae08de)
2013-07-29 14:52:07 +05:30
Prasanna Santhanam 9c36ad722b CLOUDSTACK-3795: When listing the publicipaddress provide assocNtwkId
PublicIpAddresses.list takes an associatednetworkid which lists all the
public ip addresses in the deployment's physical network associated with
the vnet.

Various tests failed because of `networkid` used in place of
`associatednetworkid`

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit b88fe8233af699786de6d08a6bc981546538898d)
2013-07-29 14:38:37 +05:30
Prasanna Santhanam 76c90efa40 Removing invalid test for accounts
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit f83187585e)
2013-07-28 17:00:48 +05:30
Prasanna Santhanam 3fec71e748 Fix domain deletion in test_project_resources.py
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit a019f34572)
2013-07-28 11:56:50 +05:30
Prasanna Santhanam 40b59d7e2a CLOUDSTACK-2882: We are mounting an ISO not a volume
So fdisk -l doesn't list the mounted iso. Instead use showmount -e to
find the mounted device.

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit 93f79e1a15)
2013-07-27 21:53:16 +05:30
Prasanna Santhanam 738523b57c CLOUDSTACK-2882: Additional device types for IDE/SCSI
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit b39d302888)
2013-07-27 21:53:11 +05:30
Sheng Yang c576917107 Automation: Fix endless silly test cases 2013-07-26 00:20:01 -07:00
Sheng Yang 5077ed7e8b Automation: Fix test_redundant_router.py
1. Many state check need to wait for while for status to update
2. BACKUP router would still have eth2 and IP, but it's not enabled. Fix the
case.
2013-07-25 20:47:16 -07:00
Prasanna Santhanam 23e7753741 Fix bunch of affinity group tests
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit 2b0a972676)
2013-07-25 22:51:35 +05:30
Ian Duffy eaa4143371 Merge LDAPPlugin
Signed-off-by: Abhinandan Prateek <aprateek@apache.org>
2013-07-25 17:54:52 +05:30
Prasanna Santhanam 1d5feb158b CLOUDSTACK-3796: Fix the missing attribute for zoneid
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-07-25 15:54:26 +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
Prasanna Santhanam e432ce6f77 CLOUDSTACK-3021: Do not delete the domain
We delete the accounts within the domain thereby cleaning up resources.
Also corrected the typo in the test description. ForceDelete test was
called without force option and vice versa

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit a3c21b3682db51986e7cc54d8f25b1dbf4ae9eaa)
2013-07-25 14:14:49 +05:30
Sheng Yang 29ee68821e Automation: Fix test_vpc_network_staticnatrule.py
And remove NAT rule part from static nat test case. Remove static nat part from
port forwarding test case.
2013-07-24 18:50:20 -07:00
Sheng Yang 2b1266e276 Automation: Fix test_vpc_vms_deployment resource release
The account may be failed to be deleted in the test case, so we still need to
clean it up after.
2013-07-24 16:55:03 -07:00
Sheng Yang 7150afab20 Automation: Redundant routers don't have the same link local IP
It's invalid test case.
2013-07-24 16:09:34 -07:00
Sanjay Tripathi cd51303f20 CLOUDSTACK-3696: Test case test_project_limits.TestResourceLimitsProject.test_06_volumes_per_project failed due to volume usage exceeded for project.
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit 5009d3b82a)
2013-07-24 23:05:17 +05:30
Sowmya Krishnan d0971ce806 Add wait while Netscaler recognizes service to be up
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit a7df12edbf)
2013-07-24 22:43:13 +05:30
Prasanna Santhanam 64c120c0db Fixing minor typos
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-07-24 18:04:29 +05:30
Prasanna Santhanam 368f32fa25 CLOUDSTACK-3698: Ensure VM is accessible before stopping VR
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-07-24 18:04:29 +05:30
Prasanna Santhanam 2b8f1bde8f CLOUDSTACK-3724: optimizing cleanup
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit 8b7d00ee4de53d15a1d495c3c1fdd166b1651460)
2013-07-24 16:53:32 +05:30
Likitha Shetty 2424dcf62e CLOUDSTACK-3743. test_tags.py:TestResourceTags not tearing down the account. 2013-07-24 11:18:43 +05:30
Sheng Yang 35f4aa30c8 Automation: Add sleep for RvR state checking
Because the mgmt server would update RvR state only every 30 seconds by default.
2013-07-23 22:45:58 -07:00
Sheng Yang f3cf319c37 Automation: Fix clean up in tearDown
We shouldn't clean up class-scope resources(_cleanup). We should create local
ones(cleanup) then clean it.

So:
cls._cleanup would be used for class-scope resources.
self.cleanup would be used for each unit.
2013-07-23 21:20:02 -07:00
Sowmya Krishnan 1898fa5046 CLOUDSTACK-3693 Fix more account objects 2013-07-23 13:59:20 -07:00
Sowmya Krishnan c6ea21866e CLOUDSTACK-3697 LB rule clean up already done in cleanup project 2013-07-23 13:59:15 -07:00
Sheng Yang 7faa71dc68 Automation: Fix different names for cleanup 2013-07-23 13:15:07 -07:00
Sheng Yang c1e6968464 Automation: Fix typo in test_redundant_network_rules
It result in failed to setUp and clean up.
2013-07-23 12:22:14 -07:00
Sheng Yang 5b238fa4af Automation: Fix enormous missing tearDown() for test cases
This result in countless test case failure because many test case units didn't
clean up after it.

The regression test result should be improved quite a bit after this change.
2013-07-23 12:10:37 -07:00
Sanjay Tripathi 5c45645932 CLOUDSTACK-3724: Test case "test_vpc_vms_deployment.py" failed to find network offering.
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit a06b3f40eb)
2013-07-23 21:40:52 +05:30
Sowmya Krishnan d2ce17ea73 Fixed account objects CLOUDSTACK-3726
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit 1cd435e25a)
2013-07-23 20:51:16 +05:30
Sanjay Tripathi 3e6e66fee1 CLOUDSTACK-3689: Test case test_accounts.TesttemplateHierarchy.test_01_template_hierarchy failed during ListTemplate call.
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit 6b2c9bf3ae)
2013-07-23 18:02:29 +05:30
Prasanna Santhanam 63cf7aa8ce CLOUDSTACK-3678: Multiple fixes to shared network tests
- No need to cleanup offerings as they are lightweight entities
- Cleanup order changed to clean accounts, networks and then the domains

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit c44fa2cc20)
2013-07-23 18:02:29 +05:30
Prasanna Santhanam 821bbe0610 CLOUDSTACK-3728: same issue as CLOUDSTACK-3719
Make the size explicit parameter to random_gen() for snapshot data

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit 874d59847aa6bfd12e6967891a21f1746987b566)
2013-07-23 18:02:29 +05:30
Prasanna Santhanam 4585e46a35 CLOUDSTACK-3719: wrong declaration of random_gen call
since random_gen can take an id to prepend a testcase identifier to the
created cloud resource, we need to explicitly specify the size param. In
vmsnapshot test create the random_data string of size (100)

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit 5bb3a56acac440b022ed6c45f97d0d85dcc94b96)
2013-07-23 11:39:08 +05:30
Sheng Yang 9f15779f10 CLOUDSTACK-3643: Automation: Fix VPC test cases
Also add a timeout for network connection testings.

Ideally this timeout should be around 30s or even less, but keep it at 60s for
now for safe.
2013-07-22 18:45:39 -07:00
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
Sanjay Tripathi 95e1f6324f CLOUDSTACK-3695: test_add_user_to_project failed with missing attribute "email".
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-07-22 19:36:27 +05:30
Prasanna Santhanam 323db5c517 CLOUDSTACK-3672: Multiple minor fixes to tags tests
- SourceHost is an id
- Invalid format in debug() message corrected

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit ce4dd723ab486894523f08f48b6054f614be4d85)
2013-07-22 19:36:27 +05:30
Prasanna Santhanam 5fa77f3099 Minor fixes to the test_accounts
when an account is deleted listAccounts raises an exception.

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit aa9bc4413efad4eccdf8e336f66ea8c8168fbbda)
2013-07-22 19:36:27 +05:30
Gaurav Aradhye e245718837 CLOUDSTACK-3679: Added subsequent change that was needed after change in try_ssh function
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit 233456d95f80effa293e21e199886d61b17dbd19)
2013-07-22 19:36:27 +05:30
Sheng Yang a102853fb9 CLOUDSTACK-3643: Automation: Fix test_vpc_network.py
1. Port 80 won't help on ICMP
2. RvR doesn't support VPC now.
2013-07-21 22:24:10 -07:00
Sheng Yang 982c0b5dfb CLOUDSTACK-3643: Automation: Fix wrong network acl rule for ping 2013-07-21 22:24:03 -07:00
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
Sheng Yang 88c84d9109 CLOUDSTACK-3643: Fix wrong protocol type and test case sequence 2013-07-19 19:27:14 -07:00
Prasanna Santhanam 2d9566eb8a CLOUDSTACK-3644: Failed to pass apiclient to public ip delete
Test VPC Release IP assigned to LB rule fails because we don't pass in
the apiclient to it.

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit 2f0a0a61363074ffa959d7ff9596a1b07b2de40a)
2013-07-19 17:44:53 +05:30
Prasanna Santhanam 62c54e77a3 CLOUDSTACK-3655: RvR tests fail when handling switchover
During switchover of master->backup->master, the rvr goes through
UNKNOWN, FAULT, MASTER/BACKUP. In case of improper transition the state
is FAULT. Include additional state check in the tests.
(cherry picked from commit 0c699394f246bc2b052a22d88b3f938ba8a72770)
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
Sowmya Krishnan 78ac22e157 Fixed ostype CLOUDSTACK-3645
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-07-19 11:17:11 +05:30
Prasanna Santhanam cba42bba25 Fix typo in spelling Afifnity -> Affinity
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit 5d3856911e)
2013-07-18 18:31:22 +05:30
Prasanna Santhanam a3511c3ecf remove tag used while debugging
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit d6fc6577ef)
2013-07-18 18:31:22 +05:30
Prasanna Santhanam 97ad190383 remove waits during claenup
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit 06f5f5ba44)
2013-07-18 18:31:22 +05:30
sailajam 69462fd0cb CLOUDSTACK-3636: Fix invalid condition to check for empty response for private service offerings 2013-07-18 17:01:00 +05:30
Gaurav Aradhye e25cbd66d2 CLOUDSTACK-3168: Change in try_ssh function
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-07-18 15:06:22 +05:30
Prasanna Santhanam 8442e35a79 tearDownClass and not teardown
Include the affinity group in the deletion/cleanup

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit af9a8de901)
2013-07-18 15:05:57 +05:30
Prasanna Santhanam c0de2c5857 Delete the affinity group by id and not name
Adding some docstrings to the tests so the test runner reports them.

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit 296c2f6a70)
2013-07-18 15:05:57 +05:30
Prasanna Santhanam c3a04b63a7 CLOUDSTACK-3619: Cleanup of volume is not required as gc takes care.
We don't need to delete the volume resource as part of cleanup as the
storage gc is expected to cleanup orphaned volumes in deleted
accounts/projects.

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit 8bc3757e80)
2013-07-18 15:05:56 +05:30
Prasanna Santhanam e90ef2b4b5 remove the wait during cleanup
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-07-18 15:05:56 +05:30
Sanjay Tripathi d52d2c8505 CLOUDSTACK-3618: When project account does not exist, API now throws exception
API call listprojectaccounts failed, and test case
test_projects.py:test_08_cleanup_after_project_delete failed due to
this

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit 52fa8532bb)
2013-07-18 15:05:56 +05:30
sailajam f5bd253b2b CLOUDSTACK-3596: Domain ID missing to deploy VM request . Included Domain id 2013-07-18 13:52:04 +05:30
Prasanna Santhanam 22cb5be8b6 CLOUDSTACK-3592: Fix project email reference.
Emails belong to user's within accounts. Refer to the first user within
the account and use his email for account invites.

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-07-17 19:26:21 +05:30
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
ashutoshkelkar 9f9510be91 CLOUDSTACK-2273: cleanup using user api client for domain admins
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-07-17 19:23:57 +05:30
Sowmya Krishnan cfd892fc3b Fixes CLOUDSTACK-3582
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-07-17 19:23:57 +05:30
SrikanteswaraRao Talluri 5fbec76c8a Fixed arguments in the format string in the debug message.
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-07-17 12:36:27 +05:30
SrikanteswaraRao Talluri 3a60e56529 change all instances of account.account to acccount.
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-07-17 12:36:27 +05:30
Sowmya Krishnan 2910f9058d CLOUDSTACK-3582: Add sleep so Netscaler recognizes the service to be up
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-07-17 12:36:27 +05:30
Sowmya Krishnan 51b7f5de91 Fix typo netscaler_1 in TestAddMultipleNSDiffZone
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-07-17 12:14:11 +05:30
Prasanna Santhanam 535903f928 ostypeid references removed
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit 088c1e2a46)
2013-07-11 16:45:53 +05:30
Prasanna Santhanam 3f5c1c6da3 CLOUDSTACK-3384: Fix the vlan range < 4096
VLAN ranges beyond 4095 are properly handled. Fix the test to accomdate
this change

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-07-11 09:41:17 +05:30
Prasanna Santhanam 6735532765 do not wait for cleanup
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-07-06 20:18:23 +05:30
Prasanna Santhanam f337fed1ec do not wait for cleanup
simply cleanup and exit and network.gc will happen later

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit 620ed6e0f1)
2013-07-06 19:19:33 +05:30
Prasanna Santhanam d11681fb05 Network GC test moved to regression suite
The network GC test is a long running test as it waits for
network.gc.wait + network.gc.interval * 2 to verify that the network
cleanups happen corectly. This test is also part of the regression suite
and is redundant in the smoke. The test run takes 30m longer because of
this test included in smoke.

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-07-05 18:52:47 +05:30
Prasanna Santhanam 9e2224dd49 print debug message for the waiting time
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit 313177a51e)
2013-07-05 11:09:56 +05:30
Prasanna Santhanam b3aa11ca39 Include definition for vm_3 in assign and load balance test
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-07-04 21:45:00 +05:30
Prasanna Santhanam da9552b7f3 move isAlmostEqual to utils
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-07-04 20:14:54 +05:30
Gaurav Aradhye 048cf5aae8 CLOUDSTACK-2884: Fixed test_04_change_offering_small
Added method to compare if two digits are almost equal within given range

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-07-04 20:14:54 +05:30
Prasanna Santhanam 248bea8b27 ipaddress is included
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-07-04 14:39:54 +05:30
Prasanna Santhanam 1e646629fe CLOUDSTACK-3354: Fix scalevm test
After you scale the vm, user is expected (oddly) to update the virtual
machine to signal that the PV tools are installed. This tells cloudstack
that the VM has been successfully scaled up/down.

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit c8ad4e5ced)
2013-07-04 13:52:36 +05:30
Prasanna Santhanam 30039e121b Separate the loadbalancing tests
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-07-04 13:37:27 +05:30
Prasanna Santhanam 9ba36fd173 uncomment the cleanup.
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-07-03 20:03:50 +05:30
Prasanna Santhanam 9f0c9ee20c CLOUDSTACK-3184: integration test for the updateVirtualMachine
updateVirutalMachine fails if no args are passed. this test also further
verifies that the displayname is changed when vm is started up
successfully.

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-07-03 19:39:02 +05:30
Prasanna Santhanam 9d07f899c8 separate the shared network test for network offerings
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-07-03 17:10:53 +05:30
Prasanna Santhanam 04d9d209ad Removing the vlan selection in network offering test
Also do not wait for cleanup. Just send cleanup to server and proceed
further.

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-07-03 17:04:20 +05:30
Prasanna Santhanam 43f31dcc66 Only print debug message when the planner fails to disperse
User Dispersion is a best effort of deployment planning and cannot
always guarantee the dispersion logic will work. However this does not
fail the deployment. Adjust the test so as to print a debug and exit
instead of fail.

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-07-02 19:13:48 +05:30
Prasanna Santhanam 46bd2f8a28 Cleanup list corrected
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-07-02 17:00:55 +05:30
Gaurav Aradhye b8d876fff8 CLOUDSTACK-3168: Resolved 'Object NoneType' issue.
Replaces ipaddress by ipaddress.ipaddress wherever required

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-07-02 15:33:20 +05:30
sanjeevneelarapu 479f89ca3c assertion fails because cluster could be None
Object is being used in one of the Assert statements however it is not
callable. Fixed it.

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-07-02 15:22:05 +05:30
Prasanna Santhanam 34eabd957c Fix attr plugin import and class reference
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-06-30 21:44:16 +05:30
Prasanna Santhanam c7315975d2 Fix tab/space issues
Several test failures occurred due to tab issues

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-06-30 13:20:27 +05:30
Prasanna Santhanam 2a51c3e2c9 Fix test_assign_vm to be discovered by nose testrunner
the nosetests runner will not discover tests unless the tests start with
the test_ prefix. When wrapping by the log_test_exceptions method the
name of the method changes and is not test_ anymore causing the runner
to skip the test. Included the __doc__ string as well so the runner can
report results correctly.

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-06-30 12:52:17 +05:30
rayeesn e14f355a0b Reduced resource usage in vpc test cases
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-06-30 11:15:32 +05:30
suresh sadhu 56a001d1c4 CLOUDSTACK-3023: added tags for all the test cases
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-06-29 10:03:51 +05:30
Prasanna Santhanam 8dc99d92b6 Fix reviewboard messup of python indentation
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-06-27 20:30:36 +05:30
Prasanna Santhanam 2af6db24ed cmds is not a list. just regular string to ssh
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-06-27 20:30:36 +05:30
Girish Shilamkar 3c0c6cb0b3 CLOUDSTACK-2254: Tests for Affinity and Anti Affinity rules
TestCreateAffinityGroup
TestListAffinityGroups
TestDeleteAffinityGroups
TestUpdateVMAffinityGroups
TestDeployVMAffinityGroups
TestAffinityGroupsAdminUser

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-06-27 09:51:29 +05:30
Gaurav Aradhye 1fc7aeaaea CLOUDSTACK-3060: condition for vmware while getting process status.
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-06-25 12:30:18 +05:30
Harikrishna Patnala f7b1d3d8d5 CLOUDSTACK-2916: admin is not able to login through UI after setting GP "cluster.cpu.allocated.capacity.notificationthreshold" to some string
CLOUDSTACK-2457:  No check for input values,special character,-ive values can be assigne to GLobal parameter "cluster.cpu.allocated.capacity.disablethreshold"

Added validation for float values and checking limit for weight based parameters by creating a set of parameters.
Signed off by : nitin mehta<nitin.mehta@citrix.com>
2013-06-24 20:00:09 +05:30
Sheng Yang b0a3210695 Baremetal: Test cases 2013-06-21 09:48:40 -07:00
Gaurav Aradhye 4c51c60ef7 CLOUDSTACK-3021: Order removal of resources
Sub domain removed before parent domain. Also fixed indentation issue in
cleanup list of class TestServiceOfferingHierarchy

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-06-21 12:16:30 +05:30
sanjeevneelarapu 64e3074c7e Test Volumes: do not assume max.volumes attachable to guest
1.Current Implementation assumes 6 as the max volumes that can be
attached to disk.  Actually it depends on the hypervisor capabilities.

2.Modified the script to get the max limit from hypervsior capabilities.

Signed-off-by: sanjeevneelarapu <sanjeev.neelarapu@citrix.com>
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-06-21 11:48:26 +05:30
Prasanna Santhanam 82c75c7fae Split out snapshot tests for speedup
Breaking down snapshot tests
- recurring snapshots
- limits
- garbage collection
- smoke/basic scenario: take snapshot of root disk

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-06-20 19:42:01 +05:30
Prasanna Santhanam c1e37f60ac Cycle all possible device combinations for ISO attach/detach
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-06-20 16:47:05 +05:30
Edison Su 9aec9c605c merge to master 2013-06-19 18:16:47 -07:00
Girish Shilamkar 5140473f2b CLOUDSTACK-1758: Fix ssvm test failures, where ssh to ssvm failed.
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-06-19 20:33:45 +05:30
Prasanna Santhanam c8f744dbc3 Prevent waits at cleanup
Do not wait until gc finishes cleanup of resources. This delays tests
and is dependant on the deployment. Some have large cleanup.intervals.
Assume cleanup succeeds and proceed

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-06-19 17:06:11 +05:30
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
c30d9be3ce) 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
Prasanna Santhanam 7fb6eaa0ca Attributes for tests
Removing simulator attribute as the NetworkACL related support is to be
extended on the simulator.

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-05-29 10:01:20 +05:30
Prasanna Santhanam be5639f7e2 Adding environment attributes to tests
- test_internal_lb
_ test_privategw_acl

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-05-29 09:48:25 +05:30
Anthony Xu 19a1116df2 Merge branch '4-2-advanced-zone-security-group' 2013-05-28 11:03:56 -07:00
SrikanteswaraRao Talluri 8fd476e2fd CLOUDSTACK-2557: Fix add primary storage tests
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-05-28 11:17:42 +05:30
Prasanna Santhanam 16e9eaca80 unskipping skipped tests
and indentation fixes

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-05-27 10:10:01 +05:30
Prasanna Santhanam 61e150fd58 More non-ascii encoded characters in commented text
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-05-26 20:10:46 +05:30
Prasanna Santhanam a4a50a0b53 Remove unused setup script
- All the setup is now done by the tests and there is no need for a
  setup script to seed test data.

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-05-26 15:32:17 +05:30
Prasanna Santhanam f13a3c5d32 More tests using the dsl iso
Replace dsl iso with dummy iso to speed up test

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-05-26 15:29:45 +05:30
Prasanna Santhanam 1df3aad9ab Use a dummy ISO and skip SSH check
- Using the dummy.iso to speed up the test
- Removing ssh that is not required.

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-05-26 15:26:33 +05:30
Prasanna Santhanam a4356b559c More fixes to regression tests:
- Remove extraneous non-ascii chars
- cloudconnection is auto GCed. No explicit cleanup required.
- Add environment tags for shared network tests
- Invalid account.account references
- Indentation errors
- Skip the storage motion test on unsuitable host environment
- remove copy template test. covered in the smoke tests
- invalid keys in service dictionary
- Unskipping tests skipped tests
-
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-05-25 15:40:42 +05:30
Prasanna Santhanam 90a40b0806 Move changeOffering test to service offerings
This will reduce the time (>30m) on the vm lifecycle.

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-05-24 21:42:25 +05:30
Prasanna Santhanam 6e1103e924 Removing tests that were written in the old design
The APIs addVolumeDetail and addNicDetail do not exist. These were part
of the old resource tagging design.

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-05-24 14:44:55 +05:30
Prasanna Santhanam 09c6030ae9 Correct the resize volume tests
Resize would fail on XenServer if the VM isn't stopped before resizing.
Ensuring VM stop based on the hypervisor host detected that the VM is
resident on.

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-05-24 14:24:06 +05:30
Prasanna Santhanam a6d13cb799 Unwrap the test docstring for the testrunner
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-05-24 14:24:06 +05:30
Prasanna Santhanam b2be0dbf6b Fixing incorrect ipaddress references
test_network: references to ipaddress are ipaddress.ipaddress
Added more logging to volume tests

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-05-24 14:24:06 +05:30
Min Chen 98af424053 Merge branch 'master' into object_store. 2013-05-23 18:00:15 -07:00
Mice Xia 4786420986 [Automation] fix CLOUDSTACK-2546 Failed to add second NIC to vm in KVM environment 2013-05-23 09:55:30 +08:00
Wei Zhou e6863c612b Integration test for advanced zone with security groups
Description:
This patch includes three parts for advancedsg:
(1) Marvin support.
(2) devcloud support.
(3) integration test scripts

Testing Done:
devcloud testing ok.

Signed-off-by: Anthony Xu <anthony.xu@citrix.com>
2013-05-22 15:39:22 -07:00
Prasanna Santhanam b3096db600 Bad indentation corrected
For some reason test got unindented wrongly by Eclipse.

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-05-22 16:22:26 +05:30
Girish Shilamkar 44a81f0b6f CLOUDSTACK-2577: Fix exception handling for listPortForwarding API
listPortForwarding API returns an exception if the PF is deleted.
Changed testcases to handle this exception.

Signed-off-by: Girish Shilamkar <girish@clogeny.com>
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-05-22 15:52:31 +05:30
Prasanna Santhanam 616011020b Refactoring the planner tests
1. Planner tests rewritten to use marvin integration libraries
2. Included verification of multi VM deployment for user dispersion
3. Included a test for user concentrated planner

TODO: firstfit planner test doesn't actually test the planner strategy.
It only deploys a VM using the offering.

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-05-22 15:43:04 +05:30
Prasanna Santhanam 698da2a279 Minor tagging and comments in tests
Adding tags to the deployvm test from the marvin tutorial
Adding docstrings to the vm snapshot tests
Add tag to the pvlan test

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-05-22 15:43:03 +05:30
Girish Shilamkar 2bc88ea277 CLOUDSTACK-778: Add tests for user provided hostname for vms
Automation tests to qualify User provides hostname feature.
1. Defines services class
2. Test to verify custom hostname for the instance with internal name
3. Test to verify custom hostname for the instance without internal name

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-05-21 20:27:26 +05:30
Girish Shilamkar b74d13f9b1 CLOUDSTACK-2472: Fix unresolved reference to max_value
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-05-21 19:31:52 +05:30
Girish Shilamkar 1736031fcb CLOUDSTACK-2473: Fix a typo in test_vpc_network.py
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-05-21 19:28:22 +05:30
Girish Shilamkar a8975f9522 CLOUDSTACK-2474: Remove garbage code which was added while resolving merge conflicts.
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-05-21 19:25:58 +05:30
Prasanna Santhanam 2adc8e9a03 Adding docstrings for the portablip test
1. Test to create a portable public ip range
2. Test to acquire a provisioned public ip range

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-05-21 15:26:23 +05:30
Prasanna Santhanam 218d26be60 Adding the 'advanced' attribute for test_public_ip_range
Fixing typo in class name.

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-05-21 12:04:03 +05:30
Prasanna Santhanam 54ac779b8f Fix all occurrences of account.account
Fixes the dereference of account objects with account.account. This is
to conform to recent library changes in Marvin

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-05-20 22:59:52 +05:30
Prasanna Santhanam 145a116c9b Fixing TestVMLifeCycle class
Missed the reference to zone listed in setUpClass()

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-05-20 22:05:53 +05:30
Murali Reddy d6452be861 CLOUDSTACK-652: meging 'portable public ip' feature
Squashed commit of the following:

commit f244f9ce7982db16984dd87c31545f1c0240c704
Merge: 993cbb0 f5c8e38
Author: Murali Reddy <muralimmreddy@gmail.com>
Date:   Mon May 20 18:54:05 2013 +0530

    Merge branch 'master' into portablepublicip

    Conflicts:
    	server/src/com/cloud/server/ManagementServerImpl.java
    	server/test/org/apache/cloudstack/networkoffering/ChildTestConfiguration.java

commit 993cbb0df9fa6e64b96b18ed775b73cdf4a8f5d7
Author: Murali Reddy <muralimmreddy@gmail.com>
Date:   Mon May 20 18:49:54 2013 +0530

    introduce 'transferPortableIP' interface method in network manger. This
    method will transfer association of portable ip from one network to
    another network.

commit 0c1c2652c1b39e9a81ca35464360e11ed9ef23f1
Merge: a718d35 a29e393
Author: Murali Reddy <muralimmreddy@gmail.com>
Date:   Fri May 17 02:48:54 2013 +0530

    Merge branch 'master' into portablepublicip

    Conflicts:
    	utils/src/com/cloud/utils/net/NetUtils.java

commit a718d353f7
Merge: ecca117 c211818
Author: Murali Reddy <muralimmreddy@gmail.com>
Date:   Mon May 13 21:22:19 2013 +0530

    Merge branch 'master' into portablepublicip

    Conflicts:
    	api/src/org/apache/cloudstack/api/ResponseGenerator.java
    	server/src/com/cloud/api/ApiResponseHelper.java
    	server/src/com/cloud/network/NetworkServiceImpl.java
    	server/src/com/cloud/network/addr/PublicIp.java
    	server/src/com/cloud/server/ManagementServerImpl.java
    	server/test/com/cloud/network/MockNetworkManagerImpl.java
    	server/test/com/cloud/vpc/MockConfigurationManagerImpl.java
    	server/test/com/cloud/vpc/MockNetworkManagerImpl.java
    	setup/db/db/schema-410to420.sql

commit ecca117e34
Author: Murali Reddy <muralimmreddy@gmail.com>
Date:   Mon May 13 20:05:29 2013 +0530

    added integration tests for testing portable ip ranges

commit 895a27c277
Author: Murali Reddy <muralimmreddy@gmail.com>
Date:   Mon May 13 15:12:19 2013 +0530

    - establish model for transferring portable IP association from a network
      with which it is associated to another network.

    - enabling static nat api, extended to transfer potrtable IP across the
      networks if the VM/network is different from the current associate
      network of the portable ip

commit 51509751b2
Author: Murali Reddy <muralimmreddy@gmail.com>
Date:   Mon May 13 12:05:33 2013 +0530

    seperate out associate/disassociate with guest network operations from
    alloc and release of portable ip

commit bd058f58c2
Author: Murali Reddy <muralimmreddy@gmail.com>
Date:   Sun May 12 21:14:48 2013 +0530

    enhance disasociateIPAddr API to release protable IP associated with a
    guest network or VPC

commit 27504d9098
Author: Murali Reddy <muralimmreddy@gmail.com>
Date:   Sun May 12 16:53:45 2013 +0530

    enhance asociateIPAddr API to acquire a protable IP and associate with a
    guest network or VPC

commit f82c6a8431
Merge: 3dbfb44 0749013
Author: Murali Reddy <muralimmreddy@gmail.com>
Date:   Sat May 11 23:32:13 2013 +0530

    Merge branch 'master' into portablepublicip

    Conflicts:
    	api/src/com/cloud/network/IpAddress.java
    	api/src/org/apache/cloudstack/api/ResponseGenerator.java
    	client/tomcatconf/commands.properties.in
    	server/src/com/cloud/api/ApiResponseHelper.java
    	server/src/com/cloud/configuration/ConfigurationManagerImpl.java
    	server/src/com/cloud/server/ManagementServerImpl.java
    	server/test/org/apache/cloudstack/affinity/AffinityApiTestConfiguration.java
    	server/test/org/apache/cloudstack/networkoffering/ChildTestConfiguration.java
    	setup/db/db/schema-410to420.sql

commit 3dbfb44eb5
Author: Murali Reddy <muralimmreddy@gmail.com>
Date:   Sat May 11 20:33:19 2013 +0530

    - add 'portable' boolean as property of IpAddress, persist the property in
    IPAddressVO, return the property in IpAddressResponse

    - add ability to request portable IP in associateIpAddress api

commit bf3cb274cf
Author: Murali Reddy <muralimmreddy@gmail.com>
Date:   Sat May 11 16:08:40 2013 +0530

    add the status of each portable IP (its state, details of associated data
    center/VPC/guest network etc) in the PortableIpRangeResponse returned by
    listPortableIpRanges API

commit e7b2fb2255
Author: Murali Reddy <muralimmreddy@gmail.com>
Date:   Sat May 11 14:36:01 2013 +0530

    Introdcues notion of 'portable IP' pool at region level.

    Introduces root admin only API's to provision portable ip to a region
       - createPortableIpRange
       - deletePortableIpRange
       - listPortableIpRanges
2013-05-20 20:05:47 +05:30
Devdeep Singh f5c8e386e5 CLOUDSTACK-2379: Fix for issue destroy vm causing NPE. Made the following changes.
1. Made a fix to make sure a null object is added to the exception.
2. Also fixed the marvin test cases for the feature. Account cleanup will remove the vms deployed for the account. There is no need to explicitly delete the vms for the account.
3. Fixed the assertion checks for the vm created for an account. If there are multiple vms for an account, the test script needs to compare the ids with the correct instance.
2013-05-20 18:26:50 +05:30
Prasanna Santhanam 32e7ba23a3 LDAP moved to regression suite.
LDAP requires a Directory server which isn't available by default in
most environments. Moving this to the regression suite so it can be run
on demand.

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-05-20 17:59:19 +05:30
Prasanna Santhanam e1ad36bccb migrate only when hosts are available
Identify the hosts that are suitable for migration before proceeding
with migrateVM

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-05-20 17:51:50 +05:30
Prasanna Santhanam 92e6352287 Detect the second zone for copyImage operation
When copying templates and ISOs detect that a second zone is available.
Else skip the test.

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-05-20 17:51:49 +05:30
suresh sadhu 2778486c34 CLOUDSTACK-2287: Tests for the LDAP system
API tests for the LDAP config/remove commands

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-05-20 17:51:49 +05:30
SrikanteswaraRao Talluri 2867c6a6df CLOUDSTACK-2542: Fix router test for basic zone
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-05-17 14:05:58 +05:30
SrikanteswaraRao Talluri 55d304a5bb CLOUDSTACK-2478: Fix test_volumes.py script for BVT failures
removed storage type in compute offering and disk offering

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-05-17 14:05:05 +05:30
Edison Su f7c1b711ad merge to master 2013-05-16 23:56:20 -07:00
Devdeep Singh adbebc1892 Changes for implicitly dedicating a resource. It includes a following:
1. A new implicit planner which extends the functionality provided by FirstFitPlanner.
2. Implicit planner can be used in either strict or preferred mode. In strict mode it tries to deploy a vm of a given account on a host on which vms of the account are already running. If no such host is found it'll search for an empty host to service the request. Otherwise the deploy vm request fails.
3. In preferred mode, if a host which is running vms of the account or an empty host isn't found, the planner then tries to deploy on any other host provided it isn't running implicitly dedicated strict vms of any other account.
4. Updated the createServiceOffering api to configure the details for the planner that the service offering is using.
5. Made db changes to store the service offering details for the planner.
6. Unit tests for testing the implicit planner functionality.
7. Marvin test for validating the functionality.
2013-05-17 11:40:31 +05:30
Prachi Damle a2eb7bab1e CLOUDSTACK-2056: DeploymentPlanner choice via ServiceOffering
- Changes merged from planner_reserve branch
- Exposing deploymentplanner as an optional parameter while creating a service offering
- changes to DeploymentPlanningManagerImpl to make sure host reserve-release happens between conflicting planner usages.
2013-05-16 15:02:17 -07:00
Edison Su 389d7c1fa0 if object is already stored in cache store, don't download again 2013-05-16 14:34:06 -07:00
Prasanna Santhanam a37fa39fe7 multiple fixes to regression tests
- remove references to account.account
- remove ostypeid references
- correct zone.networktype
- correct storage_motion assert. skip on invalid environmetn

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-05-16 10:00:44 +05:30
Sheng Yang 2d2c0c48cd Merge branch 'pvlan'
Conflicts:
	scripts/vm/hypervisor/xenserver/xenserver60/patch
	server/src/com/cloud/network/NetworkManager.java
	server/src/com/cloud/network/NetworkManagerImpl.java
	server/src/com/cloud/network/NetworkServiceImpl.java
	server/src/com/cloud/network/router/VirtualNetworkApplianceManager.java
	server/src/com/cloud/network/router/VirtualNetworkApplianceManagerImpl.java
	server/src/com/cloud/network/vpc/VpcManagerImpl.java
	server/src/com/cloud/vm/UserVmManagerImpl.java
	server/test/com/cloud/network/MockNetworkManagerImpl.java
	server/test/com/cloud/vpc/MockNetworkManagerImpl.java
	server/test/com/cloud/vpc/MockVpcVirtualNetworkApplianceManager.java
2013-05-15 16:08:08 -07:00
Srikanteswararao Talluri 237397df3c CLOUDSTACK-2382: fix the validation part in the test_global_settings 2013-05-14 17:31:21 +05:30
sanjeevneelarapu 7d380423b5 CLOUDSTACK-702: Tests for Multiple IP Ranges
1. Add ip range super set to existing CIDR
2. Add ip range subset to existing CIDR

Signed-off-by: sanjeevneelarapu <sanjeev.neelarapu@citrix.com>
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-05-14 15:52:54 +05:30
Prasanna Santhanam 80c2ea769e Fixing merge markers introduced by conflict from 2660a6
test had conflict markers as a result of an improper merge

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-05-14 14:35:45 +05:30
Prasanna Santhanam a92abaa916 multiple fixes to regression tests in test/component
- invalid variable references
- syntax/indentation errors
- self/cls reference errors
- some logic fixes in redundant router suite

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-05-14 11:42:34 +05:30
Prasanna Santhanam 8f57a851be account name dereferences as account.name
Fix to tests to conform to library changes.

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-05-14 10:34:01 +05:30
Prasanna Santhanam 894413e362 Marvin IP cleared tests for various cloudstack components
One big blob of all the tests that were posted for IP clearance several
months ago. IP clearance VOTE has passed on general@

Ref: http://markmail.org/thread/xareczan2kx4hhom

RAT check passed.
2013-05-14 10:24:27 +05:30
Sheng Yang 2bcf71638d PVLAN: Add integration test 2013-05-13 11:42:15 -07:00
Jayapal Reddy 2d950e2858 CLOUDSTACK-768: ACL on private gateway 2013-05-13 19:24:23 +05:30
Nitin Mehta 8d53b1ef05 merge with master 2013-05-13 16:36:41 +05:30
Kishan Kavala 2cdb540e36 CLOUDSTACK-763: Added unit tests and integration test 2013-05-13 12:03:39 +05:30
Nitin Mehta c11dbad9c9 merge master 2013-05-11 15:28:43 +05:30
Nitin Mehta 1731a4a442 Add the new APIs along with tests 2013-05-11 14:13:38 +05:30
Alena Prokharchyk 2660a6b7a7 CLOUDSTACK-747: Internal LB between VPC tiers support
Squashed commit of the following:

commit def0861d5a
Author: Alena Prokharchyk <alena.prokharchyk@citrix.com>
Date:   Thu May 9 10:53:09 2013 -0700

    Inernallb: added internalLbVm to the list of network elements for nonoss build

commit 56d94fc074
Merge: d828c15 8f9a42e
Author: Alena Prokharchyk <alena.prokharchyk@citrix.com>
Date:   Thu May 9 09:51:36 2013 -0700

    Merge branch 'master' into internallb1

    Conflicts:
    	plugins/network-elements/netscaler/src/com/cloud/network/element/NetscalerElement.java
    	server/src/com/cloud/network/vpc/VpcManagerImpl.java

commit d828c154fd
Author: Alena Prokharchyk <alena.prokharchyk@citrix.com>
Date:   Wed May 8 14:58:22 2013 -0700

    internallb: Fixed nonoss build

commit 1b8a6986a6
Merge: 9e74fa9 738d35a
Author: Alena Prokharchyk <alena.prokharchyk@citrix.com>
Date:   Wed May 8 13:20:07 2013 -0700

    Merge branch 'master' into internallb1

    Conflicts:
    	api/src/com/cloud/async/AsyncJob.java
    	api/src/com/cloud/network/NetworkModel.java
    	api/src/com/cloud/network/rules/LoadBalancerContainer.java
    	api/src/org/apache/cloudstack/api/BaseCmd.java
    	api/src/org/apache/cloudstack/api/ResponseGenerator.java
    	api/src/org/apache/cloudstack/network/lb/ApplicationLoadBalancerContainer.java
    	client/tomcatconf/commands.properties.in
    	engine/schema/src/com/cloud/network/dao/LoadBalancerDaoImpl.java
    	server/src/com/cloud/api/ApiResponseHelper.java
    	server/src/com/cloud/network/NetworkManagerImpl.java
    	server/src/com/cloud/network/NetworkModelImpl.java
    	server/src/com/cloud/network/NetworkServiceImpl.java
    	server/src/com/cloud/server/ManagementServerImpl.java
    	server/test/com/cloud/network/MockNetworkModelImpl.java
    	server/test/com/cloud/vpc/MockNetworkManagerImpl.java
    	server/test/com/cloud/vpc/MockNetworkModelImpl.java
    	server/test/resources/appLoadBalancer.xml
    	setup/db/db/schema-410to420.sql
    	test/integration/component/test_multiple_ip_ranges.py
    	test/integration/smoke/test_guest_vlan_range.py
    	tools/marvin/marvin/integration/lib/base.py

commit 9e74fa9406
Author: Prasanna Santhanam <tsp@apache.org>
Date:   Thu May 9 00:11:40 2013 +0530

    marvin changes for internallbvm provider

    - changed the simulator context to load the internallb bean
    - fixed deployDataCenter to use the additional provider by default
    - fixed the sandbox script and the setup script for simulator checkin
      tests

    Signed-off-by: Prasanna Santhanam <tsp@apache.org>

commit 0a2d49301b
Author: Jessica Wang <jessicawang@apache.org>
Date:   Tue May 7 15:50:41 2013 -0700

    Internal LB - UI - zone wizard - advanced zone - enable internal LB element, enable internal LB provider.

commit 43e1667f90
Author: Alena Prokharchyk <alena.prokharchyk@citrix.com>
Date:   Tue May 7 13:26:53 2013 -0700

    Moved all DAOs and VOs to the cloud-engine-schema project

commit 2fd94c8bbe
Author: Radhika PC <radhika.puthiyetath@citrix.com>
Date:   Tue May 7 18:26:08 2013 +0530

    CLOUDSTACK-893 api

commit 12b64d6c00
Author: Prasanna Santhanam <tsp@apache.org>
Date:   Tue May 7 17:06:15 2013 +0530

    Fixing the gmaven configuration for marvin/pom.xml

    For the marvin checkin test custom properties had a typo when run for
    the *nix environment.

    Signed-off-by: Prasanna Santhanam <tsp@apache.org>

commit 1e4274dd9f
Author: Prasanna Santhanam <tsp@apache.org>
Date:   Tue May 7 15:28:43 2013 +0530

    Renaming TesDedicateVlanRange -> TestDedicateVlanRange

    Signed-off-by: Prasanna Santhanam <tsp@apache.org>

commit 9264ac526f
Author: Prasanna Santhanam <tsp@apache.org>
Date:   Tue May 7 15:28:20 2013 +0530

    Adding isolation method to the zone creation of marvin

    Signed-off-by: Prasanna Santhanam <tsp@apache.org>

commit 3a0dc67de0
Author: Prasanna Santhanam <tsp@apache.org>
Date:   Tue May 7 15:27:26 2013 +0530

    adding ACL for dedicateGuestVlanRange set of APIs

    Signed-off-by: Prasanna Santhanam <tsp@apache.org>

commit 79f6e11368
Author: Prasanna Santhanam <tsp@apache.org>
Date:   Tue May 7 15:26:48 2013 +0530

    add debug logs when access checkers fail to find API

    When the access checkers fail for api discovery, we fail silently.
    instead record a debug message.

    Signed-off-by: Prasanna Santhanam <tsp@apache.org>

commit 92cb7d3e0f
Author: Hugo Trippaers <trippie@gmail.com>
Date:   Tue May 7 11:44:23 2013 +0200

    commit e0d8f01ecd enabled all tests. Fix
    AWSAPI build by removing broken tests and excluding failing tests.

commit 4a391464c7
Author: Hugo Trippaers <htrippaers@schubergphilis.com>
Date:   Tue May 7 10:57:23 2013 +0200

    commit e0d8f01ecd enabled all tests, but the tests in vmware-base are horribly broken and will not compile with the current CloudStack.

    Removing the tests to fix the nonoss build and they are so broken they should be rewritten from scratch anyway.

commit 2ca03a8513
Author: Prasanna Santhanam <tsp@apache.org>
Date:   Tue May 7 13:51:34 2013 +0530

    moving test data to top level dictionary

    Signed-off-by: Prasanna Santhanam <tsp@apache.org>

commit ceaa4e1b0d
Author: Prasanna Santhanam <tsp@apache.org>
Date:   Tue May 7 13:50:56 2013 +0530

    Adding tracelogs to the API discovery service

    Signed-off-by: Prasanna Santhanam <tsp@apache.org>

commit a3f5f01c7e
Author: Prasanna Santhanam <tsp@apache.org>
Date:   Tue May 7 13:50:12 2013 +0530

    dedicateGuestVlanRange is admin only API

    Adding ACL for the dedicateGuestVlanRange API.

    Signed-off-by: Prasanna Santhanam <tsp@apache.org>

commit 1c4c80fe91
Author: Hugo Trippaers <htrippaers@schubergphilis.com>
Date:   Tue May 7 09:58:16 2013 +0200

    Recent pom switcharoo caused the client to lose the dependecy on console-proxy, which it needs to include the systemvm

commit 8103f3c386
Author: Radhika PC <radhika.puthiyetath@citrix.com>
Date:   Tue May 7 11:30:17 2013 +0530

    CLOUDSTACK-893 first cut

commit 67d0411d73
Author: Dave Cahill <dcahill@midokura.com>
Date:   Fri Apr 19 17:31:44 2013 +0900

    Add docs for MidoNet networking plugin [CLOUDSTACK-996]

    Signed-off-by: Dave Cahill <dcahill@midokura.com>

commit c745e6d28e
Author: Alex Huang <alex.huang@gmail.com>
Date:   Mon May 6 16:34:03 2013 -0700

    Fixed up the simulator to run with windows paths in cygwin

commit be91c03702
Author: Alex Huang <alex.huang@gmail.com>
Date:   Mon May 6 10:34:22 2013 -0700

    Moved over the VLAN daos

commit dcc09f8472
Author: Alex Huang <alex.huang@gmail.com>
Date:   Mon May 6 06:31:47 2013 -0700

    Missing file and updated .gitignore

commit e9953cd1a8
Author: Alex Huang <alex.huang@gmail.com>
Date:   Mon May 6 06:29:59 2013 -0700

    Fixed up unit testing to use only an in class TestConfiguration

commit 6727571403
Author: Alex Huang <alex.huang@gmail.com>
Date:   Thu May 2 15:20:49 2013 -0700

    Fixed an incorrect unit test for affinity group.  Removed some useless pom.xml.

commit d015fb3520
Author: Alex Huang <alex.huang@gmail.com>
Date:   Thu May 2 06:50:38 2013 -0700

    Moved most of the VOs and DAOs from server package into engine-schema as well

commit 77547a58df
Author: Alex Huang <alex.huang@gmail.com>
Date:   Wed May 1 15:15:57 2013 -0700

    Removed files that are no longer used and further separated out the files in the core project

commit 345f3d3482
Author: Alex Huang <alex.huang@gmail.com>
Date:   Wed May 1 05:46:15 2013 -0700

    Moved agent commands to core and out of api

commit e91ca00571
Author: Alex Huang <alex.huang@gmail.com>
Date:   Tue Apr 30 19:06:20 2013 -0700

    Removed framework-api which is completely useless.  Changed framework-ipc to reference gson itself.  Move VOs into engine-schema.

commit f64564e490
Author: Dennis Lawler <dlawler@gmail.com>
Date:   Mon Apr 29 15:10:09 2013 -0700

    Removing filterwin2k option

    Signed-off-by: Chiradeep Vittal <chiradeep@apache.org>

commit 944a7ea5d6
Author: Wei Zhou <w.zhou@leaseweb.com>
Date:   Mon May 6 20:57:02 2013 +0100

    CLOUDSTACK-2319: fix "unable to add egress rules" in SecurityGroup

    Signed-off-by: Chip Childers <chip.childers@gmail.com>

commit ff7f8ba362
Author: Wei Zhou <w.zhou@leaseweb.com>
Date:   Mon May 6 20:56:06 2013 +0100

    CLOUDSTACK-2322: update network.gateway to fix deployVm error on
    SharedNetwork after ipv6 support

    Signed-off-by: Chip Childers <chip.childers@gmail.com>

commit a153373c7e
Author: Alena Prokharchyk <alena.prokharchyk@citrix.com>
Date:   Mon May 6 11:45:19 2013 -0700

    CLOUDSTACK-129: added new API - listNetworkIsolationMethods - for displaying isolation methods supported by the cloudStack

commit 46f59cd49e
Author: Prasanna Santhanam <tsp@apache.org>
Date:   Mon May 6 20:39:36 2013 +0530

    Fixed the incorrect assertion in noncontiguous_vlan test

    The assertion fails if the VLAN is found in which case find returns a
    positive number. So here the assertion should infact assert < 0 result.

    Signed-off-by: Prasanna Santhanam <tsp@apache.org>

commit bd1dcc10b3
Author: Prasanna Santhanam <tsp@apache.org>
Date:   Mon May 6 19:53:42 2013 +0530

    Affinity Groups requires multiple storage pools

    Fixing the affinity group test which would fail to find the appropriate
    storage pool to satisfy the anti-affinity group of the second VM

    Signed-off-by: Prasanna Santhanam <tsp@apache.org>

commit 7f853cdb8f
Author: Prasanna Santhanam <tsp@apache.org>
Date:   Mon May 6 19:16:15 2013 +0530

    fixing double calls to VM deploy

    This fixes regression introduced in commit 2f40a90c that made duplicate
    calls to deployVirtualMachine.

    Signed-off-by: Prasanna Santhanam <tsp@apache.org>

commit 646e810fcf
Author: Prasanna Santhanam <tsp@apache.org>
Date:   Mon May 6 18:51:53 2013 +0530

    fixing wildcard imports

    Signed-off-by: Prasanna Santhanam <tsp@apache.org>

commit b29b6e8525
Author: Hugo Trippaers <htrippaers@schubergphilis.com>
Date:   Fri May 3 14:03:53 2013 +0200

    BigSwitch should only respond if it is the actual provider on the network.

    This fixes an NPE during the release call.

commit 6fcc9b009b
Author: Hugo Trippaers <htrippaers@schubergphilis.com>
Date:   Thu May 2 17:38:27 2013 +0200

    Prevent Nicira NVP tags from exceeding the 40 character limit.

commit d8e61a1c0a
Author: Sanjay Tripathi <sanjay.tripathi@citrix.com>
Date:   Thu May 2 13:45:39 2013 +0530

    CLOUDSTACK-2188 : Parsing error with Download Monitor while checking the health of downloaded templates

    Signed-off-by: Sateesh Chodapuneedi <sateesh@apache.org>

commit 5b6e1140f9
Author: Sebastien Goasguen <runseb@gmail.com>
Date:   Mon May 6 05:35:58 2013 -0400

    CLOUDSTACK-2339: Adding libcloud example

commit 7be62d2374
Author: Sebastien Goasguen <runseb@gmail.com>
Date:   Mon May 6 05:35:19 2013 -0400

    CLOUDSTACK-2338: Adding example of how to sign api requests in python

commit 156fd68902
Author: Talluri <Srikanteswararao.Talluri@citrix.com>
Date:   Fri May 3 23:11:56 2013 +0530

    CLOUDSTACK-2323: fix test scripts to conform with library changes

    Signed-off-by: Prasanna Santhanam <tsp@apache.org>

commit 33ff5e9107
Author: sanjeevneelarapu <sanjeev.neelarapu@citrix.com>
Date:   Tue Apr 30 20:09:46 2013 +0530

    CLOUDSTACK-702: Tests for Multiple IP Ranges

    1.Deleting IP Range from the existing CIDR
    2.Add non-contiguous guest IP range in new CIDR
    3.Add overlapped guest IP range in existing CIDR

    Signed-off-by: sanjeevneelarapu <sanjeev.neelarapu@citrix.com>
    Signed-off-by: Prasanna Santhanam <tsp@apache.org>

commit 33059d1f66
Author: Pranav Saxena <pranav.saxena@citrix.com>
Date:   Mon May 6 14:08:40 2013 +0530

    scaleUp VM response change corresponding UI changes

commit 92e18d8106
Author: Pranav Saxena <pranav.saxena@citrix.com>
Date:   Mon May 6 13:45:32 2013 +0530

    CLOUDSTACK-2337:Resize button available for root/domain admin and normal users

commit d5cd3f7e00
Author: Likitha Shetty <likitha.shetty@citrix.com>
Date:   Wed May 1 13:47:26 2013 +0530

    Dedicate guest vlan range to account

commit 12c79c8377
Author: Pranav Saxena <pranav.saxena@citrix.com>
Date:   Sun May 5 12:02:32 2013 +0530

    scale up virtual machine response change in the backend

commit 94bac27622
Author: Rohit Yadav <bhaisaab@apache.org>
Date:   Sun May 5 09:58:04 2013 +0530

    appliance: Upgrade systemvm appliance from rc1 to Debian7 GA

    Signed-off-by: Rohit Yadav <bhaisaab@apache.org>

commit c598bb0038
Author: Isaac Chiang <isaacchiang@gmail.com>
Date:   Sun May 5 01:57:35 2013 +0530

    CLOUDSTACK-2076:Listview widget infinte scrolling error

commit d0615ea9a1
Author: Pranav Saxena <pranav.saxena@citrix.com>
Date:   Sun May 5 01:15:14 2013 +0530

    CLOUDSTACK-2274:Detail view loading problem when deleting a zone

commit 733b513c3a
Author: Isaac Chiang <isaacchiang@gmail.com>
Date:   Sat May 4 13:41:02 2013 +0530

    CLOUDSTACK-2160:Refresh button functionality for security groups and statistics tab

commit 418d75d7a4
Author: Marcus Sorensen <marcus@betterservers.com>
Date:   Fri May 3 14:09:52 2013 -0600

    Summary: Release old DHCP entries

    Detail: Refresh dnsmasq with updated entries live, no outage

    BUG-ID: CLOUDSTACK-2299
    Submitted-by: Dennis Lawler <dlawler@gmail.com>
    Signed-off-by: Marcus Sorensen <marcus@betterservers.com> 1367611792 -0600

commit b3dce64577
Author: Kelven Yang <kelveny@gmail.com>
Date:   Tue May 7 10:57:19 2013 -0700

    fix unitest

commit b17885f0f6
Author: Alena Prokharchyk <alena.prokharchyk@citrix.com>
Date:   Tue May 7 09:55:47 2013 -0700

    InternalLb: some fixes to the unittest

commit 1cff609347
Merge: 053e184 a3a5c13
Author: Alena Prokharchyk <alena.prokharchyk@citrix.com>
Date:   Fri May 3 11:23:08 2013 -0700

    Merge branch 'master' into internallb1

    Conflicts:
    	server/src/com/cloud/network/NetworkModelImpl.java
    	server/src/com/cloud/network/NetworkServiceImpl.java
    	server/src/com/cloud/server/ManagementServerImpl.java
    	server/test/com/cloud/network/MockNetworkManagerImpl.java
    	server/test/com/cloud/vpc/MockNetworkManagerImpl.java

commit 053e18454d
Author: Alena Prokharchyk <alena.prokharchyk@citrix.com>
Date:   Fri May 3 11:07:07 2013 -0700

    InternalLB: marvin integration test for internal lb feature

commit 2e8e2f98f5
Author: Alena Prokharchyk <alena.prokharchyk@citrix.com>
Date:   Wed May 1 13:53:20 2013 -0700

    InternalLB: don't allow to upgrade the network from the network offering with internal LB to the offering with public LB, and vice versa

commit c773d204c8
Author: Chiradeep Vittal <chiradeep@apache.org>
Date:   Wed May 1 13:21:52 2013 -0700

    Internal LB: if we detect that we are inside an internal lb vm, call out to the ilb script to perform LB configuration

    Signed-off-by: Chiradeep Vittal <chiradeep@apache.org>

commit 8c8845bf77
Merge: 7e95545 471ca30
Author: Alena Prokharchyk <alena.prokharchyk@citrix.com>
Date:   Wed May 1 10:14:06 2013 -0700

    Merge branch 'master' into internallb1

commit 7e9554596f
Author: Alena Prokharchyk <alena.prokharchyk@citrix.com>
Date:   Wed May 1 10:01:16 2013 -0700

    InternalLb: boot args parameters cleanup for the internal lb vm

commit b7cf870074
Author: Alena Prokharchyk <alena.prokharchyk@citrix.com>
Date:   Tue Apr 30 10:31:28 2013 -0700

    InternalLb: more unittests for internal lb element

commit 63bb98ebe2
Author: Chiradeep Vittal <chiradeep@apache.org>
Date:   Mon Apr 29 18:29:25 2013 -0700

    allow ssh on eth1

    Signed-off-by: Chiradeep Vittal <chiradeep@apache.org>

commit ca1c313c29
Author: Alena Prokharchyk <alena.prokharchyk@citrix.com>
Date:   Mon Apr 29 17:58:45 2013 -0700

    InternalLb: DB upgrade - update existing physical networks with InternalLbVm provider

commit ed50caa01c
Author: Alena Prokharchyk <alena.prokharchyk@citrix.com>
Date:   Mon Apr 29 17:48:36 2013 -0700

    InternalLbVM: handle the scenario when sourceIpAddress is not passed when create internal Lb rule

commit 4c22c911a9
Author: Chiradeep Vittal <chiradeep@apache.org>
Date:   Mon Apr 29 15:56:00 2013 -0700

    backend support for Internal LB

    Signed-off-by: Chiradeep Vittal <chiradeep@apache.org>

commit 7b24a7640c
Merge: 440e848 a0dbf89
Author: Alena Prokharchyk <alena.prokharchyk@citrix.com>
Date:   Mon Apr 29 15:49:48 2013 -0700

    Merge branch 'master' into internallb1

    Conflicts:
    	server/src/com/cloud/api/ApiResponseHelper.java
    	server/src/com/cloud/api/query/QueryManagerImpl.java
    	server/src/com/cloud/configuration/ConfigurationManagerImpl.java
    	server/src/com/cloud/network/NetworkManagerImpl.java
    	server/src/com/cloud/network/firewall/FirewallManagerImpl.java
    	setup/db/db/schema-410to420.sql

commit 440e8484d6
Author: Alena Prokharchyk <alena.prokharchyk@citrix.com>
Date:   Mon Apr 29 13:27:06 2013 -0700

    InternalLB: unittests for InternalLoadBalancerVMManager

commit 63babe4b7e
Author: Alena Prokharchyk <alena.prokharchyk@citrix.com>
Date:   Fri Apr 26 13:44:01 2013 -0700

    InternalLb:

    1) Added unittests for InternalLoadBalancerVMService
    2) Added unittests for InternalLoadBalancerElementService

commit 4f9c47ce54
Author: Alena Prokharchyk <alena.prokharchyk@citrix.com>
Date:   Thu Apr 25 14:46:42 2013 -0700

    InternalLb: create internal lb vm specific service offering

commit 408ee59d1f
Author: Alena Prokharchyk <alena.prokharchyk@citrix.com>
Date:   Wed Apr 24 17:08:08 2013 -0700

    Internallb: new set of Web services APIs for managing Internal LB VMs

commit 7680e1cc10
Author: Alena Prokharchyk <alena.prokharchyk@citrix.com>
Date:   Wed Apr 24 17:08:08 2013 -0700

    Internallb:

    1) InternalLb and PublicLb can't be enabled on the same network offering
    2) Can have internalLb only on VPC tier

commit d73ca7ef73
Author: Alena Prokharchyk <alena.prokharchyk@citrix.com>
Date:   Wed Apr 24 13:02:32 2013 -0700

    InternalLb:
    1) fixed the bug when the guest nic on internal lb vm wasnt set to be default
    2) Don't send the rules to the internal lb vm if its in Stopped state

commit ca2fc30655
Merge: 8057567 04a2b2d
Author: Alena Prokharchyk <alena.prokharchyk@citrix.com>
Date:   Tue Apr 23 16:56:11 2013 -0700

    Merge branch 'master' into internallb1

    Conflicts:
    	server/src/com/cloud/network/vpc/VpcManagerImpl.java
    	server/src/com/cloud/server/ManagementServerImpl.java
    	setup/db/db/schema-410to420.sql

commit 8057567aaa
Author: Alena Prokharchyk <alena.prokharchyk@citrix.com>
Date:   Tue Apr 23 13:15:36 2013 -0700

    Internallb: more unittests for ApplicationLoadBalancerService

commit 35c0273b85
Author: Alena Prokharchyk <alena.prokharchyk@citrix.com>
Date:   Fri Apr 19 16:17:45 2013 -0700

    InternalLb: unittests for ApplicationLoadBalancerService

commit 69b23f7003
Author: Alena Prokharchyk <alena.prokharchyk@citrix.com>
Date:   Thu Apr 18 14:01:10 2013 -0700

    InternalLb: create/configure/listInternalLoadBalancerElement - fixes to the API response

commit a3321ce617
Author: Alena Prokharchyk <alena.prokharchyk@citrix.com>
Date:   Thu Apr 18 13:31:16 2013 -0700

    Internal LB : renamed the classes responsible for managing internal lb elements. Now the names are InternalLoadBalancerVMManager, InternalLoadBalancerVMService and InternalLoadBalancerVMManagerImpl

commit 2baf7c365c
Author: Alena Prokharchyk <alena.prokharchyk@citrix.com>
Date:   Thu Apr 18 10:02:17 2013 -0700

    Internallb: verify requested IP for LB rule (if specified) against guest network cidr

commit 0cfe96bd00
Merge: 501f2ff 11162f5
Author: Alena Prokharchyk <alena.prokharchyk@citrix.com>
Date:   Wed Apr 17 15:41:51 2013 -0700

    Merge branch 'master' into internallb1

    Conflicts:
    	api/src/com/cloud/network/IpAddress.java
    	server/src/com/cloud/network/NetworkServiceImpl.java
    	setup/db/db/schema-410to420.sql

commit 501f2ffa0b
Author: Alena Prokharchyk <alena.prokharchyk@citrix.com>
Date:   Tue Apr 16 17:03:50 2013 -0700

    InternalLb: validate source ip network as a part of LB rule creation

commit 4d9a7dfd85
Author: Alena Prokharchyk <alena.prokharchyk@citrix.com>
Date:   Tue Apr 16 16:03:32 2013 -0700

    InternalLB: in VPC, restrict public LB to one tier only. Internal LB can be supported on multiple tiers

commit 8689bf9eb3
Author: Alena Prokharchyk <alena.prokharchyk@citrix.com>
Date:   Tue Apr 16 15:59:56 2013 -0700

    Internal LB: added internal lb vm to the list of supported providers in VPC default offering

commit b7709b89ff
Author: Alena Prokharchyk <alena.prokharchyk@citrix.com>
Date:   Tue Apr 16 11:04:22 2013 -0700

    Internal Lb: added 2 boolean fields - internal_lb and public_lb - to the network offering. Define if internal or public LB service is supported. In the current release it's either one or another; in the future releases we might support both on the same network

commit 014689e45e
Merge: b3b16ba 90e8158
Author: Alena Prokharchyk <alena.prokharchyk@citrix.com>
Date:   Tue Apr 16 09:55:45 2013 -0700

    Merge branch 'master' into internallb1

    Conflicts:
    	api/src/com/cloud/network/Network.java
    	plugins/network-elements/f5/src/com/cloud/network/element/F5ExternalLoadBalancerElement.java
    	server/src/com/cloud/network/NetworkManagerImpl.java
    	server/src/com/cloud/network/NetworkServiceImpl.java
    	server/test/com/cloud/network/MockNetworkManagerImpl.java
    	server/test/com/cloud/vpc/MockNetworkManagerImpl.java
    	setup/db/db/schema-410to420.sql

commit b3b16bae48
Author: Alena Prokharchyk <alena.prokharchyk@citrix.com>
Date:   Mon Apr 15 17:00:31 2013 -0700

    InternalLB: allow to specify more than one provider for the LB service when create network offering as diff providers can support internal and public LB for the same network

commit a4fc1d7d65
Author: Alena Prokharchyk <alena.prokharchyk@citrix.com>
Date:   Mon Apr 15 13:45:25 2013 -0700

    Internal LB:

    1) Added network_offering_details DB table and corresponding VO/DAO objects. Change createNetworkOffering web services api to accept the map of key/value pairs as details.
    2) Allow to have multiple providers for the same service for the network to support the case when LB service can have separate providers for Internal LB and Public LB

commit 4530cebf2b
Author: Alena Prokharchyk <alena.prokharchyk@citrix.com>
Date:   Mon Apr 15 10:06:10 2013 -0700

    InternalLbVm: support for start/stop Internal lb vm

commit ae69f0ae56
Author: Alena Prokharchyk <alena.prokharchyk@citrix.com>
Date:   Fri Apr 12 17:25:02 2013 -0700

    InternalLb: fixed prepare() in InternalLbElement - have to prepare nics of User vms only

commit 888a83c221
Author: Alena Prokharchyk <alena.prokharchyk@citrix.com>
Date:   Fri Apr 12 15:58:27 2013 -0700

    InternalLb: Start/deploy internal LB vms for the existing LB rules as a part of network implement

commit 3b41d5bee1
Merge: bb73531 4b1a9f1
Author: Alena Prokharchyk <alena.prokharchyk@citrix.com>
Date:   Fri Apr 12 15:32:40 2013 -0700

    Merge branch 'master' into internallb1

    Conflicts:
    	server/src/com/cloud/network/NetworkModelImpl.java
    	server/src/com/cloud/server/ManagementServerImpl.java

commit bb73531fed
Author: Alena Prokharchyk <alena.prokharchyk@citrix.com>
Date:   Fri Apr 12 15:13:55 2013 -0700

    Internal Lb: list internal lb vms as a part of listRouters response. Introduced new parameter - role (can be virtual_router or internal_lb_vm)

commit c113ea184b
Author: Alena Prokharchyk <alena.prokharchyk@citrix.com>
Date:   Fri Apr 12 12:00:09 2013 -0700

    Add Internal Lb Provider/Element as a part of adding a physical network

commit 78c9db79da
Author: Alena Prokharchyk <alena.prokharchyk@citrix.com>
Date:   Fri Apr 12 10:05:28 2013 -0700

    InternalLbVm: destroy the internal lb vm when the last rule for the ip is being revoked

commit af6201257b
Author: Alena Prokharchyk <alena.prokharchyk@citrix.com>
Date:   Thu Apr 11 16:55:37 2013 -0700

    Internal LB: fixed some bugs in internal lb vm startup process

commit 1db240c2b6
Author: Alena Prokharchyk <alena.prokharchyk@citrix.com>
Date:   Thu Apr 11 14:23:55 2013 -0700

    InternalLb: fixed searchCriteria constructor in ApplicationLoadBalancerDaoImpl

commit 3795048fcc
Merge: f4c2b53 5f8a278
Author: Alena Prokharchyk <alena.prokharchyk@citrix.com>
Date:   Thu Apr 11 14:09:31 2013 -0700

    Merge branch 'master' into internallb1

    Conflicts:
    	api/src/com/cloud/async/AsyncJob.java
    	api/src/org/apache/cloudstack/api/ApiConstants.java
    	api/src/org/apache/cloudstack/api/BaseCmd.java
    	api/src/org/apache/cloudstack/api/ResponseGenerator.java
    	client/tomcatconf/commands.properties.in
    	server/src/com/cloud/api/ApiDBUtils.java
    	server/src/com/cloud/api/ApiResponseHelper.java
    	server/src/com/cloud/server/ManagementServerImpl.java
    	setup/db/db/schema-410to420.sql

commit f4c2b53c21
Author: Alena Prokharchyk <alena.prokharchyk@citrix.com>
Date:   Thu Apr 11 13:46:47 2013 -0700

    InternalLB: modified InternalLbElement to start the Internal Lb vm for each ip address (if not already started)

commit 76a4b1cf81
Author: Alena Prokharchyk <alena.prokharchyk@citrix.com>
Date:   Thu Apr 11 11:41:47 2013 -0700

    InternalLB: added logic for acquiring guest ip address for the Internal LB rule

commit 915e39fbaa
Author: Alena Prokharchyk <alena.prokharchyk@citrix.com>
Date:   Thu Apr 11 10:19:18 2013 -0700

    Removed unused methods doing ipAllocation from GuestNetworkGuru and NetworkServiceImpl. The correct method is located in NetworkModelImpl

commit 3f2a62c7f6
Merge: 20beb7a a0b5ebc
Author: Alena Prokharchyk <alena.prokharchyk@citrix.com>
Date:   Wed Apr 10 17:16:07 2013 -0700

    Merge branch 'master' into internallb1

commit 20beb7a16c
Author: Alena Prokharchyk <alena.prokharchyk@citrix.com>
Date:   Wed Apr 10 15:28:12 2013 -0700

    Internal LB: applyLoadBalancerRules - put not null check for sourceIpAddressId (can be null when Schema is not Public)

commit 87e5f5b9a6
Author: Alena Prokharchyk <alena.prokharchyk@citrix.com>
Date:   Wed Apr 10 15:17:58 2013 -0700

    Internal LB: intermediate checkin - added InternalLBAppliance manager and managerImpl

commit 53b9c0d142
Author: Alena Prokharchyk <alena.prokharchyk@citrix.com>
Date:   Tue Apr 9 17:55:10 2013 -0700

    Internal LB: added @Since to API docs for Internal LB related commands

commit 867b305ea8
Author: Alena Prokharchyk <alena.prokharchyk@citrix.com>
Date:   Tue Apr 9 17:51:19 2013 -0700

    Internal LB: Made InternalLbElement to extend the ip deployer as the LB service implements IPDeployerRequester

commit 7b9af28094
Author: Alena Prokharchyk <alena.prokharchyk@citrix.com>
Date:   Tue Apr 9 15:45:30 2013 -0700

    InternalLb: new set of Web Services APIs to add InternalLB as a network element to the cloudStack (the element is packaged as an independent plugin). New APIs:

    1) configureInternalLoadBalancerElement
    2) createInternalLoadBalancerElement
    3) listInternalLoadBalancerElements

commit 039e303d4a
Author: Alena Prokharchyk <alena.prokharchyk@citrix.com>
Date:   Tue Apr 9 14:01:11 2013 -0700

    InternalLB: Modified pluggable service VirtualRouterElementService to accept only VirtualRouter and VpcVirtualRouter as a VirtualRouterProvider type when add/configure elements. Other VirtualRouterProviderTypes are are taken care by elb/internal lb plugins.

commit f0018b4512
Author: Alena Prokharchyk <alena.prokharchyk@citrix.com>
Date:   Tue Apr 9 12:56:42 2013 -0700

    Internal LB:

    1)Added InternalLoadBalancerManager and corresponding Impl
    2)Add InternalLbVm as a default CS provider. DB upgrade is covered as well

commit e344cf250a
Author: Alena Prokharchyk <alena.prokharchyk@citrix.com>
Date:   Mon Apr 8 16:57:47 2013 -0700

    InternalLB - removed unused code from LoadBalancerDao

commit 3588f46848
Author: Alena Prokharchyk <alena.prokharchyk@citrix.com>
Date:   Mon Apr 8 16:23:03 2013 -0700

    Internal LB - added network-element plugin for internal lb service

commit 76325e6168
Author: Alena Prokharchyk <alena.prokharchyk@citrix.com>
Date:   Mon Apr 8 13:58:08 2013 -0700

    Internal Lb:

    1) When network has both kinds of LB rules - Public and Internal - never send them in the same set to the provider
    2) Added extra checks on the provider side to validate if the schema - Public or Internal - is supported.

commit 56c2fe1d37
Author: Alena Prokharchyk <alena.prokharchyk@citrix.com>
Date:   Mon Apr 8 12:34:59 2013 -0700

    InternalLB:

    1) Added new capability for the LB service - LbSchemes. Can take 2 values - Internal and Public.
    2) F5 and Netscaler LB providers - changes all LB related methods to accept LoadBalancingRule instead of ? extends FirewallRule.

commit 34bcb2d026
Author: Alena Prokharchyk <alena.prokharchyk@citrix.com>
Date:   Mon Apr 8 12:11:11 2013 -0700

    InternalLB: implemented list/delete/create web services API commands that will be used for Internal LB creation

commit 9ab31e11f7
Author: Alena Prokharchyk <alena.prokharchyk@citrix.com>
Date:   Fri Apr 5 15:59:55 2013 -0700

    InternalLB: change LoadBalancingRule - reference sourceIpAddress of th load balancer by its value, not DB id

commit 08f855d4e4
Author: Alena Prokharchyk <alena.prokharchyk@citrix.com>
Date:   Thu Apr 4 09:26:21 2013 -0700

    InternalLB:

    1) Added new set of Interfaces - including the new VO - for the internal load balancer
    2) DB change - added source_ip_address/source_ip_address_network_id/scheme (Internal/Public) fields to the load_balancer table
2013-05-09 11:54:41 -07:00
sanjeevneelarapu 53e496517e CLOUDSTACK-702: Tests for Multiple IP Ranges-R4
Add ip range overlapped with two ip ranges in the exiting cidr

Signed-off-by: sanjeevneelarapu <sanjeev.neelarapu@citrix.com>
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-05-08 14:37:29 +05:30
Srikanteswararao Talluri b8358e109e CLOUDSTACK-2377: change memory size to 128 mb for the tiny service offering in the integration tests
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-05-08 14:26:44 +05:30
Talluri 1fe50a8d67 CLOUDSTACK-2363: fixing the scripts to conform with lib changes
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-05-08 14:26:43 +05:30
Talluri 731cc439a3 CLOUDSTACK-2362: correct list append method
fix userdata integration test
2013-05-08 14:26:43 +05:30
Talluri 8be304434e CLOUDSTACK-2361: fix storage xenmotion test script
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-05-08 14:26:43 +05:30
Talluri 93db64fc25 CLOUDSTACK-2359: fix missing network type in the test scripts test_volumes.py and test_templates.py
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-05-08 14:26:40 +05:30
Prasanna Santhanam 548a8d8c1f Breaking down region tests
region tests will be run in smoke and regression. In smoke we only test
the basic creation of a region. More extensive testing of duplicate
regions, test for updating region atteributes is in component.

Separated the class for testing accounts within region (account sync)
into a a new suite.

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-05-08 13:50:04 +05:30
Sangeetha Hariharan 5ef2f1f26f CLOUDSTACK-2329, CLOUDSTACK-1820: Tests for regions
Marvin tests and corresponding library changes for the regions feature.

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-05-08 13:49:13 +05:30
Likitha Shetty 3a41a83f88 [MARVIN] Fixing dedicate_guest_vlan_range test 2013-05-08 11:22:16 +05:30
Prasanna Santhanam 887f405ce3 Renaming TesDedicateVlanRange -> TestDedicateVlanRange
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-05-07 15:29:10 +05:30
Prasanna Santhanam 64522b6bd5 moving test data to top level dictionary
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-05-07 13:52:12 +05:30
Alex Huang bc823f946c Fixed up the simulator to run with windows paths in cygwin 2013-05-06 16:34:41 -07:00
Prasanna Santhanam 4c0eecc195 Fixed the incorrect assertion in noncontiguous_vlan test
The assertion fails if the VLAN is found in which case find returns a
positive number. So here the assertion should infact assert < 0 result.

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-05-06 20:39:36 +05:30
Prasanna Santhanam c388f7f180 Affinity Groups requires multiple storage pools
Fixing the affinity group test which would fail to find the appropriate
storage pool to satisfy the anti-affinity group of the second VM

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-05-06 19:53:42 +05:30
Talluri f0749ce625 CLOUDSTACK-2323: fix test scripts to conform with library changes
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-05-06 14:55:58 +05:30
sanjeevneelarapu 70c936bb85 CLOUDSTACK-702: Tests for Multiple IP Ranges
1.Deleting IP Range from the existing CIDR
2.Add non-contiguous guest IP range in new CIDR
3.Add overlapped guest IP range in existing CIDR

Signed-off-by: sanjeevneelarapu <sanjeev.neelarapu@citrix.com>
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-05-06 14:28:32 +05:30
Likitha Shetty c8d843241e Dedicate guest vlan range to account 2013-05-06 10:02:41 +05:30
Mice Xia d7cab21e9a 1) rename RevertToSnapshotCmd->RevertToVMSnapshotCmd 2) add marvin test for vm snapshot 2013-05-03 12:32:53 +08:00
Parth Jagirdar 48540dcf56 CLOUDSTACK-2282: Selenium Headless configuration using PhantomJS.
Description:

	Putting in selenium_headless support.
	Command Line parameter added for management server ip.
2013-05-01 17:17:15 -07:00
Harikrishna Patnala 10b6c1c6c8 CLOUDSTACK-741: Granular Global Parameters Added parameters to cluster level cluster.storage.allocated.capacity.notificationthreshold cluster.storage.capacity.notificationthreshold
CLOUDSTACK-2036
global parameter for Router Template ID functionality added
We use 5 parameters to set the router template name for each hypervisor

Moved cpu.overprovisioning.factor and mem.overprovisioning.factor to be able to update/list using update/list configuration API at cluster level.

Signed-off-by: Abhinandan Prateek <aprateek@apache.org>
2013-05-01 12:12:37 +05:30
Girish Shilamkar 766b36f57c Add VPN users automation tests
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-04-29 14:15:28 +05:30
Harikrishna Patnala deaf9106ca CLOUDSTACK-741: Granular Global Parameters and adding fixes for CLOUDSTACK-2176, CLOUDSTACK-2198, CLOUDSTACK-2200
Adding the zone, cluster, account level parameters
The parameters at scope (zone/cluster/pool/account) can be updated by updateConfiguration API with additional parameter zoneid/clusterid/accountid/storagepoolid
Whenever these scoped parameters are used in CS they get value from the corresponding details table if not defined get value from global parameter.
Same with the listConfiguration API with additional parameter zoneid/clusterid/accountid/storagepoolid
2013-04-29 14:11:51 +05:30
sanjeevneelarapu b2fdd5e2a2 CLOUDSTACK-702: Tests for Multiple IP Ranges
1. Adding a cidr in existing subnet
2. Adding a cidr in new subnet

Signed-off-by: sanjeevneelarapu <sanjeev.neelarapu@citrix.com>
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-04-29 11:24:40 +05:30
Nitin Mehta 335aca3f54 =changes #2 2013-04-28 10:28:31 +05:30
Nitin Mehta 242f5f9cf7 =More changes and marvin test 2013-04-27 11:08:02 +05:30
Prasanna Santhanam 762977d7c6 Account object dereferences as account.name
Previously the jsonHelper would incorrectly deserialize the json
response if the object returned had an attribute of the same name
resulting in an additional level of indirection to refer to the entity's
attributes. eg: account.account.name instead of account.name

This fixes the tests that have still the same indirection exposed.

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-04-24 14:42:44 +05:30
Prasanna Santhanam 4e9e7937ed Fix Vijay's test to use the marvin integratin libararies
Changes to marvin_request and base libraries to accomadate POST
requests.

Additional tests for sending userdata through GET Userdata tests - send
size>2k data via GET and POST.

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-04-24 13:43:08 +05:30
Vijayendra Bhamidipati b0caae6b33 CLOUDSTACK-1086: DeployVirtualMachine userdata enhancements
Description:

	Currently, userdata sent over to the DeployVMCmd and
	updateVMCmd commands can be upto 2K in length, whether
	sent over GET or POST. We remove this limitation for
	POST to change this limit to 32K. Also enabling lazy
	load on userdata to improve performance during reads
	of large sized userdata from user VM records.

Signed-off-by: Min Chen <min.chen@citrix.com>
2013-04-24 13:42:38 +05:30
Prasanna Santhanam a1912d9ce2 Refactoring vlan and globalsetting tests
Refactoring the vlan and global_setting tests to use the marvin
libraries instead of command classes.

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-04-22 19:35:22 +05:30
Prasanna Santhanam 5a0f4b6330 return a ready template even if ostype doesn't match 2013-04-21 17:06:01 +05:30
Prasanna Santhanam 4a0b05a0b2 correcting the zone reference in scalevm test
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-04-21 16:54:45 +05:30
Prasanna Santhanam dc87d9325e naming conventions for test_modules
Pythonesque is better. Also test_modules should not have executable bit
set as the test runner will not find them.
2013-04-21 14:26:27 +05:30
Prasanna Santhanam d0108b8132 Fixing the incorrect zone typo
zone.networktype reference corrected as part of commit
5ee3cc41fe
2013-04-21 12:33:00 +05:30
Devdeep Singh 21ce3befc8 Storage motion for Xenserver changes: 1. Implemented Api findStoragePoolsForMigration. Added a new response objects to list storage pools available for migration. 2. Updated migrateVolume api for allowing migrating volumes of running vms. These changes are integrated into the latest storage refactoring changes. 3. Added the implementation for findHostsForMigration api. It lists the hosts to which an instance can be migrated, including hosts from within and across clusters to which an instance may be migrated with storage motion. The work of migrating a volume of a running vm is also done in copyAsync. 4. Updated the listHosts api for backward compatibility. 5. Added the implementation for migrateVirtualMachineWithVolume api. It migrates an instance with its volumes within a cluster and also across clusters. Also introduced a new XenServerStorageMotionStrategy for migrating volumes of a vm. When a vm is being migrated with its volumes, the vm is put in migrating state and a request is send to the volume manager to migrate the vm and its volumes. Volume manager calls into the volume service which forwards the request to data motion service after moving all the volumes to migrating state. Data motion service enumerates the strategies and the request reaches the XenServerStorageMotionStrategy. It calls in to the resource to complete the operation. 6. Resolved an issue where storage xenmotion of 2nd VM created from the same template to a host was failing with duplicate_vm exception. Made changes to remove the mac_seed key value pair from other_config when vms are created. This is was storage motion to fail. 7. Updated the db upgrade schema script. 8. Added the right permissions in commands.properties 9. Marvin tests for testing storage motion. Following scenarios are tested. 9.1. A virtual machine is migrated to another host. Its volumes are also migrated to another storage pool. 9.2. Just the volumes of a vm are migrated to another storage pool while the vm continues to run on the same host. 10. Unit tests for testing migration of a vm with its volumes.
Signed-off-by: Abhinandan Prateek <aprateek@apache.org>
2013-04-19 11:36:42 +05:30
Harikrishna Patnala eae22d2ffa CLOUDSTACK-741: Granular Global Parameters
Signed-off-by: Abhinandan Prateek <aprateek@apache.org>
2013-04-19 10:36:52 +05:30
Prasanna Santhanam b12905b7a8 pep8 compliance for cloudstackConnection
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-04-18 07:44:25 +05:30
Talluri 5ee3cc41fe CLOUDSTACK-2032: populate mode in the services dict from the list zones instead of hard coding
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-04-17 19:40:13 +05:30
Bharat Kumar 8b40e393b8 Cloudstack-701 Support for non contiguous vlan ranges.
Signed-off-by: Abhinandan Prateek <aprateek@apache.org>
2013-04-17 10:14:42 +05:30
Koushik Das e94c70254b Squashed commit of the following:
commit 7ce45ea108
Author: Koushik Das <koushik.das@citrix.com>
Date:   Mon Apr 15 18:36:33 2013 +0530

    Fixed indentation and line ending

commit 0232048f90
Merge: 735c4c8 97911e9
Author: Koushik Das <koushik.das@citrix.com>
Date:   Mon Apr 15 17:05:59 2013 +0530

    Merge branch 'master' into cisco-vnmc-api-integration

    Conflicts:
    	api/src/org/apache/cloudstack/api/ApiConstants.java
    	client/tomcatconf/commands.properties.in
    	setup/db/db/schema-410to420.sql
    	tools/marvin/marvin/integration/lib/base.py

commit 735c4c8955
Author: Koushik Das <koushik.das@citrix.com>
Date:   Mon Apr 15 15:20:37 2013 +0530

    Fixed unit tests based on recent changes in the Vnmc resource code

commit f166f2d0bf
Author: Koushik Das <koushik.das@citrix.com>
Date:   Mon Apr 15 14:50:25 2013 +0530

    added tests to register vnmc and asa appliance in cloudstack

commit f38be4810e
Author: Koushik Das <koushik.das@citrix.com>
Date:   Mon Apr 8 18:42:06 2013 +0530

    Removed unwanted files

commit 902ce426c1
Author: Koushik Das <koushik.das@citrix.com>
Date:   Mon Apr 8 17:59:30 2013 +0530

    Fixed auto-wiring of components for Cisco Vnmc

commit 08467ee307
Author: Koushik Das <koushik.das@citrix.com>
Date:   Mon Apr 8 16:04:54 2013 +0530

    Fixed compilation issues, incorrect merges from last commit

commit 67f11d46ad
Merge: 3422cee c9c68e1
Author: Koushik Das <koushik.das@citrix.com>
Date:   Mon Apr 8 15:11:10 2013 +0530

    Merge branch 'master' into cisco-vnmc-api-integration

commit 3422ceefb6
Author: Koushik Das <koushik.das@citrix.com>
Date:   Mon Apr 8 14:42:32 2013 +0530

    Correctly associating nat, acl policy sets to edge security profile in VNMC

commit 9c1e193fca
Author: Koushik Das <koushik.das@citrix.com>
Date:   Sun Apr 7 21:22:22 2013 +0530

    Passing correct subnet mask while creating edge firewall in VNMC

commit 05e3d04b55
Author: Koushik Das <koushik.das@citrix.com>
Date:   Tue Apr 2 17:50:57 2013 +0530

    Added changes related to icmp

commit bcecb589de
Author: Koushik Das <koushik.das@citrix.com>
Date:   Mon Apr 1 13:57:21 2013 +0530

    Some xml file renames

commit 9c1ee93f2e
Author: Koushik Das <koushik.das@citrix.com>
Date:   Sat Mar 30 15:54:25 2013 +0530

    Fixed PF and static NAT rule creation in VNMC

commit 7e6159fa05
Author: Koushik Das <koushik.das@citrix.com>
Date:   Wed Mar 27 18:53:49 2013 +0530

    Added more unit tests for Cisco Vnmc element

commit fc0ed9adb6
Author: Koushik Das <koushik.das@citrix.com>
Date:   Wed Mar 27 16:48:28 2013 +0530

    Cleaning up VNMC config as part of network shutdown

commit 5a427d48e2
Author: Koushik Das <koushik.das@citrix.com>
Date:   Wed Mar 27 02:22:54 2013 +0530

    Added unit test for Vnmc network element implement() method

commit 48cbf34d3b
Author: Koushik Das <koushik.das@citrix.com>
Date:   Wed Mar 27 02:20:45 2013 +0530

    Passing correct gateway ip while creating vservice node and guest port profile in Nexus

commit 2c386c61ef
Author: Koushik Das <koushik.das@citrix.com>
Date:   Fri Mar 22 13:50:52 2013 +0530

    Nexus 1000v fix

commit 4d2168bfa9
Author: Koushik Das <koushik.das@citrix.com>
Date:   Fri Mar 22 00:30:01 2013 +0530

    Egress firewall rule

commit e81ab3a2f4
Author: Koushik Das <koushik.das@citrix.com>
Date:   Thu Mar 21 10:50:29 2013 +0530

    More tests for VnmcResource class

commit 9e9c179212
Author: Koushik Das <koushik.das@citrix.com>
Date:   Thu Mar 21 00:25:10 2013 +0530

    Fixed build issue from master merge

commit f0c1af2b5c
Merge: 4f305c2 873ec27
Author: Koushik Das <koushik.das@citrix.com>
Date:   Wed Mar 20 16:20:10 2013 +0530

    Merge branch 'master' into cisco-vnmc-api-integration

    Conflicts:
    	api/src/com/cloud/network/Network.java
    	api/src/org/apache/cloudstack/api/ApiConstants.java
    	client/tomcatconf/components-nonoss.xml.in
    	client/tomcatconf/nonossComponentContext.xml.in
    	plugins/hypervisors/vmware/src/com/cloud/hypervisor/vmware/manager/VmwareManagerImpl.java
    	plugins/hypervisors/vmware/src/com/cloud/hypervisor/vmware/resource/VmwareResource.java
    	setup/db/db/schema-410to420.sql
    	vmware-base/src/com/cloud/hypervisor/vmware/mo/HypervisorHostHelper.java

commit 4f305c2beb
Author: Koushik Das <koushik.das@citrix.com>
Date:   Wed Mar 20 15:09:34 2013 +0530

    Initial set of tests, will add more in subsequent commits

commit 50bfcc1f75
Author: Koushik Das <koushik.das@citrix.com>
Date:   Wed Mar 20 15:02:14 2013 +0530

    Updated pom to copy xmls to target location during build

commit 45bc92b826
Author: Koushik Das <koushik.das@citrix.com>
Date:   Wed Mar 20 14:58:59 2013 +0530

    Fixed cpmpilation issue as missed out adding this file

commit 2ce7cdc756
Author: Koushik Das <koushik.das@citrix.com>
Date:   Sun Mar 17 17:02:25 2013 +0530

    Creating vservice node and associating it with port profile in nexus for guest VMs

commit 387545caff
Author: Koushik Das <koushik.das@citrix.com>
Date:   Sat Mar 16 11:14:43 2013 +0530

    Added license headers to XML files

commit 43e2997421
Author: Koushik Das <koushik.das@citrix.com>
Date:   Wed Mar 13 11:51:59 2013 +0530

    Changes related to instantiating the dao components

commit 99e88ecbf9
Author: Koushik Das <koushik.das@citrix.com>
Date:   Tue Mar 12 23:40:35 2013 +0530

    Fix build errors after merge from master

commit 7c20b120c2
Author: Koushik Das <koushik.das@citrix.com>
Date:   Tue Mar 12 23:31:46 2013 +0530

    Fixing poms and other xmls

commit ee868759a8
Merge: 9c94b6d a1b33ca
Author: Koushik Das <koushik.das@citrix.com>
Date:   Tue Mar 12 14:44:59 2013 +0530

    Merge branch 'master' into cisco-vnmc-api-integration

    Conflicts:
    	api/src/com/cloud/network/Network.java
    	api/src/org/apache/cloudstack/api/ApiConstants.java
    	plugins/pom.xml
    	setup/db/create-schema.sql

commit 9c94b6d231
Author: Koushik Das <koushik.das@citrix.com>
Date:   Fri Mar 8 22:20:23 2013 +0530

    Fixed XML to create static route in VNMC correctly

commit ef069b3323
Author: Koushik Das <koushik.das@citrix.com>
Date:   Fri Mar 8 15:26:26 2013 +0530

    Added logic for revoking ACL, PF and Static NAT rules

commit 4c65b70668
Author: Koushik Das <koushik.das@citrix.com>
Date:   Fri Mar 8 13:51:37 2013 +0530

    Renamed delete-acl-rule -> delete-rule

commit aa94eca516
Author: Koushik Das <koushik.das@citrix.com>
Date:   Fri Mar 8 00:38:52 2013 +0530

    - Creating static routes in VNMC as part of edge firewall configuration
    - Passing order parameter while creating rules so that they are evaluated in a specific order
    - Added methods in VnmcResource for listing acl policies and rules belonging to variouos policies. This is used to compute order while creation of various rules in VNMC

commit cc824e8585
Author: Koushik Das <koushik.das@citrix.com>
Date:   Thu Mar 7 12:16:29 2013 +0530

    Adding appropriate ACL rules for PF and static NAT

commit fb23c50365
Author: Koushik Das <koushik.das@citrix.com>
Date:   Fri Mar 1 17:21:45 2013 +0530

    Added logic for deleting various VNMC artifacts. Added/updated relevant xmls as well.

commit 970c21a9a3
Author: Koushik Das <koushik.das@citrix.com>
Date:   Fri Mar 1 01:54:10 2013 +0530

    Added implementation for delete of asa and vnmc apis

commit 22e1455142
Author: Koushik Das <koushik.das@citrix.com>
Date:   Fri Mar 1 01:19:43 2013 +0530

    List asa api to return guest network if associated. From this it can be inferred if asa is available or not

commit 32223736c9
Author: Koushik Das <koushik.das@citrix.com>
Date:   Fri Mar 1 00:50:55 2013 +0530

    Added Vmware cluster info along with asa1kv appliance.
    This is used to select the correct n1kv vsm for configuring the guest network

commit deed3cc951
Author: Koushik Das <koushik.das@citrix.com>
Date:   Mon Feb 25 18:03:59 2013 +0530

    Added support for static NAT rules.
    - Xmls for creating static nat rules in VNMC
    - applyStaticNats implementation in VNMC network element
    - handler for static nat in resource class

commit 681f0b7b50
Author: Koushik Das <koushik.das@citrix.com>
Date:   Mon Feb 25 10:44:13 2013 +0530

    Added implementation for firewall and port forwarding rules in Cisco VNMC element class

commit 66b01a6589
Author: Koushik Das <koushik.das@citrix.com>
Date:   Fri Feb 22 19:19:44 2013 +0530

    VNMC xml for deleting NAT policy

commit 5d98686768
Author: Koushik Das <koushik.das@citrix.com>
Date:   Fri Feb 22 19:16:41 2013 +0530

    Added support for PF/DNAT rules.
    Created methods in VNMCConnection class to create PF rules. Also moved out common code for PF and source NAT in methods.
    Updated the corresponding VNMC resource class.

commit 8db2fbeb8f
Author: Koushik Das <koushik.das@citrix.com>
Date:   Fri Feb 22 18:21:45 2013 +0530

    Added xml for creating NAT policy set in VNMC

commit f2da0d50ca
Author: Koushik Das <koushik.das@citrix.com>
Date:   Fri Feb 22 18:17:53 2013 +0530

    Added VNMC XMLs for supporting PF/DNAT rules.
    Also moved out some XMLs related to source NAT to common files so that these can be used for both source NAT and DNAT

commit 124a48819d
Author: Koushik Das <koushik.das@citrix.com>
Date:   Thu Feb 21 17:53:12 2013 +0530

    Separated out creation of ACL policy set and policy in VNMC

commit 1e38515f35
Author: Koushik Das <koushik.das@citrix.com>
Date:   Thu Feb 21 11:54:44 2013 +0530

    Added changes to create ingress fw rules in VNMC

commit cb2fba9e7c
Author: Koushik Das <koushik.das@citrix.com>
Date:   Thu Feb 14 16:23:05 2013 +0530

    Source NAT in VNMC

commit 720fe2f908
Author: Koushik Das <koushik.das@citrix.com>
Date:   Wed Feb 13 14:16:47 2013 +0530

    Fix Vnmc test file

commit d6dbe790c6
Author: Koushik Das <koushik.das@citrix.com>
Date:   Wed Feb 13 12:07:03 2013 +0530

    Added db. tables for asa1kv devices and their mapping with guest network

commit 3fd7e30f6e
Author: Koushik Das <koushik.das@citrix.com>
Date:   Wed Feb 13 11:52:12 2013 +0530

    Changes:
    - Added implementation for add/list asa1kv APIs
    - Added agent command for associating asa1kv appliance with logical edge firewall in VNMC
    - Added handler for the above agent command in VNMC resource class
    - Updated VNMC element class to support the above

commit d08e2a1faf
Author: Koushik Das <koushik.das@citrix.com>
Date:   Wed Feb 13 11:40:58 2013 +0530

    Added lifecycle APIs for Cisco Asa 1000v appliance.
    Added corresponding Dao and VO classes.
    Also added mapping Dao and VO for guest netwok and asa appliance

commit 6b999ec867
Author: Koushik Das <koushik.das@citrix.com>
Date:   Tue Feb 12 00:05:39 2013 +0530

    Changes:
    a. Added handlers for CreateLogicalEdgeFirewall and ConfigureNexusVSMForASA commands
    b. Logic for add/list vnmc device API
    c. Partial implementation for network element implement()

commit 0656250308
Author: Koushik Das <koushik.das@citrix.com>
Date:   Mon Feb 11 23:48:19 2013 +0530

    Moved VNMC provider creation to Network.java. The plugin code would have been the ideal place to keep it but current state of the code doesn't allow it.

commit dc402eaa7a
Author: Koushik Das <koushik.das@citrix.com>
Date:   Mon Feb 11 23:35:19 2013 +0530

    Added new commands for the following:
    a. Logical edge firewall creation in VNMC
    b. Asa1kv vservice node creation and updating asa1kv inside port profile with guest network vlan id in n1kv VSM

commit d6cdfe35f8
Author: Koushik Das <koushik.das@citrix.com>
Date:   Mon Feb 11 23:06:36 2013 +0530

    Added helper method to create port profile in n1kv VSM with additional parameters VDC tenant and edge security profile
    Added helper method to create a vservice node in n1kv VSM

commit db42da17e9
Author: Koushik Das <koushik.das@citrix.com>
Date:   Mon Feb 11 22:44:01 2013 +0530

    Added database table for storing VNMC devices

commit f991436335
Author: Koushik Das <koushik.das@citrix.com>
Date:   Fri Feb 8 16:00:15 2013 +0530

    Added support for network offering creation with VNMC as provider for firewall, port forwarding, source nat

commit 74de210359
Author: Koushik Das <koushik.das@citrix.com>
Date:   Fri Feb 8 15:06:11 2013 +0530

    Added name attribute for the VNMC lifecycle commands

commit 6ce25ef11d
Author: Chiradeep Vittal <chiradeep@apache.org>
Date:   Wed Jan 16 16:44:28 2013 -0800

    Fix licensing

commit 392cd8ed63
Author: Chiradeep Vittal <chiradeep@apache.org>
Date:   Wed Jan 16 16:38:19 2013 -0800

    cisco-vnmc: Fix api to use new conventions

commit 6b142bbaab
Author: Chiradeep Vittal <chiradeep@apache.org>
Date:   Wed Jan 16 15:33:33 2013 -0800

    WIP: configure ASA port profile

    Signed-off-by: Chiradeep Vittal <chiradeep@apache.org>

commit 1ae21ea49a
Author: Chiradeep Vittal <chiradeep@apache.org>
Date:   Wed Jan 16 15:33:01 2013 -0800

    WIP rename device to resource to better reflect nature of VNMC

    Signed-off-by: Chiradeep Vittal <chiradeep@apache.org>

commit 84d218f972
Author: Chiradeep Vittal <chiradeep@apache.org>
Date:   Wed Jan 16 15:32:54 2013 -0800

    WIP: fixes for associating ASA1000v to tenant

    Signed-off-by: Chiradeep Vittal <chiradeep@apache.org>

commit d74c6a9ac2
Author: Chiradeep Vittal <chiradeep@apache.org>
Date:   Wed Jan 16 15:32:45 2013 -0800

    WIP: fixes for associating ASA1000v to tenant

    Signed-off-by: Chiradeep Vittal <chiradeep@apache.org>

commit 9350d10849
Author: Chiradeep Vittal <chiradeep@apache.org>
Date:   Wed Jan 16 15:32:29 2013 -0800

    WIP: admin commands for adding / listing VNMC

    Signed-off-by: Chiradeep Vittal <chiradeep@apache.org>

commit a8031a0cfe
Author: Chiradeep Vittal <chiradeep@apache.org>
Date:   Wed Jan 16 15:30:41 2013 -0800

    WIP ASA 1000v listing"

    Signed-off-by: Chiradeep Vittal <chiradeep@apache.org>

commit f9cc674b9c
Author: Chiradeep Vittal <chiradeep@apache.org>
Date:   Wed Jan 16 15:30:36 2013 -0800

    WIP : edge firewall

    Signed-off-by: Chiradeep Vittal <chiradeep@apache.org>

commit 6a0964af00
Author: Chiradeep Vittal <chiradeep@apache.org>
Date:   Wed Jan 16 15:30:30 2013 -0800

    WIP : edge security policy

    Signed-off-by: Chiradeep Vittal <chiradeep@apache.org>

commit e32295e8cf
Author: Chiradeep Vittal <chiradeep@apache.org>
Date:   Wed Jan 16 15:30:24 2013 -0800

    WIP : dhcp server policy

    Signed-off-by: Chiradeep Vittal <chiradeep@apache.org>

commit 446a9b8491
Author: Chiradeep Vittal <chiradeep@apache.org>
Date:   Wed Jan 16 15:30:18 2013 -0800

    WIP : dhcp server policy

    Signed-off-by: Chiradeep Vittal <chiradeep@apache.org>

commit e35e0eb59b
Author: Chiradeep Vittal <chiradeep@apache.org>
Date:   Wed Jan 16 15:30:14 2013 -0800

    Move unit test

    Signed-off-by: Chiradeep Vittal <chiradeep@apache.org>

commit 2b43a3e74e
Author: Chiradeep Vittal <chiradeep@apache.org>
Date:   Wed Jan 16 15:30:08 2013 -0800

    Move unit test

    Signed-off-by: Chiradeep Vittal <chiradeep@apache.org>

commit 11b804a894
Author: Chiradeep Vittal <chiradeep@apache.org>
Date:   Wed Jan 16 15:29:54 2013 -0800

    WIP: XML control of VNMC

    Signed-off-by: Chiradeep Vittal <chiradeep@apache.org>
2013-04-15 18:58:43 +05:30
Srikanteswararao Talluri e7090e6933 CLOUDSTACK-2032: populate mode in the services dict from the list zones instead of hard coding
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-04-15 18:12:23 +05:30
Talluri 0abfe240c3 CLOUDSTACK-1995: Enhance resize volume tests to support xenserver hypervisor and fix few test flow errors
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-04-15 12:00:08 +05:30
Prasanna Santhanam 45f852bec2 nose won't discover the test if it is executable.
Changing test_public_ip_range.py to 644

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-04-12 23:27:43 +05:30
Prasanna Santhanam fd84c56bf9 moving the integration test to the smoke folder
The smoke folder is for the bvts and that's where maven+marvin will pick
up the tests tagged for the simulator run.

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-04-12 23:27:42 +05:30
Likitha Shetty 8f865c5a90 Dedicate Public IP address range to an account 2013-04-12 23:27:35 +05:30
Prasanna Santhanam 4ae3e5de7f scalevm test: adjust the tags to suit the environment
scalevm works with the xenserver hypervisortype only.

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-04-12 16:32:12 +05:30
Prasanna Santhanam 9de7a68e92 affinitygroup bvt: changes to the bvt for affinity groups
Added tags for the test, base.py extensions for list, craete, delete and
fixes to the test

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-04-11 13:23:39 -07:00
Prasanna Santhanam 943aef76f1 marvin bvt: getting rid of unused keys in the test
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-04-11 13:23:34 -07:00
Prasanna Santhanam 79812c253f bvt: marvin test for the affinity groups feature
The test deploys two VMs in the simulator context and verifies that the
default host -antiaffinity processor placed the VMs on two distinct
hosts.

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-04-11 13:23:32 -07:00
Prasanna Santhanam e52bf52238 affinity group tests moved into the test folder
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-04-11 13:23:30 -07:00
Jessica Wang 98bc240d2a Revert "Dedicate Public IP range"
This reverts commit d6ed8d7cb5.

Conflicts:

	server/test/com/cloud/configuration/ConfigurationManagerTest.java
2013-04-08 17:15:51 -07:00
Likitha Shetty d6ed8d7cb5 Dedicate Public IP range 2013-04-08 14:46:21 -07:00
Prasanna Santhanam 5d67c98e5b marvin+apidiscovery: Extend API discovery plugin
API discovery plugin will return embedded entities for marvin to
discovery and generate it's API classes.

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-04-02 18:31:30 +05:30
Prasanna Santhanam d4dc264917 simulator+marvin: include a router test
Added a test that will ensure the advanced router comes up in the
account belonging to the deployed VM. It should come up with the
publicip, guestip and linklocalip.

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-04-02 18:31:30 +05:30
Prasanna Santhanam 2e2046fe38 marvin changes to do an pre-integration and integration test
Introducing the simulator spring context -
simulatorComponentContext.xml.in. This separates the simulator beans so
that production deployments don't have the simulator in them. Context is
enabled with -Dsimulator as part of the developer profile.

Also adding config files - Simulator Config for advanced zone and basic
zone deployments under setup/dev.

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-04-02 18:31:29 +05:30
Prasanna Santhanam fe48bbebda moving out the vmpasswd into its own suite
vm passwords are extended features that don't need to be part of the
smoke suite.

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-04-02 18:31:29 +05:30
Nitin Mehta 3e4430d811 CLOUDSTACK-658 - Scaleup vm support for Xenserver
Added the framweork so that it can be extended for vmware and kvm as well.
Added unitests and marvin tests.
2013-03-28 16:43:37 +05:30
Prasanna Santhanam d7f9aa637e remove dependence on dsl iso
No need to download the 50MB iso for every test. It is sufficient to use
a dummy iso. This dummy iso was generated using mkisofs for test
purposes.

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-03-20 11:09:06 +05:30
Talluri 9342f561f7 CLOUDSTACK-1530: Fix integration test scripts in the components folder for imports and ostypeid Fix the integration scripts for nose import and ostypeid corrections
from nose.plugins.attrib import attr

"ostype": 'CentOS 5.3 (64-bit)',

        template = get_template(
                            cls.api_client,
                            cls.zone.id,
                            cls.services["ostype"]
                            )

Signed-off-by: Talluri <Srikanteswararao.Talluri@citrix.com>
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-03-06 13:45:07 +05:30
Prasanna Santhanam f5ba9137cc Back to the old expunge logic
The expunge interval and delay are respected and no additional delays
are introduced.

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-02-25 10:59:02 +05:30
Chip Childers 6cc1123a3e Correcting license headers that broke the build
Signed-off-by: Chip Childers <chip.childers@gmail.com>
2013-02-21 16:29:05 -05:00
Parth Jagirdar 8134885e2d CLOUDSTACK-1180: UI test automation using selenium
Description:
	Adding selenium test scripts.
2013-02-21 12:04:18 -05:00
Rohit Yadav 80d58b6c73 CLOUDSTACK-1317: Bump CloudStack package version to 4.2.0-SNAPSHOT in all poms
Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
2013-02-20 16:42:56 +05:30
Kelven Yang 1b2b369ecb Merge latest master into javelin 2013-01-31 11:34:49 -08:00
Rohit Yadav ae3d8aa018 rat: Fix apache license
Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
2013-01-30 17:44:41 -08:00
Marcus Sorensen 15906c03ca Summary: add/remove/update default nics feature
Description: Adds API calls updateDefaultNicForVirtualMachine,
addNicToVirtualMachine, and removeNicFromVirtualMachine. These are
intended to allow a user to modify a VM's configuration post
deployment, to adjust the networks to which the VM belongs.

BUG-ID: CLOUDSTACK-645
Submitted-by: Brian Angus <blangus@betterservers.com>
Submitted-by: Ryan Dietrich <ryan@betterservers.com>
Signed-off-by: Marcus Sorensen <marcus@betterservers.com> 1359494800 -0700
2013-01-30 17:43:21 -07:00
Rohit Yadav a4c778e115 test_vm_life_cycle: Don't wait a lot poll for change every expunge_cycle interval
Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
2013-01-25 23:40:01 -08:00
Rohit Yadav 221ac72a2e test_vm_life_cycle: Consider 600s threshold for expunge.delay as per server logic
Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
2013-01-25 19:01:23 -08:00
Rohit Yadav bc40ed85e5 test_vm_life_cycle: Fix expunging logic as in mgmt server
Sets expunge interval to 600 if it's less than that

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
2013-01-25 17:43:37 -08:00
Marcus Sorensen 975021dda1 Summary: adding resizeVolume api call
Detail: This merges the resizevolume feature branch, which provides the
ability to migrate a disk between disk offerings, thereby changing its
size, or specifying a new size if current disk offering is custom.

BUG-ID: CLOUDSTACK-644
Signed-off-by: Marcus Sorensen <marcus@betterservers.com> 1358358209 -0700
2013-01-16 17:43:35 -07:00
Marcus Sorensen 4f479e2b23 Summary: Modifying integration tests to use 128MB service offerings
Detail: The default devcloud tiny template is set up via devcloud.sql to have
at least 100MB RAM, changing the tests as well. This will also allow the builtin
devcloud-kvm tiny template to work for tests as it requires a bit more.

Signed-off-by: Marcus Sorensen <marcus@betterservers.com> 1358357431 -0700
2013-01-16 10:30:31 -07:00
Prasanna Santhanam 1b8e17255f integration test fix: test iso - obj reference within classmethod 2013-01-10 20:29:12 +05:30
Rohit Yadav 85e73a640e Merge branch 'master' into api_refactoring
Conflicts:
	client/tomcatconf/commands.properties.in

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
2013-01-03 23:27:42 -08:00
Prasanna Santhanam 287d7f4df0 marvin tests: marking the xen specific tests
these tests do verification assuming xenserver style disks /dev/xvda/b

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-01-03 22:13:14 -08:00
Rohit Yadav 102fcf370b CLOUDSTACK-736: Make integration smoke test assert on deployed vm name from response
Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
2013-01-03 15:37:09 -08:00
Prasanna Santhanam e49b3b27de marvin: storagetype reference only when attr present
reference the storagetype only when present. storagetype is reqd only for
devcloud style tests
2012-12-09 23:13:24 -08:00
Prasanna Santhanam 3ba8dc455f Smoke Tests: incorrect self reference in setUpClass
should be cls.apiClient and not self.apiClient
2012-12-09 22:15:37 -08:00
Prasanna Santhanam 21819dafb5 Summary: Devcloud tests for vm life cycle
Detail: VM Life cycle tests needed minor changes to run them against a
devcloud - basic zone, local storage envrioment.

Signed-off-by: Prasanna Santhanam <tsp@apache.org> 1354760111 -0800
2012-12-05 18:15:11 -08:00
Talluri 4b539ddcb3 Summary: Fixes marvin integration test for copy template/iso between zones
Detail:
This is a fix
1. to populate 'destzoneid' as part of the test data by issuing
listZones API. Earlier, this is provided manually in the test data.
2. to  wait till the ISO/template is downloaded & installed successfully
before being deleted as part of the cleanup.

BUG-ID: CLOUDSTACK-567
Reviewed-by: Prasanna Santhanam
Reported-by: Prasanna Santhanam
Signed-off-by: Prasanna Santhanam <tsp@apache.org> 1354234426 -0800
2012-11-29 16:13:46 -08:00
Prasanna Santhanam 2c561dd3a8 Summary: Removing ostypeid dependencies from tests
Detail: The listOsTypes API will filter when given the ostype name as
centOS 5.3. There is now no need to hardcode the uuids into the test

Signed-off-by: Prasanna Santhanam <tsp@apache.org> 1354228309 -0800
2012-11-29 15:41:56 -08:00
Prasanna Santhanam 145ba437cb fixing sed replace typo 2012-11-09 18:56:23 +05:30
Prasanna Santhanam d251bafbd4 Summary: tests can be driven parallely per module
Detail:  multiprocess plugin will drive each module in a seperate
process. the test runs will now be speeded up.

Signed-off-by: Prasanna Santhanam <tsp@apache.org> 1352465966 +0530
2012-11-09 18:29:25 +05:30
Prasanna Santhanam 07d555db37 Summary: secondary storage tests refactored
Detail: The secondary storage tests are now simplified. Since before
running tests we already ensure the health checks - template, builtin,
system vms are ready. there is no need to add additonal wait/sleep here.

Signed-off-by: Prasanna Santhanam <tsp@apache.org> 1351595163 +0530
2012-10-30 16:37:28 +05:30
Prasanna Santhanam c916d6a1f1 Bash is not python!
Signed-off-by: Prasanna Santhanam <tsp@apache.org> 1351573594 +0530
2012-10-30 10:37:16 +05:30
Prasanna Santhanam 802ddd43ca Summary: Moving the test integration libraries into marvin for CLI work
Detail: Integration tests use these libraries (base,utils,common) for
simplifying the usage of the API. These define the verbs of each
entity's usage (create, delete, add etc). For the CLI to present the
simplified API we'll leverage the integration libraries.

+ Fixes to setup-test-data.sh - kvm and xen each use a different version
of the built-in Cent OS template, 5.5 and 5.3 namely.

At a later point the setup-test-data script needs to be obsoleted.
ostypeids in tests should directly be determined from listOsTypes API
calls

Signed-off-by: Prasanna Santhanam <tsp@apache.org> 1351520707 +0530
2012-10-29 20:23:02 +05:30
Prasanna Santhanam 591cc5971f Summary: Do not filter by podid as systemvms span the zone
Detail: test_secondary_storage.py.test_systemvm_start() would try to
verify system VMs running under the zone but would filter by podid which
is not reqd. As systemVMs space a zone, filtering them zone-by-zone is
sufficient.

Signed-off-by: Prasanna Santhanam <tsp@apache.org> 1351506366 +0530
2012-10-29 15:57:35 +05:30
Prasanna Santhanam 8d7ad6020d Built-In is of type CentOS 5.5 (64-bit)
Signed-off-by: Prasanna Santhanam <tsp@apache.org> 1351434029 +0530
2012-10-28 19:51:32 +05:30
Prasanna Santhanam 5e451f899c Summary: Removing dbclient.close calls from integration tests
Detail:  Marvin auto-manages its connections now and there is no need to
call dbclient.close on tearDown of the test setup.

Signed-off-by: Prasanna Santhanam <tsp@apache.org> 1351152797 +0530
2012-10-25 13:44:45 +05:30
Prasanna Santhanam 0984f4319a Snapshot related tests moved for speedup
Snapshots take many hours to run because the lowest snapshot period for
testing is an HOURLY snapshot. The component tests are the right place
to run any long running tests. This will also speed up the smoke tests
to under an hour.
2012-10-18 09:42:00 +05:30
Prasanna Santhanam c86c5d2cc0 Uniting all the READMEs from tools and test
There are various READMEs under Cloudstack. This makes it confusing for
finding the purpose of each directory and tool within the project. All
the necessary information can now be found in the top-level README.tools
that is markdown editable. For the most updated information however it
is best to provide a wiki link to the tool you have added. Each tool
lies in a seperate section, please keep formatting unchanged.
2012-10-12 17:01:20 +05:30
Prasanna Santhanam 780468659f uniting the READMEs
Many READMEs spread over the integration and marvin test related
information can now be found in the single top-level directory
2012-10-12 16:07:03 +05:30
Prasanna Santhanam d1e260032f Python style error because of extraneous characters
Presence of Non-ASCII characters caused compilation errors.
2012-10-12 15:27:13 +05:30
David Nalley eac941d590 fixing license header for test_allocation_states.py CLOUDSTACK-314 2012-10-11 08:05:41 -04:00
Prasanna Santhanam 187d4f7ec9 hyphenate the option for mysql passwd. typo blunder 2012-10-09 19:45:19 +05:30
Prasanna Santhanam 71437addf5 Work with cloud user to find CentOS 5.3 passwd 2012-10-09 19:41:51 +05:30
Hugo Trippaers aa6355ffe6 Updated master to 4.1.0
mvn release:update-versions -DautoVersionSubmodules=true -Dnonoss -P
client,deps,developer  -DdevelopmentVersion=4.1.0-SNAPSHOT
2012-10-01 11:00:55 -07:00
Prasanna Santhanam 0cb54e2486 Exit code needs to be captured post nc output. Don't exec as cmd 2012-09-26 20:20:47 +05:30
Pradeep Soundararajan d94873ab4b CLOUDSTACK-28 wget.exe (GPLed) is present in the tools directory as a binary
Signed-off-by: Chip Childers <chip.childers@gmail.com>
2012-09-24 10:31:47 -04:00
Manikanta Kattamuri cfc2b85651 Removing eclipse .classpath and .project files as they are configured to ant build and adding the entries into .gitignore to stop further comitting of the files
Signed-off-by: Chip Childers <chip.childers@gmail.com>
2012-09-13 14:18:14 -04:00
Sebastien Goasguen 2329ee146a Correcting two instances of wiki.c.o to point to cwiki.a.o
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2012-09-13 19:35:53 +05:30
Prasanna Santhanam 41f6127fe1 Add license header the setup-test-data file 2012-09-12 18:48:34 +05:30
Prasanna Santhanam ce59b31c8d Additional tests in various areas 2012-09-12 18:48:33 +05:30
Prasanna Santhanam 9bba325915 renaming appropriately the setup data file
./setup-test-data.sh -t "path_to_tests" -d "db_svr" -m "mgt_svr" -p "hypervisor root password"
2012-09-12 18:48:33 +05:30
Prasanna Santhanam cef2ad170f Adding more classifications
- maintenance (host goes to maitnenance)
- multihost, multizone, multistorage
2012-09-12 18:48:33 +05:30
Prasanna Santhanam 97b7873590 Splitting resource_limit tests to allocation_states tests 2012-09-12 18:48:32 +05:30
Prasanna Santhanam 149bcb390b adding attributes to the smoke tests 2012-09-12 18:48:32 +05:30
Prasanna Santhanam 9043e49522 migrating tags to attr decorators for nose attrib classification 2012-09-12 18:48:32 +05:30
Prasanna Santhanam bb8016e08b Applying tags as attribute decorators for nose 2012-09-12 18:48:32 +05:30
Prasanna Santhanam a021c24c85 eip elb related fixes : corrected regex 2012-09-12 18:48:32 +05:30
Prasanna Santhanam b5bf6df75f elb test related fixes 2012-09-12 18:48:32 +05:30
Prasanna Santhanam cdbffdb334 Fixed mount command and logging in snapshot tests 2012-09-12 18:48:32 +05:30
Prasanna Santhanam 6e7b513810 Rearranging the project test suite according to global configs required
* Skipping if the global config required is not set
    * Cleanup the email tests from project suite
2012-09-12 18:48:32 +05:30
Prasanna Santhanam 0119e6d04e Fixing the vm_life_cycle expunge test
* expunge.interval determines the ExpungeTask interval to cleanup the
VM and post expunge.delay seconds we delete the VM entry. So let's just
wait long enough
2012-09-12 18:48:31 +05:30
Prasanna Santhanam ecfdb3af5c SecondaryStorage is always in Alert state. We need to check for SSVM. 2012-09-12 18:48:31 +05:30
Prasanna Santhanam e7e7085b86 Fixing imports to remoteSSHClient for EIP/ELB 2012-09-12 18:48:31 +05:30
Prasanna Santhanam bd6d354975 Fixes to scripts
* remoteSSHClient import is fixed
* mount now explicitly specifies filesystem
2012-09-12 18:48:31 +05:30
Prasanna Santhanam dfede8cdeb SecondaryStorageVM state should be checked for it Up status 2012-09-12 18:48:31 +05:30
Prasanna Santhanam a887f8d6ce Fixing the syntax errors while fixing whitespaces 2012-09-12 18:48:31 +05:30
Prasanna Santhanam b433b1afa6 Various fixes to tests
- Configuration fixes in Security groups and Egress rules
- Fixing white spaces in component test suite
2012-09-12 18:48:31 +05:30
Prasanna Santhanam a725fdc3ab Adding the tags for different configurations in to testcase 2012-09-12 18:48:30 +05:30
Prasanna Santhanam 8d74305707 Adding tags that identify deployment configurations against test cases
* advanced - Advanced Zone only
* basic  - basic zone without SecurityGroups
* sg - basic zone with security groups
* eip - basic zone with EIP/ELB
* advancedns - Advanced Zone with NetScalers
2012-09-12 18:48:30 +05:30
Prasanna Santhanam cddcc097b9 Fixing the remoteSSHClient imports, migrate VM, SSVM and router tests 2012-09-12 18:48:30 +05:30
Prasanna Santhanam ecfa3e7cf8 Revert "Marked copy to another zone tests as expectedFailure". This reverts commit 18a3e3cf2b. 2012-09-12 18:48:30 +05:30
Prasanna Santhanam dfb368d0fa Marked copy to another zone tests as expectedFailure 2012-09-12 18:48:30 +05:30
Rohit Yadav d917120845 Maven: Fix POM in test
Fixes and adds dependencies for building submodule test

Signed-off-by: Rohit Yadav <rohit.yadav@citrix.com>
2012-09-10 18:18:28 +05:30
Prasanna Santhanam 42cc2eb474 Poms for the test directory.
- test depends on selenium-java
- added artifact as dependency in test/pom.xml
2012-09-10 16:51:32 +05:30
Gavin Lee d3921139ed Patch from Gavin Lee: Change license to ASL2.0 in server and tools
Signed-off-by: Chip Childers <chip.childers@gmail.com>
2012-08-30 10:36:29 -04:00
Mice Xia 00b2a8040b Remove @author tag from non third-party source files in agent-simulator, cloud-cli, test, ui and utils folder 2012-08-13 15:30:42 +08:00
Alex Huang 14a60c7666 Removed Base64 from test 2012-08-10 06:10:24 -07:00
Alex Huang c1c952b42b should have used non url safe 2012-08-07 16:58:16 -07:00
Alex Huang a6a864a1a8 Removed Base64 file and use the apache version 2012-08-07 15:41:54 -07:00
Chip Childers ad79ee9f26 License header updates for the test folder. 2012-08-03 10:39:05 -04:00
David Nalley 7b7d51cecd apply chip childers licensing patches for the test directory
https://reviews.apache.org/r/5444/
2012-06-26 11:19:58 -04:00
David Nalley dcceb9d59b fixing a bunch of line endings in the test directory 2012-06-26 11:19:19 -04:00
frank 2fe8ee4d5e fix build after awsapi merge 2012-05-25 16:43:58 -07:00
Prasanna Santhanam 4fbf6bb95a Package imports for remoteSSHClient were not correct 2012-05-23 12:24:38 +05:30
Chirag Jog cbbed24ef4 Adding ELP/EIP tests & firewall rule changes for SSH 2012-05-22 19:17:26 +05:30
Prasanna Santhanam 54c62c8eb1 Basic readme to get started on running the tests 2012-05-17 17:11:41 +05:30
Prasanna Santhanam e29b0dafb6 Moving smoke tests and component tests into the test folder
Reviewed-by: pychecker
2012-05-17 17:01:49 +05:30
frank 2f634c0913 Switch to Apache license 2012-04-03 04:50:05 -07:00
Alena Prokharchyk 294d3a2fda Code format fixes 2012-02-10 15:10:21 -08:00
frank 52610ffcb3 add copyright header to shell scripts 2012-01-11 18:41:53 -08:00
Sheng Yang c44db2557d bug 11772: Add improved version of locking for the scripts in the systemvm
Because currently the lock in the script is retried every 1 second, and it's a
quite a long time that it's possible for some other active script can be
executed and retain the lock again. So it's possible that the first one request
the lock is always being preemptted by others, then finally got timeout.

To fix this issue, the retry interval is reduced to 0.1 seconds, which would
provide more retry times. And each process want to get the lock would create a
file named lockname-PID.lock, and only the first one(judged by timestamp) would
get the lock. The remaining ones would retry every 0.1 seconds to see if it can
get the lock.

Also timeout time is extended to 30 seconds.

And add testcase for it.

status 11772: resolved fixed
2011-11-01 19:06:14 -07:00
anthony e231ea1ab2 eclipse classpath fix 2011-08-31 15:51:19 -07:00
anthony f47bf2e4cf fixed eclipse classpath 2011-08-31 13:35:37 -07:00
frank d36a988d84 move simulator/test to opensource 2011-08-24 10:37:30 -07:00