Project

General

Profile

Bug #27650

package profile upload & repos upload needs to use subman combined profiles

Added by Partha Aji 9 months ago. Updated 3 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Client/Agent
Target version:
Difficulty:
Triaged:
Yes
Bugzilla link:
Fixed in Releases:
Found in Releases:

Description

RHEL 7.7 and later subscription manager will handle combining the package and enabled repos profiles and sending them over to the server. Katello Host tools needs be to cognizant of this functionality in subscription manager and handle the appropriate calls based on the availability of combined profiles.

Associated revisions

Revision 3d780978 (diff)
Added by Partha Aji 3 months ago

Fixes #27650 - Handles combined profile uploads (#102)

  • Fixes #27650 - Handles combined profile uploads

Subscription Manager 1.23-2 and above have the ability to generate a
profile.json that combines package profile, enabled repositories profile
and modulemd profiles. Katello Host tools at present is unable to take
advantage of this facility. So 2 sets of reports related to enabled
repositories are sent to the server.
This commit does the following
1) Removes the package_profile_on_trans check and instead always defers
to subscription manager to handle it
2) Checks if combined profiles feature is enabled by checking if
rhsm.profile.EnabledRepos is available.
3) If Combined profiles are available then defers the enabled repos
upload to subscription manager as well
4) Makes the remove_cache rm the profile.json instead of whereever the
cache was before. This remove_cache is used in the "force" calls.
katello-package-upload -f and katello-enabled-repos-upload -f
operations.

Subscription manager sends information to the server only if the cache
changes and hence unnecessary calls to the server are avoided.

History

#1 Updated by Partha Aji 9 months ago

  • Bugzilla link set to 1741577

#2 Updated by The Foreman Bot 9 months ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/katello-host-tools/pull/102 added

#3 Updated by Samir Jha 9 months ago

  • Triaged changed from No to Yes
  • Target version set to Katello Recycle Bin

#4 Updated by The Foreman Bot 4 months ago

  • Target version deleted (Katello Recycle Bin)

#5 Updated by Partha Aji 4 months ago

  • Target version set to Katello Recycle Bin
  • Status changed from Ready For Testing to Rejected

Subman handles this correctly now. Closing this

#6 Updated by Partha Aji 4 months ago

  • Target version changed from Katello Recycle Bin to Katello 3.15.0
  • Status changed from Rejected to New

#7 Updated by The Foreman Bot 4 months ago

  • Status changed from New to Ready For Testing

#8 Updated by Partha Aji 3 months ago

  • Status changed from Ready For Testing to Closed

#9 Updated by Jonathon Turel 3 months ago

  • Category changed from Tooling to Client/Agent

Also available in: Atom PDF