noseka1 / openshift-auto-upi

OpenShift Automated User-Provided Infrastructure
Apache License 2.0
98 stars 51 forks source link

gzip --keep error on rhel7 #13

Closed jfblaine closed 4 years ago

jfblaine commented 4 years ago

Trying to do an ovirt install on rhel7, got an error related to unrecognized --keep arg for gzip:

TASK [openshift_ovirt : Extract Red Hat CoreOS image for OpenStack] **** fatal: [helper]: FAILED! => {"changed": true, "cmd": ["gunzip", "--keep", "/root/openshift-auto-upi-workspace/autoupi/images/rhcos-4.4.3-x86_64-openstack.x86_64.qcow2.gz"], "delta": "0:00:00.017853", "end": "2020-07-17 16:59:52.331808", "msg": "non-zero return code", "rc": 1, "start": "2020-07-17 16:59:52.313955", "stderr": "gzip: unrecognized option '--keep'\nTry gzip --help' for more information.", "stderr_lines": ["gzip: unrecognized option '--keep'", "Trygzip --help' for more information."], "stdout": "", "stdout_lines": []}

PLAY RECAP ***** helper : ok=15 changed=9 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0

[root@helper-host openshift-auto-upi]# gzip --help Usage: gzip [OPTION]... [FILE]... Compress or uncompress FILEs (by default, compress FILES in-place).

Mandatory arguments to long options are mandatory for short options too.

-c, --stdout write on standard output, keep original files unchanged -d, --decompress decompress -f, --force force overwrite of output file and compress links -h, --help give this help -l, --list list compressed file contents -L, --license display software license -n, --no-name do not save or restore the original name and time stamp -N, --name save or restore the original name and time stamp -q, --quiet suppress all warnings -r, --recursive operate recursively on directories -S, --suffix=SUF use suffix SUF on compressed files -t, --test test compressed file integrity -v, --verbose verbose mode -V, --version display version number -1, --fast compress faster -9, --best compress better --rsyncable Make rsync-friendly archive

With no FILE, or when FILE is -, read standard input.

Report bugs to bug-gzip@gnu.org. [root@helper-host openshift-auto-upi]# cat /etc/*-release NAME="Red Hat Enterprise Linux Server" VERSION="7.8 (Maipo)" ID="rhel" ID_LIKE="fedora" VARIANT="Server" VARIANT_ID="server" VERSION_ID="7.8" PRETTY_NAME="Red Hat" ANSI_COLOR="0;31" CPE_NAME="cpe:/o:redhat:enterprise_linux:7.8:GA:server" HOME_URL="https://www.redhat.com/" BUG_REPORT_URL="https://bugzilla.redhat.com/"

REDHAT_BUGZILLA_PRODUCT="Red Hat Enterprise Linux 7" REDHAT_BUGZILLA_PRODUCT_VERSION=7.8 REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux" REDHAT_SUPPORT_PRODUCT_VERSION="7.8" Red Hat Enterprise Linux Server release 7.8 (Maipo) Red Hat Enterprise Linux Server release 7.8 (Maipo) [root@helper-host openshift-auto-upi]# gzip --version gzip 1.5 Copyright (C) 2007, 2010, 2011 Free Software Foundation, Inc. Copyright (C) 1993 Jean-loup Gailly. This is free software. You may redistribute copies of it under the terms of the GNU General Public License http://www.gnu.org/licenses/gpl.html. There is NO WARRANTY, to the extent permitted by law.

Written by Jean-loup Gailly.

jfblaine commented 4 years ago

Resolved this by downloading and installing the gzip 1.9 rpm