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

Add rake task that allows registration to hybrid cloud environment

XMLWordPrintable

    • Moderate

      +++ This bug was initially created as a clone of Bug #2180453 +++

      Description of problem:
      Add a rake task so that you can register your satellite and bind your org to the hybrid cloud environment.

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

      Satellite 6.11

      How reproducible:

      Steps to Reproduce:
      1. Get token from hybrid cloud env
      2. Run rake task and provide token
      3. Get success message upon org binding

      — Additional comment from errata-xmlrpc on 2023-03-22 14:25:54 UTC —

      This bug has been added to advisory RHBA-2023:111614 by Odilon Sousa (osousa@redhat.com)

      — Additional comment from on 2023-03-23 17:14:43 UTC —

      Tested by spinning up a Satellite locally on libvirt and doing the following:

      1. On the Satellite, execute `org_id=3 SATELLITE_RH_CLOUD_URL=https://$mtls_auth_domain /usr/sbin/foreman-rake rh_cloud:hybridcloud_register`.
      2. On the client, execute `insights-client --register`
      3. On the sat, perform an inventory upload, an inventory sync, and fetch insights recommendations.
      4. On an arbitrary client, query Inventory and verify the host is present (`insights-client --register` worked) with a populated list of facts (Satellite inventory upload worked).
      5. On the client, execute `insights-client --unregister`

      This was done with an HTTP proxy in place, in the form `http://user:pass@domain:port`. After registering the Satellite to the test hybrid cloud environment, I also extracted a cert and key from the Satellite's manifest, and made some direct API calls with curl.

      — Additional comment from on 2023-03-23 17:14:57 UTC —

      See: https://osd-jira.redhat-osd.local:8443/browse/FRH-23647

      — Additional comment from errata-xmlrpc on 2023-03-24 19:58:29 UTC —

      Advisory RHBA-2023:111614 has moved into REL_PREP

      — Additional comment from errata-xmlrpc on 2023-03-24 20:02:28 UTC —

      Bug report changed to RELEASE_PENDING status by Errata System.
      Advisory RHBA-2023:111614-02 has been changed to PUSH_READY status.
      https://errata.devel.redhat.com/advisory/111614

      — Additional comment from errata-xmlrpc on 2023-03-24 20:02:30 UTC —

      Advisory RHBA-2023:111614 has moved from REL_PREP to PUSH_READY

      — Additional comment from errata-xmlrpc on 2023-03-27 12:42:03 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 (Satellite 6.11.5.2 Async Bug Fix 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:1478

            rhn-engineering-sshtein Shimon Shtein
            jira-bugzilla-migration RH Bugzilla Integration
            Griffin Sullivan Griffin Sullivan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: