Koozali.org: home of the SME Server

DHCP and UPDATES

Offline p-jones

  • *
  • 594
  • +0/-0
DHCP and UPDATES
« on: December 10, 2022, 03:11:44 AM »
Anyone else got a bricked DHCP server after this weeks updates ??
...

Offline Jean-Philippe Pialasse

  • *
  • 2,747
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: DHCP and UPDATES
« Reply #1 on: December 10, 2022, 06:12:17 AM »
what do you mean by brick ? I you say by phone to your car specialist my car does not work, he will need more details to help you.
what is your server mode ?
any contribs ?
what exact updates ?

just did the update on few servers with or without network contribs and dhcpd was working after



Offline p-jones

  • *
  • 594
  • +0/-0
Re: DHCP and UPDATES
« Reply #2 on: December 10, 2022, 06:24:46 AM »
...

Offline TerryF

  • grumpy old man
  • *
  • 1,821
  • +6/-0
Re: DHCP and UPDATES
« Reply #3 on: December 11, 2022, 03:12:43 AM »
see Bug for proposed resolution, further testing then update expected
--
qui scribit bis legit

Offline TerryF

  • grumpy old man
  • *
  • 1,821
  • +6/-0
Re: DHCP and UPDATES
« Reply #4 on: December 15, 2022, 08:33:28 PM »
e-smith-base update is in smeupdates-testing new bridge-interface package is in /smetest for same see Bu8 12271 and 12257
--
qui scribit bis legit

Offline pmulroney

  • *
  • 35
  • +0/-0
Re: DHCP and UPDATES
« Reply #5 on: December 21, 2022, 02:03:15 AM »
I got that DHCP failed to start after a server update this morning.

Here's the dhcpd.log file entry:

Code: [Select]
Dec 21 08:49:43 mail dhcpd: Internet Systems Consortium DHCP Server 4.2.5
Dec 21 08:49:43 mail dhcpd: Copyright 2004-2013 Internet Systems Consortium.
Dec 21 08:49:43 mail dhcpd: All rights reserved.
Dec 21 08:49:43 mail dhcpd: For info, please visit https://www.isc.org/software/dhcp/
Dec 21 08:49:43 mail dhcpd: WARNING: Host declarations are global.  They are not limited to the scope you declared them in.
Dec 21 08:49:43 mail dhcpd: Not searching LDAP since ldap-server, ldap-port and ldap-base-dn were not specified in the config file
Dec 21 08:49:43 mail dhcpd: Wrote 0 deleted host decls to leases file.
Dec 21 08:49:43 mail dhcpd: Wrote 0 new dynamic host decls to leases file.
Dec 21 08:49:43 mail dhcpd: Wrote 141 leases to leases file.
Dec 21 08:49:43 mail dhcpd:
Dec 21 08:49:43 mail dhcpd: No subnet declaration for eth0 (no IPv4 addresses).
Dec 21 08:49:43 mail dhcpd: ** Ignoring requests on eth0.  If this is not what
Dec 21 08:49:43 mail dhcpd:   you want, please write a subnet declaration
Dec 21 08:49:43 mail dhcpd:   in your dhcpd.conf file for the network segment
Dec 21 08:49:43 mail dhcpd:   to which interface eth0 is attached. **
Dec 21 08:49:43 mail dhcpd:
Dec 21 08:49:43 mail dhcpd:
Dec 21 08:49:43 mail dhcpd: Not configured to listen on any interfaces!
Dec 21 08:49:43 mail dhcpd:
Dec 21 08:49:43 mail dhcpd: This version of ISC DHCP is based on the release available
Dec 21 08:49:43 mail dhcpd: on ftp.isc.org.  Features have been added and other changes
Dec 21 08:49:43 mail dhcpd: have been made to the base software release in order to make
Dec 21 08:49:43 mail dhcpd: it work better with this distribution.
Dec 21 08:49:43 mail dhcpd:
Dec 21 08:49:43 mail dhcpd: Please report for this software via the CentOS Bugs Database:
Dec 21 08:49:43 mail dhcpd:    http://bugs.centos.org/
Dec 21 08:49:43 mail dhcpd:
Dec 21 08:49:43 mail dhcpd: exiting.

What do I need to do to resolve this?

Offline TerryF

  • grumpy old man
  • *
  • 1,821
  • +6/-0
Re: DHCP and UPDATES
« Reply #6 on: December 21, 2022, 02:44:47 AM »
If no bridge interface

http://mirror.canada.pialasse.com/releases/10/smeupdates-testing/x86_64/RPMS/e-smith-base-5.8.1-23.el7.sme.x86_64.rpm

Then add a comment to the bug that it did the job,

https://bugs.koozali.org/show_bug.cgi?id=12257

and if have the bridge interface installed as well

http://mirror.canada.pialasse.com/releases/10/smetest/x86_64/RPMS/smeserver-bridge-interface-0.2-8.el7.sme.noarch.rpm

and its bug to also add comments

