Fix stat error in periodic image build job
Currently the publish-openstack-octavia-amphora-image-centos-9-stream shows this error, even though the job itself seems to succeed: [1] 2022-07-25 02:21:52.929693 | centos-9-stream | Successfully built the amphora image using amphora-agent from the master branch. 2022-07-25 02:21:52.931356 | centos-9-stream | stat: cannot statx '/home/zuul/test-images/test-only-amphora-x64-haproxy-centos-9-stream.qcow2.qcow2': No such file or directory 2022-07-25 02:21:52.931640 | centos-9-stream | Amphora image size: [1]: https://storage.bhs.cloud.ovh.net/v1/AUTH_dcaab5e32b234d56b626f72581e3644c/zuul_opendev_logs_741/periodic/opendev.org/openstack/octavia/master/publish-openstack-octavia-amphora-image-centos-9-stream/7414761/job-output.txt Story: 2010187 Task: 45876 Change-Id: I4600bade69f27c670e58077ded5b7646d2e3f786
This commit is contained in:
parent
3f4a44db94
commit
6db3640873
@ -32,7 +32,7 @@ usage() {
|
||||
echo " [-k <kernel package name> ]"
|
||||
echo " [-l <log file> ]"
|
||||
echo " [-n]"
|
||||
echo " [-o **amphora-x64-haproxy** | <filename> ]"
|
||||
echo " [-o **amphora-x64-haproxy.qcow2** | <filename> ]"
|
||||
echo " [-p]"
|
||||
echo " [-r <root password> ]"
|
||||
echo " [-s **2** | <size in GB> ]"
|
||||
@ -243,7 +243,7 @@ elif [ "${AMP_BASEOS}" = "fedora" ]; then
|
||||
export DIB_RELEASE=${AMP_DIB_RELEASE:-"28"}
|
||||
fi
|
||||
|
||||
AMP_OUTPUTFILENAME=${AMP_OUTPUTFILENAME:-"$PWD/amphora-x64-haproxy"}
|
||||
AMP_OUTPUTFILENAME=${AMP_OUTPUTFILENAME:-"$PWD/amphora-x64-haproxy.qcow2"}
|
||||
|
||||
AMP_IMAGETYPE=${AMP_IMAGETYPE:-"qcow2"}
|
||||
|
||||
@ -520,4 +520,4 @@ if [ -z "$DIB_REPOREF_amphora_agent" ]; then
|
||||
else
|
||||
echo "Successfully built the amphora using the $DIB_REPOREF_amphora_agent amphora-agent."
|
||||
fi
|
||||
echo "Amphora image size: `stat -c "%n %s" $AMP_OUTPUTFILENAME.$AMP_IMAGETYPE`"
|
||||
echo "Amphora image size: `stat -c "%n %s" $AMP_OUTPUTFILENAME`"
|
||||
|
@ -0,0 +1,11 @@
|
||||
---
|
||||
upgrade:
|
||||
- |
|
||||
The default for the output file has been changed in
|
||||
diskimage-create.sh. It is now amphora-x64-haproxy.qcow2 instead of
|
||||
amphora-x64-haproxy.
|
||||
fixes:
|
||||
- |
|
||||
diskimage-create.sh used $AMP_OUTPUTFILENAME.$AMP_IMAGETYPE for
|
||||
constructing the image file path when checking the file size, which was
|
||||
not correct and caused an "No such file or directory" error.
|
Loading…
Reference in New Issue
Block a user