[Bug 1120311] New: cloud-init fails with: "IsADirectoryError: [Errno 21] Is a directory: '/etc/sysconfig/network'"
http://bugzilla.opensuse.org/show_bug.cgi?id=1120311 Bug ID: 1120311 Summary: cloud-init fails with: "IsADirectoryError: [Errno 21] Is a directory: '/etc/sysconfig/network'" Classification: openSUSE Product: openSUSE Distribution Version: Leap 15.0 Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: Cloud:Images Assignee: public-cloud-maintainers@suse.de Reporter: tbechtold@suse.com QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- Created attachment 793361 --> http://bugzilla.opensuse.org/attachment.cgi?id=793361&action=edit cloud-init.log I try to use a cdrom attached seed image together with the openSUSE Leap 15.0 image (from https://download.opensuse.org/distribution/leap/15.0/jeos/openSUSE-Leap-15.0... ). When starting the VM in libvirt (seed image atached as CDROM, I get: 2018-12-26 16:37:08,052 - __init__.py[DEBUG]: Selected renderer 'sysconfig' from priority list: None 2018-12-26 16:37:08,056 - util.py[DEBUG]: Writing to /etc/sysconfig/network/ifcfg-eth0 - wb: [644] 176 bytes 2018-12-26 16:37:08,057 - util.py[DEBUG]: Writing to /etc/resolv.conf - wb: [644] 71 bytes 2018-12-26 16:37:08,058 - util.py[DEBUG]: Writing to /etc/udev/rules.d/70-persistent-net.rules - wb: [644] 96 bytes 2018-12-26 16:37:08,059 - util.py[DEBUG]: Writing to /etc/sysconfig/network - wb: [644] 86 bytes 2018-12-26 16:37:08,061 - util.py[WARNING]: failed stage init-local 2018-12-26 16:37:08,061 - util.py[DEBUG]: failed stage init-local Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/cloudinit/cmd/main.py", line 655, in status_wrapper ret = functor(name, args) File "/usr/lib/python3.6/site-packages/cloudinit/cmd/main.py", line 361, in main_init init.apply_network_config(bring_up=bool(mode != sources.DSMODE_LOCAL)) File "/usr/lib/python3.6/site-packages/cloudinit/stages.py", line 653, in apply_network_config return self.distro.apply_network_config(netcfg, bring_up=bring_up) File "/usr/lib/python3.6/site-packages/cloudinit/distros/__init__.py", line 211, in apply_network_config dev_names = self._write_network_config(netconfig) File "/usr/lib/python3.6/site-packages/cloudinit/distros/debian.py", line 119, in _write_network_config return self._supported_write_network_config(netconfig) File "/usr/lib/python3.6/site-packages/cloudinit/distros/__init__.py", line 93, in _supported_write_network_config renderer.render_network_config(network_config=network_config) File "/usr/lib/python3.6/site-packages/cloudinit/net/renderer.py", line 53, in render_network_config network_state=parse_net_config_data(network_config), target=target) File "/usr/lib/python3.6/site-packages/cloudinit/net/sysconfig.py", line 609, in render_network_state util.write_file(sysconfig_path, "\n".join(netcfg) + "\n", file_mode) File "/usr/lib/python3.6/site-packages/cloudinit/util.py", line 1852, in write_file with open(filename, omode) as fh: IsADirectoryError: [Errno 21] Is a directory: '/etc/sysconfig/network' The full cloud-init.log is attached. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1120311
http://bugzilla.opensuse.org/show_bug.cgi?id=1120311#c1
Thomas Bechtold
http://bugzilla.opensuse.org/show_bug.cgi?id=1120311
http://bugzilla.opensuse.org/show_bug.cgi?id=1120311#c2
Thomas Bechtold
http://bugzilla.opensuse.org/show_bug.cgi?id=1120311
http://bugzilla.opensuse.org/show_bug.cgi?id=1120311#c3
Robert Schweikert
http://bugzilla.opensuse.org/show_bug.cgi?id=1120311
http://bugzilla.opensuse.org/show_bug.cgi?id=1120311#c4
Thomas Bechtold
Image build succeeds.
Where? https://build.opensuse.org/package/show/openSUSE:Leap:15.0:Images/kiwi-templ... is still failing with: [ 77s] [ DEBUG ]: 10:28:25 | system: Problem: nothing provides /usr/bin/host needed by dhcp-client-4.3.5-lp150.4.1.x86_64 [ 77s] [ DEBUG ]: 10:28:25 | system: Solution 1: do not install cloud-init-18.4-lp150.2.9.1.x86_64 [ 77s] [ DEBUG ]: 10:28:25 | system: Solution 2: break dhcp-client-4.3.5-lp150.4.1.x86_64 by ignoring some of its dependencies [ 77s] [ DEBUG ]: 10:28:25 | system: Choose from above solutions by number or cancel [1/2/c] (c): c -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1120311
http://bugzilla.opensuse.org/show_bug.cgi?id=1120311#c5
Robert Schweikert
http://bugzilla.opensuse.org/show_bug.cgi?id=1120311
http://bugzilla.opensuse.org/show_bug.cgi?id=1120311#c6
Ludwig Nussel
participants (1)
-
bugzilla_noreply@novell.com