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

Failed to build cephcsi image #3960

Closed
saranyareddy24 opened this issue Jul 3, 2023 · 10 comments · Fixed by #3963
Closed

Failed to build cephcsi image #3960

saranyareddy24 opened this issue Jul 3, 2023 · 10 comments · Fixed by #3963
Labels
component/build Issues and PRs related to compiling Ceph-CSI dependency/ceph depends on core Ceph functionality

Comments

@saranyareddy24
Copy link

command used to build cephcsi image:

sudo make image-cephcsi

Error encountered while building the image

#6 52.30 [MIRROR] ceph-iscsi-3.6-1.el8.noarch.rpm: Downloading successful, but checksum doesn't match. Calculated: 4c40e3b612b507db7169fb1ce46d4ab618178e8a8906729d522c8b67c56683b4(sha256)  Expected: 9ee9d8f0d2b84dcf2c8b2a580f172bcf9e22454057fea97cb42b452da72c78d1(sha256) 
#6 52.36 [MIRROR] ceph-iscsi-3.6-1.el8.noarch.rpm: Downloading successful, but checksum doesn't match. Calculated: 4c40e3b612b507db7169fb1ce46d4ab618178e8a8906729d522c8b67c56683b4(sha256)  Expected: 9ee9d8f0d2b84dcf2c8b2a580f172bcf9e22454057fea97cb42b452da72c78d1(sha256) 
#6 52.42 [MIRROR] ceph-iscsi-3.6-1.el8.noarch.rpm: Downloading successful, but checksum doesn't match. Calculated: 4c40e3b612b507db7169fb1ce46d4ab618178e8a8906729d522c8b67c56683b4(sha256)  Expected: 9ee9d8f0d2b84dcf2c8b2a580f172bcf9e22454057fea97cb42b452da72c78d1(sha256) 
#6 52.49 [MIRROR] ceph-iscsi-3.6-1.el8.noarch.rpm: Downloading successful, but checksum doesn't match. Calculated: 4c40e3b612b507db7169fb1ce46d4ab618178e8a8906729d522c8b67c56683b4(sha256)  Expected: 9ee9d8f0d2b84dcf2c8b2a580f172bcf9e22454057fea97cb42b452da72c78d1(sha256) 
#6 52.49 [FAILED] ceph-iscsi-3.6-1.el8.noarch.rpm: No more mirrors to try - All mirrors were already tried without success
#6 52.49 
#6 52.49 The downloaded packages were saved in cache until the next successful transaction.
#6 52.49 You can remove cached packages by executing 'dnf clean packages'.
#6 52.50 Error: Error downloading packages:
#6 52.50   ceph-iscsi-3.6-1.el8.noarch: Cannot download, all mirrors were already tried without success

Environment details

  • Image/version of Ceph CSI driver : v3.8.0
@nixpanic nixpanic linked a pull request Jul 3, 2023 that will close this issue
@nixpanic nixpanic added dependency/ceph depends on core Ceph functionality component/build Issues and PRs related to compiling Ceph-CSI labels Jul 3, 2023
@saranyareddy24
Copy link
Author

Seeing this error after your merge @nixpanic

Package ceph-iscsi-3.6-1.el8.noarch.rpm is not signed
The downloaded packages were saved in cache until the next successful transaction.
You can remove cached packages by executing 'dnf clean packages'.
Error: GPG check FAILED
Error: error building at STEP "RUN dnf -y update        && dnf clean all        && rm -rf /var/cache/yum": error while running runtime: exit status 1
make: *** [Makefile:235: image-cephcsi] Error 125

@nixpanic
Copy link
Member

nixpanic commented Jul 5, 2023

#3972 has been merged as well, do you see the issue still?

@saranyareddy24
Copy link
Author

Yes, I am still seeing the same issue that rpm is not signed.

@nixpanic
Copy link
Member

nixpanic commented Jul 6, 2023

Can you paste the full logs, including the command that you run to build the image? I thought we disabled the ceph-iscsi repository everywhere, but maybe we missed an occasion.

What is the git commit you run with? Because any tagged version will have the issue.

@saranyareddy24
Copy link
Author

git pull origin v3.8.0
Image build errors:

 > [updated_base 2/2] RUN dnf -y update        && dnf clean all        && rm -rf /var/cache/yum:
#6 46.81 (35/38): python3-libs-3.6.8-52.el8.x86_64.rpm    26 MB/s | 8.4 MB     00:00    
#6 46.83 (36/38): selinux-policy-3.14.3-123.el8.noarch.r 7.1 MB/s | 662 kB     00:00    
#6 47.14 (37/38): selinux-policy-minimum-3.14.3-123.el8.  35 MB/s |  14 MB     00:00    
#6 47.20 (38/38): ceph-iscsi-3.6-1.el8.noarch.rpm        546 kB/s | 212 kB     00:00    
#6 47.20 --------------------------------------------------------------------------------
#6 47.20 Total                                            29 MB/s |  84 MB     00:02     
#6 47.76 Package ceph-iscsi-3.6-1.el8.noarch.rpm is not signed
#6 47.76 The downloaded packages were saved in cache until the next successful transaction.
#6 47.76 You can remove cached packages by executing 'dnf clean packages'.
#6 47.77 Error: GPG check FAILED
------
Dockerfile:7
--------------------
   6 |     
   7 | >>> RUN dnf -y update \
   8 | >>>        && dnf clean all \
   9 | >>>        && rm -rf /var/cache/yum
  10 |     
--------------------
ERROR: failed to solve: process "/bin/sh -c dnf -y update        && dnf clean all        && rm -rf /var/cache/yum" did not complete successfully: exit code: 1
make: *** [Makefile:235: image-cephcsi] Error 1
##[error]Bash exited with code '2'.

@nixpanic
Copy link
Member

nixpanic commented Jul 6, 2023

It should have been fixed in the release-v3.8 branch. Because the repositories have changed, existing tags will try to use the (now) broken repositories. Please try with the HEAD of the release-v3.8 branch, currently at commit 37d54cf.

@saranyareddy24
Copy link
Author

Hi @nixpanic, Is it possible to push it to some tag v3.8.0 or v3.9.0 because we have pipeline for building cephcsi image and it is failing if we use release-3.8 branch as the tagging of image names are different in rel-3.8 branch

@nixpanic
Copy link
Member

Lets see what others think about that. We could probably do a v3.8.1 release soon.

@nixpanic
Copy link
Member

v3.8.1 has been released. Does that resolve your issue, @saranyareddy24 ?

@saranyareddy24
Copy link
Author

Yes it worked. Thanks @nixpanic

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/build Issues and PRs related to compiling Ceph-CSI dependency/ceph depends on core Ceph functionality
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants