-
Notifications
You must be signed in to change notification settings - Fork 70
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
Refs #37275: Enable modules and download updates after enabling postgresql module #814
Conversation
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.
You can't enable the satellite:el8
module as it now has broken deps. That has to happen after the switch.
And because if that the download of packages needs to also happen after the switch, as otherwise no packages are downloaded (dnf discards modules with broken deps, and thus all RPMs provided by them)
I was afraid of that, I hadn't tested this yet. I have another idea but need to test it. |
Yeah, I think you need to move this whole block: foreman_maintain/definitions/scenarios/upgrade_to_satellite_6_16.rb Lines 42 to 52 in fba91a5
down to Migrations .
Also, frankly, it makes more sense there. PreMigrations should be non-destructive, while this code is. |
4a08379
to
40f7b53
Compare
@@ -39,6 +39,7 @@ class PreMigrations < Abstract | |||
end | |||
|
|||
def compose | |||
add_step(Procedures::SyncPlans::Disable.new) |
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.
Should the same change happen in capsule? OTOH, capsules don't have syncplans.
I think this should refer to https://projects.theforeman.org/issues/37275 in some way? |
I was hoping I could find a way to avoid that :/ since it defeats the whole point of reducing the downtime by caching downloads. Why must modularity break everything. |
40f7b53
to
8830e32
Compare
Updated to move all of that logic (sadly) into the Migration block after maintenance mode |
you have a typo in the redmine, it's 37275 not 37375 ;) |
I am able to upgrade after applying this PR |
8830e32
to
56e8b61
Compare
The dnf module switch-to functionality not only swaps module streams but forces the installation of the new packages which can cause the system to be in a bad state. For example, sync plan disable will break in some cases.
I should also mention that it breaks the paradigm we designed where package updates are downloaded but not applied before entering maintenance mode.