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

analyze command removes OS from host in Satellite

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Undefined Undefined
    • 2.0.0
    • None
    • None
    • False
    • Hide

      None

      Show
      None
    • False
    • Testable

      Preconditions

      • CentOS7 host registered & subscribed to Satellite
      • Satellite 6.14 or higher
      • convert2rhel 1.5.0

      Steps to reproduce

      • Run convert2rhel analyze -y
      • Go to Monitor > Audits and search for audit logs: host=centos7.example.com
      • See that the operating system has been removed from the host

      Notes

      The OS is removed during the Convert: Subscription Manager - Disable all repositories task [0].

      From the code I see it runs this command [1]:

      subscription-manager repos --disable="*"

      Running that command itself without convert2rhel doesn't remove the OS from Satellite.

       [0] https://github.com/oamg/convert2rhel/blob/1150f4271e07eedc1ac78dc8e11756f72993a291/convert2rhel/actions/pre_ponr_changes/subscription.py#L212

      [1] https://github.com/oamg/convert2rhel/blob/1150f4271e07eedc1ac78dc8e11756f72993a291/convert2rhel/subscription.py#L661

       

            Unassigned Unassigned
            rhn-engineering-lstejska Leos Stejskal
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: