• False
    • False
    • Hide

      None

      Show
      None
    • 2022-Q3

      To prevent people running older versions of convert2rhel, add a check that would compare the version in use with the latest available version from https://ftp.redhat.com/redhat/convert2rhel/.

      In case the URL is not accessible, print out just a warning and continue with the conversion (the system may be intentionally disconnected from the internet).

      In case a newer version is available:

      • Stop the conversion in case of conversions to RHEL 7 and 8 (supported paths).
      • Warn when converting to RHEL 6 since we don't care that much about what version people use for unsupported conversions.

            [RHELC-705] Check for a new version available

            The feature was tested as a part of automated regression testing on version convert2rhel-0.26-1.el7.noarch and convert2rhel-1.0-1.el7.noarch with their respective results provided below:

            : : : : : : : : : : : : : : : : : : : :

            {convert2rhel-0.26-1.el7.noarch}

            : : : : : : : : : : : : : : : : : : : :
            =========================== short test summary info ============================
            FAILED test_basic_sanity_checks.py::test_c2r_latest_newer
            FAILED test_basic_sanity_checks.py::test_c2r_latest_older_inhibit
            FAILED test_basic_sanity_checks.py::test_c2r_latest_older_unsupported_version
            FAILED test_basic_sanity_checks.py::test_clean_cache
            ... output omitted ...
            ========================= 5 failed, 3 passed in 48.08s =========================

            : : : : : : : : : : : : : : : : : : : :

            {convert2rhel-1.0-1.el7.noarch}

            : : : : : : : : : : : : : : : : : : : :
            test_basic_sanity_checks.py::test_c2r_latest_newer
            ...output omitted...
            DEBUG - Latest available convert2rhel version is installed.
            Continuing conversion.
            ...output omitted...
            PASSED

            test_basic_sanity_checks.py::test_c2r_latest_older_inhibit
            ...output omitted...
            CRITICAL - You are currently running 0.01 and the latest version of convert2rhel is 0.26.
            Only the latest version is supported for conversion. If you want to ignore this you can set 'CONVERT2RHEL_UNSUPPORTED_VERSION' to continue
            ...output omitted...
            No changes were made to the system.
            PASSED

            test_basic_sanity_checks.py::test_c2r_latest_older_unsupported_version
            ...output omitted...
            WARNING - You are currently running 0.01 and the latest version of convert2rhel is 0.26.
            'CONVERT2RHEL_UNSUPPORTED_VERSION' environment detected, continuing conversion
            ...output omitted...
            PASSED

            Daniel Diblik added a comment - The feature was tested as a part of automated regression testing on version convert2rhel-0.26-1.el7.noarch and convert2rhel-1.0-1.el7.noarch with their respective results provided below: : : : : : : : : : : : : : : : : : : : : {convert2rhel-0.26-1.el7.noarch} : : : : : : : : : : : : : : : : : : : : =========================== short test summary info ============================ FAILED test_basic_sanity_checks.py::test_c2r_latest_newer FAILED test_basic_sanity_checks.py::test_c2r_latest_older_inhibit FAILED test_basic_sanity_checks.py::test_c2r_latest_older_unsupported_version FAILED test_basic_sanity_checks.py::test_clean_cache ... output omitted ... ========================= 5 failed, 3 passed in 48.08s ========================= : : : : : : : : : : : : : : : : : : : : {convert2rhel-1.0-1.el7.noarch} : : : : : : : : : : : : : : : : : : : : test_basic_sanity_checks.py::test_c2r_latest_newer ...output omitted... DEBUG - Latest available convert2rhel version is installed. Continuing conversion. ...output omitted... PASSED test_basic_sanity_checks.py::test_c2r_latest_older_inhibit ...output omitted... CRITICAL - You are currently running 0.01 and the latest version of convert2rhel is 0.26. Only the latest version is supported for conversion. If you want to ignore this you can set 'CONVERT2RHEL_UNSUPPORTED_VERSION' to continue ...output omitted... No changes were made to the system. PASSED test_basic_sanity_checks.py::test_c2r_latest_older_unsupported_version ...output omitted... WARNING - You are currently running 0.01 and the latest version of convert2rhel is 0.26. 'CONVERT2RHEL_UNSUPPORTED_VERSION' environment detected, continuing conversion ...output omitted... PASSED

              aanglin@redhat.com Andrew Anglin (Inactive)
              mbocek@redhat.com Michal Bocek
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: