Bug #32661
closedOld hostgroup with kickstart repository id aren't migrated to the new hostgroup content facet table.
Description
This was raised based on https://community.theforeman.org/t/bug-host-group-settings-not-saved-foreman-2-2-katello-3-17/21353/14 and https://bugzilla.redhat.com/show_bug.cgi?id=1958674 and issue https://projects.theforeman.org/issues/31382
Upon migration, we would expect the old hostgroups which have a kickstart repository assign to have hostgroup content facet records created. This doesn't seem to happen. Instead we get a nil for cv,lce,content source, kickstart repo id in the host group facet.
Steps
- Install 3.16
- Sync a kickstart repo
- create a hostgroup that has a cv, content source, a lifecycle env, an os and arch AND repo id
- upgraded to 3.17 using the instructions here > https://theforeman.org/plugins/katello/nightly/upgrade/index.html (I used 3.17 instead of nightly.) Take a snapshot just before you run the foreman-installer.
- run foreman-installer
- Once upgraded check to see if the host group has all the content facet details like content view, lce, content source, kickstart repo id etc
- You would hopefully see it didnt port properly.
- Revert the snapshot and apply this pr at ```/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.17.1/db/migrate/20200514092553_move_katello_fields_from_hostgroups.katello.rb``` (similar location for 3-18)
- run foreman-installer
- Once upgraded check to see if the host group has all the content facet details like content view, lce, content source and most importantly a Kickstart Repository ID.
Updated by The Foreman Bot over 3 years ago
- Status changed from New to Ready For Testing
- Assignee set to Partha Aji
- Pull request https://github.com/Katello/katello/pull/9383 added
Updated by The Foreman Bot over 3 years ago
- Fixed in Releases Katello 4.2.0 added
Updated by Partha Aji over 3 years ago
- Status changed from Ready For Testing to Closed
Applied in changeset katello|c2ed31efd1cbd094177d5865d9a09934cf11301c.
Updated by Jonathon Turel over 3 years ago
- Target version changed from Katello 3.18.4 to Katello 3.18.3