From 57f23bbb000be65d820b9f3611a3ca2bd8cd31e2 Mon Sep 17 00:00:00 2001 From: Elio Martinez Date: Mon, 11 Mar 2019 09:21:17 -0400 Subject: [PATCH] Manual Tests: Networking Interface Attach Detach Subdomain With this patch the intention is to start working on Attach Detach subdomain, this patch includes 3 basic test cases in oder to verify the behavior for each time that we perform a attach / detach operation on different sceranrios, this includes different drivers and making enphasis on phisicall interfaces or virtual environments. Mainly we are just deatacching from existing port in order to keep the steps in a straight forward way. Change-Id: I3b307385b9d3cdba0519d74c63961f50fb3f53c1 --- .../Networking_Interface_Attach_Detach.rst | 184 +++++++++++++++++- 1 file changed, 180 insertions(+), 4 deletions(-) diff --git a/doc/source/manual_tests/networking/Networking_Interface_Attach_Detach.rst b/doc/source/manual_tests/networking/Networking_Interface_Attach_Detach.rst index 4857969..15b911f 100644 --- a/doc/source/manual_tests/networking/Networking_Interface_Attach_Detach.rst +++ b/doc/source/manual_tests/networking/Networking_Interface_Attach_Detach.rst @@ -1,9 +1,185 @@ -====================================== -Networking Interface Attach / Deattach -====================================== - +==================================== +Networking Interface Attach / Detach +==================================== +The Attach / Detach subdomain should cover all the possible scenarios where we +can loose connection between NIC`s, this is no matter the kind of hardware or +virtual environment that we are using for our testing. In some cases we want +to know how is the NIC driver going to work with a simple unplug action. .. contents:: :local: :depth: 1 + +-------------------- +NET_IN_AT_DA_07 +-------------------- + +:Test ID: NET_IN_AT_DA_07 +:Test Title: Detach and attach on instances with E1000 interfaces (hardware). +:Tags: Interface Attach/Detach + +~~~~~~~~~~~~~~~~~~ +Testcase Objective +~~~~~~~~~~~~~~~~~~ + +Verify interface detach and attach on instances with E1000 interfaces over +hardware. + +~~~~~~~~~~~~~~~~~~~ +Test Pre-Conditions +~~~~~~~~~~~~~~~~~~~ + +a) Instances created with e1000 network driver. + +~~~~~~~~~~ +Test Steps +~~~~~~~~~~ + +1. Get subnet ID for created network. + + :: + + $ openstack network list + + + +2. From subnet get por ID. + + :: + + $ openstack port list + + +3. Detach the port by using the following command line: + + :: + + $ openstack stack port set --device none + +4. Attach the port back. + + :: + + $ openstack port set --device + +5. Perform VM operations such as stop, start/pause/Unpause Suspend/Resume and +migration. + +~~~~~~~~~~~~~~~~~ +Expected Behavior +~~~~~~~~~~~~~~~~~ + +After the detach / attach operation, our VM should be alive and capable of +performing all kind or regular actions. + +-------------------- +NET_IN_AT_DA_08 +-------------------- + +:Test ID: NET_IN_AT_DA_08 +:Test Title: Detach and attach on instances with e1000 (virtualized). +:Tags: Interface Attach/Detach + +~~~~~~~~~~~~~~~~~~~ +Test Pre-Conditions +~~~~~~~~~~~~~~~~~~~ + +a) Instances created with rtl8139 network driver. + +~~~~~~~~~~ +Test Steps +~~~~~~~~~~ + +1. Get subnet ID for created network. + + :: + + $ openstack network list + + + +2. From subnet get por ID. + + :: + + $ openstack port list + + +3. Detach the port by using the following command line: + + :: + + $ openstack stack port set --device none + +4. Attach the port back. + + :: + + $ openstack port set --device + + +5. Perform VM operations such as stop, start/pause/Unpause Suspend/Resume and +migration. + +~~~~~~~~~~~~~~~~~ +Expected Behavior +~~~~~~~~~~~~~~~~~ + +After the detach / attach operation, our VM should be alive and capable of +performing all kind or regular actions. + +-------------------- +NET_IN_AT_DA_09 +-------------------- + +:Test ID: NET_IN_AT_DA_09 +:Test Title: Detach and attach on instances with rtl8139 (hardware). +:Tags: Interface Attach/Detach + +~~~~~~~~~~~~~~~~~~~ +Test Pre-Conditions +~~~~~~~~~~~~~~~~~~~ + +a) Instances created with rtl8139 network driver. + +~~~~~~~~~~ +Test Steps +~~~~~~~~~~ + +1. Get subnet ID for created network. + + :: + + $ openstack network list + + + +2. From subnet get por ID. + + :: + + $ openstack port list + + +3. Detach the port by using the following command line: + + :: + + $ openstack stack port set --device none + +4. Attach the port back. + + :: + + $ openstack port set --device + +5. Perform VM operations such as stop, start/pause/Unpause Suspend/Resume and +migration. + +~~~~~~~~~~~~~~~~~ +Expected Behavior +~~~~~~~~~~~~~~~~~ + +After the detach / attach operation, our VM should be alive and capable of +performing all kind or regular actions.