Skip to content

Commit d3ec501

Browse files
committed
mantle/kola: use separate unit for pulling COSA in iscsi tests
We've seen errors in the RHCOS pipeline where the iSCSI tests are hitting the 10m timeout. We could bump the timeout, but first let's try pulling the COSA image in a separate unit so that it can happen in parallel with the install over iSCSI so that when we're ready to start the VM the image is already there.
1 parent c4a64ab commit d3ec501

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

mantle/cmd/kola/resources/iscsi_butane_setup.yaml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,16 @@ storage:
8787
-i /var/nested-ign.json
8888
# Unmount the disk
8989
iscsiadm --mode node --logoutall=all
90+
# Use a separate unit to pull the image so it can be downloading
91+
# in the background while the `coreos-installer install` is running.
92+
- path: /etc/containers/systemd/coreos-assembler.image
93+
contents:
94+
inline: |
95+
[Image]
96+
Image=quay.io/coreos-assembler/coreos-assembler
97+
[Service]
98+
# Extend start time. COSA is a large image we are pulling from quay.
99+
TimeoutStartSec=600
90100
- path: /etc/containers/systemd/coreos-iscsi-vm.container
91101
contents:
92102
inline: |
@@ -98,7 +108,7 @@ storage:
98108
OnFailure=emergency.target
99109
OnFailureJobMode=isolate
100110
[Container]
101-
Image=quay.io/coreos-assembler/coreos-assembler
111+
Image=coreos-assembler.image
102112
ContainerName=iscsiboot
103113
Volume=/var/boot.ipxe:/var/boot.ipxe
104114
Volume=/dev/virtio-ports/testisocompletion:/mnt/serial
@@ -110,8 +120,6 @@ storage:
110120
# Start by default on boot
111121
WantedBy=multi-user.target
112122
[Service]
113-
# Extend start time. COSA is a large image we are pulling from quay.
114-
TimeoutStartSec=600
115123
# fix permissions on the serial device before passing it as a volume
116124
ExecStartPre=chmod 777 /dev/virtio-ports/testisocompletion
117125
# Pipe the logs to a virtio port so kola saves them

0 commit comments

Comments
 (0)