Uploaded image for project: 'Satellite'
  1. Satellite
  2. SAT-19132

Force registering from a Capsule to the Satellite using global registration template fails with HTTP error code 422: Unprocessable Entity error

XMLWordPrintable

    • None
    • None
    • None
    • None

      Description of problem:

      • Force registering from a Capsule to the Satellite using global registration template fails with HTTP error code 422: Unprocessable Entity error.

      Version-Release number of selected component (if applicable):

      • satellite-6.14.0-3.el8sat.noarch

      How reproducible:

      • Only when the capsule registered to originally does not have the Lifecycle Environments associated.

      Steps to Reproduce:

      1. Deploy a Capsule

      2. Capsule should not be associated with any lifecycles.

      3. Register client to the Capsule using global registration template.

      The registration will report the following message but will be successful even though yum repositories reports 404.

      ~~~
      Validation failed: Content view environment content facets is invalid (HTTP error code 422: Unprocessable Entity)
      ~~~

      ~~~
      8 | client.example.com | RedHat 8.7 | | 10.10.180.1 | 92:fa:8c:47:dc:b9 | Warning | |
      ~~~

      ~~~
      Errors during downloading metadata for repository 'rhel-8-for-x86_64-baseos-rpms':

      4. Now, try to force register the client to Satellite using global registration template by using the Force option.

      Actual results:

      • The script unregisters the client successfully.

      ~~~
      Unregistering from: capsule.example.com:443/rhsm
      System has been unregistered.
      ~~~

      After this, it fails with following message.

      ~~~
      Validation failed: Host client.example.com: Cannot add content view environment to content facet. The host's content source 'capsule.example.com' does not sync lifecycle environment 'Library'. (HTTP error code 422: Unprocessable Entity)
      ~~~

      • Client can only be registered after removing the profile from the Satellite manually.

      Expected results:

      • Client should be re-registered to the Satellite.

      Additional info:

      • This behavior is not present on 6.13. Force option can be used to register from Capsule to Satellite on 6.13.

              jira-bugzilla-migration RH Bugzilla Integration
              rhn-support-msunil Manu Sunil
              RH Bugzilla Integration RH Bugzilla Integration
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: