More fixes

This commit is contained in:
Chris Hammer 2025-04-07 21:30:27 -04:00
parent c8d5ae8466
commit e07bba4434
3 changed files with 59 additions and 6 deletions

5
hosts
View File

@ -1,3 +1,4 @@
[ipv6]
testing ansible_host=10.10.42.72 ansible_user=root
[test]
ipu-test-1 ansible_host=10.10.42.186 ansible_user=root
# testing ansible_host=10.10.42.72 ansible_user=root

View File

@ -4,3 +4,36 @@ rear_rear_backup
pre_upgrade
upgradeinplace
post_upgrade
Risk Factor: high (inhibitor)
Title: Leapp detected loaded kernel drivers which have been removed in RHEL 8. Upgrade cannot proceed.
Summary: Support for the following RHEL 7 device drivers has been removed in RHEL 8:
- floppy
- pata_acpi
if ipv6 enabled
- distable at start of IPU/bigboot workflow (prior to rear)
- if restored:
- ipv6 enabled: restore state
- ipv6 disable via survey:
- disabled post ipu
> echo 1 > /proc/sys/net/ipv6/conf/default/disable_ipv6
> echo 1 > /proc/sys/net/ipv6/conf/all/disable_ipv6
>
> echo 0 > /proc/sys/net/ipv6/conf/default/disable_ipv6
> echo 0 > /proc/sys/net/ipv6/conf/all/disable_ipv6
<br>
## /etc/sysctl.conf
```ini
net.ipv6.conf.enable_ipv6 = 0
```
<br>
## /etc/default/grub
```ini
GRUB_CMDLINE_LINUX="... ipv6.disable=1"
```

View File

@ -1,9 +1,18 @@
---
- name: IPU Pre-Upgrade
hosts: ipv6
hosts: all
gather_facts: true
tasks:
- name: Unload incompatible kernel modules
ansible.builtin.command:
cmd: "/usr/sbin/modprobe -r {{ item }}"
changed_when: false
register: modules_unload
loop:
- floppy
- pata_acpi
- name: Leapp Pre-Upgrade
block:
- name: Run Leapp pre-upgrade check
@ -12,7 +21,17 @@
changed_when: false
register: leapp_preupgrade
rescue:
- name: Leapp Pre-upgrade failure
- name: Show Leapp Pre-Upgrade results
ansible.builtin.debug:
msg: "Leapp pre-upgrade failed: {{ leapp_preupgade }}"
var: leapp_preupgrade['stdout_lines']
rescue:
- name: Show Leapp Pre-Upgrade results
ansible.builtin.debug:
var: leapp_preupgrade['stdout_lines']
- name: Leapp Pre-upgrade failure
ansible.builtin.fail:
msg: >
Leapp pre-upgrade failed:\n
{{ leapp_preupgrade['stdout_lines'] }}