Opsi-Product-Updater Error 101: Network unreachable
Verfasst: 27 Jan 2015, 14:17
Hallo zusammen,
ich bin neu hier und komme auch schon mit dem ersten Problem.
Ich kann leider keine Packages mit dem Updater runterladen. Beim ausführen von "opsi-product-updater -i -vv" kriege ich folgende Meldung:
Zsync command found: /bin/zsync
Reading config file '/etc/opsi/opsi-product-updater.conf'
Getting installed products
Getting info for local packages in '/var/lib/opsi/repository'
Getting package infos from repository 'http://download.uib.de'
Traceback:
line 1203 in '<module>' in file '/bin/opsi-product-updater'
line 1198 in 'main' in file '/bin/opsi-product-updater'
line 476 in 'processUpdates' in file '/bin/opsi-product-updater'
line 989 in 'getDownloadablePackages' in file '/bin/opsi-product-updater'
line 1109 in 'getDownloadablePackagesFromRepository' in file '/bin/opsi-product-updater'
==>>> Failed to process url 'http://download.uib.de/opsi4.0/products/localboot': <urlopen error [Errno 101] Network is unreachable>
Allerdings meldet er beim Konfigurieren auch folgendes:
[root@srvx-opsi opsi]# opsi-setup --set-rights
[5] [Jan 27 13:58:19] Setting rights (opsi-setup|548)
[5] [Jan 27 13:58:19] Getting current system config (opsi-setup|123)
[3] [Jan 27 13:58:19] Unexpected ifconfig line 'inet 10.10.200.38 netmask 255.255.0.0 broadcast 10.10.255.255' (Posix.py|420)
[4] [Jan 27 13:58:19] Failed to get vendor/device id for network device eth0 (Posix.py|453)
[5] [Jan 27 13:58:19] System information: (opsi-setup|176)
[5] [Jan 27 13:58:19] distributor : CentOS (opsi-setup|177)
[5] [Jan 27 13:58:19] distribution : CentOS Linux release 7.0.1406 (Core) (opsi-setup|178)
[5] [Jan 27 13:58:19] ip address : 10.10.200.38 (opsi-setup|179)
[5] [Jan 27 13:58:19] netmask : 255.255.255.0 (opsi-setup|180)
[5] [Jan 27 13:58:19] subnet : 10.10.200.0 (opsi-setup|181)
[5] [Jan 27 13:58:19] broadcast : 10.10.200.255 (opsi-setup|182)
[5] [Jan 27 13:58:19] fqdn : srvx-opsi.heinergroup.com (opsi-setup|183)
[5] [Jan 27 13:58:19] hostname : srvx-opsi (opsi-setup|184)
[5] [Jan 27 13:58:19] domain : heinergroup.com (opsi-setup|185)
[5] [Jan 27 13:58:19] win domain : HEINERGROUP (opsi-setup|186)
[5] [Jan 27 13:58:19] Setting rights on directory '/tftpboot/linux' (opsi-setup|635)
[5] [Jan 27 13:58:19] Setting rights on directory '/home/opsiproducts' (opsi-setup|635)
[5] [Jan 27 13:58:19] Setting rights on directory '/var/log/opsi' (opsi-setup|635)
[5] [Jan 27 13:58:19] Setting rights on directory '/etc/opsi' (opsi-setup|635)
[5] [Jan 27 13:58:19] Setting rights on directory '/var/lib/opsi' (opsi-setup|635)
[5] [Jan 27 13:58:19] Setting rights on directory '/var/lib/opsi/depot' (opsi-setup|635)
Das kann eigentlich nicht sein. Die netmask ist in unserem Netzwerk 255.255.0.0
Ich hatte vorher einen Server mit CentOS 6.5 laufen, da tauchten diese Probleme nicht auf. Ich denke die Fehlermeldung bezüglich "ifconfig" tritt auf,
da sich der Output von ifconfig bei CentOS6 und 7 unterscheidet:
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 10.10.200.38 netmask 255.255.0.0 broadcast 10.10.255.255 (Centos7)
eth3 Link encap:Ethernet Hardware Adresse 00:15:17:2C:90:41
inet Adresse:10.10.200.253 Bcast:10.10.255.255 Maske:255.255.0.0 (CentOS 6)
Der Code-Schnippsel aus der Posix.Py sieht so aus:
def getNetworkDeviceConfig(device):
if not device:
raise Exception(u"No device given")
result = {
'device': device,
'hardwareAddress': None,
'ipAddress': None,
'broadcast': None,
'netmask': None,
'gateway': None,
'vendorId': None,
'deviceId': None
}
for line in execute(u"%s %s" % (which(u'ifconfig'), device)):
line = line.lower().strip()
match = re.search('\s([\da-f]{2}:[\da-f]{2}:[\da-f]{2}:[\da-f]{2}:[\da-f]{2}:[\da-f]{2}).*', line)
if match:
result['hardwareAddress'] = forceHardwareAddress(match.group(1))
continue
if line.startswith('inet '):
parts = line.split(':')
if (len(parts) != 4):
logger.error(u"Unexpected ifconfig line '%s'" % line)
continue
result['ipAddress'] = forceIpAddress(parts[1].split()[0].strip())
result['broadcast'] = forceIpAddress(parts[2].split()[0].strip())
result['netmask'] = forceIpAddress(parts[3].split()[0].strip())
Das würde erklären (sofern ich den Code richtig verstehe), wieso er die automatische Konfiguration falsch ausführt.
Könnte diese falsche Konfiguration der Grund für das Fehlschlagen des Updaters sein?
Grüße
ich bin neu hier und komme auch schon mit dem ersten Problem.
Ich kann leider keine Packages mit dem Updater runterladen. Beim ausführen von "opsi-product-updater -i -vv" kriege ich folgende Meldung:
Zsync command found: /bin/zsync
Reading config file '/etc/opsi/opsi-product-updater.conf'
Getting installed products
Getting info for local packages in '/var/lib/opsi/repository'
Getting package infos from repository 'http://download.uib.de'
Traceback:
line 1203 in '<module>' in file '/bin/opsi-product-updater'
line 1198 in 'main' in file '/bin/opsi-product-updater'
line 476 in 'processUpdates' in file '/bin/opsi-product-updater'
line 989 in 'getDownloadablePackages' in file '/bin/opsi-product-updater'
line 1109 in 'getDownloadablePackagesFromRepository' in file '/bin/opsi-product-updater'
==>>> Failed to process url 'http://download.uib.de/opsi4.0/products/localboot': <urlopen error [Errno 101] Network is unreachable>
Allerdings meldet er beim Konfigurieren auch folgendes:
[root@srvx-opsi opsi]# opsi-setup --set-rights
[5] [Jan 27 13:58:19] Setting rights (opsi-setup|548)
[5] [Jan 27 13:58:19] Getting current system config (opsi-setup|123)
[3] [Jan 27 13:58:19] Unexpected ifconfig line 'inet 10.10.200.38 netmask 255.255.0.0 broadcast 10.10.255.255' (Posix.py|420)
[4] [Jan 27 13:58:19] Failed to get vendor/device id for network device eth0 (Posix.py|453)
[5] [Jan 27 13:58:19] System information: (opsi-setup|176)
[5] [Jan 27 13:58:19] distributor : CentOS (opsi-setup|177)
[5] [Jan 27 13:58:19] distribution : CentOS Linux release 7.0.1406 (Core) (opsi-setup|178)
[5] [Jan 27 13:58:19] ip address : 10.10.200.38 (opsi-setup|179)
[5] [Jan 27 13:58:19] netmask : 255.255.255.0 (opsi-setup|180)
[5] [Jan 27 13:58:19] subnet : 10.10.200.0 (opsi-setup|181)
[5] [Jan 27 13:58:19] broadcast : 10.10.200.255 (opsi-setup|182)
[5] [Jan 27 13:58:19] fqdn : srvx-opsi.heinergroup.com (opsi-setup|183)
[5] [Jan 27 13:58:19] hostname : srvx-opsi (opsi-setup|184)
[5] [Jan 27 13:58:19] domain : heinergroup.com (opsi-setup|185)
[5] [Jan 27 13:58:19] win domain : HEINERGROUP (opsi-setup|186)
[5] [Jan 27 13:58:19] Setting rights on directory '/tftpboot/linux' (opsi-setup|635)
[5] [Jan 27 13:58:19] Setting rights on directory '/home/opsiproducts' (opsi-setup|635)
[5] [Jan 27 13:58:19] Setting rights on directory '/var/log/opsi' (opsi-setup|635)
[5] [Jan 27 13:58:19] Setting rights on directory '/etc/opsi' (opsi-setup|635)
[5] [Jan 27 13:58:19] Setting rights on directory '/var/lib/opsi' (opsi-setup|635)
[5] [Jan 27 13:58:19] Setting rights on directory '/var/lib/opsi/depot' (opsi-setup|635)
Das kann eigentlich nicht sein. Die netmask ist in unserem Netzwerk 255.255.0.0
Ich hatte vorher einen Server mit CentOS 6.5 laufen, da tauchten diese Probleme nicht auf. Ich denke die Fehlermeldung bezüglich "ifconfig" tritt auf,
da sich der Output von ifconfig bei CentOS6 und 7 unterscheidet:
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 10.10.200.38 netmask 255.255.0.0 broadcast 10.10.255.255 (Centos7)
eth3 Link encap:Ethernet Hardware Adresse 00:15:17:2C:90:41
inet Adresse:10.10.200.253 Bcast:10.10.255.255 Maske:255.255.0.0 (CentOS 6)
Der Code-Schnippsel aus der Posix.Py sieht so aus:
def getNetworkDeviceConfig(device):
if not device:
raise Exception(u"No device given")
result = {
'device': device,
'hardwareAddress': None,
'ipAddress': None,
'broadcast': None,
'netmask': None,
'gateway': None,
'vendorId': None,
'deviceId': None
}
for line in execute(u"%s %s" % (which(u'ifconfig'), device)):
line = line.lower().strip()
match = re.search('\s([\da-f]{2}:[\da-f]{2}:[\da-f]{2}:[\da-f]{2}:[\da-f]{2}:[\da-f]{2}).*', line)
if match:
result['hardwareAddress'] = forceHardwareAddress(match.group(1))
continue
if line.startswith('inet '):
parts = line.split(':')
if (len(parts) != 4):
logger.error(u"Unexpected ifconfig line '%s'" % line)
continue
result['ipAddress'] = forceIpAddress(parts[1].split()[0].strip())
result['broadcast'] = forceIpAddress(parts[2].split()[0].strip())
result['netmask'] = forceIpAddress(parts[3].split()[0].strip())
Das würde erklären (sofern ich den Code richtig verstehe), wieso er die automatische Konfiguration falsch ausführt.
Könnte diese falsche Konfiguration der Grund für das Fehlschlagen des Updaters sein?
Grüße