Bootimage funktioniert nicht (2x NIC?)

Antworten
bscholz
Beiträge: 15
Registriert: 27 Apr 2010, 14:32

Bootimage funktioniert nicht (2x NIC?)

Beitrag von bscholz »

Moin,

seit einem der letzten Updates funktioniert das Bootimage auf einigen unserer Rechner nicht mehr... Aktuell haben wir Version 20160825 im Einsatz, die Version 20151217 war noch OK (Leider keine Kopie mehr vorhanden :-() Gemeinsamkeit der nicht funktionsfähigen Rechner, die haben zwei Netzwerkanschlüsse (nur eine NIC im regulären Netzwerk).

Symptom: Bootprozess bleibt bei "Starting Show Plymouth Boot Screen" hängen, ein Wechsel auf eine zweite Textkonsole (und Anmeldung) ist möglich.

Reproduzieren kann ich das, indem ich eine Virtuelle Maschine mit KVM/Qemu aufsetze und in dieser zwei Netzwerkkarten konfiguriere. Eine im lokalen Netzwerk, die andere hängt "in der Luft", bzw in einem zweiten Testnetzwerk ohne DHCP. Lösche ich die Zweite NIC wieder, läuft das Bootimage wieder durch.

Welche Lösungsansätze gibt es (Dauerhaft, zweite NIC deaktivieren für die Installation ist keine Option)?

Wir nutzen nicht den DHCP Server von OPSI, da wir bereits einen DHCP Server haben. Außerdem geben wir über das PXE Menü gleich die Action mit (action=setup product=win7, quiet rausgenommen...)

Kurzer Auszug aus dem Syslog

Code: Alles auswählen

Oct 13 11:27:14 opsi-client opsi[689]:  * Starting opsi init
Oct 13 11:27:14 opsi-client mdadm[692]:  * Starting MD monitoring service mdadm --monitor
Oct 13 11:27:14 opsi-client systemd[1]: Started Login Service.
Oct 13 11:27:14 opsi-client mdadm[692]:    ...done.
Oct 13 11:27:14 opsi-client systemd[1]: Starting LSB: Load kernel image with kexec...
Oct 13 11:27:14 opsi-client systemd[1]: Starting Hold until boot process finishes up...
Oct 13 11:27:14 opsi-client systemd[1]: Starting Terminate Plymouth Boot Screen...
Oct 13 11:27:14 opsi-client systemd[1]: Starting LSB: Load kernel image with kexec...
Oct 13 11:27:14 opsi-client systemd[1]: Starting Hold until boot process finishes up...
Oct 13 11:27:14 opsi-client systemd[1]: Starting Terminate Plymouth Boot Screen...
Oct 13 11:27:14 opsi-client systemd[1]: Started LSB: Record successful boot for GRUB.
Oct 13 11:27:14 opsi-client systemd[1]: Started LSB: Set the CPU Frequency Scaling governor to "ondemand".
Oct 13 11:27:14 opsi-client systemd[1]: Started LSB: MD monitoring daemon.
Oct 13 11:27:14 opsi-client systemd[1]: Received SIGRTMIN+21 from PID 674 (plymouthd).
Oct 13 11:27:14 opsi-client systemd[1]: Started Hold until boot process finishes up.
Oct 13 11:27:14 opsi-client systemd[1]: Started Terminate Plymouth Boot Screen.
Oct 13 11:27:14 opsi-client systemd[1]: Started LSB: Load kernel image with kexec.
Oct 13 11:27:14 opsi-client opsi[689]: sed: -e expression #1, char 28: unknown option to `s'
Oct 13 11:27:14 opsi-client opsi[689]: message repeated 2 times: [ sed: -e expression #1, char 28: unknown option to `s']
Oct 13 11:27:14 opsi-client systemd[1]: Started OpenBSD Secure Shell server.
Oct 13 11:27:14 opsi-client opsi[689]: sed: -e expression #1, char 28: unknown option to `s'
Oct 13 11:27:45 opsi-client kernel: NET: Registered protocol family 17
Oct 13 11:27:45 opsi-client opsi[689]: message repeated 13 times: [ sed: -e expression #1, char 28: unknown option to `s']
Oct 13 11:27:45 opsi-client dhclient[1202]: DHCPDISCOVER on ens3 to 255.255.255.255 port 67 interval 3 (xid=0x4c704763)
Oct 13 11:27:46 opsi-client dhclient[1202]: DHCPREQUEST of 10.x.xx.xxx on ens3 to 255.255.255.255 port 67 (xid=0x6347704c)
Oct 13 11:27:46 opsi-client dhclient[1202]: DHCPOFFER of 10.x.xx.xxx from 10.x.xx.yyy
Oct 13 11:27:46 opsi-client dhclient[1202]: DHCPACK of 10.x.xx.xxx from 10.x.xx.yyy
Oct 13 11:27:46 opsi-client root: /etc/dhcp/dhclient-enter-hooks.d/samba returned non-zero exit status 1
Oct 13 11:27:46 opsi-client dhclient[1202]: bound to 10.x.xx.xxx -- renewal in 37326 seconds.
Oct 13 11:27:46 opsi-client opsi[689]: sed: -e expression #1, char 28: unknown option to `s'
Oct 13 11:27:46 opsi-client kernel: 8139cp 0000:00:07.0 ens7: link up, 100Mbps, full-duplex, lpa 0x05E1
Oct 13 11:27:46 opsi-client dhclient[1246]: DHCPDISCOVER on ens7 to 255.255.255.255 port 67 interval 3 (xid=0x790d3e08)
Oct 13 11:27:49 opsi-client dhclient[1246]: DHCPDISCOVER on ens7 to 255.255.255.255 port 67 interval 7 (xid=0x790d3e08)
Oct 13 11:27:56 opsi-client dhclient[1246]: DHCPDISCOVER on ens7 to 255.255.255.255 port 67 interval 15 (xid=0x790d3e08)
Oct 13 11:28:03 opsi-client systemd[1]: Started Getty on tty2.
Kleiner Nachtrag:

nachdem ich /etc/init.d/opsi leicht modifiziert habe (nur die erste Netzwerkkarte wird mit dhclient initialisiert) läuft es erstmal wieder. Ist aber nur unsauberer Hack...
Benutzeravatar
m.radtke
Ex-uib-Team
Beiträge: 1767
Registriert: 10 Jun 2015, 12:19

Re: Bootimage funktioniert nicht (2x NIC?)

Beitrag von m.radtke »

Hi

dieses Problem ist uns bewusst.
Probiere doch bitte folgende Version aus
http://software.opensuse.org/download.h ... -bootimage

Hier wurde nicht nur der Support für Netzwerkkarten mit Bezeichner enx$MACADRESSE hinzugefügt sondern auch das Verhalten bei mehreren Netzwerkkarten geändert. Das Hängen in der Luft haben wir da auch beobachtet wenn die zweite NIC eine Verbindung hatte, die erste aber nicht.

Über ein Feedback würden wir uns freuen.
Gruß
Mathias


Vielen Dank für die Nutzung von opsi. Im Forum ist unser Support begrenzt.

Für den professionellen Einsatz und individuelle Beratung empfehlen wir einen Support-Vertrag und eine Schulung.
Gerne informieren wir Sie zu unserem Angebot.

uib GmbH
Telefon: +49 6131 27561 0
E-Mail: sales@uib.de


bscholz
Beiträge: 15
Registriert: 27 Apr 2010, 14:32

Re: Bootimage funktioniert nicht (2x NIC?)

Beitrag von bscholz »

Moin,
m.radtke hat geschrieben: dieses Problem ist uns bewusst.
Probiere doch bitte folgende Version aus
http://software.opensuse.org/download.h ... -bootimage
Sieht gut aus :D

Kommt jetzt, mit jeder der einzelnen Netzwerkkarten, bis zum Konfigurationsdialog (weitere Test erst Montag). Wenn die zweite NIC in Verwendung ist, dauert es allerdings deutlich länger (Timeout etc... In einer idealen Welt wäre es schön wenn man vorher die NIC auf einen link testen könnte, bevor der dhclient gestartet wird...)

BTW folgendes in /tmp/log sieht zumindest komisch aus...

Code: Alles auswählen

Oct 14 08:36:22 [opsiinit] opsi init script started
Oct 14 08:36:22 [opsiinit] opsi linux bootimage version: 20160921
Oct 14 08:36:23 [opsiinit]
Oct 14 08:36:23 [opsiinit]
Oct 14 08:36:23 [opsiinit]
Oct 14 08:36:23 [opsiinit]
Oct 14 08:36:23 [opsiinit]
Oct 14 08:36:23 [opsiinit]
Oct 14 08:36:23 [opsiinit]
Oct 14 08:36:23 [opsiinit]
Oct 14 08:36:23 [opsiinit]
Oct 14 08:36:23 [opsiinit]
Oct 14 08:36:23 [opsiinit]
Oct 14 08:36:23 [opsiinit]
Oct 14 08:36:23 [opsiinit]
Oct 14 08:36:23 [opsiinit]
Oct 14 08:36:26 [opsiinit]
Oct 14 08:36:26 [opsiinit]
Oct 14 08:36:26 [opsiinit]
Oct 14 08:36:26 [opsiinit]
Oct 14 08:36:29 [opsiinit]
Oct 14 08:36:29 [opsiinit]
Oct 14 08:36:29 [opsiinit]
Oct 14 08:36:29 [opsiinit]
Oct 14 08:36:32 [opsiinit]
Oct 14 08:36:32 [opsiinit]
Oct 14 08:36:32 [opsiinit]
Oct 14 08:36:32 [opsiinit]
Oct 14 08:36:35 [opsiinit]
Oct 14 08:36:35 [opsiinit]
Oct 14 08:36:35 [opsiinit]
Oct 14 08:36:35 [opsiinit]
Oct 14 08:36:38 [opsiinit]
Oct 14 08:36:38 [opsiinit]
Oct 14 08:36:38 [opsiinit]
Oct 14 08:36:38 [opsiinit]
Oct 14 08:36:41 [opsiinit]
Oct 14 08:36:41 [opsiinit]
Oct 14 08:36:41 [opsiinit]
Oct 14 08:36:41 [opsiinit]
Oct 14 08:36:44 [opsiinit]
Oct 14 08:36:44 [opsiinit]
Oct 14 08:36:44 [opsiinit]
Oct 14 08:36:44 [opsiinit]
Oct 14 08:36:47 [opsiinit]
Oct 14 08:36:47 [opsiinit]
Oct 14 08:36:47 [opsiinit]
Oct 14 08:36:47 [opsiinit]
Oct 14 08:36:50 [opsiinit]
Oct 14 08:36:50 [opsiinit]
Oct 14 08:36:50 [opsiinit]
Oct 14 08:36:50 [opsiinit]
Oct 14 08:36:53 [opsiinit]
Oct 14 08:36:53 [opsiinit]
Oct 14 08:36:53 [opsiinit]
Oct 14 08:36:54 [opsiinit]
Oct 14 08:37:25 [opsiinit]
[7] [Oct 14 08:37:27] Failed to set MAX LOG SIZE from config: [Errno 2] No such file or directory: '/etc/opsi/opsiconfd.conf' (Backend.py|96)
[7] [Oct 14 08:37:27] Reading /proc/cmdline (Posix.py|347)
[6] [Oct 14 08:37:27] Executing: echo 0 > /proc/sys/kernel/printk (Posix.py|769)
[...]
Bei der Version 20160825 waren (abgesehen von den ersten beiden) nur leere Zeilen im Log...

Viele Grüße

Bastian
Benutzeravatar
m.radtke
Ex-uib-Team
Beiträge: 1767
Registriert: 10 Jun 2015, 12:19

Re: Bootimage funktioniert nicht (2x NIC?)

Beitrag von m.radtke »

Die nics werden auf einen Link geprüft.
Das steht auch im Log so. Und da keiner zu dem Zeitpunkt nen Link hat werden eben alle genommen.

Das es beim zweiten nic länger dauert liegt daran das der erste erstmal in den timeout laufen muss (30 Sekunden)


Vielen Dank für die Nutzung von opsi. Im Forum ist unser Support begrenzt.

Für den professionellen Einsatz und individuelle Beratung empfehlen wir einen Support-Vertrag und eine Schulung.
Gerne informieren wir Sie zu unserem Angebot.

uib GmbH
Telefon: +49 6131 27561 0
E-Mail: sales@uib.de


Antworten