Skip to content

Commit d12082e

Browse files
committed
Fix CI for Rocky 8/9
This change includes two fixes. The first fixes the kolla configuration for Rocky Linux 8 deployments, which was deploying Rocky containers, rather than CentOS. The other fixes an error in the network configuration for Rocky Linux 9 AIOs
1 parent 3636be3 commit d12082e

File tree

5 files changed

+39
-4
lines changed

5 files changed

+39
-4
lines changed

.github/workflows/stackhpc-all-in-one.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,17 @@ jobs:
243243
run: |
244244
test $(wc -l < tempest-artifacts/failed-tests) -lt 1
245245
246+
- name: Run debug playbook
247+
run: |
248+
sudo -E docker run -t --rm \
249+
-v $(pwd):/stack/kayobe-automation-env/src/kayobe-config \
250+
-e KAYOBE_ENVIRONMENT -e KAYOBE_VAULT_PASSWORD -e KAYOBE_AUTOMATION_SSH_PRIVATE_KEY \
251+
$KAYOBE_IMAGE \
252+
/stack/kayobe-automation-env/src/kayobe-config/.automation/pipeline/playbook-run.sh '$KAYOBE_CONFIG_PATH/ansible/debug-ci-with-ssh.yml'
253+
env:
254+
KAYOBE_AUTOMATION_SSH_PRIVATE_KEY: ${{ steps.ssh_key.outputs.ssh_key }}
255+
if: failure()
256+
246257
- name: Destroy
247258
run: terraform destroy -auto-approve
248259
working-directory: ${{ github.workspace }}/terraform/aio
@@ -254,5 +265,5 @@ jobs:
254265

255266
- name: Prune Docker images over 1 week old
256267
# May fail if another prune is running
257-
run: sudo docker image prune --all --force --filter until=168h || true
268+
run: sudo docker image prune --all --force --filter until=100h || true
258269
if: always()
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
# Custom playbook to add an SSH key to a CI runner for debugging
3+
4+
- name: Ensure SSH key exists on CI runner
5+
hosts: overcloud
6+
gather_facts: true
7+
tasks:
8+
- name: Add SSH key
9+
authorized_key:
10+
user: stack
11+
state: present
12+
key: "{{ stackhpc_ci_debug_ssh_key }}"
13+
when: stackhpc_ci_debug | bool
14+
- name: Print debug information
15+
debug:
16+
msg: "You can now SSH into stack@{{ ansible_facts.default_ipv4.address }}"
17+
when: stackhpc_ci_debug | bool
18+
19+
- name: Wait for 6h
20+
wait_for:
21+
timeout: 21600 # 6h
22+
when: stackhpc_ci_debug | bool

etc/kayobe/environments/ci-aio/inventory/group_vars/controllers/network-interfaces

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# Controller interface on all-in-one network.
66
aio_interface: breth1
77
# Use dummy1 if it exists, otherwise the bridge will have no ports.
8-
aio_bridge_ports: "{{ ['dummy1'] if 'dummy1' in hostvars[inventory_hostname].ansible_facts else [] }}"
8+
aio_bridge_ports: "{{ ['dummy1'] if ('dummy1' in hostvars[inventory_hostname].ansible_facts) or (os_distribution == 'rocky' and os_release == '9') else [] }}"
99

1010
###############################################################################
1111
# Dummy variable to allow Ansible to accept this file.

etc/kayobe/environments/ci-aio/stackhpc-ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,3 +83,7 @@ stackhpc_docker_registry_password: !vault |
8383
38333133393730633666613965653364316162353337313330346164303631313731646461363461
8484
3963323635373866630a633533376339363734626664333765313665623662613764363038383735
8585
38646138376438643533376161376634653439386230353365316239613430363338
86+
87+
# Debug options for CI
88+
stackhpc_ci_debug: true
89+
stackhpc_ci_debug_ssh_key: "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPnD+FZSMIEPXHWEXXYWWCTyBlKcoWCpy7Xrm8fB6pT3"

etc/kayobe/kolla/globals.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66
# non-overcloud hosts
77
enable_docker_repo: "{% raw %}{{ 'overcloud' not in group_names or ansible_facts.os_family == 'Debian' }}{% endraw %}"
88

9-
kolla_base_distro: "{% raw %}{{ ansible_facts.distribution | lower }}{% endraw %}"
10-
119
neutron_tag: yoga-20230515T150233
1210
nova_tag: yoga-20230518T105834
1311
octavia_tag: yoga-20230523T110936

0 commit comments

Comments
 (0)