Bug 1889675

Summary: leapp upgrade via director on ceph nodes do not persist network names are expected from persistentnetnamesconfig
Product: Red Hat Enterprise Linux 7 Reporter: Jaison Raju <jraju>
Component: leapp-repositoryAssignee: Leapp team <leapp-notifications>
Status: CLOSED WONTFIX QA Contact: Alois Mahdal <amahdal>
Severity: high Docs Contact:
Priority: high    
Version: 7.9CC: dbecker, dmarchan, jpretori, jraju, lbezdick, mbultel, mburns, morazi, omcgonag, pstodulk
Target Milestone: rcKeywords: Reopened, Triaged
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-05-19 07:30:25 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jaison Raju 2020-10-20 11:11:07 UTC
Description of problem:
I could test this in 2 environments.
In my latest reproducer, controller and ceph role nodes have the same hardware "Supermicro 1029u".
Although, leapp upgrade logs indicate that only controller node's initramfs was built with network link file as expected by persistentnetnamesconfig:

Oct 20 10:02:12 localhost dracut[32160]: Executing: /usr/bin/dracut --install ""/etc/systemd/network/10-leapp-enp175s0f0.link /etc/systemd/network/10-leapp-enp175s0f1.link /etc/systemd/network/10-leapp-enp216s0f0.link /etc/systemd/network/10-leapp-enp216s0f1.link"" -f --kver 4.18.0-193.28.1.el8_2.x86_64


Version-Release number of selected component (if applicable):
tripleo-ansible-0.5.1-1.20200914163925.el8ost.noarch
openstack-tripleo-heat-templates-11.3.2-1.20200914170156.el8ost.noarch
RHOS-16.1-RHEL-8-20201007.n.0

How reproducible:
Always

Steps to Reproduce:
1. Select a hardware that has different nic names in RHEL7 and RHEL8. 
2. Deploy this hardware with ceph via director on osp13.
3. Perform FFU/Upgrades.

Actual results:
persistentnetnamesconfig does not create /etc/systemd/network/10-leapp-* files.
The following command fails at the following task:
openstack overcloud upgrade run --stack overcloud --limit ceph-0
..
TASK [tripleo-network-config : Ensure network service is enabled] **************
Tuesday 20 October 2020  09:47:17 +0000 (0:00:00.102)       0:00:54.564 *******
fatal: [ceph-0]: FAILED! => {"changed": false, "msg": "Unable to start service network: Job for network.service failed because the control process exited with error code.\nSee \"systemctl status network.service\" and \"journalctl -xe\" for details.\n"}         

Expected results:
/etc/systemd/network/10-leapp-* files are created and after leapp reboot, the nic names retain.

Additional info:
If I manually create /etc/systemd/network/ directory and create corresponding files before leapp upgrade, then these files are included in the initramfs and the issue is not seen.

Sosreports: http://perf1.perf.lab.eng.bos.redhat.com/pub/jaison/upgrades-osp13-16.1.1/issues/leapp-persistentnetnamesconfig/

Comment 9 RHEL Program Management 2021-05-19 07:30:25 UTC
After evaluating this issue, there are no plans to address it further or fix it in an upcoming release.  Therefore, it is being closed.  If plans change such that this issue will be fixed in an upcoming release, then the bug can be reopened.