Remove vmware glance backend from tests.
-remove glance backend from dvs_reboot_vcenter_2, dvs_reboot_vcenter_1 -update test steps in test plan acording to removing vmware glance backend. -update test steps of dvs_port_security_group -change version of DVS and OpenStack in master test plan Change-Id: I7f810b92355cdd190e711968d8a9d3ec59d140ca
This commit is contained in:
@@ -136,21 +136,19 @@ Steps
|
||||
4. Configure interfaces on nodes.
|
||||
5. Configure network settings.
|
||||
6. Enable and configure DVS plugin.
|
||||
7. Enable VMWare vCenter/ESXi datastore for images (Glance).
|
||||
8. Configure VMware vCenter Settings. Add 1 vSphere clusters and configure Nova Compute instances on conrollers.
|
||||
9. Configure Glance credentials on VMware tab.
|
||||
10. Verify networks.
|
||||
11. Deploy cluster.
|
||||
12. Run OSTF.
|
||||
13. Launch instance VM_1 with image TestVM, availability zone nova and flavor m1.micro.
|
||||
14. Launch instance VM_2 with image TestVM-VMDK, availability zone vcenter and flavor m1.micro.
|
||||
15. Check connection between instances, send ping from VM_1 to VM_2 and vice verse.
|
||||
16. Reboot vcenter.
|
||||
17. Check that controller lost connection with vCenter.
|
||||
18. Wait for vCenter.
|
||||
19. Ensure that all instances from vCenter displayed in dashboard.
|
||||
20. Ensure connectivity between instances.
|
||||
21. Run OSTF.
|
||||
7. Configure VMware vCenter Settings. Add 1 vSphere clusters and configure
|
||||
Nova Compute instances on conrollers.
|
||||
8. Verify networks.
|
||||
9. Deploy cluster.
|
||||
10. Run OSTF.
|
||||
11. Launch instance VM_1 with image TestVM, availability zone nova and flavor m1.micro.
|
||||
12. Launch instance VM_2 with image TestVM-VMDK, availability zone vcenter and flavor m1.micro.
|
||||
13. Check connection between instances, send ping from VM_1 to VM_2 and vice verse.
|
||||
14. Reboot vcenter.
|
||||
15. Check that controller lost connection with vCenter.
|
||||
16. Wait for vCenter.
|
||||
17. Ensure connectivity between instances.
|
||||
18. Run OSTF.
|
||||
|
||||
|
||||
Expected result
|
||||
@@ -199,21 +197,19 @@ Steps
|
||||
4. Configure interfaces on nodes.
|
||||
5. Configure network settings.
|
||||
6. Enable and configure DVS plugin.
|
||||
7. Enable VMWare vCenter/ESXi datastore for images (Glance).
|
||||
8. Configure VMware vCenter Settings. Add 1 vSphere clusters and configure Nova Compute instances on compute-vmware.
|
||||
9. Configure Glance credentials on VMware tab.
|
||||
10. Verify networks.
|
||||
11. Deploy cluster.
|
||||
12. Run OSTF.
|
||||
13. Launch instance VM_1 with image TestVM, nova availability zone and flavor m1.micro.
|
||||
14. Launch instance VM_2 with image TestVM-VMDK, vcenter availability zone and flavor m1.micro.
|
||||
15. Check connection between instances, send ping from VM_1 to VM_2 and vice verse.
|
||||
16. Reboot vcenter.
|
||||
17. Check that ComputeVMware lost connection with vCenter.
|
||||
18. Wait for vCenter.
|
||||
19. Ensure that all instances from vCenter displayed in dashboard.
|
||||
20. Ensure connectivity between instances.
|
||||
21. Run OSTF.
|
||||
7. Configure VMware vCenter Settings. Add 1 vSphere clusters and configure
|
||||
Nova Compute instances on compute-vmware.
|
||||
8. Verify networks.
|
||||
9. Deploy cluster.
|
||||
10. Run OSTF.
|
||||
11. Launch instance VM_1 with image TestVM, nova availability zone and flavor m1.micro.
|
||||
12. Launch instance VM_2 with image TestVM-VMDK, vcenter availability zone and flavor m1.micro.
|
||||
13. Check connection between instances, send ping from VM_1 to VM_2 and vice verse.
|
||||
14. Reboot vcenter.
|
||||
15. Check that ComputeVMware lost connection with vCenter.
|
||||
16. Wait for vCenter.
|
||||
17. Ensure connectivity between instances.
|
||||
18. Run OSTF.
|
||||
|
||||
|
||||
Expected result
|
||||
|
||||
@@ -147,20 +147,20 @@ smoke
|
||||
Steps
|
||||
#####
|
||||
|
||||
1. Connect to a Fuel web UI with preinstalled plugin.
|
||||
2. Create a new environment with following parameters:
|
||||
1. Upload plugins to the master node.
|
||||
2. Install plugin.
|
||||
3. Create a new environment with following parameters:
|
||||
* Compute: KVM/QEMU with vCenter
|
||||
* Networking: Neutron with VLAN segmentation
|
||||
* Storage: default
|
||||
* Additional services: default
|
||||
3. Add nodes with following roles:
|
||||
4. Add nodes with following roles:
|
||||
* Controller
|
||||
4. Configure interfaces on nodes.
|
||||
5. Configure network settings.
|
||||
6. Enable and configure DVS plugin.
|
||||
7. Configure settings:
|
||||
* Enable VMWare vCenter/ESXi datastore for images (Glance).
|
||||
8. Configure VMware vCenter Settings. Add 1 vSphere clusters and configure Nova Compute instances on conrollers.
|
||||
5. Configure interfaces on nodes.
|
||||
6. Configure network settings.
|
||||
7. Enable and configure DVS plugin.
|
||||
8. Configure VMware vCenter Settings. Add 1 vSphere clusters and configure
|
||||
Nova Compute instances on conrollers.
|
||||
9. Deploy cluster.
|
||||
10. Run OSTF.
|
||||
|
||||
|
||||
@@ -560,14 +560,13 @@ Steps
|
||||
4. Verify that traffic can be successfully sent from and received on the MAC and IP address associated with the logical port.
|
||||
5. Configure a new IP address on the instance associated with the logical port.
|
||||
6. Confirm that the instance cannot communicate with that IP address.
|
||||
7. Configure a new MAC address on the instance associated with the logical port.
|
||||
8. Confirm that the instance cannot communicate with that MAC address and the original IP address.
|
||||
|
||||
|
||||
Expected result
|
||||
###############
|
||||
|
||||
Instances should not communicate with new ip and mac addresses but it should communicate with old IP.
|
||||
Each instance should not communicate with new ip address but it should
|
||||
communicate with old ip address.
|
||||
|
||||
|
||||
Check connectivity between instances with same ip in different tenants.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
=============================================
|
||||
Test Plan for VMware DVS plugin version 2.1.0
|
||||
Test Plan for VMware DVS plugin version 3.0.0
|
||||
=============================================
|
||||
|
||||
************
|
||||
@@ -69,7 +69,7 @@ Product compatibility matrix
|
||||
- Version
|
||||
- Comment
|
||||
* - MOS
|
||||
- 8.0 with Liberty
|
||||
- 9.0 with Mitaka
|
||||
-
|
||||
* - Operating System
|
||||
- Ubuntu 14.04
|
||||
@@ -94,7 +94,7 @@ Evaluation Mission and Test Motivation
|
||||
Project main goal is to build a MOS plugin that integrates a Neutron ML2
|
||||
Driver For VMWare vCenter DVS. This will allow to use Neutron for networking
|
||||
in vmware-related environments. The plugin must be compatible with the version
|
||||
8.0 of Mirantis OpenStack and should be tested with sofware/hardware described
|
||||
9.0 of Mirantis OpenStack and should be tested with sofware/hardware described
|
||||
in `product compatibility matrix`_.
|
||||
|
||||
See the VMware DVS Plugin specification for more details.
|
||||
|
||||
@@ -102,8 +102,8 @@ class TestDVSDestructive(TestBasic):
|
||||
os_conn=admin, nics=[{'net-id': network.id}],
|
||||
security_groups=[security_group.name, default_sg['name']])
|
||||
|
||||
self.show_step(13)
|
||||
self.show_step(14)
|
||||
self.show_step(11)
|
||||
self.show_step(12)
|
||||
instances = openstack.create_instances(
|
||||
os_conn=admin, nics=[{'net-id': network.id}],
|
||||
vm_count=1,
|
||||
@@ -116,7 +116,7 @@ class TestDVSDestructive(TestBasic):
|
||||
ips.append(admin.get_nova_instance_ip(
|
||||
instance, net_name=self.inter_net_name))
|
||||
time.sleep(30)
|
||||
self.show_step(15)
|
||||
self.show_step(13)
|
||||
for ip in ips:
|
||||
ping_result = openstack.remote_execute_command(
|
||||
access_point_ip, ip, "ping -c 5 {}".format(ip))
|
||||
@@ -125,7 +125,7 @@ class TestDVSDestructive(TestBasic):
|
||||
"Ping isn't available from {0} to {1}".format(ip, ip)
|
||||
)
|
||||
|
||||
self.show_step(16)
|
||||
self.show_step(14)
|
||||
vcenter_name = [
|
||||
name for name in self.WORKSTATION_NODES if 'vcenter' in name].pop()
|
||||
node = vmrun.Vmrun(
|
||||
@@ -136,17 +136,17 @@ class TestDVSDestructive(TestBasic):
|
||||
password=self.WORKSTATION_PASSWORD)
|
||||
node.reset()
|
||||
|
||||
self.show_step(17)
|
||||
self.show_step(15)
|
||||
wait(lambda: not icmp_ping(
|
||||
self.VCENTER_IP), interval=1, timeout=10,
|
||||
timeout_msg='Vcenter is still availabled.')
|
||||
|
||||
self.show_step(18)
|
||||
self.show_step(16)
|
||||
wait(lambda: icmp_ping(
|
||||
self.VCENTER_IP), interval=5, timeout=120,
|
||||
timeout_msg='Vcenter is not availabled.')
|
||||
|
||||
self.show_step(20)
|
||||
self.show_step(17)
|
||||
for ip in ips:
|
||||
ping_result = openstack.remote_execute_command(
|
||||
access_point_ip, ip, "ping -c 5 {}".format(ip))
|
||||
@@ -315,7 +315,7 @@ class TestDVSDestructive(TestBasic):
|
||||
|
||||
plugin.install_dvs_plugin(self.ssh_manager.admin_ip)
|
||||
|
||||
# Configure cluster with 2 vcenter clusters and vcenter glance
|
||||
# Configure cluster with 2 vcenter clusters
|
||||
cluster_id = self.fuel_web.create_cluster(
|
||||
name=self.__class__.__name__,
|
||||
mode=DEPLOYMENT_MODE,
|
||||
@@ -503,25 +503,22 @@ class TestDVSDestructive(TestBasic):
|
||||
4. Configure interfaces on nodes.
|
||||
5. Configure network settings.
|
||||
6. Enable and configure DVS plugin.
|
||||
7. Enable VMWare vCenter/ESXi datastore for images (Glance).
|
||||
8. Configure VMware vCenter Settings. Add 2 vSphere clusters
|
||||
7. Configure VMware vCenter Settings. Add 2 vSphere clusters
|
||||
and configure Nova Compute instances on conrollers.
|
||||
9. Configure Glance credentials on VMware tab.
|
||||
10. Verify networks.
|
||||
11. Deploy cluster.
|
||||
12. Run OSTF.
|
||||
13. Launch instance VM_1 with image TestVM, availability zone nova
|
||||
8. Verify networks.
|
||||
9. Deploy cluster.
|
||||
10. Run OSTF.
|
||||
11. Launch instance VM_1 with image TestVM, availability zone nova
|
||||
and flavor m1.micro.
|
||||
14. Launch instance VM_2 with image TestVM-VMDK, availability zone
|
||||
12. Launch instance VM_2 with image TestVM-VMDK, availability zone
|
||||
vcenter and flavor m1.micro.
|
||||
15. Check connection between instances, send ping from VM_1 to VM_2
|
||||
13. Check connection between instances, send ping from VM_1 to VM_2
|
||||
and vice verse.
|
||||
16. Reboot vcenter.
|
||||
17. Check that controller lost connection with vCenter.
|
||||
18. Wait for vCenter.
|
||||
19. Ensure that all instances from vCenter displayed in dashboard.
|
||||
20. Ensure connectivity between instances.
|
||||
21. Run OSTF.
|
||||
14. Reboot vcenter.
|
||||
15. Check that controller lost connection with vCenter.
|
||||
16. Wait for vCenter.
|
||||
17. Ensure that all instances from vCenter displayed in dashboard.
|
||||
18. Run OSTF.
|
||||
|
||||
|
||||
Duration: 2.5 hours
|
||||
@@ -538,8 +535,7 @@ class TestDVSDestructive(TestBasic):
|
||||
mode=DEPLOYMENT_MODE,
|
||||
settings={
|
||||
"net_provider": 'neutron',
|
||||
"net_segment_type": NEUTRON_SEGMENT_TYPE,
|
||||
'images_vcenter': True
|
||||
"net_segment_type": NEUTRON_SEGMENT_TYPE
|
||||
}
|
||||
)
|
||||
|
||||
@@ -558,27 +554,28 @@ class TestDVSDestructive(TestBasic):
|
||||
plugin.enable_plugin(cluster_id, self.fuel_web)
|
||||
|
||||
self.show_step(7)
|
||||
self.show_step(8)
|
||||
self.show_step(9)
|
||||
self.fuel_web.vcenter_configure(
|
||||
cluster_id,
|
||||
multiclusters=True,
|
||||
vc_glance=True
|
||||
multiclusters=True
|
||||
)
|
||||
|
||||
self.show_step(10)
|
||||
self.show_step(8)
|
||||
self.fuel_web.verify_network(cluster_id)
|
||||
|
||||
self.show_step(11)
|
||||
self.show_step(9)
|
||||
self.fuel_web.deploy_cluster_wait(cluster_id)
|
||||
|
||||
self.show_step(12)
|
||||
self.show_step(10)
|
||||
self.fuel_web.run_ostf(
|
||||
cluster_id=cluster_id, test_sets=['smoke'])
|
||||
|
||||
os_ip = self.fuel_web.get_public_vip(cluster_id)
|
||||
self.extended_tests_reset_vcenter(os_ip)
|
||||
|
||||
self.show_step(18)
|
||||
self.fuel_web.run_ostf(
|
||||
cluster_id=cluster_id, test_sets=['smoke'])
|
||||
|
||||
@test(depends_on=[SetupEnvironment.prepare_slaves_5],
|
||||
groups=["dvs_reboot_vcenter_2", 'dvs_vcenter_system'])
|
||||
@log_snapshot_after_test
|
||||
@@ -601,25 +598,22 @@ class TestDVSDestructive(TestBasic):
|
||||
4. Configure interfaces on nodes.
|
||||
5. Configure network settings.
|
||||
6. Enable and configure DVS plugin.
|
||||
7. Enable VMWare vCenter/ESXi datastore for images (Glance).
|
||||
8. Configure VMware vCenter Settings. Add 1 vSphere clusters and
|
||||
7. Configure VMware vCenter Settings. Add 1 vSphere clusters and
|
||||
configure Nova Compute instances on compute-vmware.
|
||||
9. Configure Glance credentials on VMware tab.
|
||||
10. Verify networks.
|
||||
11. Deploy cluster.
|
||||
12. Run OSTF.
|
||||
13. Launch instance VM_1 with image TestVM, availability zone nova
|
||||
8. Verify networks.
|
||||
9. Deploy cluster.
|
||||
10. Run OSTF.
|
||||
11. Launch instance VM_1 with image TestVM, availability zone nova
|
||||
and flavor m1.micro.
|
||||
14. Launch instance VM_2 with image TestVM-VMDK, availability zone
|
||||
12. Launch instance VM_2 with image TestVM-VMDK, availability zone
|
||||
vcenter and flavor m1.micro.
|
||||
15. Check connection between instances, send ping from VM_1 to VM_2
|
||||
13. Check connection between instances, send ping from VM_1 to VM_2
|
||||
and vice verse.
|
||||
16. Reboot vcenter.
|
||||
17. Check that controller lost connection with vCenter.
|
||||
18. Wait for vCenter.
|
||||
19. Ensure that all instances from vCenter displayed in dashboard.
|
||||
20. Ensure connectivity between instances.
|
||||
21. Run OSTF.
|
||||
14. Reboot vcenter.
|
||||
15. Check that controller lost connection with vCenter.
|
||||
16. Wait for vCenter.
|
||||
17. Ensure that all instances from vCenter displayed in dashboard.
|
||||
18. Run OSTF.
|
||||
|
||||
|
||||
Duration: 2.5 hours
|
||||
@@ -627,21 +621,22 @@ class TestDVSDestructive(TestBasic):
|
||||
"""
|
||||
self.env.revert_snapshot("ready_with_5_slaves")
|
||||
|
||||
self.show_step(1)
|
||||
plugin.install_dvs_plugin(self.ssh_manager.admin_ip)
|
||||
|
||||
# Configure cluster with 2 vcenter clusters and vcenter glance
|
||||
self.show_step(2)
|
||||
cluster_id = self.fuel_web.create_cluster(
|
||||
name=self.__class__.__name__,
|
||||
mode=DEPLOYMENT_MODE,
|
||||
settings={
|
||||
"net_provider": 'neutron',
|
||||
"net_segment_type": NEUTRON_SEGMENT_TYPE,
|
||||
'images_vcenter': True
|
||||
"net_segment_type": NEUTRON_SEGMENT_TYPE
|
||||
}
|
||||
)
|
||||
plugin.enable_plugin(cluster_id, self.fuel_web)
|
||||
|
||||
# Assign role to node
|
||||
self.show_step(3)
|
||||
self.show_step(4)
|
||||
self.show_step(5)
|
||||
self.fuel_web.update_nodes(
|
||||
cluster_id,
|
||||
{'slave-01': ['controller'],
|
||||
@@ -651,19 +646,30 @@ class TestDVSDestructive(TestBasic):
|
||||
'slave-05': ['compute-vmware']}
|
||||
)
|
||||
|
||||
# Configure VMWare vCenter settings
|
||||
self.show_step(6)
|
||||
plugin.enable_plugin(cluster_id, self.fuel_web)
|
||||
|
||||
self.show_step(7)
|
||||
target_node_1 = self.node_name('slave-05')
|
||||
self.fuel_web.vcenter_configure(
|
||||
cluster_id,
|
||||
target_node_1=target_node_1,
|
||||
multiclusters=False,
|
||||
vc_glance=True
|
||||
multiclusters=False
|
||||
)
|
||||
|
||||
self.show_step(8)
|
||||
self.fuel_web.verify_network(cluster_id)
|
||||
|
||||
self.show_step(9)
|
||||
self.fuel_web.deploy_cluster_wait(cluster_id)
|
||||
|
||||
self.show_step(10)
|
||||
self.fuel_web.run_ostf(
|
||||
cluster_id=cluster_id, test_sets=['smoke'])
|
||||
|
||||
os_ip = self.fuel_web.get_public_vip(cluster_id)
|
||||
self.extended_tests_reset_vcenter(os_ip)
|
||||
|
||||
self.show_step(18)
|
||||
self.fuel_web.run_ostf(
|
||||
cluster_id=cluster_id, test_sets=['smoke'])
|
||||
|
||||
@@ -59,12 +59,11 @@ class TestDVSSmoke(TestBasic):
|
||||
5. Configure interfaces on nodes.
|
||||
6. Configure network settings.
|
||||
7. Enable and configure DVS plugin.
|
||||
8. Enable VMWare vCenter/ESXi datastore for images (Glance)
|
||||
9 Configure VMware vCenter Settings.
|
||||
8 Configure VMware vCenter Settings.
|
||||
Add 1 vSphere clusters and configure Nova Compute instances
|
||||
on conrollers.
|
||||
10. Deploy the cluster.
|
||||
11. Run OSTF.
|
||||
9. Deploy the cluster.
|
||||
10. Run OSTF.
|
||||
|
||||
Duration: 1.8 hours
|
||||
|
||||
|
||||
@@ -2186,13 +2186,13 @@ class TestDVSSystem(TestBasic):
|
||||
groups=["dvs_port_security_group"])
|
||||
@log_snapshot_after_test
|
||||
def dvs_port_security_group(self):
|
||||
"""Check creation instance in the one group simultaneously.
|
||||
"""Verify that only the associated IP address can communicate on port.
|
||||
|
||||
Scenario:
|
||||
1. Revert snapshot to dvs_vcenter_systest_setup.
|
||||
2. Launch 2 instances on each hypervisors.
|
||||
3. Verify that traffic can be successfully sent from and received
|
||||
on the MAC and IP address associated with the logical port.
|
||||
on the IP address associated with the logical port.
|
||||
4. Configure a new IP address on the instance associated with
|
||||
the logical port.
|
||||
5. Confirm that the instance cannot communicate with that
|
||||
|
||||
Reference in New Issue
Block a user