Prepared fixed for the MOS Yoga-based image, MOS 23.2
The list of the fixes / improvements:
* Dockerfiles: set the FROM image to the Mirantis heat
Yoga image of MOS 23.2. Fixed some packages installation.
* Python cleanup.py script: re-wrote opertions with the
volume groups with the specific API version, resettings
volume status, finding the server groups. Added the
functions for non-existing methods in downstream
openstacksdk.
* FIO scripts: Fixed the attaching/detaching the volumes,
some other fixes.
* Fixed e2e sctipt to find the hypervisor.
* Refreshed the si-tests, mos-spt repositories, archived.
Change-Id: I1153ebcf3691cc43eb3fc0a7e98a0d88da3a8154
diff --git a/scripts/cmp_check.sh b/scripts/cmp_check.sh
index 07bc9ca..58e841f 100644
--- a/scripts/cmp_check.sh
+++ b/scripts/cmp_check.sh
@@ -83,7 +83,7 @@
fi
function cmp_stats() {
- cmpid=$(openstack hypervisor list --matching ${1} -f value -c ID)
+ cmpid=$(openstack hypervisor list | grep ${1} | awk '{print $2}')
vars=( $(openstack hypervisor show ${cmpid} -f shell -c state -c running_vms -c vcpus -c vcpus_used -c memory_mb -c memory_mb_used) )
[ ! 0 -eq $? ] && errors+=("${1}: $(cat ${vars[@]})")
if [ ! $state == '"up"' ]; then