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

github: require reef job to pass in mergify config #910

Merged
merged 2 commits into from
Aug 16, 2023

Conversation

phlogistonjohn
Copy link
Collaborator

It does what it says on the tin.

This is a change to the mergify configuration and thus will require a manual merge upon approval.

@phlogistonjohn phlogistonjohn added the no-API This PR does not include any changes to the public API of a go-ceph package label Aug 2, 2023
Copy link
Collaborator

@anoopcs9 anoopcs9 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Request to add missing check for quincy job in mergify configuration.

@phlogistonjohn
Copy link
Collaborator Author

Request to add missing check for quincy job in mergify configuration.

Thank you for the reminder. PR Updated.

@phlogistonjohn phlogistonjohn requested a review from anoopcs9 August 7, 2023 17:17
anoopcs9
anoopcs9 previously approved these changes Aug 8, 2023
Copy link
Collaborator

@anoopcs9 anoopcs9 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm.

@phlogistonjohn
Copy link
Collaborator Author

So reef build is failing there's yet another nfs ganesha packaging related issue. I'm not sure how long this one will last. We can try to wait it out or we can manually merge before the nfs ganesha issue is fixed. We have to manually merge this PR at some time because it changes the mergify config.

Opinions? - @anoopcs9 @ansiwen

@anoopcs9
Copy link
Collaborator

anoopcs9 commented Aug 8, 2023

So reef build is failing there's yet another nfs ganesha packaging related issue. I'm not sure how long this one will last. We can try to wait it out or we can manually merge before the nfs ganesha issue is fixed. We have to manually merge this PR at some time because it changes the mergify config.

Opinions? - @anoopcs9 @ansiwen

I noticed the failure and initiated a discussion with Kaleb as there was an update pushed yesterday for nfs-ganesha from CentOS Storage SIG. Is that OK if I give it a day or two for fixing the installation issues?

@phlogistonjohn
Copy link
Collaborator Author

I noticed the failure and initiated a discussion with Kaleb as there was an update pushed yesterday for nfs-ganesha from CentOS Storage SIG. Is that OK if I give it a day or two for fixing the installation issues?

Fine by me.

@anoopcs9
Copy link
Collaborator

anoopcs9 commented Aug 9, 2023

So reef build is failing there's yet another nfs ganesha packaging related issue.

Current installation issue with nfs-ganesha is due to the fact that we execute a yum update -y prior to installing the required Ceph packages.

Reef is configured to build images with nfs-ganesha v5 packages. They do have a set of clean up instructions within the Dockerfile where /etc/selinux is removed. With updated packages for nfs-ganesha-5.x/nfs-ganesha-selinux-5.x, an update fails to find /etc/selinux/config resulting in an installation error as seen in the GitHub CI logs.

#6 35.42 /var/tmp/rpm-tmp.tz17GR: line 2: /etc/selinux/config: No such file or directory
#6 35.42 error: %prein(nfs-ganesha-selinux-5.5-2.el8s.noarch) scriptlet failed, exit status 1
#6 35.42 
#6 35.43 Error in PREIN scriptlet in rpm package nfs-ganesha-selinux
#6 35.43   Running scriptlet: nfs-ganesha-5.5-2.el8s.x86_64                         2/12 
#6 35.43 error: nfs-ganesha-selinux-5.5-2.el8s.noarch: install failed
. . .
#6 36.30 Error in POSTTRANS scriptlet in rpm package nfs-ganesha 
#6 36.30 error: nfs-ganesha-selinux-5.4-1.el8s.noarch: erase skipped
#6 36.30 /var/tmp/rpm-tmp.QHy4Za: line 2: /etc/selinux/config: No such file or directory
#6 36.30 warning: %posttrans(nfs-ganesha-5.5-2.el8s.x86_64) scriptlet failed, exit status 1 

I'm not sure how long this one will last.

Issue will be fixed once the Reef image gets rebuilt with latest nfs-ganesha-5.x packages. But if I understand correctly this rebuild will only happen with next update to v18.2.

In this context I would like to rethink on the need for yum update -y in our Dockerfile.

@phlogistonjohn
Copy link
Collaborator Author

AFAIR we update the packages because the RPM repository doesn't necessarily have the same packages that are in the container image any more. Since the point is to get the devel packages we ended up failing the install because the matching dev/non-dev packages were not present.
Hypothetical example:

  foo-5.6.7 is installed in the container
  foo-5.6.12 and foo-devel-5.6.12 is in the repo
  foo-devel-5.6.7 is not in the repo

