Skip enslaved devices during boot

Bug #1802591 reported by Marcelo Cerri on 2018-11-09
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
initramfs-tools (Ubuntu)
High
Marcelo Cerri
Xenial
Undecided
Marcelo Cerri
Bionic
Undecided
Marcelo Cerri
Cosmic
Medium
Marcelo Cerri

Bug Description

In order to support live migration in OCI, we need to filter enslaved devices during boot.

Marcelo Cerri (mhcerri) wrote :

[Impact]

In order to support live migration in OCI, we need to filter enslaved network devices during boot. Without that OCI instances will freeze after migration.

In order to avoid regressions for other users, the new behaviour is being conditioned to the existence of "/conf/conf.d/skip-enslaved-devices" in the initrd image. This mechanism enable us to use it only for the required kernels. For the OCI use case, linux-oracle will be responsible to include the config file via an initramfs-tools hook.

[Test Case]

Currently the OCI use case can only be tested internally by Oracle since live migration is still no available. For any other scenarios, the behaviour should not be changed.

[Regression Potential]

The potential for regressions was vastly reduced by conditioning the new behaviour.

Changed in initramfs-tools (Ubuntu):
importance: Undecided → High
Tyler Hicks (tyhicks) on 2018-12-10
Changed in initramfs-tools (Ubuntu Xenial):
assignee: nobody → Marcelo Cerri (mhcerri)
Changed in initramfs-tools (Ubuntu Bionic):
assignee: nobody → Marcelo Cerri (mhcerri)
Changed in initramfs-tools (Ubuntu Cosmic):
assignee: nobody → Marcelo Cerri (mhcerri)

Hello Marcelo, or anyone else affected,

Accepted initramfs-tools into bionic-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/initramfs-tools/0.130ubuntu3.6 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested and change the tag from verification-needed-bionic to verification-done-bionic. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-bionic. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping!

N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.

Changed in initramfs-tools (Ubuntu Xenial):
status: New → Fix Committed
Changed in initramfs-tools (Ubuntu Bionic):
status: New → Fix Committed
tags: added: verification-needed verification-needed-bionic
tags: added: verification-needed-xenial
Andy Whitcroft (apw) wrote :

Hello Marcelo, or anyone else affected,

Accepted initramfs-tools into xenial-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/initramfs-tools/0.122ubuntu8.14 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested and change the tag from verification-needed-xenial to verification-done-xenial. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-xenial. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping!

N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.

Andy Whitcroft (apw) wrote :

Can we have this fix applied in development asap.

Andy Whitcroft (apw) wrote :

Or indicate here it is not required for other reasons.

Marcelo Cerri (mhcerri) wrote :

Verification done with OCI and KVM instances for 18.04 and 16.04. Working as expected and no regressions found.

tags: added: verification-done verification-done-bionic verification-done-xenial
removed: verification-needed verification-needed-bionic verification-needed-xenial
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package initramfs-tools - 0.130ubuntu3.6

---------------
initramfs-tools (0.130ubuntu3.6) bionic-security; urgency=medium

  * scripts/functions: include a new option to skip enslaved network
    devices. (LP: #1802591)
      Include the new variable NETWORK_SKIP_ENSLAVED. When set to a
      value different than "0", this variable will cause any enslaved
      network devices to be skipped from the list of netbootable
      devices. This variable can be set via the configuration files
      under /etc/initramfs-tools/ or via any configuration file under
      the initrd directory /conf/conf.d/ via a hook script.

 -- Marcelo Henrique Cerri <email address hidden> Wed, 12 Dec 2018 20:58:27 -0200

Changed in initramfs-tools (Ubuntu Bionic):
status: Fix Committed → Fix Released

The verification of the Stable Release Update for initramfs-tools has completed successfully and the package has now been released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

Launchpad Janitor (janitor) wrote :

This bug was fixed in the package initramfs-tools - 0.122ubuntu8.14

---------------
initramfs-tools (0.122ubuntu8.14) xenial-security; urgency=medium

  * scripts/functions: include a new option to skip enslaved network
    devices. (LP: #1802591)
      Include the new variable NETWORK_SKIP_ENSLAVED. When set to a
      value different than "0", this variable will cause any enslaved
      network devices to be skipped from the list of netbootable
      devices. This variable can be set via the configuration files
      under /etc/initramfs-tools/ or via any configuration file under
      the initrd directory /conf/conf.d/ via a hook script.

 -- Marcelo Henrique Cerri <email address hidden> Wed, 12 Dec 2018 11:35:20 -0200

Changed in initramfs-tools (Ubuntu Xenial):
status: Fix Committed → Fix Released
Andy Whitcroft (apw) on 2019-01-08
Changed in initramfs-tools (Ubuntu Cosmic):
importance: Undecided → Medium
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers