|
|
c36ff1 |
From 244a3f9059fc95a5e644bd7868aed8060d9edc61 Mon Sep 17 00:00:00 2001
|
|
|
c36ff1 |
From: Eduardo Otubo <otubo@redhat.com>
|
|
|
c36ff1 |
Date: Fri, 4 Feb 2022 16:04:31 +0100
|
|
|
c36ff1 |
Subject: [PATCH] Add _netdev option to mount Azure ephemeral disk (#1213)
|
|
|
c36ff1 |
|
|
|
c36ff1 |
RH-Author: Eduardo Otubo <otubo@redhat.com>
|
|
|
c36ff1 |
RH-MergeRequest: 19: Add _netdev option to mount Azure ephemeral disk (#1213)
|
|
|
c36ff1 |
RH-Commit: [1/1] e44291a50634594b8a0505cab3415d5c58cc34c4 (otubo/cloud-init-src)
|
|
|
c36ff1 |
RH-Bugzilla: 1998445
|
|
|
c36ff1 |
RH-Acked-by: Mohamed Gamal Morsy <mmorsy@redhat.com>
|
|
|
c36ff1 |
RH-Acked-by: Vitaly Kuznetsov <vkuznets@redhat.com>
|
|
|
c36ff1 |
RH-Acked-by: Emanuele Giuseppe Esposito <eesposit@redhat.com>
|
|
|
c36ff1 |
|
|
|
c36ff1 |
The ephemeral disk depends on a functional network to be mounted. Even
|
|
|
c36ff1 |
though it depends on cloud-init.service, sometimes an ordering cycle is
|
|
|
c36ff1 |
noticed on the instance. If the option "_netdev" is added the problem is
|
|
|
c36ff1 |
gone.
|
|
|
c36ff1 |
|
|
|
c36ff1 |
rhbz: #1998445
|
|
|
c36ff1 |
|
|
|
c36ff1 |
Signed-off-by: Eduardo Otubo otubo@redhat.com
|
|
|
c36ff1 |
---
|
|
|
c36ff1 |
cloudinit/config/cc_mounts.py | 4 +++-
|
|
|
c36ff1 |
1 file changed, 3 insertions(+), 1 deletion(-)
|
|
|
c36ff1 |
|
|
|
c36ff1 |
diff --git a/cloudinit/config/cc_mounts.py b/cloudinit/config/cc_mounts.py
|
|
|
c36ff1 |
index c22d1698..5125f17c 100644
|
|
|
c36ff1 |
--- a/cloudinit/config/cc_mounts.py
|
|
|
c36ff1 |
+++ b/cloudinit/config/cc_mounts.py
|
|
|
c36ff1 |
@@ -362,7 +362,9 @@ def handle(_name, cfg, cloud, log, _args):
|
|
|
c36ff1 |
def_mnt_opts = "defaults,nobootwait"
|
|
|
c36ff1 |
uses_systemd = cloud.distro.uses_systemd()
|
|
|
c36ff1 |
if uses_systemd:
|
|
|
c36ff1 |
- def_mnt_opts = "defaults,nofail,x-systemd.requires=cloud-init.service"
|
|
|
c36ff1 |
+ def_mnt_opts = (
|
|
|
c36ff1 |
+ "defaults,nofail, x-systemd.requires=cloud-init.service, _netdev"
|
|
|
c36ff1 |
+ )
|
|
|
c36ff1 |
|
|
|
c36ff1 |
defvals = [None, None, "auto", def_mnt_opts, "0", "2"]
|
|
|
c36ff1 |
defvals = cfg.get("mount_default_fields", defvals)
|
|
|
c36ff1 |
--
|
|
|
c36ff1 |
2.27.0
|
|
|
c36ff1 |
|