Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 2253464 - [RFE] The 'Convert to RHEL' job template should use an alternative of katello-ca-consumer-latest.noarch.rpm
Summary: [RFE] The 'Convert to RHEL' job template should use an alternative of katello...
Keywords:
Status: NEW
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Conversions appliance
Version: 6.15.0
Hardware: All
OS: All
unspecified
medium
Target Milestone: Unspecified
Assignee: nalfassi
QA Contact: Satellite QE Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-12-07 14:52 UTC by Sayan Das
Modified: 2024-01-24 13:47 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker SAT-21789 0 None None None 2023-12-08 00:20:02 UTC

Description Sayan Das 2023-12-07 14:52:56 UTC
Description of problem:

Right now, We have this job template in satellite, that makes use of katello-ca-consumer-latest.noarch.rpm

# hammer job-template dump --name "Convert to RHEL"
---
- hosts: all
<%- if input('Data telemetry') != "yes" -%>
  environment:
    CONVERT2RHEL_DISABLE_TELEMETRY: 1
<%- end -%>
  tasks:
    - name: Install convert2rhel
      ansible.builtin.package:
        name: convert2rhel
        state: present
    - name: Prepopulate katello-ca-consumer
      get_url:
        url: <%= subscription_manager_configuration_url(@host) %>
        dest: /usr/share/convert2rhel/subscription-manager/katello-ca-consumer-latest.noarch.rpm
    - name: Start convert2rhel
      command: convert2rhel -y --activationkey "<%= input_resource('Activation Key').name %>" --org "<%= @host.organization.label %>" --keep-rhsm
<%- if input('Restart') == "yes" -%>
    - name: Reboot the machine
      reboot:
        reboot_timeout: 1800
<%- end -%>
<%- # This will update system facts in Satellite and link the correct OS of the host %->
    - name: Update system facts
      command: subscription-manager facts --update


This is perhaps because the official documentation also documents the usage of this as a mandatory step for any Satellite\Capsule connected clients:

https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html-single/converting_from_an_rpm-based_linux_distribution_to_rhel/index#proc_preparing-for-a-rhel-conversion_converting-using-the-command-line

Step 9

######################
If you are accessing RHEL packages through a Red Hat Satellite server, download the consumer RPM to the /usr/share/convert2rhel/subscription-manager/ directory:

# curl --insecure --output /usr/share/convert2rhel/subscription-manager/katello-ca-consumer-latest.noarch.rpm https://<satellite.example.com>/pub/katello-ca-consumer-latest.noarch.rpm

Replace satellite.example.com with the hostname of your Satellite server.
######################

Assuming that we are moving away from katello-ca-consumer-latest.noarch.rpm, We should confirm if we really need katello-ca-consumer-latest.noarch.rpm for the c2r operation and 

If yes, then when ?
If no, then lets get rid of it from job templates as well as documentation 


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

All Satellite 6 versions containing the job template "Convert to RHEL"


How reproducible:

100%


Steps to Reproduce:
1.
2.
3.

Actual results:

The converted system ends up with katello-ca-consumer installed and due to the hardcoded task in template, we still have this dependency left for katello-ca-consumer-latest.noarch.rpm


Expected results:

Either confirm that the rpm is no longer needed with c2r or else develop an alternate solution for it to use with c2r workflow 


Additional info:

NA

Comment 2 Leos Stejskal 2024-01-12 08:22:38 UTC
Summary of the discussion we had with the Convert2RHEL team:

This won't be needed anymore, as the Convert2RHEL tool will drop the depending
on the katello-ca-consumer.rpm, and users must do these steps manually (if needed).
So after that, we can drop it from the template as well.

Assigning to @Nofar


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