[Bug 1182227] New: combustion [# combustion: network] does not work
http://bugzilla.opensuse.org/show_bug.cgi?id=1182227 Bug ID: 1182227 Summary: combustion [# combustion: network] does not work Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: x86-64 OS: openSUSE Tumbleweed Status: NEW Severity: Normal Priority: P5 - None Component: Kubic Assignee: kubic-bugs@opensuse.org Reporter: syuta.hashimoto@gmail.com QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- Created attachment 846101 --> http://bugzilla.opensuse.org/attachment.cgi?id=846101&action=edit combustion/script file [# combustion: network] comment occur error. combustion logged: sh: line 5: /lib/dracut/hooks/pre-udev/60-net-genrules.sh: No such file or directory I used openSUSE-MicroOS.x86_64-16.0.0-Kubic-kubeadm-kvm-and-xen-Snapshot20210210.qcow2. Combustion succeeded without [# combustion: network] comment. What am I wrong? -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1182227 http://bugzilla.opensuse.org/show_bug.cgi?id=1182227#c1 --- Comment #1 from syuta hashimoto <syuta.hashimoto@gmail.com> --- Created attachment 846102 --> http://bugzilla.opensuse.org/attachment.cgi?id=846102&action=edit startup -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1182227 http://bugzilla.opensuse.org/show_bug.cgi?id=1182227#c2 --- Comment #2 from syuta hashimoto <syuta.hashimoto@gmail.com> --- Created attachment 846103 --> http://bugzilla.opensuse.org/attachment.cgi?id=846103&action=edit rdsosreport -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1182227 Guillaume GARDET <guillaume.gardet@arm.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |guillaume.gardet@arm.com -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1182227 Anthony Rabbito <hello@anthonyrabbito.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |hello@anthonyrabbito.com -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1182227 Peter Magnusson <peter@kmpm.se> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |peter@kmpm.se -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1182227 http://bugzilla.opensuse.org/show_bug.cgi?id=1182227#c7 John Voudouris <jvoudouris@pm.me> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jvoudouris@pm.me --- Comment #7 from John Voudouris <jvoudouris@pm.me> --- I'm also experiencing this bug exactly as described here. I would love to add useful information if anyone has any request or way for me to be helpful. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1182227 http://bugzilla.opensuse.org/show_bug.cgi?id=1182227#c8 --- Comment #8 from Anthony Rabbito <hello@anthonyrabbito.com> --- Happy to share any relevant information as well. Facing this issue using ignition from a network location instead of local to the device. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1182227 http://bugzilla.opensuse.org/show_bug.cgi?id=1182227#c10 Enrico Belleri <idesmi@protonmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |idesmi@protonmail.com --- Comment #10 from Enrico Belleri <idesmi@protonmail.com> --- I can reproduce this bug, network as a dependency in Combustion fails to be satisfied. There is no problem in activating a network interface from the emergency mode instead. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1182227 http://bugzilla.opensuse.org/show_bug.cgi?id=1182227#c11 --- Comment #11 from Anthony Rabbito <hello@anthonyrabbito.com> --- @Enrico have you found it possible to omit the [# combustion: network] and 'manually' up the interface via combustion script? That would be an interesting workaround. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1182227 http://bugzilla.opensuse.org/show_bug.cgi?id=1182227#c12 --- Comment #12 from Enrico Belleri <idesmi@protonmail.com> --- (In reply to Anthony Rabbito from comment #11)
omit the [# combustion: network] and 'manually' up the interface via combustion script? That would be an interesting workaround.
Tried. The interface does get `up` during the Combustion process, but commands after `ip link set [���] up` that make use on an internet connection still fail. I'm not knowledgeable in the boot sequence (at all), so doing this might have been pointless from the start. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1182227 http://bugzilla.opensuse.org/show_bug.cgi?id=1182227#c13 --- Comment #13 from Anthony Rabbito <hello@anthonyrabbito.com> --- This looks like the bad commit? https://git.kernel.org/pub/scm/boot/dracut/dracut.git/commit/?id=4026cd3b012... -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1182227 http://bugzilla.opensuse.org/show_bug.cgi?id=1182227#c22 Andrei Borzenkov <arvidjaar@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |arvidjaar@gmail.com --- Comment #22 from Andrei Borzenkov <arvidjaar@gmail.com> --- (In reply to Thomas Blume from comment #21)
With ip=dhcp it still fails, I'm trying to find a workaround from within dracut.
wicked client (equivalent of ifup) requires per-interface configuration. That is how wicked is designed. Wicked dracut parser is simply wrong. The dracut legacy module basically implements hotplug - it runs ifup script from within udev rule; ifup parses command line and picks up either interface-specific config or generic one. It also waits for at least one interface to come up. In addition its ifup can be called directly, is using the same parser and works whether called from within udev rule or manually. To add feature parity to wicked module there are two possibilities 1. Command line parser should generate policy instead of configuration; this policy will be directly loaded into backend. This will move hotplug handling into wicked. It won't allow running "wicked ifup" manually if needed. 2. Implement same wrapper for wicked ifup as legacy module does - generate wicked configuration for specific interface and call wicked with it. It need not really be xml, could be good ole ifcfg file. And add udev rules to call this wrapper. And of cause name it ifup so it could be called explicitly. And add same waiting for network being up. Considering that a) there is exactly zero documentation for wicked policies and b) running ifup/down manually still requires explicit configuration - I'd say 1 is pretty much unrealistic. For 2 one could actually simply copy legacy scripts and only add ifcfg generation. But then it begs the question - why wicked at all? What exactly wicked module does that legacy module does not that justifies all those efforts? -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1182227 http://bugzilla.opensuse.org/show_bug.cgi?id=1182227#c37 --- Comment #37 from OBSbugzilla Bot <bwiedemann+obsbugzillabot@suse.com> --- This is an autogenerated message for OBS integration: This bug (1182227) was mentioned in https://build.opensuse.org/request/show/922580 Factory / wicked -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1182227 http://bugzilla.opensuse.org/show_bug.cgi?id=1182227#c38 --- Comment #38 from OBSbugzilla Bot <bwiedemann+obsbugzillabot@suse.com> --- This is an autogenerated message for OBS integration: This bug (1182227) was mentioned in https://build.opensuse.org/request/show/929130 Factory / wicked -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1182227 http://bugzilla.opensuse.org/show_bug.cgi?id=1182227#c48 Markus Zimmermann <markus.zimmermann@symflower.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |markus.zimmermann@symflower | |.com --- Comment #48 from Markus Zimmermann <markus.zimmermann@symflower.com> --- I am trying to get an auto-setup working with MicroOS over Combustion. I think this is still a problem with now NetworkManager. I am on MicroOS 20220712. I gave up on Ingition and am now trying Combustion. Which does not set a static IP. The script is run but the end result is again an IP coming from the DHCPC instead of the static one here. This is the configuration file: ``` #!/bin/bash # combustion: network # Redirect output to the console exec > >(exec tee -a /dev/tty0) 2>&1 # Set a password for root, generate the hash with "openssl passwd -6" echo 'root:...' | chpasswd -e # Add a public ssh key and enable sshd mkdir -pm700 /root/.ssh/ echo '...' >> /root/.ssh/authorized_keys systemctl enable sshd.service # Set up hostname and network nmcli general hostname example.com nmcli connection add con-name "enp1s0" ifname enp1s0 type ethernet ip4 192.168.122.10/24 gw4 192.168.122.1 nmcli connection up "enp1s0" ifname enp1s0 nmcli connection delete "Wired Connection" nmcli connection reload # Leave a marker echo "Configured with combustion" >> /etc/issue.d/combustion echo "" >> /etc/issue.d/combustion ``` Doing the "nmcli" commands by hand after the host is IP, works. Even after reboot. So i am pulling my heads out why this is not working with Combustion, which was meant for such cases, right?! -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@suse.com