-
Notifications
You must be signed in to change notification settings - Fork 29
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
Fixes #36902 - Support Pulpcore 3.39, drop older versions #315
Conversation
I haven't touched the tests yet. |
I suppose this is going to break all of the older Pulp tests? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree this will break older releases, which is fine. Last time we did that was 5db8f48 but it changed a bit since then. To update the supported versions:
Line 3 in 101c325
beaker_facter: 'pulpcore_version:Pulp:3.28,3.22,3.21' |
puppet-pulpcore/.github/workflows/ci.yml
Line 18 in 101c325
beaker_facter: 'pulpcore_version:Pulp:3.28,3.22,3.21' |
puppet-pulpcore/manifests/repo.pp
Line 6 in 101c325
Pattern['^\d+\.\d+$'] $version = '3.28', |
https://github.com/theforeman/puppet-pulpcore/blob/master/README.md#support-policy
Of course it will fail until we have repositories. We can also add nightly since that now exists.
@ekohl I updated all of those files including the README. |
[test] |
Actually I don't think we can test just yet, the packages are available but as nightly https://yum.theforeman.org/pulpcore/nightly/el8/ |
I've just merged #318, if you rebase and add "nightly" to the matrix, at least that we should see working |
@evgeni I've added nightly |
and on el9 it tries to fetch gpg keys, fails (obviously) and bails out
|
I just found out that Python 11 doesn't work with module streams, so there will be no modules. This might cause some bigger issues, at the very least our docs will need updating... |
Oooh, you're saying Pulpcore is also demodularized now?! |
Seems like it, I just found out a couple minutes ago. Sounds like it's not by choice, but by how Python 3.11 works. Sounds like we could still ship the modular metadata if removing it is too troublesome. |
Well, just because Python is not shipped in a module anymore doesn't mean we can't ship (no Android, not shit, I mean sure, in a way, but no) Pulpcore as a module. That being said, there is no reason for us to now. I think this is fine and we can just drop the module stuff from repo.pp. |
I didn't review the last version, but I opened the question whether pulpcore needs modularity given Python 3.11 is just a regular package. That would needs updates, which makes the whole Pulp upgrade from a platform perspective an even larger risk than it already was, but cleaner |
Would it only be the docs and this puppet-pulpcore repo that will need updates to remove the modular expectation? |
That would be my naive assumption. Maybe foreman operations collection, don't recall how we set up Pulpcore there. |
I've pushed a change to drop the modules, let's see if I did it right. |
Nightly GPG key is an issue again: |
I'm attempting to remove the GPG key requirement for nightly... |
4652f61
to
2751659
Compare
Hmm still erroring |
Test-wise I think this is good to go -- the only failing bits are Pulp-CLI on EL9 with the 3.39 repo. Nightly is working on EL9, and everything EL8 works. |
So I tried an upgrade by installing 3.28 with the module currently on Forge and then upgrading to 3.39 with this PR here. Generally, things seem to work (well, a |
gpgkey => pick($gpgkey, "https://yum.theforeman.org/pulpcore/${version}/GPG-RPM-KEY-pulpcore"), | ||
notify => Anchor['pulpcore::repo'], | ||
} | ||
|
||
# Only EL8 has DNF modules |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removing this here, leaves a "failsafe" module in DNF, but seems not hinder the upgrade:
[root@centos8-stream ~]# dnf module list |grep -B5 pulpcore
Last metadata expiration check: 0:04:07 ago on Thu 23 Nov 2023 07:26:27 AM UTC.
@modulefailsafe
Name Stream Profiles Summary
pulpcore el8 [e] Pulpcore module
The only cleanup needed is to remove the /etc/dnf/modules.d/pulpcore.module
file, which I think can be done in here?
(People who do not use pulpcore::repo
still need to be informed via docs to either delete that file or call dnf module reset pulpcore
, but I think that's fine)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(People who do not use
pulpcore::repo
still need to be informed via docs to either delete that file or calldnf module reset pulpcore
, but I think that's fine)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is now green, so I'm going to merge this now.
I realize now that I only merged this part, which will end up in nightly but I can't merge Katello/katello#10791 because I don't have permissions. |
Everything related is now merged |
The Katello release failed for nightly, and it's related to the installer, probably it was not released yet on the nightly package:
|
I investigated this and wrote it down in theforeman/jenkins-jobs#382 (comment). My initial theory was wrong, and it appears things aren't synced from staging to release. |
But the pipes should be using staging anyway. So it shouldn't matter if staging>prod sync is broken? And https://ci.theforeman.org/job/foreman-nightly-rpm-pipeline/2099/ was ree, which explains not synced prod? |
https://ci.theforeman.org/job/foreman-nightly-rpm-pipeline/2099/consoleFull ran at 9:50PM and pushed the new installer but https://ci.theforeman.org/job/katello-nightly-rpm-pipeline/1837/ ran at 8:18PM and thus just didn't have the new installer (katello doesn't generate foreman staging, but the installer is in foreman). but when you looked, staging was updated already and confused you :) |
and now installs passed fine. tests are failing tho, see https://community.theforeman.org/t/katello-nightly-rpm-pipeline-1838-failed/35929/2 |
Assumes that pulp/pulpcore#4679 is in Pulpcore 3.39.
Also assumes that pulp/pulpcore#4681 is going to be fixed for Pulpcore 3.39 in time. This doesn't affect the installer but we shouldn't release Katello with that Pulpcore bug.
I had to assume that the entry point will live in
/usr/bin
since, when installed viapip
, it is installed to/usr/local/bin
.I verified these work (minus the jitter for now):
and