Description of problem: ---------------------- When trying to download virtctl following one of the URLs in ConsoleCLIDownload virtctl-clidownloads-kubevirt-hyperconverged yaml, I get 404 NOT FOUND. Version-Release number of selected component (if applicable): ------------------------------------------------------------ HCO: 4.9.0-155 How reproducible: ---------------- 100% Steps to Reproduce: ------------------ 1. oc get ConsoleCLIDownload virtctl-clidownloads-kubevirt-hyperconverged -ojson |jq '.spec.links' 2. Try to download one of the links. Actual results: -------------- HTTP 404 Not Found. Expected results: ---------------- The archive file should be downloaded successfully. Additional info: --------------- Adding "/achives" to the URL path before /amd64 will make the URL valid and the archive file will be downloaded successfully.
I found the root cause of the bug. It is because of a wrong "COPY" command in the dockerfile of virt-artifacts-server image. A fix will be provided soon. .
*** Bug 1999112 has been marked as a duplicate of this bug. ***
Hi Erkan, I think the .gz suffix should be added to the tarball name since it is compressed (i.e: virtctl.tar.gz): > curl -ksSL https://hyperconverged-cluster-cli-download-openshift-cnv.apps.${cluster_name}.${cluster_domain}/amd64/linux/virtctl.tar \ > | tar -xf - > > tar: Archive is compressed. Use -z option > tar: Error is not recoverable: exiting now > curl: (23) Fail2021-09-04T13:34:58.840396069Z ed writing body (1268 != 12582) Regards, Denis
Hi Denis, Thanks for reporting this issue. You are right. We should either add ".gz" into the file name or remove "-z" option while creating the tar file. See https://github.com/kubevirt/hyperconverged-cluster-operator/blob/main/build/Dockerfile.artifacts#L16 I checked how OCP does it. It doesn't compress the file and the file name is "oc.tar" On the other hand, we gain significant amount of storage when compressing it. -rw-rw-r--. 1 eerol eerol 49M Sep 1 17:11 virtctl -rw-rw-r--. 1 eerol eerol 49M Sep 6 09:53 virtctl.tar -rw-rw-r--. 1 eerol eerol 19M Sep 6 09:52 virtctl.tar.gz @stirabos I think we should go with compressed file by adding ".gz" suffix. What do you think?
(In reply to Erkan Erol from comment #7) > @stirabos I think we should go with compressed file by adding > ".gz" suffix. What do you think? +1
Verified with the latest 4.9.0 build. The automation tests passed and all links are downloadable.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Moderate: OpenShift Virtualization 4.9.0 Images security and bug fix update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2021:4104