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

Yum repo convert2rhel is not being backed up after executing the analysis task

    • None

      Given a CentOS7 host connected to Insights when we run the analysis task then the convert2rhel.repo file is not being backed up and thus not restored.

      The steps to follow are a regultar analysis:

      1. Install subscription-manager, rhc, rhc-worker-script, insights-client
      2. Register the system to the insights
      3. Check that the host is visible as CentOS in the UI
      4. Create a custom yum convert2rhel.repo in /etc/yum.repos.d/
      5. Run the pre-conversion analysis task
      6. Verify it is possible to do a full conversion and check files.

      The test is failing in the 6th step when checking the files. We check that the custom convert2rhel.repo is there but it is not. In the attached convert2rhel-insights-tasks-analysis.log there are two lines where the script seems to find the repo file but fails when creating the backup, after that overwrites the file:

       
      2024-05-10 13:18:32,048 - INFO - File /etc/yum.repos.d/convert2rhel.repo already present on system, backing up to .backup.
      2024-05-10 13:18:32,048 - WARNING - Failed to create back up of /etc/yum.repos.d/convert2rhel.repo ([Errno 2] No such file or directory)
       

              rolivier@redhat.com Rodolfo Olivieri
              rh-ee-ssantama Sergio Santamaria Riocerezo
              Sergio Santamaria Riocerezo Sergio Santamaria Riocerezo
              None
              Rodolfo Olivieri
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: