V7: Keine IP mehr im Servernetz per DHCP -- warum?

Hallo.
Ich habe gerade den bionic-Client mal wieder angeworfen; LINBO startet doch dabei fiel mir etwas seltsames auf: Der Client erhält nicht mehr die IP, die in der devices.csv eingetragen ist (10.16.1.12) sondern eine andere (10.16.1.158).
Die MAC-Adresse ist richtig – double-checked.

Daraufhin habe ich das übliche linuxmuster-import-devices laufen lassen und stellte fest, dass dort gar keine Einträge mehr für das Servernetz erscheinen. Für alle anderen Subnetze sehr sieht alles normal aus; z.B.:

------------------------------------------------------------------------------
#### Working on dhcp configuration for devices                            ####
#### * in subnet 10.20.100.0/24:  
...

Ich weiß nicht, warum für das Servernetz die in der devices.csv vergebenen Adressen nicht mehr verwendet sondern stattdessen welche aus dem DHCP-Bereich benutzt?!

Nächster Schritt: In die Datei subnets.csv geschaut. Da fiel mir wieder ein, dass ich neulich den Eintrag mit der Netzmaske geändert hatte.
JETZT steht da:
10.16.1.0/24;10.16.1.253;10.16.1.150;10.16.1.199;SETUP

Wenn ich cat /etc/dhcp/devices.conf |grep 10.16.1. verwende, sind da keine Einträge mehr für das Servernetz; alle anderen sind aber da.

Es kommt aber noch dicker: Ich habe (vorsichtshalber) auch nochmal
linuxmuster-import-subnets laufen lassen.
Dabei erscheinen jetzt diese Meldungen – warum steht da erneut die große Netzmaske?

linuxmuster-import-subnets               
#### linuxmuster-import-subnets                                           ####
------------------------------------------------------------------------------
#### Reading setup data:                                                  ####
#### * Server address: 10.16.1.1                                          ####
#### * Server network: 10.16.0.0/12                                       ####
#### Processing dhcp subnets:                                             ####
#### * 10.20.100.0/24                                                     ####
#### * 10.20.200.0/24                                                     ####
#### * 10.30.10.0/24                                                      ####
#### * 10.30.20.0/24                                                      ####
#### * 10.16.2.0/24                                                       ####
#### * 10.30.51.0/24                                                      ####
#### * 10.30.52.0/24                                                      ####
#### * 10.30.53.0/24                                                      ####
#### Restarting isc-dhcp-server ................................. Failed! ####
#### Processing netplan configuration on server:                          ####
#### * Removed old routes.                                                ####
#### * Added new routes for all subnets.                                  ####
#### * Applied new configuration.                                         ####
#### Processing opsi network configuration:                               ####
/usr/lib/python3/dist-packages/paramiko/rsakey.py:119: CryptographyDeprecationWarning: signer and verifier have been deprecated. Please use sign and verify instead.
  algorithm=hashes.SHA1(),
/usr/lib/python3/dist-packages/paramiko/rsakey.py:99: CryptographyDeprecationWarning: signer and verifier have been deprecated. Please use sign and verify instead.
  algorithm=hashes.SHA1(),
#### Executing ssh command on 10.16.1.2:                                  ####
#### * -> "chmod +x /tmp/delroutes"                                       ####
#### * SSH connection successfully established.                           ####
#### * Execution finished successfully.                                   ####
#### Executing ssh command on 10.16.1.2:                                  ####
#### * -> "/tmp/delroutes"                                                ####
#### * SSH connection successfully established.                           ####
#### * Execution finished successfully.                                   ####
#### Executing ssh command on 10.16.1.2:                                  ####
#### * -> "rm -f /tmp/delroutes"                                          ####
#### * SSH connection successfully established.                           ####
#### * Execution finished successfully.                                   ####
#### * Removed old routes.                                                ####
#### * Created new routes script.                                         ####
#### Executing ssh command on 10.16.1.2:                                  ####
#### * -> "chmod +x /etc/network/if-up.d/999staticroutes"                 ####
#### * SSH connection successfully established.                           ####
#### * Execution finished successfully.                                   ####
#### Executing ssh command on 10.16.1.2:                                  ####
#### * -> "/etc/network/if-up.d/999staticroutes"                          ####
#### * SSH connection successfully established.                           ####
#### * Execution finished successfully.                                   ####
#### * Script transfered and applied.                                     ####
#### Downloading firewall configuration:                                  ####
#### * Download finished successfully.                                    ####
#### * Saved changed config.                                              ####
#### Uploading firewall configuration:                                    ####
#### * Upload finished successfully.                                      ####
Traceback (most recent call last):
  File "/usr/sbin/linuxmuster-import-subnets", line 454, in <module>
    changed = firewallApi('post', '/routes/routes/reconfigure')
  File "/usr/lib/linuxmuster/functions.py", line 536, in firewallApi
    req = requests.post(url, verify=constants.FWFULLCHAIN, auth=(apikey, apisecret))
  File "/usr/lib/python3/dist-packages/requests/api.py", line 112, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 58, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 520, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 630, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 407, in send
    self.cert_verify(conn, request.url, verify, cert)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 226, in cert_verify
    "invalid path: {0}".format(cert_loc))
