Bug 2232436 - subscription registration using rhsm role is not idempotent [NEEDINFO]
Summary: subscription registration using rhsm role is not idempotent
Keywords:
Status: NEW
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: ansible-role-redhat-subscription
Version: 17.0 (Wallaby)
Hardware: x86_64
OS: Linux
high
medium
Target Milestone: ---
: ---
Assignee: Nobody
QA Contact: David Rosenfeld
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-08-16 21:02 UTC by mlecki
Modified: 2023-08-17 08:24 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Target Upstream Version:
Embargoed:
bshephar: needinfo? (mlecki)


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker OSP-27547 0 None None None 2023-08-16 21:05:16 UTC

Description mlecki 2023-08-16 21:02:03 UTC
Description of problem:

Running the rhsm role with the following RhsmVars (using portal registration with activation key):

parameter_defaults:
  RhsmVars:
    rhsm_repos:
      - rhel-9-for-x86_64-baseos-eus-rpms
      - rhel-9-for-x86_64-appstream-eus-rpms
      - rhel-9-for-x86_64-highavailability-eus-rpms
    rhsm_activation_key: "xxx"
    rhsm_org_id: "1234567"
    rhsm_pool_ids: "xxx"
    rhsm_method: "portal"
    rhsm_release: 9.0

Works fine one the first try (all nodes get subscribed and repos attached). When running a stack update, the playbook fails because upon re-registering the subscription status is listed as invalid. At this point the playbook fails and the stack update fails.

Version-Release number of selected component (if applicable):
RHEL 9.0 with RHOSP 17.0

How reproducible:
every time

Steps to Reproduce:
1. install overcloud with rhsm.yaml template
2. run stack update with rhsm.yaml template

Actual results:

Stack update fails and all nodes loose subscription registration
Expected results:

Stack update to succeed without destroying the existing registration

Additional info:

Comment 1 Brendan Shephard 2023-08-17 07:02:29 UTC
Do we know why the subscription status is invalid?

Can you attach the ansible.log with the errors you're referring to.


Note You need to log in before you can comment on or make changes to this bug.