1449 Commits

Author SHA1 Message Date
Remi Bergsma
b6e212f2c7 Merge pull request #773 from ekholabs/fix/vpc_nic-CLOUDSTACK-8759
CLOUDSTACK-8759 - Destroying VPC router results in a new unusable VPC routerHow to reproduce the problem:

1. Stop/Destroy the VPC router
2. Add a virtual machine to one of the VPC tier - it will trigger a VPC router creation
3. Router is created, but the NICs are not configured

How to recover without this fix:
1. Stop/destroy the VPC router and restart the VPC

Side effects: private gateways could be misconfigured.

Root cause:

In the VpcNetworkHelperImpl.configureDefaultNics() method, the guest network nic was added in the map prior to the control and public NICs. The order in the map should not matter, however in the LibvirtComputingResource.createVifs() method, there is a logic that relies on the device index - the array index - in order to create the  control nic. I advise a refactor on the data model in order to be able to identify the NIC type instead of relying in the array index.

An integration test was added to cover the fix:
* test_vpc_router_nics.py

Environment:
Management Server running on CentOS 7.1
KVM host running on CentOS 7.1
CloudStack Agent/Common 4.6.0-SNAPSHOT

Executing the test:

```
nosetests --with-marvin --marvin-config=/data/shared/marvin/mct-zone2-kvm2-ISOLATED.cfg -s -a tags=advanced,required_hardware=true component/test_vpc_router_nics.py
```

Remark: during the SSH there might be stack traces on the console due to the connection retry. It takes some time to get the PF rules in place and reach the VMs. So, just let the test run until the end.

```
Test results:

Create a vpc with two networks with two vms in each network ... === TestName: test_01_VPC_nics_after_destroy | Status : SUCCESS ===
ok

----------------------------------------------------------------------
Ran 1 test in 774.020s

OK
/tmp//MarvinLogs/test_vpc_router_nics_VH6E9S/results.txt (END)
```

* pr/773:
  CLOUDSTACK-8759 - Fix guets nic allocation
  CLOUDSTACK-8759 - Adding a marvin test in order to cover the fix
  CLOUDSTACK-8759 - The guest nic has to be added after the control nic

Signed-off-by: Remi Bergsma <github@remi.nl>
2015-09-05 11:41:18 +02:00
wilderrodrigues
23d0f3feda CLOUDSTACK-8759 - Adding a marvin test in order to cover the fix
- The test will create a VPC, add 2 tier, 2 VMs, ACL, PF and SSH into the VM
   - Then it will stop the router, destroy the router, add another VM to 1 tier and check that we can reach all the VMs
2015-09-02 17:05:16 +02:00
shweta agarwal
2eb83604a2 CLOUDSTACK-8755: xs-tools.iso missing from ISOs in CCP GUI
This closes #727
2015-09-02 11:46:28 +05:30
Koushik Das
53cba7c741 Merge pull request #741 from koushik-das/simulator_fixes
Made following fixes in simulator
- Support for ScaleVmCommand/NetworkRulesVmSecondaryIpCommand in resource layer
- Added support for scaling up a running VM in simulator
- Fixed some method names not following convention

In order to test PR #725 using simulator some of these changes are needed.

Based on the way HV check is present in the scale VM API, had to explicitly put simulator related check to allow support. The ideal way would be to remove all these HV specific check from code and made them some configuration (by putting them in hypervisor_capabilities table in DB). But that will be a bigger effort outside the scope of this PR.

Signed-off-by: Koushik Das <koushik@apache.org>
2015-08-31 12:15:54 +05:30
Miguel Ferreira
acc11dc3fb Add vm scalling test that runs on simulator 2015-08-27 11:14:17 +02:00
manasaVeloori
cc9c868590 verify that when createTemplate is ued to create templates with same name, all of them fet unique_name under vm_template table so that templates with same name does not get deleted during template sync
This closes #688
2015-08-26 17:43:14 +05:30
Rohit Yadav
6e5d4a60da Merge pull request #665 from pritisarap12/CLOUDSTACK-8716-Verify-creation-of-snapshot-from-volume-when-the-task-is-performed-repeatedly-in-zone-wide-primary-Storage
CLOUDSTACK-8716: Verify creation of snapshot from volume when the task is performed repeatedly in zone wide primary StorageOn VMWare with a Zone wide primary storage and more than two clusters verify successful creation of snapshot multiple times.

* pr/665:
  CLOUDSTACK-8716: Verify creation of snapshot from volume when the task is performed repeatedly in zone wide primary Storage

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-08-26 15:11:27 +05:30
Rohit Yadav
8252dbd006 Merge pull request #675 from pritisarap12/CLOUDSTACK-8723-Verify-API-call-listUsageRecords-returns-usage-of-new-volume-created-after-restore-VM
CLOUDSTACK-8723: Verify API call "listUsageRecords" returns usage of new volume created after restore VMAfter restoring a running VM current ROOT disk gets destroyed and new ROOT disk gets created.
This testcase is to check if volume usage of this newly created volume is listed in listUsageRecords API.

