Bug 2127072

Summary: [RHEL-8] pyanaconda.modules.common.errors.installation.SubscriptionTokenTransferError: RHSM entitlement keys (from /etc/pki/entitlement) are missing.
Product: Red Hat Enterprise Linux 8 Reporter: Jan Stodola <jstodola>
Component: anacondaAssignee: Martin Kolman <mkolman>
Status: CLOSED ERRATA QA Contact: Release Test Team <release-test-team-automation>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 8.6CC: jkonecny
Target Milestone: rcKeywords: Triaged
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: anaconda-33.16.8.7-1.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 2057472 Environment:
Last Closed: 2023-05-16 08:15:29 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jan Stodola 2022-09-15 09:32:40 UTC
Description of problem:
The installer fails with the following traceback when the user registers with an incorrectly configured account (for example no subscriptions attached), registers during the installation and uses a different than CDN installation source (for example http):

anaconda 33.16.7.10 exception report
Traceback (most recent call first):
  File "/usr/lib/python3.6/site-packages/dasbus/client/handler.py", line 497, in _handle_method_error
    raise exception from None
  File "/usr/lib/python3.6/site-packages/dasbus/client/handler.py", line 477, in _get_method_reply
    return self._handle_method_error(error)
  File "/usr/lib/python3.6/site-packages/dasbus/client/handler.py", line 447, in _call_method
    **kwargs,
  File "/usr/lib64/python3.6/site-packages/pyanaconda/modules/common/task/__init__.py", line 46, in sync_run_task
    task_proxy.Finish()
  File "/usr/lib64/python3.6/site-packages/pyanaconda/installation_tasks.py", line 521, in run_task
    sync_run_task(self._task_proxy)
  File "/usr/lib64/python3.6/site-packages/pyanaconda/installation_tasks.py", line 490, in start
    self.run_task()
  File "/usr/lib64/python3.6/site-packages/pyanaconda/installation_tasks.py", line 311, in start
    item.start()
  File "/usr/lib64/python3.6/site-packages/pyanaconda/installation_tasks.py", line 311, in start
    item.start()
  File "/usr/lib64/python3.6/site-packages/pyanaconda/installation_tasks.py", line 311, in start
    item.start()
  File "/usr/lib64/python3.6/site-packages/pyanaconda/installation.py", line 406, in run_installation
    queue.start()
  File "/usr/lib64/python3.6/threading.py", line 885, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/lib64/python3.6/site-packages/pyanaconda/threading.py", line 280, in run
    threading.Thread.run(self)
pyanaconda.modules.common.errors.installation.SubscriptionTokenTransferError: RHSM entitlement keys (from /etc/pki/entitlement) are missing.

The traceback appears at the end of the installation, when the installed system is being configured.


Version-Release number of selected component:
anaconda-33.16.7.10

Steps to reproduce:
1. register with an incorrectly configured account (for example no subscriptions attached)
2. continue with the installation using a non-CDN installaiton source (like http)

Comment 4 Martin Kolman 2023-01-27 14:49:21 UTC
PR: https://github.com/rhinstaller/anaconda/pull/4531

Comment 6 Jan Stodola 2023-02-07 13:09:41 UTC
Tested with anaconda-33.16.8.7-1.el8, it was possible to finish the installation when an account with no subscriptions was used to register the system. The installer displayed an appropriate message.
Tested by manual graphical and kickstart text-mode installations.

Marking as Verified:Tested

Comment 9 Jan Stodola 2023-02-14 12:45:46 UTC
Checked that anaconda-33.16.8.7-1.el8 is in nightly compose RHEL-8.8.0-20230209.2

Moving to VERIFIED

Comment 11 errata-xmlrpc 2023-05-16 08:15:29 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (anaconda bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2023:2748