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

Fix the order of output for RemoveRepositoryFiles action

XMLWordPrintable

    • 2023-Q2
    • Testable

      Correct order (main)

      [04/04/2023 15:04:03] TASK - [Convert: Remove packages containing .repo files] ******************
      Searching for packages containing .repo files or affecting variables in the .repo files:
      
      centos-release .................................. 1
      
      
      WARNING - The following packages will be removed...
      Package                                      Vendor/Packager  Repository
      -------                                      ---------------  ----------
      centos-release-7-9.2009.1.el7.centos.x86_64  CentOS           updates
      
      Backing up centos-release-7-9.2009.1.el7.centos.x86_64.
      [04/04/2023 15:04:03] DEBUG - Downloading the centos-release-7-9.2009.1.el7.centos.x86_64 package.
      [04/04/2023 15:04:03] DEBUG - Calling command 'yumdownloader -v --destdir=/var/lib/convert2rhel/backup centos-release-7-9.2009.1.el7.centos.x86_64'
      Successfully downloaded the centos-release-7-9.2009.1.el7.centos.x86_64 package.
      [04/04/2023 15:04:04] DEBUG - Path of the downloaded package: /var/lib/convert2rhel/backup/centos-release-7-9.2009.1.el7.centos.x86_64.rpm
      Removing package: centos-release-7-9.2009.1.el7.centos.x86_64
      [04/04/2023 15:04:04] DEBUG - Calling command 'rpm -e --nodeps centos-release-7-9.2009.1.el7.centos.x86_64'
      [04/04/2023 15:04:04] DEBUG - Successfully removed 1 packages
      

      Order in pre-check branch

      [04/04/2023 18:10:21] TASK - [Convert: Remove packages containing .repo files] ******************
      Searching for packages containing .repo files or affecting variables in the .repo files:
      
      centos-release .................................. 1
      
      
      Backing up centos-release-7-9.2009.1.el7.centos.x86_64.
      [04/04/2023 18:10:21] DEBUG - Downloading the centos-release-7-9.2009.1.el7.centos.x86_64 package.
      [04/04/2023 18:10:21] DEBUG - Calling command 'yumdownloader -v --destdir=/var/lib/convert2rhel/backup centos-release-7-9.2009.1.el7.centos.x86_64'
      Successfully downloaded the centos-release-7-9.2009.1.el7.centos.x86_64 package.
      [04/04/2023 18:10:23] DEBUG - Path of the downloaded package: /var/lib/convert2rhel/backup/centos-release-7-9.2009.1.el7.centos.x86_64.rpm
      Removing package: centos-release-7-9.2009.1.el7.centos.x86_64
      [04/04/2023 18:10:23] DEBUG - Calling command 'rpm -e --nodeps centos-release-7-9.2009.1.el7.centos.x86_64'
      WARNING - Successfully removed the following 1 packages:
      Package                                      Vendor/Packager  Repository
      -------                                      ---------------  ----------
      centos-release-7-9.2009.1.el7.centos.x86_64  CentOS           updates
      

      Acceptance Criteria

      • Fix the order of logging for this action

            rolivier@redhat.com Rodolfo Olivieri
            rolivier@redhat.com Rodolfo Olivieri
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: