Difference between revisions of "StarlingX/Testing Guide"
(→Simplex) |
|||
Line 115: | Line 115: | ||
== Sanity == | == Sanity == | ||
=== Simplex === | === Simplex === | ||
+ | |||
+ | {| class="wikitable" | ||
+ | |- | ||
+ | ! NAME !! SUMMARY !! PRECONDITIONS !! STEPS !! EXPECTED RESULTS | ||
+ | |- | ||
+ | | Test_Install || Test the Installation for AIO simplex for R5 || "1. Install Ubuntu 16.04 | ||
+ | 2. Set proxies 3. Install virtualbox 5.1.30 --> https://www.virtualbox.org/wiki/Download_Old_Builds_5_1 | ||
+ | 4. Download ISO and License | ||
+ | ssh madawaska@madbuild01.ostc.intel.com --> password ""Madawa$ka1 | ||
+ | - bootimage-current.iso | ||
+ | - wrslicenseR5txt | ||
+ | 5. Clone repo tic_vb | ||
+ | https://github.intel.com/Madawaska/tic_vb.git | ||
+ | 6. Copy ""boot-current.iso"" to tic_vb repo and rename it as ""bootimage.iso""" | ||
+ | || "Follow the Steps defined on https://github.intel.com/Madawaska/tic_vb/blob/master/README.md#steps-for-simplex-r5 | ||
+ | |||
+ | use http://download.cirros-cloud.net/0.4.0/cirros-0.4.0-x86_64-disk.img on private-net0." | ||
+ | || Installation should be completed successfully. | ||
+ | |||
+ | |- | ||
+ | | Test_create_instance || Test that instances can be created successfully || Test_simplex_R5_Install = PASS || "Upload an image following steps defined on: | ||
+ | https://docs.openstack.org/horizon/latest/user/manage-images.html#upload-an-image" | ||
+ | |||
+ | "Launch an isntance following steps defined on: | ||
+ | https://docs.openstack.org/horizon/latest/user/launch-instances.html#launch-an-instance" | ||
+ | || Image is uploaded correctly | ||
+ | Instance should be launched correctly | ||
+ | |||
+ | |- | ||
+ | | Test_ping_ssh_beetwen_2_instances || Test ping and ssh connection between 2 instances on the same controller || Test_create_instance = PASS || | ||
+ | * Launch Instance-1 | ||
+ | * Launch Instance-2 | ||
+ | * Ping form Instance-1 to Instance-2 | ||
+ | * Ping form Instance-2 to Instance-1 | ||
+ | * Establish SSH connection from Instance-1 to Instance-2 | ||
+ | || | ||
+ | * Instance is running correctly | ||
+ | * Instance is running correctly | ||
+ | * Packages are transmitted correctly | ||
+ | * Packages are transmitted correctly | ||
+ | * Connection is established correctly | ||
+ | |||
+ | |- | ||
+ | | Test_nova_actions_dedicated_auto_recover || | ||
+ | Launch a vm using cirros/ubuntu image with dedicated cpu policy, set vm to error state via nova cli, wait for vm to be autorecover, ensure vm in active state and still pingable | ||
+ | || Instances running | ||
+ | || * Launch Instance with image with dedicated cpu policy | ||
+ | * Ping to instance | ||
+ | * Set to error state using as follows: | ||
+ | - in controller go to source /etc//nova/openrc | ||
+ | - Get the Instance ID | ||
+ | $ openstack server list | ||
+ | - Set to error state Instance | ||
+ | $ openstack server set --state error <Instance-ID> | ||
+ | * Wait about 30s - 1 min | ||
+ | * Ping to instance. | ||
+ | || * Instance is running correctly | ||
+ | * Packages are transmitted correctly | ||
+ | * Verify that Instance is in error state: | ||
+ | In horizon at Project --> Instances | ||
+ | on CLI run ""$ openstack server list"" and verify the status" | ||
+ | * Verify that Instance is in active state again | ||
+ | In horizon at Project --> Instances | ||
+ | on CLI run ""$ openstack server list"" and verify the status" | ||
+ | * Packages are transmitted correctly | ||
+ | |- | ||
+ | |||
+ | | Test_nova_actions_shared_suspend_resume || "Launch a vm using cirros/centos-guest with shared cpu policy, suspend/resume it, ensure vm in active | ||
+ | state and still pingable" | ||
+ | || | ||
+ | Instances running | ||
+ | || | ||
+ | * Launch Instance with image with shared cpu policy | ||
+ | || | ||
+ | * Instance is running correctly | ||
+ | |- | ||
+ | |||
+ | | Example || Example || Example | ||
+ | | Example || Example || Example | ||
+ | | Example || Example || Example | ||
+ | | Example || Example || Example | ||
+ | | Example || Example || Example | ||
+ | | Example || Example || Example | ||
+ | | Example || Example || Example | ||
+ | | Example || Example || Example | ||
+ | | Example || Example || Example | ||
+ | | Example || Example || Example | ||
+ | | Example || Example || Example | ||
+ | | Example || Example || Example | ||
+ | | Example || Example || Example | ||
+ | | Example || Example || Example | ||
+ | | Example || Example || Example | ||
+ | | Example || Example || Example | ||
+ | | Example || Example || Example | ||
+ | | Example || Example || Example | ||
+ | | Example || Example || Example | ||
+ | |} |
Revision as of 21:39, 9 August 2018
This document contains the steps for validating a StarlingX System has been installed correctly.
Requirements
The recommended minimum requirements include:
System Requirements
- A StarlingX System
Launch an Instance
Download CirrOS Image
Download a CirrOS image in QCOW2 format from the CirrOS download page:
$ wget http://download.cirros-cloud.net/0.4.0/cirros-0.4.0-x86_64-disk.img
Transfer the CirrOS QCOW2 image to the StarlingX System:
$ scp cirros-0.4.0-x86_64-disk.img wrsroot@10.10.10.3:~/
Acquire administrative privileges
On Controller-0, acquire Keystone administrative privileges:
controller-0:~$ source /etc/nova/openrc
Create OpenStack Images
~(keystone_admin)]$ openstack image create --file cirros-0.4.0-x86_64-disk.img --disk-format qcow2 --public cirros
Create OpenStack Flavors
~(keystone_admin)]$ openstack flavor create --id 1 --ram 64 --disk 1 --vcpus 1 --public flavor.nano
~(keystone_admin)]$ openstack flavor create --id 2 --ram 128 --disk 2 --vcpus 1 --public flavor.micro
Create OpenStack Network
~(keystone_admin)]$ openstack network create network.one
Create OpenStack Sub Network
~(keystone_admin)]$ openstack subnet create --network network.one --ip-version 4 --subnet-range 192.168.1.0/24 --dhcp subnet.one
Create OpenStack Servers
~(keystone_admin)]$ openstack server create --flavor flavor.nano --image cirros --nic net-id=network.one server.nano
~(keystone_admin)]$ openstack server create --flavor flavor.micro --image cirros --nic net-id=network.one server.micro
Check OVS/DPDK
Check Neutron Agent List
On Controller-0, acquire Keystone administrative privileges:
controller-0:~$ source /etc/nova/openrc
~(keystone_admin)]$ neutron agent-list
Get Compute Node IP Address
~(keystone_admin)]$ system host-show compute-0 | grep mgmt_ip
| mgmt_ip | 192.168.204.119 |
~(keystone_admin)]$ system host-show compute-1 | grep mgmt_ip
| mgmt_ip | 192.168.204.113 |
Check Compute-0 Interface Type
Login to Compute-0 via ssh
~(keystone_admin)]$ ssh 192.168.204.119
Verify dpdk type is set for eth0 port using Open vSwitch utility:
compute-0:~$ sudo ovs-vsctl show
...
Port "eth0"
Interface "eth0"
type: dpdk
options: {dpdk-devargs="0000:00:09.0", n_rxq="1"}
...
ovs_version: "2.9.0"
Check Compute-1 Interface Type
Login to Compute-1 via ssh
~(keystone_admin)]$ ssh 192.168.204.113
Verify dpdk type is set for eth0 port using Open vSwitch utility:
compute-0:~$ sudo ovs-vsctl show
...
Port "eth0"
Interface "eth0"
type: dpdk
options: {dpdk-devargs="0000:00:09.0", n_rxq="1"}
ovs_version: "2.9.0"
...
Sanity
Simplex
NAME | SUMMARY | PRECONDITIONS | STEPS | EXPECTED RESULTS | ||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Test_Install | Test the Installation for AIO simplex for R5 | "1. Install Ubuntu 16.04
2. Set proxies 3. Install virtualbox 5.1.30 --> https://www.virtualbox.org/wiki/Download_Old_Builds_5_1 4. Download ISO and License ssh madawaska@madbuild01.ostc.intel.com --> password ""Madawa$ka1 - bootimage-current.iso - wrslicenseR5txt 5. Clone repo tic_vb https://github.intel.com/Madawaska/tic_vb.git 6. Copy ""boot-current.iso"" to tic_vb repo and rename it as ""bootimage.iso""" |
"Follow the Steps defined on https://github.intel.com/Madawaska/tic_vb/blob/master/README.md#steps-for-simplex-r5
use http://download.cirros-cloud.net/0.4.0/cirros-0.4.0-x86_64-disk.img on private-net0." |
Installation should be completed successfully. | ||||||||||||||||||||||||||||||||||||||||||||||||||||
Test_create_instance | Test that instances can be created successfully | Test_simplex_R5_Install = PASS | "Upload an image following steps defined on:
https://docs.openstack.org/horizon/latest/user/manage-images.html#upload-an-image" "Launch an isntance following steps defined on: https://docs.openstack.org/horizon/latest/user/launch-instances.html#launch-an-instance" |
Image is uploaded correctly
Instance should be launched correctly | ||||||||||||||||||||||||||||||||||||||||||||||||||||
Test_ping_ssh_beetwen_2_instances | Test ping and ssh connection between 2 instances on the same controller | Test_create_instance = PASS |
|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||
Test_nova_actions_dedicated_auto_recover |
Launch a vm using cirros/ubuntu image with dedicated cpu policy, set vm to error state via nova cli, wait for vm to be autorecover, ensure vm in active state and still pingable |
Instances running | * Launch Instance with image with dedicated cpu policy
- in controller go to source /etc//nova/openrc - Get the Instance ID $ openstack server list - Set to error state Instance $ openstack server set --state error <Instance-ID>
|
* Instance is running correctly
In horizon at Project --> Instances on CLI run ""$ openstack server list"" and verify the status"
In horizon at Project --> Instances on CLI run ""$ openstack server list"" and verify the status"
| ||||||||||||||||||||||||||||||||||||||||||||||||||||
Test_nova_actions_shared_suspend_resume | "Launch a vm using cirros/centos-guest with shared cpu policy, suspend/resume it, ensure vm in active
state and still pingable" |
Instances running |
|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||
Example | Example | Example | Example | Example | Example | Example | Example | Example | Example | Example | Example | Example | Example | Example | Example | Example | Example | Example | Example | Example | Example | Example | Example | Example | Example | Example | Example | Example | Example | Example | Example | Example | Example | Example | Example | Example | Example | Example | Example | Example | Example | Example | Example | Example | Example | Example | Example | Example | Example | Example | Example | Example | Example | Example | Example | Example |