Skip to content

Commit 8d80e03

Browse files
authored
Merge pull request #654 from stackhpc/zed-yoga-merge
zed: merge yoga
2 parents 8986e14 + fa2d797 commit 8d80e03

21 files changed

+206
-134
lines changed

.automation.conf/config.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,9 @@ if [ ! -z ${KAYOBE_ENVIRONMENT:+x} ]; then
2424
# SMSLab is currently running with 1G switches. This causes tests using volumes and images to fail if
2525
# the concurrency is set too high.
2626
export TEMPEST_CONCURRENCY=1
27-
export KAYOBE_AUTOMATION_TEMPEST_LOADLIST=tempest-full
28-
export KAYOBE_AUTOMATION_TEMPEST_SKIPLIST=ci-multinode
27+
# Uncomment this to perform a full tempest test
28+
# export KAYOBE_AUTOMATION_TEMPEST_LOADLIST=tempest-full
29+
# export KAYOBE_AUTOMATION_TEMPEST_SKIPLIST=ci-multinode-tempest-full
2930
fi
3031

3132
fi

.automation.conf/tempest/skip-lists/ci-multinode renamed to .automation.conf/tempest/skip-lists/ci-multinode-tempest-full

File renamed without changes.

.github/workflows/stackhpc-container-image-build.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,8 @@ jobs:
211211
container-sync.yml \
212212
--repo stackhpc/stackhpc-release-train \
213213
--ref main \
214-
-f filter="$filter"
214+
-f filter="$filter" \
215+
-f sync-old-images=false
215216
env:
216217
GITHUB_TOKEN: ${{ secrets.STACKHPC_RELEASE_TRAIN_TOKEN }}
217218

etc/kayobe/ansible/growroot.yml

Lines changed: 52 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -27,57 +27,70 @@
2727
growroot_vg: "rootvg"
2828
# Don't assume facts are present.
2929
os_family: "{{ ansible_facts.os_family | default('Debian' if os_distribution == 'ubuntu' else 'RedHat') }}"
30+
# Ignore LVM check
31+
growroot_ignore_lvm_check: false
3032

3133
tasks:
32-
- name: Check if growpart is installed
34+
- name: Check LVM status
3335
shell:
34-
cmd: type growpart
36+
cmd: vgdisplay | grep -q lvm2
3537
changed_when: false
3638
failed_when: false
3739
check_mode: false
38-
register: growpart_check
40+
register: lvm_check
3941
become: true
4042

41-
- name: Ensure growpart is installed
42-
package:
43-
name: "{% if os_family == 'RedHat' %}cloud-utils-growpart{% else %}cloud-guest-utils{% endif %}"
44-
state: present
45-
cache_valid_time: "{{ apt_cache_valid_time if os_family == 'Debian' else omit }}"
46-
update_cache: "{{ True if os_family == 'Debian' else omit }}"
47-
become: True
48-
when: growpart_check.rc != 0
43+
- block:
44+
- name: Check if growpart is installed
45+
shell:
46+
cmd: type growpart
47+
changed_when: false
48+
failed_when: false
49+
check_mode: false
50+
register: growpart_check
51+
become: true
4952

50-
- name: Get root PV device
51-
command: "pvs --select vg_name={{ growroot_vg }} --reportformat json"
52-
register: pvs
53-
become: True
54-
changed_when: False
55-
check_mode: false
53+
- name: Ensure growpart is installed
54+
package:
55+
name: "{% if os_family == 'RedHat' %}cloud-utils-growpart{% else %}cloud-guest-utils{% endif %}"
56+
state: present
57+
cache_valid_time: "{{ apt_cache_valid_time if os_family == 'Debian' else omit }}"
58+
update_cache: "{{ true if os_family == 'Debian' else omit }}"
59+
become: true
60+
when: growpart_check.rc !=0
61+
62+
- name: Get root PV device
63+
command: "pvs --select vg_name={{ growroot_vg }} --reportformat json"
64+
register: pvs
65+
become: true
66+
changed_when: false
67+
check_mode: false
5668

57-
- name: Fail if root PV device not found
58-
fail:
59-
msg: >
60-
Expected LVM physical volume devices not found in volume group {{ growroot_vg }}
61-
when: (pvs.stdout | from_json).report[0].pv | length == 0
69+
- name: Fail if root PV device not found
70+
fail:
71+
msg: >
72+
Expected LVM physical volume devices not found in volume group {{ growroot_vg }}
73+
when: (pvs.stdout | from_json).report[0].pv | length == 0
6274