* pr/675:
  CLOUDSTACK-8723: Verify API call "listUsageRecords" returns usage of new volume created after restore VM

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-08-26 15:11:11 +05:30
Rohit Yadav
65e9ea9988 Merge pull request #729 from shwetaag/router
CLOUDSTACK-8757:FTP modules are not loaded in VRcheck bug 8757 for more details .

* pr/729:
  CLOUDSTACK-8757:FTP modules are not loaded in VR

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-08-26 14:47:19 +05:30
Miguel Ferreira
98dd771702 Add Marvin test for Nicira NVP plugin 2015-08-25 14:50:30 +02:00
shweta agarwal
cc308050b8 CLOUDSTACK-8757:FTP modules are not loaded in VR 2015-08-21 18:04:19 +05:30
radu-stefanache
c7a3ad4dc0 More typos 2015-08-20 13:04:29 +01:00
Priti Sarap
aa4aab8396 CLOUDSTACK-8716: Verify creation of snapshot from volume when the task is performed repeatedly in zone wide primary Storage
CLOUDSTACK-8716: Verify creation of snapshot from volume when the task is performed repeatedly in zone wide primary Storage
	 -Removing redundent code
	 -Added validate list function for list snapshot operation

CLOUDSTACK-8716: Verify creation of snapshot from volume when the task is performed repeatedly in zone wide primary Storage
2015-08-19 16:59:33 +05:30
Sowmya Krishnan
8bd1ca14ce Fixed pep8 issues 2015-08-17 16:57:33 +05:30
shweta agarwal
792c27c9bd test case automated for list template pagination
additional verification added
This closes #646
2015-08-13 15:51:16 +05:30
Priti Sarap
6fd491b1ce CLOUDSTACK-8693-Adding-missing-code-in-testpath_same_vm_name.py_testpatha 2015-08-13 13:11:50 +05:30
Priti Sarap
1e6420149f CLOUDSTACK-8723: Verify API call "listUsageRecords" returns usage of new volume created after restore VM 2015-08-11 16:54:05 +05:30
sanjeev
b1fa378612 CLOUDSTACK-8720: Handle corner case in remove nic from vm Please see the bug for more details
Incorporating comments from pavanb018

This closes #671
2015-08-11 12:33:46 +05:30
sanjeev
18fee95109 Removed medium dictionary from test_data and modified the tests dependent on it
Removed duplicate test data related to vm properties.Modified tests dependent on it

Removed duplicte service offerings from test data and modified tests dependent on it
Bug-Id: CLOUDSTACK-8617
This closes #644
2015-08-06 11:29:13 +05:30
Priti Sarap
c5ebb68be4 CLOUDSTACK-8689: Verify effect of changing value of XenServer Max guest limitis on previously added hosts
CLOUDSTACK-8689-Verify-effect-of-changing-value-of-XenServer-Max-guest-limitis-on-previously-added-hosts -Addning check for empty list and increamenting maxguestlimit accordingly

CLOUDSTACK-8689: Verify effect of changing value of XenServer Maxguestlimits on previously added hosts -As testcase is changing maxguestlimits global setting it will affect on other testcases also hence moving it to component/maint folder

This closes #638
2015-08-03 14:48:50 +05:30
Priti Sarap
b6a06b4bf5 CLOUDSTACK-8686: Data disk attach failed for clusters with only zone wide primary -Attaching the uploaded/allocated volume to a VM on zwps
This closes #631
2015-08-03 14:33:48 +05:30
Daan Hoogland
e2b6237464 CLOUDSTACK-8656: debug messages on interupted exceptions 2015-07-30 16:03:10 +02:00
Daan Hoogland
85e002b230 CLOUDSTACK-8656: filling empty catch block with info messages
using regexp "catch\s*\(\s*(Exception|Throwable)\s*\w*\)\s*\{\s*\}"
2015-07-30 15:51:52 +02:00
manasaVeloori
f45548bf0b Added a test to verify that listSnapshots response returns zone id
Made changes based on Comments
This closes #632
2015-07-30 12:32:04 +05:30
Koushik Das
5adfc1c786 Moved test for CLOUDSTACK-8651 to a new .py file
This closes #607
2015-07-29 13:41:31 +05:30
Koushik Das
3be278ed5e CLOUDSTACK-8651: [Browser Based Upload Template] Partially uploaded templates doesn't get cleaned up after the SSVM handling it is destroyed
Fixed template sync code to include templates in 'NotUploaded' and 'UploadInProgress' states along with 'Active'.
2015-07-29 13:40:43 +05:30
Priti Sarap
66f5163426 CLOUDSTACK-8659: Verify presentation of volume id in description of events table for 'SNAPSHOT.CREATE' type
This closes #613
2015-07-27 14:57:56 +05:30
Priti Sarap
9c9e902e5c CLOUDSTACK-8664: Verify if queryAsyncJobResult api return jobinstanceid
This closes #619
2015-07-27 12:38:12 +05:30
sanjeev
7f7026ace5 CLOUDSTACK-8634: Made changes to test_security_group.py test suite to support EIP
Signed-off-by: Pierre-Luc Dion <pdion891@apache.org>
2015-07-26 10:39:15 -04:00
Koushik Das
ab7c9e4098 CLOUDSTACK-8655: [Browser Based Upload Volume] Partially uploaded volumes are not getting destroyed as part of storage GC
As part of volume sync, that runs during of SSVM start-up, the volume_store_ref entry was getting deleted. Volume GC relies on this entry to move volume to destroyed state.
Since the entry was getting deleted, GC thread never moved the volume from UploadError/UploadAbandoned to Destroyed. Fix is to not remove the volume_store_ref entry as part
of volume sync and let GC thread handle the clean up.

