7.3 KiB
System Inventory/Check
Verify different system settings
sysinv_check_01
- Test ID
-
sysinv_check_01
- Test Title
-
get the information of the software version and patch level using cli
- Tags
-
sysinv
Testcase Objective
Verify the software version and patch level using cli
Test Pre-Conditions
System up and running
Test Steps
- Get the software version with the command
system show
- Get the applied patches with the command
sudo sw-patch query
Expected Behavior
- "software_version" row lists the correct version.
- Patch ID column lists the current patch level.
References
N/A
sysinv_check_02
- Test ID
-
sysinv_check_02
- Test Title
-
query the system type using cli
- Tags
-
sysinv
Testcase Objective
Check system_mode and system_type using CLI
Test Pre-Conditions
System up and running
Test Steps
- Authenticate with platform keystone
- Query system_mode and system_type
system show | grep -e system_mode -e system_type
Expected Behavior
Simplex: system_mode simplex, system_type All-in-one
Duplex: system_mode duplex, system_type All-in-one
Standard: system_mode duplex, system_type Standard
References
N/A
sysinv_check_03
- Test ID
-
sysinv_check_03
- Test Title
-
resynchronize a host to the ntp server
- Tags
-
sysinv
Testcase Objective
Resynchronize a node to the NTP server. If a time discrepancy greater than ~17 min is found, the ntpd service is stopped.
Test Pre-Conditions
System up and running. A NTP server reachable.
Test Steps
- Make sure the node has a NTP server (that works) defined.
- Change the time on worker-0, with a difference of 20 min.
- Lock and unlock the host
system host-lock worker-0; system host-unlock worker-0
- Wait for the node to come back and verify the time has been fixed.
Expected Behavior
- Alarms 250.001 (configuration os out of date) and 200.006 (ntpd process has failed) are raised.
- Alarms are cleared
- time has been sync'd
References
N/A
sysinv_check_04
- Test ID
-
sysinv_check_04
- Test Title
-
swact active controller using rest api via floating oam ip
- Tags
-
sysinv
Testcase Objective
Execute a swact using REST API + OAM floating IP
Test Pre-Conditions
N/A
Test Steps
TBD
Expected Behavior
References
N/A
sysinv_check_05
- Test ID
-
sysinv_check_05
- Test Title
-
verify VM is consumming hugepage memory from the the affined NUMA node
- Tags
-
sysinv
Testcase Objective
Verify the instance created with cpu pinning consumes hugepages from the NUMA node associated to the CPU.
Test Pre-Conditions
N/A
Test Steps
- Create a flavor with extra spec: 'hw:cpu_policy': 'dedicated'
- lock a worker to boot the vm
- Launch a vm
- check the memory consumed by the vm, verify it’s on the same numa as the pinned cpu
Expected Behavior
- the flavor is created without any error
- expected result: the worker is locked without any error
- the vm booted successfully
- both huge-page memory and the pinned cpu are on the same numa node
References
N/A
sysinv_check_06
- Test ID
-
sysinv_check_06
- Test Title
-
verify wrong interface profiles will be rejected
- Tags
-
sysinv
Testcase Objective
Wrong interface profiles are rejected
Test Pre-Conditions
N/A
Test Steps
- Create an interface profile of a worker node
system ifprofile-add <profile_name> <worker-n>
- Apply the profile you just created to a worker node with mismatching network interfaces
system host-apply-ifprofile <worker-y> <profile_name>
Expected Behavior
- the action is rejected with an error message
References
N/A
sysinv_check_07
- Test ID
-
sysinv_check_07
- Test Title
-
Check Resource Usage panel is working properly
- Tags
-
sysinv
Testcase Objective
Resource usage in Horizon works as expected.
Test Pre-Conditions
N/A
Test Steps
- Login to OpenStack Horizon using 'admin'
- Go to Admin / Overview
- Download a CVS summary
- Check the file contains the right information.
Expected Behavior
- Reports should be displayed without issue
- csv report should be downloaded.
- report contains the same information as displayed.
References
N/A
sysinv_check_08
- Test ID
-
sysinv_check_08
- Test Title
-
Delete the mgmt. interface and re-add it to the same port
- Tags
-
sysinv
Testcase Objective
Delete the mgmt. interface and re-add it to the same port
Test Pre-Conditions
On a working configuration, use a worker node
Test Steps
- Lock the worker node
system host-lock worker-1
- Delete the mgmt interface
system host-if-list worker-1 , grep mgmt
system host-if-delete worker-1 <mgmt UUID>
- Re-add the mgmt interface
system host-if-add -c platform worker-1 mgmt0 <name or UUID interface>
Expected Behavior
the mgmt interface is successfully added - the communication over the mgmt. interface is working
References
N/A
sysinv_check_09
- Test ID
-
sysinv_check_09
- Test Title
-
verify that the cpu data can be seen via cli
- Tags
-
sysinv
Testcase Objective
host-cpu-list shows the right information
Test Pre-Conditions
N/A
Test Steps
- On a worker node, list the cpu processors using
system host-cpu-list worker-1
- show the detailed information of a specific logical core
system host-cpu-show worker-1 <logical_cpu_number>
Expected Behavior
- get the list without errors
- the information about numa_node, physical_core, assigned_function and etc. are displayed correctly
References
N/A