Modify

Ticket #3997 (closed defect: invalid)

Opened 14 months ago

Last modified 14 months ago

DHCP does not start if you change network ranges

Reported by: mburillo@… Owned by: jacalvo@…
Milestone: 2.2.X Component: dhcp
Severity: normal Keywords: dhcp subnet change
Cc: j2@…

Description

If you have a configured DHCP range and then you change the subnet for that interface (i.e. 192.168.20.0/24 -> 10.0.4.0/8) DHCP fails to restart, probably due to obsolete config.

Attachments

Change History

comment:1 Changed 14 months ago by jamor@…

Confirmed.

This is due to network observer 'frreIface' called before staticIfaceAddressChanged

comment:2 Changed 14 months ago by j2@…

  • Cc j2@… added

WOuld this behaviour be trigged by only changing the IP within the same range?

I changed IP from 192.168.41.254 - > 192.168.41.2 and that seem to have broken DHCP.

comment:3 Changed 14 months ago by jamor@…

As you have experimented, changing the IP triggers it. It removes all the configuration for the interface and disables the DHCP modules

comment:4 Changed 14 months ago by jamor@…

  • Status changed from new to closed
  • Resolution set to invalid

Sorry, but after close examination this behaviour is expected. The change in the interface invalidates tits DHCP configuration and if they are not more configured interfaces the module is disabled.

In fact when you do this change i the interfaces page you will see this message:

The change you are trying to make will affect the configuration of one or more modules that use references to this network interface.

If you choose to continue, all modules that make use of the current configuration of this network interface will delete the relevant parts of their configuration. Choose "Cancel" if you are not sure about this. 

The changes that will invalidate the DHCP configuration is any that will invalidate the IP addresses. In j2 case probably the new ip address overlapped with a configured range or a fixed address.

Regards,

Javier

comment:5 Changed 14 months ago by j2@…

Well, then I am a bit confused. Or rather, this would indicate that I do not have the same issue really despite the same "trigger". Because in my case I get stuck with a message saying

"the followin packages are not properöy installed. You need to fix this before trying to use them or install new modules

Component Description Version zentyal-dhcp Zentyal - DHCP Service 2.2.1

Should I open a new ticket for my problem?

comment:6 Changed 14 months ago by jamor@…

Hello j2,

this a different problem, it means that the software package of zentyal-dhcp is not properly installed. So it is not wonder you have problems with it.

Open a terminal and try this two commands:

sudo apt-get update
sudo apt-get -f install

Regards,

Javier

comment:7 Changed 14 months ago by j2@…

Yeah, i realize that it's a software problem. But it started when i changed an interface. So, i thought it might be connected.

Anyway: (I hope that the few swedish words doesnt get in your way to much ;) )

j2@timevortex:~$ sudo apt-get -f install [sudo] password for j2: Läser paketlistor... Färdig Bygger beroendeträd Läser tillståndsinformation... Färdig 0 att uppgradera, 0 att nyinstallera, 0 att ta bort och 4 att inte uppgradera. 1 är inte helt installerade eller borttagna. Efter denna åtgärd kommer ytterligare 0B utrymme användas på disken. Ställer in zentyal-dhcp (2.2.1) ... This service has no protocols configureddpkg: fel vid hantering av zentyal-dhcp (--configure):

underprocess installerade post-installation-skript gav felkod 255

Fel uppstod vid hantering:

zentyal-dhcp

E: Sub-process /usr/bin/dpkg returned an error code (1) j2@timevortex:~$

j2@timevortex:/var/log/zentyal$ tail zentyal.log software.log error.log ==> zentyal.log <== 2012/03/23 09:17:05 INFO> EventDaemon?.pm:307 EBox::EventDaemon::_loadModules - EBox::Event::Dispatcher::Log loaded from registeredDispatchers 2012/03/23 10:14:11 DEBUG> ServiceTable?.pm:348 EBox::Services::Model::ServiceTable::setService - This service has no protocols configured 2012/03/23 10:17:04 INFO> Service.pm:716 EBox::Module::Service::restartService - Restarting service for module: events 2012/03/23 10:17:06 INFO> EventDaemon?.pm:307 EBox::EventDaemon::_loadModules - EBox::Event::Watcher::EBackup loaded from registeredEvents 2012/03/23 10:17:06 INFO> EventDaemon?.pm:307 EBox::EventDaemon::_loadModules - EBox::Event::Dispatcher::Log loaded from registeredDispatchers 2012/03/23 10:17:17 INFO> GlobalImpl?.pm:539 EBox::GlobalImpl::saveAllModules - Saving config and restarting services: firewall logs 2012/03/23 10:17:17 INFO> Base.pm:228 EBox::Module::Base::save - Restarting service for module: firewall 2012/03/23 10:17:19 INFO> Base.pm:228 EBox::Module::Base::save - Restarting service for module: logs 2012/03/23 10:17:19 INFO> GlobalImpl?.pm:653 EBox::GlobalImpl::saveAllModules - Changes saved successfully 2012/03/23 10:17:43 DEBUG> ServiceTable?.pm:348 EBox::Services::Model::ServiceTable::setService - This service has no protocols configured

==> software.log <== 2012-03-23 00:05:30> Processing triggers for ureadahead ... 2012-03-23 00:05:30> ureadahead will be reprofiled on next reboot 2012-03-23 00:05:30> Setting up zentyal-dhcp (2.2.1) ... 2012-03-23 00:05:32> This service has no protocols configureddpkg: error processing zentyal-dhcp (--configure): 2012-03-23 00:05:32> subprocess installed post-installation script returned error exit status 255 2012-03-23 00:05:32> Errors were encountered while processing: 2012-03-23 00:05:32> zentyal-dhcp 2012-03-23 00:05:32> E: Sub-process /usr/bin/dpkg returned an error code (1) 2012-03-23 00:05:32> Deleting /var/lib/zentyal/dpkg_running 2012-03-23 00:05:32> Zentyal apt-wrapper install finished

==> error.log <== Use of uninitialized value $title in concatenation (.) or string at /usr/share/perl5/EBox/Html.pm line 159. Reconnecting to redis server (1 try)... at /usr/share/perl5/EBox/Config/Redis.pm line 706. Reconnecting to redis server (1 try)... at /usr/share/perl5/EBox/Config/Redis.pm line 706. Reconnecting to redis server (1 try)... at /usr/share/perl5/EBox/Config/Redis.pm line 706. Use of uninitialized value $class in string ne at /usr/share/zentyal/templates/msg.mas line 18. Use of uninitialized value $class in string ne at /usr/share/zentyal/templates/msg.mas line 18. Use of uninitialized value $class in string ne at /usr/share/zentyal/templates/msg.mas line 18. Use of uninitialized value $class in string ne at /usr/share/zentyal/templates/msg.mas line 18. Reconnecting to redis server (1 try)... at /usr/share/perl5/EBox/Config/Redis.pm line 706. Reconnecting to redis server (1 try)... at /usr/share/perl5/EBox/Config/Redis.pm line 706. j2@timevortex:/var/log/zentyal$

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.