This closes #611
2015-07-22 19:05:47 +05:30
nitt10prashant
b400608162 CLOUDSTACK-8639:fixing calculation mistakes in component/test_ss_domain_limits.py
This closes #595
2015-07-20 14:41:52 +05:30
Priti Sarap
faaf6b1f98 CLOUDSTACK-8636: Verify failure of creation of Custom disk offering with disksize parameter -Modified list validation of volume list
This closes #590
2015-07-20 12:29:05 +05:30
Priti Sarap
837486a43c CLOUDSTACK-8632: Unable to revert snapshot on XenServer 2015-07-20 12:28:31 +05:30
Gaurav Aradhye
538d6630db CLOUDSTACK-8632: Unable to revert snapshot on XenServer 2015-07-20 12:28:29 +05:30
Daan Hoogland
4ef40e215a style: empty line removed
This closes #229
2015-07-17 14:57:51 +02:00
Daan Hoogland
a6f17b33e8 style: leading space removed
This closes #189
2015-07-17 13:35:37 +02:00
wilderrodrigues
20be22c698 CLOUDSTACK-8616 - Removing the Priority form KeepaliveD configuration
- We use no preempt mode with state set as EQUAL to both nodes, no need to have Priotities setup
   - Do not add IPs as comments to the configuration. If a new guest interface is added, the file will change anyway.
     - This was used in the past when keepalived would restart for each new interface added
   - Removed the long sleep form the tests: we now sleep 5 seconds per PF rule added

CLOUDSTACK-8616 - Fix keepalived.ts/2 files comparison

   - Add call to set_fault() in case of router transits to that state
   - Removing commented out code

CLOUDSTACK-8616 - Fixing check_heartbeat.sh.templ

CLOUDSTACK-8616 - Call set_fault from the check_heartbeat.sh script

Signed-off-by: wilderrodrigues <wrodrigues@schubergphilis.com>
2015-07-16 13:14:48 +02:00
pritisarap12
5eccf88508 CLOUDSTACK-8588 - Remove redundant skip test for LXC
Signed-off-by: wilderrodrigues <wrodrigues@schubergphilis.com>

This closes #526
2015-07-16 09:03:25 +02:00
Gaurav Aradhye
d73f64a518 CLOUDSTACK-8582: Skipping unsuitable test cases for simulator
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>

This closes #532
2015-07-16 10:30:14 +05:30
pritisarap12
c5d016c372 CLOUDSTACK-8556: Unable to delete attached volume in cleanup
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>

This closes #481
2015-07-16 10:28:00 +05:30
pritisarap12
b73e486d02 CLOUDSTACK-8549-Update test_concurrent_snapshots_limits.py asesrt statement
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>

This closes #386
2015-07-16 10:26:26 +05:30
nitt10prashant
8e1f01d779 CLOUDSTACK-8626 :[Automation]fixing test/integration/component/test_ps_max_limits.py for lxc hypervisor
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>

This closes #579
2015-07-16 10:21:28 +05:30
Priti Sarap
373b107b96 CLOUDSTACK-8636: Verify failure of creation of Custom disk offering with disksize parameter
- Clear disk offering in tearDown() class if gets created

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>

This closes #592
2015-07-15 18:03:28 +05:30
Priti Sarap
abf216aed6 CLOUDSTACK-8637: Verify that VM with same Display name creation fails if vm.instancename.flag=true
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>

This closes #594
2015-07-15 18:02:24 +05:30
nitt10prashant
373b2c787e CLOUDSTACK-8631 :changing if condition in component/test_ss_max_limits.py
This closes #585
2015-07-15 13:44:06 +05:30
pavan018
03e8176bab Passing firewal service parameter for LB rule creation
Firewall service parameter addition typos
2015-07-14 15:57:56 +05:30
nitt10prashant
5a8648f958 CLOUDSTACK-8620 :skip test cases if rbd storage is not available in lxc setup
Signed-off-by: Daan Hoogland <daan.hoogland@gmail.com>

This closes #570
2015-07-10 15:15:50 +02:00
nitt10prashant
efee194b91 CLOUDSTACK-8620 :skip test cases if rbd storage is not available in lxc setup
Signed-off-by: Daan Hoogland <daan.hoogland@gmail.com>
2015-07-10 15:15:50 +02:00
Jayapal
3df847dfbb CLOUDSTACK-8324: Added integration tests for dhcp dns offload feature
This closes #568
2015-07-10 09:49:32 +05:30
pavan018
97ed8c3af5 Handling Basic zone failures in startVM with false condition
This closes #569
2015-07-09 15:54:35 +05:30