63-
- name: Grow partition
64-
command: "growpart {{ disk }} {{ part_num }}"
65-
vars:
66-
pv: "{{ pvs.stdout | from_json }}"
67-
disk_tmp: "{{ pv.report[0].pv[0].pv_name[:-1] }}"
68-
disk: "{{ disk_tmp[:-1] if disk_tmp[-1] == 'p' else disk_tmp }}"
69-
part_num: "{{ pv.report[0].pv[0].pv_name[-1] }}"
70-
become: True
71-
failed_when: "growpart.rc != 0 and 'NOCHANGE' not in growpart.stdout"
72-
changed_when: "'NOCHANGE' not in growpart.stdout"
73-
register: growpart
75+
- name: Grow partition
76+
command: "growpart {{ disk }} {{ part_num }}"
77+
vars:
78+
pv: "{{ pvs.stdout | from_json }}"
79+
disk_tmp: "{{ pv.report[0].pv[0].pv_name[:-1] }}"
80+
disk: "{{ disk_tmp[:-1] if disk_tmp[-1] == 'p' else disk_tmp }}"
81+
part_num: "{{ pv.report[0].pv[0].pv_name[-1] }}"
82+
become: true
83+
failed_when: "growpart.rc != 0 and 'NOCHANGE' not in growpart.stdout"
84+
changed_when: "'NOCHANGE' not in growpart.stdout"
85+
register: growpart
7486

75-
- name: Grow LVM PV
76-
command: "pvresize {{ disk }}"
77-
vars:
78-
pv: "{{ pvs.stdout | from_json }}"
79-
disk: "{{ pv.report[0].pv[0].pv_name }}"
80-
become: True
87+
- name: Grow LVM PV
88+
command: "pvresize {{ disk }}"
89+
vars:
90+
pv: "{{ pvs.stdout | from_json }}"
91+
disk: "{{ pv.report[0].pv[0].pv_name }}"
92+
become: true
93+
when: lvm_check.rc == 0 or growroot_ignore_lvm_check
8194
# when: "'NOCHANGE' not in growpart.stdout"
8295
# Commenting out the conditional because growpart is already triggered by cloud-init - hence it emits NOCHANGE
8396
# Cloud-Inits growpart implementation has a bug https://bugzilla.redhat.com/show_bug.cgi?id=2122575

etc/kayobe/ansible/scripts/nvmemon.sh

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,18 @@ format_output() {
4444
nvme_version="$(nvme version | awk '$1 == "nvme" {print $3}')"
4545
echo "nvmecli{version=\"${nvme_version}\"} 1" | format_output
4646

47-
# Get devices
48-
device_list="$(nvme list -o json | jq -r '.Devices | .[].DevicePath')"
47+
# Get devices (DevicePath and PhysicalSize)
48+
device_info="$(nvme list -o json | jq -c '.Devices[] | {DevicePath: .DevicePath, PhysicalSize: .PhysicalSize}')"
4949

5050
# Loop through the NVMe devices
51-
for device in ${device_list}; do
51+
echo "$device_info" | while read -r device_data; do
52+
device=$(echo "$device_data" | jq -r '.DevicePath')
5253
json_check="$(nvme smart-log -o json "${device}")"
5354
disk="${device##*/}"
5455

56+
physical_size=$(echo "$device_data" | jq -r '.PhysicalSize')
57+
echo "physical_size_bytes{device=\"${disk}\"} ${physical_size}"
58+
5559
# The temperature value in JSON is in Kelvin, we want Celsius
5660
value_temperature="$(echo "$json_check" | jq '.temperature - 273')"
5761
echo "temperature_celsius{device=\"${disk}\"} ${value_temperature}"

etc/kayobe/environments/aufn-ceph/kolla/globals.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ nova_compute_virt_type: qemu
77
# Reduce the control plane's memory footprint by limiting the number of worker
88
# processes to one per-service.
99
openstack_service_workers: "1"
10+
openstack_service_rpc_workers: "1"
1011

1112
glance_backend_ceph: "yes"
1213
cinder_backend_ceph: "yes"

etc/kayobe/environments/ci-builder/globals.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ os_distribution: "{{ lookup('pipe', '. /etc/os-release && echo $ID') | trim }}"
1212
# SELinux.
1313

1414
# Avoid a reboot.
15-
selinux_do_reboot: false
15+
selinux_state: disabled

etc/kayobe/environments/ci-builder/kolla.yml

Lines changed: 0 additions & 14 deletions
This file was deleted.

etc/kayobe/environments/ci-multinode/globals.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ stackhpc_barbican_role_id_file_path: "/tmp/barbican-role-id"
6363
###############################################################################
6464

6565
# Avoid a reboot.
66-
selinux_do_reboot: false
66+
selinux_state: disabled
6767

6868
###############################################################################
6969
# Dummy variable to allow Ansible to accept this file.

0 commit comments

Comments
 (0)