Skip to content

Commit

Permalink
IPU 9 -> 10: Initial preparation: upgrade paths and leapp packages def
Browse files Browse the repository at this point in the history
Introducing initial changes needed for IPU 9 -> 10 to prevent abouvious
crashes and inhibitors:
* Extend the list of supported source versions for the upgrade by el9
* Define upgrade paths for IPU 9 -> 10
* Add Python path for el 10 (py 3.12)
* Introducing el9toel10 repository
  created .gitkeep files inside empty dirs

NOTE:
    Enable upgrade from RHEL 9.4 & 9.5 to RHEL 10.0 for now. For the
    experiment purposes. These will not be supported for the upgrade at all,
    but to make testing and experimentations easier, allow it for now.

TODO:
* add RHEL 10 product certificates
* add RHEL 10 GPG keys
  • Loading branch information
pirat89 authored and Rezney committed Jul 18, 2024
1 parent f822cb8 commit dafa617
Show file tree
Hide file tree
Showing 11 changed files with 26 additions and 5 deletions.
8 changes: 6 additions & 2 deletions repos/system_upgrade/common/files/upgrade_paths.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,18 @@
"7.9": ["8.8", "8.10"],
"8.8": ["9.2"],
"8.10": ["9.4", "9.5"],
"9.6": ["10.0"],
"7": ["8.8", "8.10"],
"8": ["9.2", "9.4", "9.5"]
"8": ["9.2", "9.4", "9.5"],
"9": ["10.0"]
},
"saphana": {
"7.9": ["8.10", "8.8"],
"7": ["8.10", "8.8"],
"8.8": ["9.2"],
"8.10": ["9.4"],
"8": ["9.4", "9.2"]
"8": ["9.4", "9.2"],
"9.6": ["10.0"],
"9": ["10.0"]
}
}
3 changes: 3 additions & 0 deletions repos/system_upgrade/common/libraries/config/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,13 @@
'<=': operator.le
}

# TODO(pstodulk): drop 9.4 & 9.5 before May 2025 release
# These will not be supported fo IPU 9 -> 10
_SUPPORTED_VERSIONS = {
# Note: 'rhel-alt' is detected when on 'rhel' with kernel 4.x
'7': {'rhel': ['7.9'], 'rhel-alt': [], 'rhel-saphana': ['7.9']},
'8': {'rhel': ['8.8', '8.10'], 'rhel-saphana': ['8.8', '8.10']},
'9': {'rhel': ['9.4', '9.5', '9.6'], 'rhel-saphana': ['9.4', '9.6']},
}


Expand Down
1 change: 1 addition & 0 deletions repos/system_upgrade/common/libraries/dnfplugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ class _DnfPluginPathStr(str):
_PATHS = {
"8": os.path.join('/lib/python3.6/site-packages/dnf-plugins', DNF_PLUGIN_NAME),
"9": os.path.join('/lib/python3.9/site-packages/dnf-plugins', DNF_PLUGIN_NAME),
"10": os.path.join('/lib/python3.12/site-packages/dnf-plugins', DNF_PLUGIN_NAME),
}

def __init__(self): # noqa: W0231; pylint: disable=super-init-not-called
Expand Down
12 changes: 9 additions & 3 deletions repos/system_upgrade/common/libraries/rpms.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,24 @@ class LeappComponents(object):
LeappComponents.FRAMEWORK: {'7': {'pkgs': ['leapp', 'python2-leapp'],
'deps': ['leapp-deps']},
'8': {'pkgs': ['leapp', 'python3-leapp'],
'deps': ['leapp-deps']},
'9': {'pkgs': ['leapp', 'python3-leapp'],
'deps': ['leapp-deps']}
},
LeappComponents.REPOSITORY: {'7': {'pkgs': ['leapp-upgrade-el7toel8'],
'deps': ['leapp-upgrade-el7toel8-deps']},
'8': {'pkgs': ['leapp-upgrade-el8toel9'],
'deps': ['leapp-upgrade-el8toel9-deps']}
'deps': ['leapp-upgrade-el8toel9-deps']},
'9': {'pkgs': ['leapp-upgrade-el9toel10'],
'deps': ['leapp-upgrade-el9toel10-deps']}
},
LeappComponents.COCKPIT: {'7': {'pkgs': ['cockpit-leapp']},
'8': {'pkgs': ['cockpit-leapp']}
'8': {'pkgs': ['cockpit-leapp']},
'9': {'pkgs': ['cockpit-leapp']},
},
LeappComponents.TOOLS: {'7': {'pkgs': ['snactor']},
'8': {'pkgs': ['snactor']}
'8': {'pkgs': ['snactor']},
'9': {'pkgs': ['snactor']}
}
}

Expand Down
1 change: 1 addition & 0 deletions repos/system_upgrade/el9toel10/.leapp/info
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"name": "system_upgrade_el9toel10", "id": "ba7ab214-d579-4e70-811e-7c30966d8d28", "messages": {}, "repos": ["efcf9016-f2d1-4609-9329-a298e6587b3c", "644900a5-c347-43a3-bfab-f448f46d9647"]}
6 changes: 6 additions & 0 deletions repos/system_upgrade/el9toel10/.leapp/leapp.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

[repositories]
repo_path=${repository:root_dir}

[database]
path=${repository:state_dir}/leapp.db
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.

0 comments on commit dafa617

Please sign in to comment.