NethServer / dev

NethServer issue tracker
https://github.com/NethServer/dev/issues
63 stars 20 forks source link

NIC remapping lockout #5334

Closed DavidePrincipi closed 7 years ago

DavidePrincipi commented 7 years ago

At the end of configuration restore, the NIC remapping procedure puts the server in unreachable state.

Steps to reproduce

Expected behavior

Access the server with the new IP configuration

Actual behavior

The Server is unreachable. In /var/log/messages:

Jul 12 10:51:25 srv1 esmith::event[14531]: Event: interface-update eth0 e0 eth1 e1
Jul 12 10:51:26 srv1 esmith::event[14531]: Action: /etc/e-smith/events/interface-update/S02dhcp-range-cleanup SUCCESS [1.053298]
Jul 12 10:51:26 srv1 systemd: Stopping LSB: Bring up/down networking...
Jul 12 10:51:29 srv1 network: Shutting down interface e0:  [  OK  ]
Jul 12 10:51:31 srv1 network: Shutting down interface e1:  [  OK  ]
Jul 12 10:51:32 srv1 network: Shutting down loopback interface:  [  OK  ]
Jul 12 10:51:32 srv1 systemd: Stopped LSB: Bring up/down networking.
Jul 12 10:51:32 srv1 esmith::event[14531]: Action: /etc/e-smith/events/interface-update/S04network-stop SUCCESS [6.445951]
Jul 12 10:51:33 srv1 esmith::event[14531]: expanding /etc/hosts
Jul 12 10:51:34 srv1 dbus-daemon: dbus[813]: [system] Activating via systemd: service name='org.freedesktop.timedate1' unit='dbus-org.freedesktop.timedate1.service'
Jul 12 10:51:34 srv1 dbus[813]: [system] Activating via systemd: service name='org.freedesktop.timedate1' unit='dbus-org.freedesktop.timedate1.service'
Jul 12 10:51:34 srv1 systemd: Starting Time & Date Service...
Jul 12 10:51:34 srv1 dbus-daemon: dbus[813]: [system] Successfully activated service 'org.freedesktop.timedate1'
Jul 12 10:51:34 srv1 dbus[813]: [system] Successfully activated service 'org.freedesktop.timedate1'
Jul 12 10:51:34 srv1 systemd: Started Time & Date Service.
Jul 12 10:51:34 srv1 esmith::event[14531]: expanding /etc/resolv.conf
Jul 12 10:51:34 srv1 esmith::event[14531]: expanding /etc/dnsmasq.conf
Jul 12 10:51:34 srv1 esmith::event[14531]: expanding /etc/modprobe.d/bonding.conf
Jul 12 10:51:34 srv1 esmith::event[14531]: expanding /etc/sysconfig/network
Jul 12 10:51:34 srv1 esmith::event[14531]: expanding /etc/sysconfig/pnppserver
Jul 12 10:51:34 srv1 esmith::event[14531]: expanding /etc/ppp/chap-secrets
Jul 12 10:51:34 srv1 esmith::event[14531]: expanding /etc/ppp/pap-secrets
Jul 12 10:51:34 srv1 esmith::event[14531]: expanding /etc/asterisk/iax_general_nethesis.conf
Jul 12 10:51:34 srv1 esmith::event[14531]: expanding /etc/httpd/conf.d/nethvoice.conf
Jul 12 10:51:34 srv1 esmith::event[14531]: Action: /etc/e-smith/events/actions/generic_template_expand SUCCESS [2.245815]
Jul 12 10:51:35 srv1 esmith::event[14531]: Action: /etc/e-smith/events/interface-update/S20interface-rename SUCCESS [1.075306]
Jul 12 10:51:37 srv1 esmith::event[14531]: Action: /etc/e-smith/events/interface-update/S21adjust-fixnetwork-flag SUCCESS [1.238668]
Jul 12 10:51:37 srv1 esmith::event[14531]: Action: /etc/e-smith/events/interface-update/S25interface-config-reset SUCCESS [0.088846]
Jul 12 10:51:38 srv1 esmith::event[14531]: Action: /etc/e-smith/events/interface-update/S30interface-config-write SUCCESS [1.074021]
Jul 12 10:51:39 srv1 esmith::event[14531]: Action: /etc/e-smith/events/interface-update/S40interface-config-write-pppoe SUCCESS [1.045248]
Jul 12 10:51:40 srv1 esmith::event[14531]: Action: /etc/e-smith/events/interface-update/S70nethvoice-update-ip SUCCESS [1.157366]
Jul 12 10:51:40 srv1 systemd: Starting LSB: Bring up/down networking...
Jul 12 10:51:41 srv1 network: Bringing up loopback interface:  [  OK  ]
Jul 12 10:51:42 srv1 network: Bringing up interface eth0:  ERROR    : [/etc/sysconfig/network-scripts/ifup-eth] Device eth0 does not seem to be present, delaying initialization.
Jul 12 10:51:42 srv1 /etc/sysconfig/network-scripts/ifup-eth: Device eth0 does not seem to be present, delaying initialization.
Jul 12 10:51:42 srv1 network: [FAILED]
Jul 12 10:51:43 srv1 network: Bringing up interface eth1:  ERROR    : [/etc/sysconfig/network-scripts/ifup-eth] Device eth1 does not seem to be present, delaying initialization.
Jul 12 10:51:43 srv1 /etc/sysconfig/network-scripts/ifup-eth: Device eth1 does not seem to be present, delaying initialization.
Jul 12 10:51:43 srv1 network: [FAILED]
Jul 12 10:51:43 srv1 systemd: network.service: control process exited, code=exited status=1
Jul 12 10:51:43 srv1 systemd: Failed to start LSB: Bring up/down networking.
Jul 12 10:51:43 srv1 systemd: Unit network.service entered failed state.
Jul 12 10:51:43 srv1 systemd: network.service failed.
Jul 12 10:51:43 srv1 esmith::event[14531]: Job for network.service failed because the control process exited with error code. See "systemctl status network.service" and "journalctl -xe" for details.
Jul 12 10:51:43 srv1 esmith::event[14531]: Action: /etc/e-smith/events/interface-update/S70network-start FAILED: 1 [3.36006]

