Uploaded image for project: 'RHEL Conversions'
  1. RHEL Conversions
  2. RHELC-267

Don't require pre-downloading katello rpm

XMLWordPrintable

    • 3
    • False

      Goal

      The goal is to make it easier for the users of the convert2rhel to connect to Satellite 6 by removing the following obstacle - currently the user needs to copy the katello-ca-consumer-latest.noarch.rpm package to /usr/share/convert2rhel/subscription-manager after installing the tool, which is not only inconvenient but also deprecated, as described in Satellite 6.12 docs:

      (Deprecated) Download and install the consumer RPM

      Acceptance criteria:

      • A new option, e.g. --sat-server, is added which accepts a hostname of a Satellite 6+ server and convert2rhel registers the system to the Satellite server under the hood
        • We've evaluated the recommended methods of registration and have chosen one that is secure enough (an attacker can't reveal the Satellite registration credentials)
      • Users don't need to copy the katello rpm to a convert2rhel folder manually anymore
      • The registration is completely rolled back at the end of the pre-conversion analysis or when there's an error during the conversion
        • if part of the registration is installing the katello package, this package is removed during the rollback

       


      rhn-engineering-mhulan on the registration options:

      this is the general documentation https://access.redhat.com/documentation/en-us/red_hat_satellite/6.12/html/managing_hosts/registering_hosts_to_server_managing-hosts however for your use case, you could use our REST API to get [the registration] curl created for you - POST /api/registration_commands

      that would create the JWT and generate the curl command for you, an example you can try with your satellite instance is curl https://satellite.example.com/api/registration_commands -X POST -u admin:changeme -H 'Content-Type: application/json' -d '{"registration_command":{"activation_key": "default"}}'

      or you skip this step and will call the GET /api/register right away, without using the JWT, then you could use either username+password or username + personal access token (that you'd have to precreate as a user of Satellite)

      this GET /api/register returns the bash script that drives the whole registration process then (activation key is used for the authentication of the subscription-manager)

            Unassigned Unassigned
            mbocek@redhat.com Michal Bocek
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: