cloud-init team mailing list archive
-
cloud-init team
-
Mailing list archive
-
Message #00353
How to provision networking information in OpenSuse 15.2
-
To:
"cloud-init@xxxxxxxxxxxxxxxxxxx" <cloud-init@xxxxxxxxxxxxxxxxxxx>
-
From:
"Tupja, Ravik" <Ravik.Tupja@xxxxxxxxxxxxxx>
-
Date:
Mon, 26 Jul 2021 21:18:51 +0000
-
Accept-language:
en-US
-
Arc-authentication-results:
i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=windstream.com; dmarc=pass action=none header.from=windstream.com; dkim=pass header.d=windstream.com; arc=none
-
Arc-message-signature:
i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=x4H9Sx0qcDZZsfNttm4QjQQ6FxroLfvjF3YYEPor7IY=; b=dFfUQKg40P4hOwNaypO9p0og3nHCwnrT88RxWn7a4v7VpAKprKqOGQLzYy/pI2UKGUjSB1GcWesVQOirkxYocBbDos76QwcPOdUAbNxdX5hfc3y1vhIyK8rvwWbXuisgOfjP3lHCqD1ckwKjJcVHIlG6awtmhE6ruy5FgW0Uuy/9iwKaCTZkrrJPPKTV0uZRAASg1gjbIfOT10RBxqqM7cNUOq/k6H/3I7Dx3Xu8XnZqAmx386vTwNKzJlIfYyaIEcfVV57g1n/IAek7FU/rcJDvkV23Hx7FD2S/4Kfo2dcW/kTJYkEjhPT2pmCUX+yv4V1gahMXg0a4XXtalY1/Pw==
-
Arc-seal:
i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jkn4kTH4wzUsmHM/IIXVQWShPfPkdFm1E7BStxvm9HGbatZEq/VtBlKuIuylKPOX7W5NN65Kks8HD4oDog1r+RjFShzzNgsvWIRm49i6sVevIVx+SZyFsXrwb3FUlRzOjnH3M56gHsmZrIbpZb0y8N9Iwv4S15/K+SL3IwCxtPLW6If7tP8lFr/TZ8fP3ydq5H9qoUdsvJvVoVVv0snhZC9RAp0Qh2RB4q7qCbY21Y9S/VOnWr1Dx3APq1suszdKuuYlK2ImfRJEFFDFq92yq89FL+PKCPWJ43XZYhOM2AbGZzuiPsoYx7We0kOQl0S8cnUJPq02Opap5moe5k3Mug==
-
Authentication-results:
lists.launchpad.net; dkim=none (message not signed) header.d=none;lists.launchpad.net; dmarc=none action=none header.from=windstream.com;
-
Msip_labels:
MSIP_Label_5a0720e8-2283-4502-917f-4c0aee493a24_Enabled=true; MSIP_Label_5a0720e8-2283-4502-917f-4c0aee493a24_SetDate=2021-07-26T21:18:49Z; MSIP_Label_5a0720e8-2283-4502-917f-4c0aee493a24_Method=Standard; MSIP_Label_5a0720e8-2283-4502-917f-4c0aee493a24_Name=5a0720e8-2283-4502-917f-4c0aee493a24; MSIP_Label_5a0720e8-2283-4502-917f-4c0aee493a24_SiteId=2567b4c1-b0ed-40f5-aee3-58d7c5f3e2b2; MSIP_Label_5a0720e8-2283-4502-917f-4c0aee493a24_ActionId=6dc90336-8b5b-4619-bda2-138a5e247de7; MSIP_Label_5a0720e8-2283-4502-917f-4c0aee493a24_ContentBits=2
-
Thread-index:
AdeCYiiPm733PD6tTnunOKsyPqKc6A==
-
Thread-topic:
How to provision networking information in OpenSuse 15.2
Hello all,
I'm trying to use Cloud-Init to provision network configuration on a VM in VMware using OpenSuse 15.2 and Cloud-Init 20.2 (the latest version of cloud-init supported by OpenSuse). The VM is itself created by Terraform, Terraform passes in the correct VMWare guestinfo variables (guestinfo.metadata, guestinfo.userdata) that contain the base64 encoded cloud-init config info.
First I discovered that network information can only be specified in guestinfo.metadata, and then it turns out that this information must not be specified in yaml, but in json format. So I specified the JSON information in guestinfo.metadata for the VM.
Problem: no network configuration is carried out in OpenSuse by cloud-init, the IP address for eth0 does not change (it remains set to DHCP). The guestinfo.userdata config is applied correctly by cloud-init and works fine.
Question: Is there something I'm missing or forgetting to do?
Here are the guestinfo.metadata JSON contents:
{
"network-config": {
"version": 1,
"config": [
{
"name":"lo",
"type":"physical",
"subnets":{
"control":"auto",
"type":"loopback"
}
},
{
"name":"eth0",
"type":"physical",
"subnets":{
"type":"static",
"address":"10.150.86.170",
"netmask":"255.255.255.128",
"gateway":"10.150.86.1"
}
}
]
}
}
Thanks for any help,
Ravik Tupja
Sen. Software Developer
Windstream Communications
Sensitivity: Internal
This email message and any attachments are for the sole use of the intended recipient(s). Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message and any attachments.