Project

General

Profile

Actions

Bug #32661

closed

Old hostgroup with kickstart repository id aren't migrated to the new hostgroup content facet table.

Added by Partha Aji over 3 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Hosts
Target version:
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

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.

Actions #1

Updated by Partha Aji over 3 years ago

  • Bugzilla link set to 1958674
Actions #2

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
Actions #3

Updated by Jonathon Turel over 3 years ago

  • Target version set to Katello 3.18.4
Actions #4

Updated by Chris Roberts over 3 years ago

  • Triaged changed from No to Yes
Actions #5

Updated by The Foreman Bot over 3 years ago

  • Fixed in Releases Katello 4.2.0 added
Actions #6

Updated by Partha Aji over 3 years ago

  • Status changed from Ready For Testing to Closed
Actions #7

Updated by Jonathon Turel over 3 years ago

  • Target version changed from Katello 3.18.4 to Katello 3.18.3
Actions

Also available in: Atom PDF