From c9d19838d990e08fe165845691469b003f83ef1d Mon Sep 17 00:00:00 2001 From: Alex-Welsh Date: Fri, 8 Sep 2023 11:44:35 +0100 Subject: [PATCH] DNM - CI test Updated checkout action to v4 using kayobe-automation feature branch Changed path on .gitreview awk removed dhclient workaround change state of selinux in ci-builder removed dhclient for ubuntu --- .automation | 2 +- .github/workflows/overcloud-host-image-build.yml | 12 ++---------- etc/kayobe/environments/ci-aio/kolla.yml | 3 +++ etc/kayobe/environments/ci-builder/globals.yml | 2 +- etc/kayobe/globals.yml | 2 +- 5 files changed, 8 insertions(+), 13 deletions(-) create mode 100644 etc/kayobe/environments/ci-aio/kolla.yml diff --git a/.automation b/.automation index 467fc362f..e8e1b600a 160000 --- a/.automation +++ b/.automation @@ -1 +1 @@ -Subproject commit 467fc362f3ccb29331c141d7aedb30f77672829a +Subproject commit e8e1b600a8bf2ea7355eee45d2973eb177256c81 diff --git a/.github/workflows/overcloud-host-image-build.yml b/.github/workflows/overcloud-host-image-build.yml index 13bf071f7..5149f0c7d 100644 --- a/.github/workflows/overcloud-host-image-build.yml +++ b/.github/workflows/overcloud-host-image-build.yml @@ -34,14 +34,14 @@ jobs: runs-on: [self-hosted, stackhpc-kayobe-config-kolla-builder-rl9] permissions: {} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: path: src/kayobe-config - name: Determine OpenStack release id: openstack_release run: | - BRANCH=$(awk -F'=' '/defaultbranch/ {print $2}' .gitreview) + BRANCH=$(awk -F'=' '/defaultbranch/ {print $2}' src/kayobe-config/.gitreview) echo "openstack_release=${BRANCH}" | sed "s|stable/||" >> $GITHUB_OUTPUT # Generate a tag to apply to all built overcloud host images. @@ -84,14 +84,6 @@ jobs: sudo ip l set dummy1 up sudo ip l set dummy1 master breth1 - # FIXME: Without this workaround we see the following issue after the runner is power cycled: - # TASK [MichaelRigart.interfaces : RedHat | ensure network service is started and enabled] *** - # Unable to start service network: Job for network.service failed because the control process exited with error code. - # See \"systemctl status network.service\" and \"journalctl -xe\" for details. - - name: Kill dhclient (workaround) - run: | - (sudo killall dhclient || true) && sudo systemctl restart network - - name: Install Kayobe run: | mkdir -p venvs && diff --git a/etc/kayobe/environments/ci-aio/kolla.yml b/etc/kayobe/environments/ci-aio/kolla.yml new file mode 100644 index 000000000..020398b58 --- /dev/null +++ b/etc/kayobe/environments/ci-aio/kolla.yml @@ -0,0 +1,3 @@ +--- +# Allow insecure registries for testing +kolla_docker_registry_insecure: true diff --git a/etc/kayobe/environments/ci-builder/globals.yml b/etc/kayobe/environments/ci-builder/globals.yml index 8240da331..7efb44f44 100644 --- a/etc/kayobe/environments/ci-builder/globals.yml +++ b/etc/kayobe/environments/ci-builder/globals.yml @@ -12,4 +12,4 @@ os_distribution: "{{ lookup('pipe', '. /etc/os-release && echo $ID') | trim }}" # SELinux. # Avoid a reboot. -selinux_do_reboot: false +selinux_state: disabled diff --git a/etc/kayobe/globals.yml b/etc/kayobe/globals.yml index 3956dca36..cd3d50ec6 100644 --- a/etc/kayobe/globals.yml +++ b/etc/kayobe/globals.yml @@ -52,7 +52,7 @@ # OS release. Valid options are "9-stream" when os_distribution is "centos", or # "9" when os_distribution is "rocky", or "jammy" when os_distribution is # "ubuntu". -#os_release: +#os_release: ############################################################################### # Ansible configuration.