rebuilding initramfs should be always run after applying Sysctl
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tripleo |
Fix Released
|
Undecided
|
Daniel Bengtsson |
Bug Description
Description
===========
In LP3#1830574, we introduce to rebuild initramfs when sysctl is changed.
However, in RHEL or CentOS, kernel update creates a new initramfs which doesn't include a sysctl.conf on the host when overcloud minor updates.
It causes that the system boots without the necessary kernel parameters at the boot time.
As a result, an issue that rpcbind.socket failed happens again at the node reboot after minor update.
Steps to reproduce
==================
1. Deploy overcloud with KernelDisalbeIP
2. Confirm the parameter is disabled in /etc/sysctl.conf and the file is included in initrams.
3. Reboot the node and confirm that rpcbind.socket is started without error.
4. Run minor update.
5. Confirm the parameter is disabled in /etc/sysctl.conf and the file is NOT included in initrams.
6. Reboot the node and rpcbind.socket fails.
Expected result
===============
/etc/sysctl.conf is included in the initramfs for the new kernel and rpcbind.socket is started.
Actual result
=============
/etc/sysctl.conf is not included in initramfs for the new kernel and rpcbind.socket failed.
Fix proposed to branch: master /review. opendev. org/700535
Review: https:/