So the yum/dnf update prevents failing the devel package install in this case.

I'm not inclined to remove this step, which has been working for years at this point because of a bug we know will be fixed. I'd be willing to try and put in an nfs-ganesha specific workaround if we can. However, I'm willing to continue the discussion too. :-)

@anoopcs9
Copy link
Collaborator

anoopcs9 commented Aug 9, 2023

AFAIR we update the packages because the RPM repository doesn't necessarily have the same packages that are in the container image any more. Since the point is to get the devel packages we ended up failing the install because the matching dev/non-dev packages were not present. Hypothetical example:

  foo-5.6.7 is installed in the container
  foo-5.6.12 and foo-devel-5.6.12 is in the repo
  foo-devel-5.6.7 is not in the repo

Are you talking about Ceph related packages or in general? In any case I think DNF is capable of detecting updates in such situations. Out of my curiosity I created a similar situation on my Fedora 38 machine:

$ rpm -q ncurses ncurses-libs ncurses-base
ncurses-6.4-2.20230114.fc38
ncurses-libs-6.4-2.20230114.fc38
ncurses-base-6.4-2.20230114.fc38

$ sudo dnf list ncurses --showduplicates --forcearch x86_64
Installed Packages
ncurses.x86_64                                                                        6.4-2.20230114.fc38                                                                         @@commandline
Available Packages
ncurses.x86_64                                                                        6.4-3.20230114.fc38                                                                         fedora       

$ sudo dnf list ncurses-devel --showduplicates --forcearch x86_64
Available Packages
ncurses-devel.x86_64                                                                         6.4-3.20230114.fc38                                                                         fedora

$ sudo dnf install ncurses-devel
Dependencies resolved.
===============================================================================================================================================================================================
 Package                                           Architecture                            Version                                               Repository                               Size
===============================================================================================================================================================================================
Installing:
 ncurses-devel                                     x86_64                                  6.4-3.20230114.fc38                                   fedora                                  549 k
Upgrading:
 ncurses                                           x86_64                                  6.4-3.20230114.fc38                                   fedora                                  412 k
 ncurses-base                                      noarch                                  6.4-3.20230114.fc38                                   fedora                                   87 k
 ncurses-libs                                      x86_64                                  6.4-3.20230114.fc38                                   fedora                                  333 k
Installing dependencies:
 ncurses-c++-libs                                  x86_64                                  6.4-3.20230114.fc38                                   fedora                                   37 k

Transaction Summary
===============================================================================================================================================================================================
Install  2 Packages
Upgrade  3 Packages

Total download size: 1.4 M
Is this ok [y/N]: 

@ansiwen
Copy link
Collaborator

ansiwen commented Aug 9, 2023

Are you talking about Ceph related packages or in general? In any case I think DNF is capable of detecting updates in such situations.

It was this fix: #510

It was definitely an issue. Some additional ceph packages couldn't be installed, because some other installed ceph packages were not matching. It did not always happen, but in certain times around releases IIRC. So we would need an alternative solution, we can't just remove the update.

@anoopcs9
Copy link
Collaborator

Are you talking about Ceph related packages or in general? In any case I think DNF is capable of detecting updates in such situations.

It was this fix: #510

It was definitely an issue. Some additional ceph packages couldn't be installed, because some other installed ceph packages were not matching. It did not always happen, but in certain times around releases IIRC. So we would need an alternative solution, we can't just remove the update.

Hm.. I'm not convinced completely but I am good to go with #913 for now.

@anoopcs9
Copy link
Collaborator

@Mergifyio rebase

After adding the reef job, it was noticed that there was no quincy job.
Apparently we (probably me) forgot to add it at the time we added quincy
to our CI matrix, so we're adding it now.

Signed-off-by: John Mulligan <[email protected]>
@mergify
Copy link

mergify bot commented Aug 16, 2023

rebase

✅ Branch has been successfully rebased

@anoopcs9 anoopcs9 merged commit c6272ee into ceph:master Aug 16, 2023
@phlogistonjohn phlogistonjohn deleted the jjm-reef-mergify branch August 16, 2023 17:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no-API This PR does not include any changes to the public API of a go-ceph package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants