rebuilding initramfs should be always run after applying Sysctl

Bug #1857493 reported by Keigo Noha
6
This bug affects 1 person
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 KernelDisalbeIPv6:true
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.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to puppet-tripleo (master)

Fix proposed to branch: master
Review: https://review.opendev.org/700535

Changed in tripleo:
assignee: nobody → Keigo Noha (knoha)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tripleo-heat-templates (master)

Fix proposed to branch: master
Review: https://review.opendev.org/701662

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on puppet-tripleo (master)

Change abandoned by Keigo Noha (<email address hidden>) on branch: master
Review: https://review.opendev.org/700535
Reason: This issue should be fixed in T-H-T.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tripleo-ansible (master)

Fix proposed to branch: master
Review: https://review.opendev.org/702169

Changed in tripleo:
assignee: Keigo Noha (knoha) → Daniel Bengtsson (damani42)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on tripleo-heat-templates (master)

Change abandoned by Keigo Noha (<email address hidden>) on branch: master
Review: https://review.opendev.org/701662
Reason: I agree that we should fix it at tripleo-ansible. So, I close this change as abandoned.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-ansible (master)

Reviewed: https://review.opendev.org/702169
Committed: https://git.openstack.org/cgit/openstack/tripleo-ansible/commit/?id=4586da96b4aab1cbbe22bb4619025dcfb03ab899
Submitter: Zuul
Branch: master

commit 4586da96b4aab1cbbe22bb4619025dcfb03ab899
Author: Daniel Bengtsson <email address hidden>
Date: Mon Jan 13 09:15:43 2020 +0100

    Remove dracut-config-generic package

    In LP#1830574, we introduce the dracut command to include necessary
    file into initramfs. However, dracut in RHEL or CentOS doesn't include
    sysctl.conf or other specific module related confs at an installation
    of new kernel if dracut-config-generic package exists on the system.

    We should remove the package to allow creating a host-specific initramfs
    at an installation of new kernel.

    Closes-bug: #1857493

    Change-Id: Ib57f9f4c71c0da3b2c28ef17c1c8792711f9973c
    Co-Authored-By: Keigo Noha <email address hidden>

Changed in tripleo:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tripleo-ansible (stable/train)

Fix proposed to branch: stable/train
Review: https://review.opendev.org/702779

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-ansible (stable/train)

Reviewed: https://review.opendev.org/702779
Committed: https://git.openstack.org/cgit/openstack/tripleo-ansible/commit/?id=b48ed8c834f5b470e50be3beba12d0d5f2745e61
Submitter: Zuul
Branch: stable/train

commit b48ed8c834f5b470e50be3beba12d0d5f2745e61
Author: Daniel Bengtsson <email address hidden>
Date: Mon Jan 13 09:15:43 2020 +0100

    Remove dracut-config-generic package

    In LP#1830574, we introduce the dracut command to include necessary
    file into initramfs. However, dracut in RHEL or CentOS doesn't include
    sysctl.conf or other specific module related confs at an installation
    of new kernel if dracut-config-generic package exists on the system.

    We should remove the package to allow creating a host-specific initramfs
    at an installation of new kernel.

    Closes-bug: #1857493

    Change-Id: Ib57f9f4c71c0da3b2c28ef17c1c8792711f9973c
    Co-Authored-By: Keigo Noha <email address hidden>
    (cherry picked from commit 4586da96b4aab1cbbe22bb4619025dcfb03ab899)

tags: added: in-stable-train
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to puppet-tripleo (master)

Fix proposed to branch: master
Review: https://review.opendev.org/704599

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tripleo-heat-templates (stable/stein)

Fix proposed to branch: stable/stein
Review: https://review.opendev.org/704825

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on puppet-tripleo (master)

Change abandoned by Daniel Bengtsson (<email address hidden>) on branch: master
Review: https://review.opendev.org/704599
Reason: Not the right place.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-heat-templates (stable/stein)

Reviewed: https://review.opendev.org/704825
Committed: https://git.openstack.org/cgit/openstack/tripleo-heat-templates/commit/?id=f98b9c51ce362001c5091f19d405b7d74e70a9ca
Submitter: Zuul
Branch: stable/stein

commit f98b9c51ce362001c5091f19d405b7d74e70a9ca
Author: Daniel Bengtsson <email address hidden>
Date: Wed Jan 29 15:54:26 2020 +0100

    Remove dracut-config-generic package

    In LP#1830574, we introduce the dracut command to include necessary
    file into initramfs. However, dracut in RHEL or CentOS doesn't include
    sysctl.conf or other specific module related confs at an installation
    of new kernel if dracut-config-generic package exists on the system.

    We should remove the package to allow creating a host-specific initramfs
    at an installation of new kernel.

    Change-Id: I8e4c675925cdae292c25a1e86b904fd7f618633f
    Closes-bug: #1857493
    Co-Authored-By: Keigo Noha <email address hidden>

tags: added: in-stable-stein
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tripleo-heat-templates (stable/rocky)

Fix proposed to branch: stable/rocky
Review: https://review.opendev.org/704930

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tripleo-ansible 1.1.0

This issue was fixed in the openstack/tripleo-ansible 1.1.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-heat-templates (stable/rocky)

Reviewed: https://review.opendev.org/704930
Committed: https://git.openstack.org/cgit/openstack/tripleo-heat-templates/commit/?id=77229349f4d60df1cb5d1c039b9a7a879060a040
Submitter: Zuul
Branch: stable/rocky

commit 77229349f4d60df1cb5d1c039b9a7a879060a040
Author: Daniel Bengtsson <email address hidden>
Date: Thu Jan 30 08:45:22 2020 +0100

    Remove dracut-config-generic package.

    In LP#1830574, we introduce the dracut command to include necessary
    file into initramfs. However, dracut in RHEL or CentOS doesn't include
    sysctl.conf or other specific module related confs at an installation
    of new kernel if dracut-config-generic package exists on the system.

    We should remove the package to allow creating a host-specific initramfs
    at an installation of new kernel.

    Change-Id: Idbb69f4e05681f86933a7b57a506221cf6581536
    Closes-bug: #1857493
    Co-Authored-By: Keigo Noha <email address hidden>

tags: added: in-stable-rocky
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tripleo-heat-templates (stable/queens)

Fix proposed to branch: stable/queens
Review: https://review.opendev.org/708543

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tripleo-ansible 0.5.0

This issue was fixed in the openstack/tripleo-ansible 0.5.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tripleo-heat-templates rocky-eol

This issue was fixed in the openstack/tripleo-heat-templates rocky-eol release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tripleo-heat-templates queens-eol

This issue was fixed in the openstack/tripleo-heat-templates queens-eol release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tripleo-heat-templates stein-eol

This issue was fixed in the openstack/tripleo-heat-templates stein-eol release.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.