Project

General

Profile

Bug #32661

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

Added by Partha Aji 12 months ago. Updated 11 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Hosts
Target version:
Difficulty:
Triaged:
Yes
Bugzilla link:
Fixed in Releases:
Found in Releases:
Red Hat JIRA:

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.

Associated revisions

Revision c2ed31ef (diff)
Added by Partha Aji 12 months ago

Fixes #32661 - Properly migrate hg content facet (#9383)

Refs #32661 - Added rake to fix hostgroup facets from audit

History

#1 Updated by Partha Aji 12 months ago

  • Bugzilla link set to 1958674

#2 Updated by The Foreman Bot 12 months ago

  • Assignee set to Partha Aji
  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/katello/pull/9383 added

#3 Updated by Jonathon Turel 12 months ago

  • Target version set to Katello 3.18.4

#4 Updated by Chris Roberts 12 months ago

  • Triaged changed from No to Yes

#5 Updated by The Foreman Bot 12 months ago

  • Fixed in Releases Katello 4.2.0 added

#6 Updated by Partha Aji 12 months ago

  • Status changed from Ready For Testing to Closed

#7 Updated by Jonathon Turel 11 months ago

  • Target version changed from Katello 3.18.4 to Katello 3.18.3

Also available in: Atom PDF