Bug 1114160

Summary: static network configuration using BOOTPROTO=none
Product: [openSUSE] openSUSE Distribution Reporter: Martin Steigerwald <martin.steigerwald>
Component: Cloud:ToolsAssignee: Robert Schweikert <rjschwei>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Major    
Priority: P2 - High CC: martin.steigerwald, rjschwei
Version: Leap 42.3Flags: rjschwei: needinfo? (martin.steigerwald)
Target Milestone: ---   
Hardware: x86-64   
OS: SLES 12   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: static network configuration with BOOTPROTO=none
static network configuration with BOOTPROTO=none, despite correct network configuration in NoCloud
cloud-init.log from yesterday and today
cloud-init-output.log from yesterday and today

Description Martin Steigerwald 2018-10-31 11:02:42 UTC
Created attachment 788023 [details]
static network configuration with BOOTPROTO=none

On a SLES 12 SP3 KVM VM on Proxmox VE after an update to cloud-init 18.4-2.1 from Cloud:Tools (SLE_12_SP3) repo cloud-init uses a "BOOTPROTO=none" for "/etc/sysconfig/network/ifcfg-eth0", despite correct network specification in NoCloud storage (see atached screenshots).

# How to reproduce
- Have that version of cloud-init on SLES 12 SP3
- Boot
  - Probably you need to change network configuration in order to trigger the reconfiguration of the network
Comment 1 Martin Steigerwald 2018-10-31 11:03:59 UTC
Created attachment 788024 [details]
static network configuration with BOOTPROTO=none, despite correct network configuration in NoCloud

Once after a second attempt of running cloud-init after it ran already during boot, it did a correct network configuration.
Comment 2 Martin Steigerwald 2018-10-31 11:04:36 UTC
Created attachment 788025 [details]
cloud-init.log from yesterday and today
Comment 3 Martin Steigerwald 2018-10-31 11:05:10 UTC
Created attachment 788026 [details]
cloud-init-output.log from yesterday and today
Comment 4 Robert Schweikert 2018-10-31 14:41:52 UTC
I applied cloud-init-static-net.patch

Please test again, thanks for the report
Comment 5 Martin Steigerwald 2018-10-31 14:49:14 UTC
(In reply to Robert Schweikert from comment #4)
> I applied cloud-init-static-net.patch
> 
> Please test again, thanks for the report

Where is that patch? I see no attachment with the patch. Thanks, Martin
Comment 6 Robert Schweikert 2018-10-31 14:57:01 UTC
Committed to the cloud-init package in Cloud:Tools, just pull the latest package and retest please
Comment 7 Martin Steigerwald 2018-10-31 15:05:43 UTC
Okay. Apparently it still needs to build it:

http://download.opensuse.org/repositories/Cloud:/Tools/SLE_12_SP3/x86_64/

has current 18.4-2.1.x86_64 still and sles VM does not see an update yet either.
Comment 8 Robert Schweikert 2018-11-02 14:29:04 UTC
openSUSE:Factory created request id 646077
Comment 10 Swamp Workflow Management 2018-11-02 15:40:32 UTC
This is an autogenerated message for OBS integration:
This bug (1114160) was mentioned in
https://build.opensuse.org/request/show/646077 Factory / cloud-init
Comment 12 Swamp Workflow Management 2018-12-28 20:16:55 UTC
SUSE-RU-2018:4288-1: An update that has 7 recommended fixes can now be installed.

Category: recommended (moderate)
Bug References: 1087331,1095627,1097388,1099340,1101894,1111427,1114160
CVE References: 
Sources used:
SUSE Linux Enterprise Module for Public Cloud 15 (src):    cloud-init-18.4-5.3.3
SUSE Linux Enterprise Module for Open Buildservice Development Tools 15 (src):    cloud-init-18.4-5.3.3
Comment 13 Swamp Workflow Management 2018-12-29 14:11:03 UTC
openSUSE-RU-2018:4303-1: An update that has 7 recommended fixes can now be installed.

Category: recommended (moderate)
Bug References: 1087331,1095627,1097388,1099340,1101894,1111427,1114160
CVE References: 
Sources used:
openSUSE Leap 15.0 (src):    cloud-init-18.4-lp150.2.9.1
Comment 22 Swamp Workflow Management 2019-06-27 13:14:32 UTC
SUSE-RU-2019:1715-1: An update that has 15 recommended fixes can now be installed.

Category: recommended (moderate)
Bug References: 1087331,1095627,1097388,1099340,1101894,1111427,1114160,1116767,1119397,1121878,1123694,1125950,1125992,1126101,1132692
CVE References: 
Sources used:
SUSE Linux Enterprise Software Development Kit 12-SP4 (src):    dhcp-4.3.3-10.16.4
SUSE Linux Enterprise Software Development Kit 12-SP3 (src):    dhcp-4.3.3-10.16.4
SUSE Linux Enterprise Server 12-SP4 (src):    dhcp-4.3.3-10.16.4
SUSE Linux Enterprise Server 12-SP3 (src):    dhcp-4.3.3-10.16.4
SUSE Linux Enterprise Module for Public Cloud 12 (src):    cloud-init-18.5-37.21.1
SUSE Linux Enterprise Desktop 12-SP4 (src):    dhcp-4.3.3-10.16.4
SUSE Linux Enterprise Desktop 12-SP3 (src):    dhcp-4.3.3-10.16.4
SUSE CaaS Platform 3.0 (src):    cloud-init-18.5-37.21.1, dhcp-4.3.3-10.16.4
OpenStack Cloud Magnum Orchestration 7 (src):    cloud-init-18.5-37.21.1

NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.
Comment 23 Swamp Workflow Management 2019-07-01 10:14:17 UTC
openSUSE-RU-2019:1681-1: An update that has 15 recommended fixes can now be installed.

Category: recommended (moderate)
Bug References: 1087331,1095627,1097388,1099340,1101894,1111427,1114160,1116767,1119397,1121878,1123694,1125950,1125992,1126101,1132692
CVE References: 
Sources used:
openSUSE Leap 42.3 (src):    cloud-init-18.5-40.1, dhcp-4.3.3-11.9.1