Skip to content

LEAPP_CURRENT_PHASE is undefined #275

@adpavlov

Description

@adpavlov

This task should be enhanced:

- name: leapp-upgrade-validation | Determine Leapp upgrade FirstBoot
  ansible.builtin.set_fact:
    leapp_upgrade_success: >-
      {{
      (migration_results_json.activities |
      selectattr('activity', 'match', 'upgrade') |
      selectattr('target_os', 'match', 'Red Hat Enterprise Linux ' + ansible_distribution_major_version) |
      selectattr('env.LEAPP_CURRENT_PHASE', 'match', 'FirstBoot'))[0].success
      }}

to

- name: leapp-upgrade-validation | Determine Leapp upgrade FirstBoot
  ansible.builtin.set_fact:
    leapp_upgrade_success: >-
      {{
      (migration_results_json.activities |
      selectattr('activity', 'match', 'upgrade') |
      selectattr('target_os', 'match', 'Red Hat Enterprise Linux ' + ansible_distribution_major_version) |
      selectattr('env.LEAPP_CURRENT_PHASE', 'defined') |
      selectattr('env.LEAPP_CURRENT_PHASE', 'match', 'FirstBoot'))[0].success
      }}

This is what I have in /etc/migration-results :

      - activity: upgrade
        activity_ended: '2025-10-24T14:51:10.613082Z'
        activity_started: '2025-10-24T14:51:08.762275Z'
        env:
          LEAPP_COMMON_FILES: >-
            :/etc/leapp/repos.d/system_upgrade/common/files:/etc/leapp/repos.d/system_upgrade/el8toel9/files
          LEAPP_COMMON_TOOLS: >-
            :/etc/leapp/repos.d/system_upgrade/common/tools:/etc/leapp/repos.d/system_upgrade/el8toel9/tools
          LEAPP_DEBUG: '0'
          LEAPP_EXECUTION_ID: 725c14e3-f679-4b34-9897-ce06368b7014
          LEAPP_EXPERIMENTAL: '0'
          LEAPP_HOSTNAME: HOST
          LEAPP_IPU_IN_PROGRESS: 8to9
          LEAPP_NO_RHSM: '0'
          LEAPP_TARGET_PRODUCT_CHANNEL: ga
          LEAPP_UNSUPPORTED: '0'
          LEAPP_UPGRADE_PATH_FLAVOUR: default
          LEAPP_UPGRADE_PATH_TARGET_RELEASE: '9.6'
          LEAPP_VERBOSE: '0'
        executed: /root/tmp_leapp_py3/leapp3 upgrade --resume
        leapp_file_changes:
          - file_name: '    /var/log/leapp'
            result: missing
        packages:
          - nevra: leapp-upgrade-el8toel9-0.22.0-1.el8_10.noarch
            signature: >-
              RSA/SHA256, Wed 19 Feb 2025 02:18:59 PM EET, Key ID
              199e2f91fd431d51
          - nevra: leapp-0.19.0-1.el8_10.noarch
            signature: >-
              RSA/SHA256, Wed 19 Feb 2025 02:18:04 PM EET, Key ID
              199e2f91fd431d51
          - nevra: python3-leapp-0.19.0-1.el8_10.noarch
            signature: >-
              RSA/SHA256, Wed 19 Feb 2025 02:18:04 PM EET, Key ID
              199e2f91fd431d51
          - nevra: >-
              leapp-repository-deps-el9-5.0.9-100.202502140957Z.51872205.main.el9.noarch
            signature: (none)
          - nevra: leapp-deps-el9-5.0.9-100.202502140957Z.51872205.main.el9.noarch
            signature: (none)
        run_id: 725c14e3-f679-4b34-9897-ce06368b7014
        source_os: Red Hat Enterprise Linux 8.10
        success: false
        target_os: Red Hat Enterprise Linux 9.6
        version: 0.18.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions