Ubuntu host, no list in installed packages in Foreman UI

Hello!
I have Ubuntu 22.04 host which is registered by means of repo ans instruction from apt.atix.de
This host is registered correctly, I see it in Foreman UI and also repos from Foreman are available for the host to install packages.
But there is no list of installed packages in UI in host details (Content - Packages).
There is error messages if I run /usr/bin/package-profile-upload:

Traceback (most recent call last):
  File "/usr/bin/package-profile-upload", line 33, in <module>
    sys.exit(load_entry_point('subscription-manager==1.29.35', 'console_scripts', 'package-profile-upload')())
  File "/usr/lib/python3/dist-packages/subscription_manager/scripts/package_profile_upload.py", line 34, in main
    report = command.perform(force_upload=args.force_upload)
  File "/usr/lib/python3/dist-packages/subscription_manager/packageprofilelib.py", line 48, in perform
    ret: Literal[0, 1] = profile_mgr.update_check(self.uep, consumer_identity.uuid, force=force_upload)
  File "/usr/lib/python3/dist-packages/subscription_manager/cache.py", line 528, in update_check
    return CacheManager.update_check(self, uep, consumer_uuid, force)
  File "/usr/lib/python3/dist-packages/subscription_manager/cache.py", line 203, in update_check
    raise e
  File "/usr/lib/python3/dist-packages/subscription_manager/cache.py", line 191, in update_check
    self._sync_with_server(uep, consumer_uuid)
  File "/usr/lib/python3/dist-packages/subscription_manager/cache.py", line 550, in _sync_with_server
    combined_profile: Dict = self.current_profile
  File "/usr/lib/python3/dist-packages/subscription_manager/cache.py", line 500, in current_profile
    self._current_profile: Dict[str, List[Dict]] = {key: get_profile(key).collect() for key in PROFILE_MAP.keys()}
  File "/usr/lib/python3/dist-packages/subscription_manager/cache.py", line 500, in <dictcomp>
    self._current_profile: Dict[str, List[Dict]] = {key: get_profile(key).collect() for key in PROFILE_MAP.keys()}
  File "/usr/lib/python3/dist-packages/rhsm/profile.py", line 403, in get_profile
    profile = PROFILE_MAP[profile_type]()
  File "/usr/lib/python3/dist-packages/rhsm/profile.py", line 211, in __init__
    self._content.extend(repo_file.enabled_repos())
  File "/usr/lib/python3/dist-packages/rhsm/repofile.py", line 617, in enabled_repos
    enabled_sections = [section for section in self.sections() if config.getboolean(section, "enabled")]
  File "/usr/lib/python3/dist-packages/rhsm/repofile.py", line 617, in <listcomp>
    enabled_sections = [section for section in self.sections() if config.getboolean(section, "enabled")]
AttributeError: module 'rhsmlib.services.config' has no attribute 'getboolean

I’m not sure it is related anyhow to Foreman itself because the same error appears if host has no network connection.

Which Foreman version are you using?

Foreman 3.9.1 / Katello 4.11.0

Host details extension for Debian packages only exists since Katello 4.12 Fixes #35713 - Host details tab for Debian packages (#10744) · Katello/katello@e48bd5b · GitHub

Does that mean that I have to get 4.12 version and no any changes should be perforemed on Ubuntu host?
I doubt because I run package-profile-upload whithout network connection to check if it’s exactly host related issue.

There may be another issue (maybe some python packages missing or incompatible?), but you definitely need Foreman 3.10 and Katello 4.12 to be able to see any repository lists inside the new host details UI for Debian systems.

Got list of installed packages on version 4.12
Thank you!

1 Like