ECS: Serviceconsole: "Static routes validation' failed" nadat IP-adres is gewijzigd

Summary: Serviceconsole: "Static routes validation' failed" nadat IP-adres is gewijzigd

This article applies to This article does not apply to This article is not tied to any specific product. Not all product versions are identified in this article.

Symptoms

IP-adressen zijn gewijzigd.

Na de wijziging mislukt de statuscontrole van de serviceconsole met de foutmelding 'Validatie statische routes' mislukt.
20200205 17:23:52.703: |   Static routes validation
INFO: On node 1XX.2XX.1.1 NAN managed static routes configured for networks: ['mgmt']
20200205 17:23:54.563: |   | FAIL (1 sec)
[ERROR] 'Static routes validation' failed: [1XX.2XX.1.1]: Command failed: 'sshpass ssh -q -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o ServerAliveInterval=30  -T  root@1XX.2XX.1.1 $'(1>&2 echo connect7); wicked ifstatus public.mgmt 2>&1' < /dev/null'
Output:
public.mgmt     device-not-running
      link:     #10, state up, mtu 1500
      type:     vlan public[1474], hwaddr a4:bf:01:1f:c3:ea
      config:   compat:suse:/etc/sysconfig/network/ifcfg-public.mgmt
      leases:   ipv4 static failed
      leases:   ipv6 auto granted
      addr:     ipv4 10.1.2.3/24 [static]
      route:    ipv4 10.4.5.6/27 via 10.1.2.1 [static]
      route:    ipv4 10.4.5.7/27 via 10.1.2.1 [static]
      route:    ipv6 default via fe80::218:74ff:fe1c:8640 metric 1024 proto ra
 
In het bovenstaande voorbeeld zijn de IP-adressen voor netwerkscheiding ingeschakeld public.mgmt gewijzigd.

De slechte if-status voor de interface geeft aan dat het apparaat niet actief is.

Om dit te controleren voert u de onderstaande opdracht uit - De leases tonen: IPv4 static failed
viprexec -if ~/VDCLIST wicked ifstatus <interface name> |grep <interface name> -A 4

admin@node-a:~> viprexec -if ~/VDCLIST wicked ifstatus public.mgmt |grep public.mgmt -A 4
Output from host : 1XX.2XX.1.1
public.mgmt     device-not-running
      link:     #10, state up, mtu 1500
      type:     vlan public[1474], hwaddr a4:bf:01:1f:c3:ea
      config:   compat:suse:/etc/sysconfig/network/ifcfg-public.mgmt
      leases:   ipv4 static failed
Output from host : 1XX.2XX.1.2
public.mgmt     device-not-running
      link:     #10, state up, mtu 1500
      type:     vlan public[1474], hwaddr a4:bf:01:1f:c3:eb
      config:   compat:suse:/etc/sysconfig/network/ifcfg-public.mgmt
      leases:   ipv4 static failed
Output from host : 1XX.2XX.1.3
public.mgmt     device-not-running
      link:     #10, state up, mtu 1500
      type:     vlan public[1474], hwaddr a4:bf:01:1f:c3:ec
      config:   compat:suse:/etc/sysconfig/network/ifcfg-public.mgmt
      leases:   ipv4 static failed
Output from host : 1XX.2XX.1.4
public.mgmt     device-not-running
      link:     #10, state up, mtu 1500
      type:     vlan public[1474], hwaddr a4:bf:01:1f:c3:ed
      config:   compat:suse:/etc/sysconfig/network/ifcfg-public.mgmt
      leases:   ipv4 static failed

Cause

Statische routes zijn geconfigureerd op de public.mgmt-interface.

Resolution

Voer de onderstaande opdracht uit om statische routes weer te geven:   
getrackinfo -t

admin@node-a:~> getrackinfo -t
Static route list
=================
Node ID      Network            Netmask                  Gateway           Interface     
1                  10.1.2.23            255.255.255.224   10.1.2.1            public.mgmt
1                  11.2.3.4             255.255.255.0     11.2.3.1            public.mgmt
2                  10.1.2.23            255.255.255.224   10.1.2.1            public.mgmt
2                  11.2.3.4             255.255.255.0     11.2.3.1            public.mgmt
3                  10.1.2.23            255.255.255.224   10.1.2.1            public.mgmt
3                  11.2.3.4             255.255.255.0     11.2.3.1            public.mgmt
4                  10.1.2.23            255.255.255.224   10.1.2.1            public.mgmt
4                  11.2.3.4             255.255.255.0     11.2.3.1            public.mgmt
Stel in bovenstaand voorbeeld dat 10.1.2.23 de oude routes waren die een Secure Remote Services (SRS) Gateway zijn, terwijl de nieuwe 11.2.3.4 is.

Nu kan het de slechte interface niet opnieuw activeren met de oude routes op hun plaats. De routes moeten eerst worden verwijderd.

Waarschuwing: Zorg ervoor dat u controleert of er geen productieverkeer over deze route loopt voordat u deze verwijdert. Het verwijderen van de verkeerde route kan leiden tot DU. Vraag toestemming om deze wijziging door te voeren voordat u een van de routes verwijdert!

Eenmaal overeengekomen, verwijdert u de oude routes.

De routes kunnen één voor één worden verwijderd of door een bestand aan te maken met alle commando's. De opdracht is:    
sudo setrackinfo --static-route-del <node id> <destination> <netmask> <gateway> <interface>
U kunt ook rechtstreeks kopiëren en plakken vanuit de uitvoer van getrackinfo -t

Maak bijvoorbeeld een bestand:    
vi delete-old-routes
Voer de lijst met routes in om:    
sudo setrackinfo --static-route-del 1                  10.1.2.23            255.255.255.224   10.1.2.1            public.mgmt
sudo setrackinfo --static-route-del 2                  10.1.2.23            255.255.255.224   10.1.2.1            public.mgmt
sudo setrackinfo --static-route-del 3                  10.1.2.23            255.255.255.224   10.1.2.1            public.mgmt
sudo setrackinfo --static-route-del 4                  10.1.2.23            255.255.255.224   10.1.2.1            public.mgmt
Sla het bestand op en maak het uitvoerbaar:    
chmod +x delete-old-routes
Voer het bestand uit:    
./delete-old-routes
Slechte interfaces zouden nu moeten veranderen in up:
viprexec -if ~/VDCLIST wicked ifstatus <interface name> |grep <interface name> -A 1
viprexec -if ~/VDCLIST wicked ifstatus public.mgmt |grep public.mgmt -A 1
Output from host : 1XX.2XX.1.1
public.mgmt     up
Output from host : 1XX.2XX.1.2
public.mgmt     up
Output from host : 1XX.2XX.1.3
public.mgmt     up
Output from host : 1XX.2XX.1.4
public.mgmt     up

Affected Products

ECS Appliance

Products

ECS Appliance, ECS Appliance Hardware Series, ECS Appliance Software with Encryption, ECS Appliance Software without Encryption
Article Properties
Article Number: 000058102
Article Type: Solution
Last Modified: 26 Apr 2024
Version:  4
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.