https://bugs.koozali.org/show_bug.cgi?id=12271

When they are both verified as working will be moved to updates and contribs
« Last Edit: December 21, 2022, 02:46:32 AM by TerryF »
--
qui scribit bis legit

Offline pmulroney

  • *
  • 35
  • +0/-0
Re: DHCP and UPDATES
« Reply #7 on: December 21, 2022, 03:44:05 AM »
Thank you! It’s a challenge to get this installed because it’s also our gateway server. Had to copy over in thumb drive. Also had to use rpm —force -i {file} because it said the config files clashed. I’m typing on my phone to enter this. When it’s all back online again, I’ll post more details.

Offline pmulroney

  • *
  • 35
  • +0/-0
Re: DHCP and UPDATES
« Reply #8 on: December 21, 2022, 03:57:15 AM »
I removed the vpnserver and bridge interface, restarted
I then downloaded and copied onto the server e-smith-base-5.8.1-23.el7.sme.x86_64.rpm via thumb drive because the network is broken
Code: [Select]
rpm --force -i e-smith-base-5.8.1-23.el7.sme.x86_64.rpm
signal-event e-smith-base-update
signal-event post-upgrade; signal-event reboot
systemctl status dhcpd says that it's running
but I can't get an address on my workstations
I also can't access the outside world.
I've also tried to login as admin and run the server config, and after reboot no change.

It seems that I've screwed up my network config somehow.  Is there a way to roll back an update?

Offline TerryF

  • grumpy old man
  • *
  • 1,821
  • +6/-0
Re: DHCP and UPDATES
« Reply #9 on: December 21, 2022, 04:48:51 AM »
suspect the removal of sofether may be the issue..

is system server/gateway or server only

what eth port are you now using? swap the eth cables around

--
qui scribit bis legit

Offline pmulroney

  • *
  • 35
  • +0/-0
Re: DHCP and UPDATES
« Reply #10 on: December 21, 2022, 04:54:42 AM »
Thanks @TerryF!

That was indeed the problem - I swapped ethernet cables and it seems to be working now.

My server is setup as server/gateway.  I removed the softether VPN thinking that it would simplify the problem, but what it did was swap the ethernet configs.

I had to re-run the admin > configure server option and pay close attention to the mac addresses of the ethernet cards, then problem sorted.

Offline p-jones

  • *
  • 594
  • +0/-0
Re: DHCP and UPDATES
« Reply #11 on: December 22, 2022, 10:15:42 AM »
I applied the 2 patches that were pushed out today and the DHCP server came to life again.

Later in the day I shut it down. Bought it back up, did a reconfigure & restart and now the DHCP doesnt work again.


adjusting non-supervised dhcpd (start)
Dec 22 22:07:49 server2 esmith::event[10642]: Job for dhcpd.service failed because the control process exited with error code. See "systemctl status dhcpd.service" and "journalctl -xe" for details.
Dec 22 22:07:49 server2 esmith::event[10642]: serviceControl: Couldn't system( /usr/bin/systemctl start dhcpd.service): No such file or directory
Dec 22 22:07:49 server2 esmith::event[10642]: adjusting non-supervised dhcpd (sigterm)
Dec 22 22:07:49 server2 esmith::event[10642]: Job for dhcpd.service failed because the control process exited with error code. See "systemctl status dhcpd.service" and "journalctl -xe" for details.
Dec 22 22:07:49 server2 esmith::event[10642]: serviceControl: Couldn't system( /usr/bin/systemctl restart dhcpd.service): No such file or directory
Dec 22 22:07:49 server2 esmith::event[10642]: adjusting non-supervised nmbd (start)
Dec 22 22:07:49 server2 esmith::event[10642]: adjusting non-supervised nmbd (sigterm)
Dec 22 22:07:50 server2 esmith::event[10642]: adjusting non-supervised smbd (start)
Dec 22 22:07:50 server2 esmith::event[10642]: adjusting non-supervised smbd (sigterm)
Dec 22 22:07:51 server2 esmith::event[10642]: adjust-services=action|Event|workgroup-update|Action|adjust-services|Start|1671700068 975008|End|1671700071 60935|Elapsed|2.085927


 
...

Offline TerryF

  • grumpy old man
  • *
  • 1,821
  • +6/-0
Re: DHCP and UPDATES
« Reply #12 on: December 22, 2022, 10:25:38 AM »
two patches? so you were also running the bridge interface?
--
qui scribit bis legit

Offline p-jones

  • *
  • 594
  • +0/-0
Re: DHCP and UPDATES
« Reply #13 on: December 22, 2022, 10:28:43 AM »
Yes. The Open VPN Bridge
...

Offline p-jones

  • *
  • 594
  • +0/-0
Re: DHCP and UPDATES
« Reply #14 on: December 22, 2022, 10:46:31 AM »
I should also add that I could not shut it down from the GUI management screen. I had to shut it down from the command line.

That is the reason for the reconfig/reboot and the rest is as above.
...