Components

nethserver-base-3.0.33-1.ns7.noarch


Thanks to @filippocarletti for reporting it

DavidePrincipi commented 7 years ago

In nethserver-testing: nethserver-base-3.0.33-1.8.ga734b38.ns7.noarch.rpm

filippocarletti commented 7 years ago
 nethserver-backup-config              noarch             2.0.0-1.ns7                          nethserver-updates              48 k
 nethserver-collectd                   noarch             3.0.6-1.ns7                          nethserver-updates              23 k
 nethserver-dnsmasq                    noarch             1.6.4-1.5.g5b68e84.ns7               nethserver-testing              40 k
 nethserver-firewall-base              noarch             3.2.4-1.ns7                          nethserver-updates              89 k
 nethserver-httpd                      noarch             3.1.4-1.ns7                          nethserver-updates              48 k
 nethserver-httpd-admin                noarch             2.0.11-1.ns7                         nethserver-updates             1.6 M
 nethserver-lang-en                    noarch             1.2.0-1.ns7                          nethserver-updates              22 k
 nethserver-lang-it                    noarch             1.2.0-1.ns7                          nethserver-updates             116 k
 nethserver-letsencrypt                noarch             1.1.4-1.ns7                          nethserver-updates              20 k
 nethserver-lib                        noarch             2.2.5-1.ns7                          nethserver-updates              97 k
 nethserver-lsm                        noarch             1.2.3-1.ns7                          nethserver-updates              21 k
 nethserver-mail-smarthost             noarch             0.1.1-1.ns7                          nethserver-updates              27 k
 nethserver-ntp                        noarch             1.1.3-1.ns7                          nethserver-updates              29 k
 nethserver-openssh                    noarch             1.2.1-1.ns7                          nethserver-updates              29 k
 nethserver-release                    noarch             7-3.ns7                              nethserver-updates              23 k
 nethserver-sssd                       noarch             1.3.0-1.ns7                          nethserver-updates              98 k

[root@mail ~]# rpm -q nethserver-base
nethserver-base-3.0.33-1.8.ga734b38.ns7.noarch

After network card assignment: Jul 21 15:11:17 mail esmith::event[12428]: Event: interface-update SUCCESS

DavidePrincipi commented 7 years ago

In nethserver-updates: nethserver-base-3.0.34-1.ns7.noarch.rpm