Skip to content

Commit

Permalink
IPU:rmmod unsupported modules before doing in place upgrade from RHEL…
Browse files Browse the repository at this point in the history
…8 to RHEL9

Signed-off-by: Miriam Deng <[email protected]>
  • Loading branch information
MiriamDeng committed Sep 29, 2024
1 parent 9dff199 commit 01e71f7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions provider/in_place_upgrade_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,10 @@ def pre_upgrade_whitelist(self, test):
error_info = self.params.get("error_info")
if re.search(error_info, output):
pass
# rmmod modules since it's not supported on RHEL9
post_release = params.get("post_release")
if post_release == "release 9":
self.session.cmd(self.params.get("rmmod_8to9"))
except Exception as error:
test.fail("Failed to fix issues in advance: %s" % str(error))

Expand Down
1 change: 1 addition & 0 deletions qemu/tests/cfg/in_place_upgrade.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
stop_yum_update = "rm -rf /var/run/yum.pid"
check_repo_list = "yum repolist enabled"
check_rhel_ver = "cut -f1-2 -d. /etc/redhat-release | sed 's/[^0-9]//g'"
rmmod_8to9 = "rmmod ip_set;rmmod nft_compat"
s390,s390x:
# no need to check in host, and we don't support RHEL.7.9 as the
# host on s390x
Expand Down

0 comments on commit 01e71f7

Please sign in to comment.