-
Notifications
You must be signed in to change notification settings - Fork 297
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 #37983 - Remove syspurpose addons from Katello #11196
Conversation
fc2516e
to
573a92c
Compare
can you rebase this ? |
@parthaa updated |
1d7e774
to
54d0a7b
Compare
a042b22
to
40bdb50
Compare
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 am not able to run the down migration:
$ bundle exec rails db:migrate:down VERSION=20241101144625
== 20241101144625 RemoveSystemPurposeAddons: reverting ========================
-- create_table(:katello_activation_key_purpose_addons)
rails aborted!
StandardError: An error has occurred, this and all later migrations canceled:
you can't redefine the primary key column 'id'. To define a custom primary key, pass { id: false } to create_table.
One option would be just to consider this an irreversible migration, delete the down
method, and rename up
to change
.
Other than that everything seems to work as expected. 👍
Since I don't think we are going to be adding these back, might as well as change it to irreversible. I was debating on that but decided to try and be fancy and it blew up. |
40bdb50
to
b768e73
Compare
@jeremylenz updated the migration |
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.
LGTM 👍
thanks @chris1984!
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.
Clicking request changes until the https://github.com/Katello/katello/pull/11196/files#r1847225444 is resolved.
b768e73
to
1eaf504
Compare
Talked with @parthaa and he had me update that migration to just remove us looping through things and just create the table. Also removed that model name from a few other migrations. |
Tested on a downstream Satellite with a 2024-11-19 15:40:27 [INFO ] [post] Executing hooks in group post
Success!
* Satellite is running at https://server.example.com
* To install an additional Capsule on separate machine continue by running:
capsule-certs-generate --foreman-proxy-fqdn "$CAPSULE" --certs-tar "/root/$CAPSULE-certs.tar"
* Capsule is running at https://server.example.com
The full log is at /var/log/foreman-installer/satellite.log
Package versions are being locked.
2024-11-19 15:40:27 [INFO ] [root] Package versions are being locked.
2024-11-19 15:40:28 [INFO ] [post] All hooks in group post finished |
* In Katello/katello#11196 we removed syspurpose addons from Katello. I didn't realize we had them in Foreman too.
* In Katello/katello#11196 we removed syspurpose addons from Katello. I didn't realize we had them in Foreman too.
* In Katello/katello#11196 we removed syspurpose addons from Katello. I didn't realize we had them in Foreman too.
* In Katello/katello#11196 we removed syspurpose addons from Katello. I didn't realize we had them in Foreman too.
I see system purpose is still mentioned in the docs. In https://docs.theforeman.org/nightly/Managing_Content/index-katello.html#Managing_Activation_Keys_content-management for example. Is this work tracked? |
System purpose addons is only one small part of system purpose. Other syspurpose attributes, (role, usage, SLA) along with release version, are neither deprecated nor removed. |
Yet it is mentioned (though the OracleLinux part is a false positive): rg -i addons
guides/common/assembly_importing-content.adoc
58::yum_repo_extras_name: {os_name} {os_major} Addons
59::yum_repo_extras_url: https://yum.oracle.com/repo/OracleLinux/OL{os_major}/addons/x86_64/
70::yum_repo_extras_name: {os_name} {os_major} Addons
71::yum_repo_extras_url: https://yum.oracle.com/repo/OracleLinux/OL{os_major}/addons/x86_64/
guides/common/modules/proc_editing-the-system-purpose-of-a-host.adoc
31:# subscription-manager syspurpose add addons '_your_addon_'
guides/common/modules/proc_creating-an-activation-key.adoc
51:--purpose-addons "_addons_" At least the last one is a hammer command and I think that will break. |
@ekohl I will make a PR to remove it from the docs today |
What are the changes introduced in this pull request?
What are the testing steps for this pull request?