[Bug 1154092] New: cloud-init: datasource ConfigDrive fails
http://bugzilla.suse.com/show_bug.cgi?id=1154092 Bug ID: 1154092 Summary: cloud-init: datasource ConfigDrive fails Classification: openSUSE Product: openSUSE Distribution Version: Leap 15.1 Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: Cloud:Tools Assignee: public-cloud-maintainers@suse.de Reporter: eugen.block@suse.com QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- Created attachment 821579 --> http://bugzilla.suse.com/attachment.cgi?id=821579&action=edit cloud-init.log leap15-1-cloudinit:~ # rpm -qa | grep cloud-init cloud-init-config-suse-19.1-lp151.2.6.1.x86_64 cloud-init-19.2-lp151.3.1.x86_64 While setting up a new Leap 15.1 image for our OpenStack cloud we noticed failing datasource "ConfigDrive" in cloud-init version 19.1. We have to cover two different scenarios, neutron metadata (self-service networks, datasource "OpenStack") and config drive (provider networks). Datasource OpenStack works fine, not complaints, but ConfigDrive fails to configure the network, the following error message occurs during stage cloud-init-local:
Unable to render networking. Network config is likely broken: No available network renderers found. Searched through list: ['eni', 'sysconfig', 'netplan']
Testing version 19.2 from http://download.opensuse.org/repositories/Cloud:/Tools:/Next/openSUSE_Leap_1... results in the same error message. cloud-init logs are attached. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1154092 http://bugzilla.suse.com/show_bug.cgi?id=1154092#c1 --- Comment #1 from Eugen Block <eugen.block@suse.com> --- Created attachment 821580 --> http://bugzilla.suse.com/attachment.cgi?id=821580&action=edit cloud-init-output.log -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1154092 http://bugzilla.suse.com/show_bug.cgi?id=1154092#c2 Robert Schweikert <rjschwei@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |eugen.block@suse.com, | |rjschwei@suse.com Flags| |needinfo?(eugen.block@suse. | |com) --- Comment #2 from Robert Schweikert <rjschwei@suse.com> --- Is this the same image but with 2 different cloud.cfg files? The message is not related to using config drive, the code cannot determine in which configuration the network should be written out. In order to find the proper rendering mechanism (the way the network configuration is written) for the network configuration code searches for specific commands to be available. For openSUSE and SLE, or in general to use the code that writes entries for "sysconfig" cloud-init looks for the 'ifup' and 'ifdown' commands. In this case it appears as if these command are missing from the image being tested. This would trigger the error message shown in the initial comment. It is known that the proper network writing code is selected for images with the 'ifup' and 'ifdown' commands included. This suggests an issue with the image. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1154092 http://bugzilla.suse.com/show_bug.cgi?id=1154092#c3 Eugen Block <eugen.block@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Flags|needinfo?(eugen.block@suse. | |com) | --- Comment #3 from Eugen Block <eugen.block@suse.com> --- (In reply to Robert Schweikert from comment #2)
Is this the same image but with 2 different cloud.cfg files?
No, these are both log files written by cloud-init during the same boot process of one instance.
The message is not related to using config drive, the code cannot determine in which configuration the network should be written out.
In order to find the proper rendering mechanism (the way the network configuration is written) for the network configuration code searches for specific commands to be available. For openSUSE and SLE, or in general to use the code that writes entries for "sysconfig" cloud-init looks for the 'ifup' and 'ifdown' commands.
In this case it appears as if these command are missing from the image being tested. This would trigger the error message shown in the initial comment.
It is known that the proper network writing code is selected for images with the 'ifup' and 'ifdown' commands included.
This suggests an issue with the image.
This image contains both commands: leap15-1-cloudinit:~ # which ifup /sbin/ifup leap15-1-cloudinit:~ # which ifdown /sbin/ifdown leap15-1-cloudinit:~ # Running those commands manually after cloud-init has finished (unsuccessfully) did work in a previous version of cloud-init, but it doesn't with Leap 15.1. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1154092 http://bugzilla.suse.com/show_bug.cgi?id=1154092#c4 Robert Schweikert <rjschwei@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Flags| |needinfo?(eugen.block@suse. | |com) --- Comment #4 from Robert Schweikert <rjschwei@suse.com> --- Can you please try again with the latest build from Cloud:Tools? There is a condition in determining the sysconfig renderer that also required some file we do not have on openSUSE SLE. I added a patch to short circuit this condition. That should fix the issue with the renderer not being found. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1154092 http://bugzilla.suse.com/show_bug.cgi?id=1154092#c5 --- Comment #5 from Swamp Workflow Management <swamp@suse.de> --- This is an autogenerated message for OBS integration: This bug (1154092) was mentioned in https://build.opensuse.org/request/show/741941 Factory / cloud-init -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1154092 http://bugzilla.suse.com/show_bug.cgi?id=1154092#c7 Eugen Block <eugen.block@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Flags|needinfo?(eugen.block@suse. | |com) | --- Comment #7 from Eugen Block <eugen.block@suse.com> --- (In reply to Robert Schweikert from comment #4)
Can you please try again with the latest build from Cloud:Tools?
There is a condition in determining the sysconfig renderer that also required some file we do not have on openSUSE SLE. I added a patch to short circuit this condition. That should fix the issue with the renderer not being found.
That looks good, the instance is configured correctly both via datasources OpenStack and ConfigDrive. Thanks! -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1154092 Swamp Workflow Management <swamp@suse.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Whiteboard| |ibs:running:13035:moderate | |ibs:running:13036:moderate -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1154092 Swamp Workflow Management <swamp@suse.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Whiteboard|ibs:running:13035:moderate |ibs:running:13035:moderate |ibs:running:13036:moderate |ibs:running:13036:moderate | |ibs:running:13090:moderate -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1154092 http://bugzilla.suse.com/show_bug.cgi?id=1154092#c9 --- Comment #9 from Swamp Workflow Management <swamp@suse.de> --- SUSE-SU-2019:3097-1: An update that solves one vulnerability and has 6 fixes is now available. Category: security (moderate) Bug References: 1099358,1129124,1136440,1142988,1144363,1151488,1154092 CVE References: CVE-2019-0816 Sources used: SUSE Linux Enterprise Module for Public Cloud 15 (src): cloud-init-19.2-5.18.1 SUSE Linux Enterprise Module for Open Buildservice Development Tools 15 (src): cloud-init-19.2-5.18.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. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1154092 http://bugzilla.suse.com/show_bug.cgi?id=1154092#c10 --- Comment #10 from Swamp Workflow Management <swamp@suse.de> --- SUSE-SU-2019:3096-1: An update that solves one vulnerability and has 6 fixes is now available. Category: security (moderate) Bug References: 1099358,1129124,1136440,1142988,1144363,1151488,1154092 CVE References: CVE-2019-0816 Sources used: SUSE Linux Enterprise Module for Public Cloud 15-SP1 (src): cloud-init-19.2-8.11.1 SUSE Linux Enterprise Module for Open Buildservice Development Tools 15-SP1 (src): cloud-init-19.2-8.11.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. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1154092 Swamp Workflow Management <swamp@suse.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Whiteboard|ibs:running:13035:moderate |ibs:running:13090:moderate |ibs:running:13036:moderate | |ibs:running:13090:moderate | -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1154092 Swamp Workflow Management <swamp@suse.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Whiteboard|ibs:running:13090:moderate |ibs:running:13090:moderate | |obs:running:11610:moderate | |obs:running:11611:moderate -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1154092 http://bugzilla.suse.com/show_bug.cgi?id=1154092#c11 Robert Schweikert <rjschwei@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #11 from Robert Schweikert <rjschwei@suse.com> --- Fixed -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1154092 Swamp Workflow Management <swamp@suse.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Whiteboard|ibs:running:13090:moderate |ibs:running:13090:moderate |obs:running:11610:moderate |obs:running:11611:moderate |obs:running:11611:moderate | -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1154092 Swamp Workflow Management <swamp@suse.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Whiteboard|ibs:running:13090:moderate |ibs:running:13090:moderate |obs:running:11611:moderate | -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1154092 http://bugzilla.suse.com/show_bug.cgi?id=1154092#c12 --- Comment #12 from Swamp Workflow Management <swamp@suse.de> --- openSUSE-SU-2019:2633-1: An update that solves one vulnerability and has 6 fixes is now available. Category: security (moderate) Bug References: 1099358,1129124,1136440,1142988,1144363,1151488,1154092 CVE References: CVE-2019-0816 Sources used: openSUSE Leap 15.1 (src): cloud-init-19.2-lp151.2.9.1 -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1154092 Swamp Workflow Management <swamp@suse.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Whiteboard|ibs:running:13090:moderate | -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1154092 http://bugzilla.suse.com/show_bug.cgi?id=1154092#c13 --- Comment #13 from Swamp Workflow Management <swamp@suse.de> --- SUSE-SU-2019:3191-1: An update that solves one vulnerability and has 6 fixes is now available. Category: security (moderate) Bug References: 1099358,1129124,1136440,1142988,1144363,1151488,1154092 CVE References: CVE-2019-0816 Sources used: SUSE Linux Enterprise Module for Public Cloud 12 (src): cloud-init-19.2-37.33.1 SUSE CaaS Platform 3.0 (src): cloud-init-19.2-37.33.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. -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com