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.