OSError: Could not find a suitable TLS CA certificate bundle, invalid path: /etc/linuxmuster/ssl/firewall.fullchain.pem

Hat jemand von Euch eine Idee, was da schief gelaufen ist?

Server-Infos:

  ███               ███      WELCOME TO LINUXMUSTER.NET 7.0 - bond
 █████             █████     Freitag, 19 Juni 2020, 09:52:32 
  ███               ███
      ███       ███          Uptime..........: 0 days, 00h49m00s
     █████     █████         Memory..........: 406/16012MB (2.54%)
      ███       ███          IP Internal.....: 10.16.1.1
           ███               IP External.....: <Eintrag entfernt>
          █████
           ███              
      ███       ███          linuxmuster.net packages:
     █████     █████         -Base...........: 7.0.70-0ubuntu0
      ███       ███          -Linbo..........: 2.3.63-0
  ███               ███      -WebUI..........: 1.0.143-1
 █████             █████     -Sophomorix.....: 3.80.0-1

Danke für einen guten Tipp …
Michael

Hallo Michael,

Anscheinend fehlt dieses Zertifikat :

Mehr kann ich nicht sagen …

Gruß

Arnaud

Hi Arnaud. Ja, ich frage mich nur, wie es dahin gelangt ist bzw warum es hier fehlt. Ich habe mir gerade ein gültiges firewall.cert nach /etc/linuxmuster/ssl/ kopiert. Jetzt sieht die Fehlermeldung bei linuxmuster-import-subnets so aus:

Zunächst läuft alles fehlerfrei ... bis:
#### * Upload finished successfully.                                      ####
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 326, in connect
    ssl_context=context)
  File "/usr/lib/python3/dist-packages/urllib3/util/ssl_.py", line 332, in ssl_wrap_socket
    return context.wrap_socket(sock, server_hostname=server_hostname)
  File "/usr/lib/python3.6/ssl.py", line 407, in wrap_socket
    _context=self, _session=session)
  File "/usr/lib/python3.6/ssl.py", line 817, in __init__
    self.do_handshake()
  File "/usr/lib/python3.6/ssl.py", line 1077, in do_handshake
    self._sslobj.do_handshake()
  File "/usr/lib/python3.6/ssl.py", line 689, in do_handshake
    self._sslobj.do_handshake()
ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:852)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 440, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='firewall', port=443): Max retries exceeded with url: /api/routes/routes/reconfigure (Caused by SSLError(SSLError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:852)'),))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/sbin/linuxmuster-import-subnets", line 454, in <module>
    changed = firewallApi('post', '/routes/routes/reconfigure')
  File "/usr/lib/linuxmuster/functions.py", line 536, in firewallApi
    req = requests.post(url, verify=constants.FWFULLCHAIN, auth=(apikey, apisecret))
  File "/usr/lib/python3/dist-packages/requests/api.py", line 112, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 58, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 520, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 630, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 506, in send
    raise SSLError(e, request=request)
requests.exceptions.SSLError: HTTPSConnectionPool(host='firewall', port=443): Max retries exceeded with url: /api/routes/routes/reconfigure (Caused by SSLError(SSLError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:852)'),))

Wie gelangt bei Euch ein gülitges LE-Zert der Firewall auf den Server? Warum fehlt das hier?
Danke – Michael

Hallo Michael,

Hat jemand von Euch eine Idee, was da schief gelaufen ist?

es steht doch genau da was er macht:

[code]

Reading setup data:

Hallo Holger.
Ich fürchte, dass Deine Antwort nicht vollständig übergekommen ist?

Hallo Michael,

Reading setup data:

Ich fürchte, dass Deine Antwort nicht vollständig übergekommen ist?

… ich hasse es, wenn Discourse das macht …
Ich hatte doch extra Code Tags verwendet.

hier nochmal.

LG

Holger

Hallo Michael,

Hat jemand von Euch eine Idee, was da schief gelaufen ist?

es steht doch genau da was er macht:

Reading setup data:
Server address: 10.16.1.1
Server network: 10.16.0.0/12

er nimmt die subnetmask aus der setup data.
Das Problem hatte ich auch, weil da bei mir auch das falsche drin stand.
Schau mal meinen Tread dazu an: dürfte 4 Wochen her sein.

LG

Holger