Skip to content

Commit

Permalink
ci: Fix low-scale CI.
Browse files Browse the repository at this point in the history
The low-scale CI scenario needed updating.

* It tried to use "localhost" as the host, which is no longer possible.
  The orchestrator and the ovn-tester container both need to be able to
  access the same hosts using the physical deployment file.
* It was missing a tester section.
  • Loading branch information
putnopvut committed Sep 27, 2022
1 parent 81f087e commit b70e796
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 11 deletions.
10 changes: 7 additions & 3 deletions .cirrus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,23 @@ low_scale_task:
image: family/fedora-cloud-35
platform: linux
memory: 8G
use_static_ip: true

env:
DEPENDENCIES: git ansible podman podman-docker
PHYS_DEPLOYMENT: ${CIRRUS_WORKING_DIR}/physical-deployments/localhost.yml
PHYS_DEPLOYMENT: ${CIRRUS_WORKING_DIR}/physical-deployments/ci.yml

runtime_cache:
folder: runtime-cache

configure_ssh_script:
- export IP_ADDR=$(ip route get 8.8.8.8 | head -1 | sed 's/.*src \([0-9\.]*\).*/\1/')
- mkdir -p /root/.ssh/
- ssh-keygen -t rsa -N '' -q -f /root/.ssh/id_rsa
- ssh-keyscan localhost >> /root/.ssh/known_hosts
- ssh-keyscan ${IP_ADDR} >> /root/.ssh/known_hosts
- cat /root/.ssh/id_rsa.pub >> /root/.ssh/authorized_keys
- chmod og-wx /root/.ssh/authorized_keys
- ssh root@localhost -v echo Hello
- ssh root@${IP_ADDR} -v echo Hello

install_dependencies_script:
- dnf install -y ${DEPENDENCIES}
Expand All @@ -30,6 +32,8 @@ low_scale_task:
- tar -xzf runtime-cache/runtime.tar.gz || true

install_script:
- export IP_ADDR=$(ip route get 8.8.8.8 | head -1 | sed 's/.*src \([0-9\.]*\).*/\1/')
- 'sed -i "s/<ip>/${IP_ADDR}/g" ${PHYS_DEPLOYMENT}'
- ./do.sh install

pack_caches_script:
Expand Down
12 changes: 12 additions & 0 deletions physical-deployments/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
registry-node: <ip>
internal-iface: eno1

central-node:
name: <ip>

tester-node:
name: <ip>
ssh_key: /root/.ssh/id_rsa

worker-nodes:
- <ip>
8 changes: 0 additions & 8 deletions physical-deployments/localhost.yml

This file was deleted.

0 comments on commit b70e796

Please sign in to comment.