Uploaded image for project: 'Insights Experiences'
  1. Insights Experiences
  2. HMS-2015

Create a signed script to perform a CentOS7=>RHEL7 conversion

      Goal: 

      Write the script that the Tasks App will use to convert from a CentOS7 host to RHEL7.

      In order to run the convert2rhel pre-assessment from a Tasks App, we need to have a script which Insights can send to the client to be executed by the rhc-bash-worker. The script needs to do the following things:

      • Configure the client machine to yum install convert2rhel from the public cdn repo
        • Install the certificate to authenticate the cdn
        • Create a yum repo file pointing to the convert2rhel repo on the cdn
      • Install convert2rhel if it is not installed
      • Update convert2rhel if it is not the most recent package
      • If certain optional parameters are present, write them to a protected temporary file
      • Run convert2rhel with optional (and mandatory) environment variables and command line arguments
      • Delete the temporary config file
      • ? Remove the convert2rhel yum repo?
      • {}Do not{} remove the certificate for the cdn (unsafe, there could be packages we installed during conversions that use it)
      • Output a Beginning of json results marker (TBD)
      • Output the json results from the convert2rhel run
      • Output the End of json results arker (TBD)
      • Script needs to invoke insights-client at the end to update in console in order to have Insights updated on the change of the distribution (CentOS Linux -> RHEL)

       

      Acceptance Criteria:

      A list of verification conditions, successful functional tests, or expected outcomes in order to declare this story/task successfully completed.

      • A CentOS7 host can successfully be converted to RHEL7 using the script written for this Task.
      • The script is signed through the Tasks' process for signing templates and can be verified by insights-client.
      • The script has been added to the proper place for use by the Tasks App

              rolivier@redhat.com Rodolfo Olivieri
              tkuratom@redhat.com Toshio Kuratomi
              None
              None
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: