Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IRONIC_MACHINE_OS_DOWNLOADER_IMAGE unable to gzip -d image #870

Closed
kononovn opened this issue Dec 20, 2019 · 1 comment
Closed

IRONIC_MACHINE_OS_DOWNLOADER_IMAGE unable to gzip -d image #870

kononovn opened this issue Dec 20, 2019 · 1 comment

Comments

@kononovn
Copy link

Describe the bug
IRONIC_MACHINE_OS_DOWNLOADER_IMAGE=registry.svc.ci.openshift.org/ocp/4.4-2019-12-19-033827@sha256:e0ae053ac41a424b4f18702574e42dbb0bac48b13cc0356880272ae9df843354
After image( rhcos-44.81.201912131839.0-openstack.x86_64.qcow2.gz) is downloaded, container tries to open archive however image is not in gzip format. This is usual not compressed qcow2 file. As a result container exits with error "Exited (1)"

Logs:

  • gzip -d rhcos-44.81.201912131839.0-openstack.x86_64.qcow2.gz
    gzip: rhcos-44.81.201912131839.0-openstack.x86_64.qcow2.gz: not in gzip format

file /opt/dev-scripts/ironic/tmp/tmp.AZMCKV6OJu/rhcos-44.81.201912131839.0-openstack.x86_64.qcow2.gz
/opt/dev-scripts/ironic/tmp/tmp.AZMCKV6OJu/rhcos-44.81.201912131839.0-openstack.x86_64.qcow2.gz: QEMU QCOW Image (v3), 17179869184 bytes

To Reproduce
Run script:
04_setup_ironic.sh
and this script ends by infinity loop
curl --fail http://localhost/images/rhcos-ootpa-latest.qcow2.md5sum
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
curl: (22) The requested URL returned error: 404 Not Found
sleep 1

Check container logs
podman logs d25add5520c9

  • gzip -d rhcos-44.81.201912131839.0-openstack.x86_64.qcow2.gz
    gzip: rhcos-44.81.201912131839.0-openstack.x86_64.qcow2.gz: not in gzip format

Environment: VMs
No customization at all. All env.variables are default except PULL_SECRET

Expected/observed behavior

  1. Compress image rhcos-44.81.201912131839.0-openstack.x86_64.qcow2.gz
@hardys
Copy link

hardys commented Dec 20, 2019

This was fixed yesterday via #867

The problem is the Content-Encoding header was reintroduced, now fixed via coreos/coreos-assembler#1006 but #867 works around the issue by downloading the images without the --compressed flag

@hardys hardys closed this as completed Dec 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants