Skip to content

Commit 0adaa13

Browse files
committed
E2E: Pre-download IPA and serve from disk image server
This will save us time especially in upgrade tests where IPA is downloaded multiple times. It should also make the tests more stable since we avoid slow or broken downloads mid-test. Signed-off-by: Lennart Jern <[email protected]>
1 parent cb60def commit 0adaa13

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

hack/ci-e2e.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,16 @@ if [[ ! -f "${IMAGE_DIR}/${IMAGE_FILE}" ]]; then
151151
wget --quiet -P "${IMAGE_DIR}/" https://artifactory.nordix.org/artifactory/metal3/images/sysrescue/systemrescue-11.00-amd64.iso
152152
fi
153153

154+
## Download IPA (Ironic Python Agent) image
155+
# Ironic IPA downloader is configured to use this local image in the tests.
156+
# This saves time, especially during ironic upgrade tests and also
157+
# gives us early failure in case there is some issue downloading it.
158+
IPA_FILE="ipa-centos9-master.tar.gz"
159+
IPA_BASEURI=https://artifactory.nordix.org/artifactory/openstack-remote-cache/ironic-python-agent/dib/
160+
if [[ ! -f "${IMAGE_DIR}/${IPA_FILE}" ]]; then
161+
wget --quiet -P "${IMAGE_DIR}/" "${IPA_BASEURI}/${IPA_FILE}"
162+
fi
163+
154164
## Start the image server
155165
docker start image-server-e2e || docker run --name image-server-e2e -d \
156166
-p 80:8080 \

test/e2e/data/ironic-standalone-operator/operator/kustomization.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ generatorOptions:
1111
configMapGenerator:
1212
- name: ironic-operator-config
1313
literals:
14-
- IPA_BASEURI=https://artifactory.nordix.org/artifactory/openstack-remote-cache/ironic-python-agent/dib
14+
- IPA_BASEURI=http://192.168.222.1
1515

1616
patches:
1717
- target:

0 commit comments

Comments
 (0)