Bug #564
hda-change-netmask does not retain settings after reboot
0%
Description
I can apply
rpm -Uvh http://alpha.amahi.org/tmp/hdactl-3.4.2.1-1.i686.rpm
Then run
hda-change-netmask 255.255.255.128
This works great....changes my netmask to 255.255.255.128 and also changes the dhcp range to 192.168.100-192.168.1.126
I can run the network service restart and settings stay.
Problem occurs after reboot.
/etc/dhcp/dhcpd.conf gets overwritten after reboot.
If I try to run
hda-change-netmask 255.255.255.128
Error returns that no such file in /usr/bin....yadayada
History
#1 Updated by volkswagner almost 12 years ago
It appears a reboot is not needed to break the http://alpha.amahi.org/tmp/hdactl-3.4.2.1-1.i686.rpm
It seems soon after running hda-change-netmask It breaks the dhcpd.conf file.
See additional notes here: http://fpaste.org/ztOG/
#2 Updated by cpg almost 12 years ago
- Status changed from New to Assigned
- Assignee set to cpg
well, i took a look at the fpaste above, and, while it may contain enough information to indicate what's going on, it's not really legible to be, as it's really a list of notes or something.
further, two people have been running with this patch without issues, me one of them.
can you clarify how to exactly reproduce the issue you are having?
(or describe the exact blow-by-blow on a per-line basis referencing the fpaste line numbers)
#3 Updated by volkswagner almost 12 years ago
I am in the process of changing my router.
Perhaps my unstable router setup is sending signals to hda to reset it's network settings.
Since there are two user that can't confirm, I'll update again after my router is changed out.
My attempt to make the notes more cohesive.
The short story, some time after setting the hda-change-netmask command, the system reverts to old htdctl.
Summary of what happens:
################### At Fri Jul 9 13:56:53 EDT 2010, I run the following command ####################### @[root@hda ~]# rpm -Uvh http://alpha.amahi.org/tmp/hdactl-3.4.2.1-1.i686.rpm Retrieving http://alpha.amahi.org/tmp/hdactl-3.4.2.1-1.i686.rpm Preparing... ########################################### [100%] 1:hdactl ########################################### [100%] hda-change-netmask 255.255.255.128@ ############ Approx 5 minutes later I see this in the logs.... seems odd ##################### @ Jul 9 14:02:16 localhost yum: Installed: hdactl-3.4.1-1.i386 Jul 9 14:02:17 localhost hdactl[21478]: caught SIGTERM: exiting hdactl v3.4.2.1. Jul 9 14:02:17 localhost hdactl[21479]: caught SIGTERM: command fifo terminating. Jul 9 14:02:17 localhost hdactl[22227]: starting hdactl v3.4.1.@ ###################### All is good for approx 56 minutes then the config file reverts and the system reverts to hdactl-3.4.1-1 ############ ########### Looking at the following date stamp the dhcpd.conf file is changed by the system with no user input ############### @ls -alt /etc/dhcp/dhcpd.conf -rw-r--r-- 1 root root 1187 2010-07-09 15:01 /etc/dhcp/dhcpd.conf@ Indication in log at time (15:01) system reverts: @Jul 9 15:01:27 localhost yum: Installed: hdactl-3.4.1-1.i386 Jul 9 15:01:28 localhost hdactl[22452]: caught SIGTERM: exiting hdactl v3.4.2.1. Jul 9 15:01:28 localhost hdactl[22453]: caught SIGTERM: command fifo terminating. Jul 9 15:01:28 localhost hdactl[23116]: starting hdactl v3.4.1. Jul 9 15:01:28 localhost hdactl[23119]: command fifo starting ... Jul 9 15:01:29 localhost named[22520]: received control channel command 'freeze volkswagner.com' Jul 9 15:01:29 localhost named[22520]: freezing zone 'volkswagner.com/IN': success Jul 9 15:01:29 localhost named[22520]: received control channel command 'freeze 1.168.192.in-addr.arpa' Jul 9 15:01:29 localhost named[22520]: freezing zone '1.168.192.in-addr.arpa/IN': success Jul 9 15:01:29 localhost named[22520]: received control channel command 'thaw volkswagner.com' Jul 9 15:01:29 localhost named[22520]: thawing zone 'volkswagner.com/IN': success Jul 9 15:01:29 localhost named[22520]: received control channel command 'thaw 1.168.192.in-addr.arpa' Jul 9 15:01:29 localhost named[22520]: thawing zone '1.168.192.in-addr.arpa/IN': success Jul 9 15:01:30 localhost hdactl[23118]: named is enabled Jul 9 15:01:30 localhost named[22520]: received control channel command 'stop' Jul 9 15:01:30 localhost named[22520]: shutting down: flushing changes Jul 9 15:01:30 localhost named[22520]: stopping command channel on 127.0.0.1#953 Jul 9 15:01:30 localhost named[22520]: stopping command channel on ::1#953 Jul 9 15:01:30 localhost named[22520]: no longer listening on 127.0.0.1#53 Jul 9 15:01:30 localhost named[22520]: no longer listening on 192.168.1.2#53 Jul 9 15:01:30 localhost named[22520]: no longer listening on ::1#53 Jul 9 15:01:30 localhost named[22520]: exiting Jul 9 15:01:32 localhost named[23188]: starting BIND 9.6.2-P2-RedHat-9.6.2-5.P2.fc12 -u named Jul 9 15:01:32 localhost named[23188]: built with '--build=i386-redhat-linux-gnu' '--host=i386-redhat-linux-gnu' '--target=i686-redhat-linux-gnu' '--program-prefix=' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib' '--libexecdir=/usr/libexec' '--sharedstatedir=/var/lib' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--with-libtool' '--localstatedir=/var' '--enable-threads' '--enable-ipv6' '--with-pic' '--disable-static' '--disable-openssl-version-check' '--with-dlz-ldap=yes' '--with-dlz-postgres=yes' '--with-dlz-mysql=yes' '--with-dlz-filesystem=yes' '--with-gssapi=yes' '--disable-isc-spnego' 'build_alias=i386-redhat-linux-gnu' 'host_alias=i386-redhat-linux-gnu' 'target_alias=i686-redhat-linux-gnu' 'CFLAGS= -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables' 'CPPFLAGS= -DDIG_SIGCHASE' Jul 9 15:01:32 localhost named[23188]: adjusted limit on open files from 1024 to 1048576 Jul 9 15:01:32 localhost named[23188]: found 1 CPU, using 1 worker thread Jul 9 15:01:32 localhost named[23188]: using up to 4096 sockets Jul 9 15:01:32 localhost named[23188]: loading configuration from '/etc/named.conf' Jul 9 15:01:32 localhost named[23188]: using default UDP/IPv4 port range: [1024, 65535] Jul 9 15:01:32 localhost named[23188]: using default UDP/IPv6 port range: [1024, 65535] Jul 9 15:01:32 localhost named[23188]: listening on IPv4 interface lo, 127.0.0.1#53 Jul 9 15:01:32 localhost named[23188]: listening on IPv4 interface eth0, 192.168.1.2#53 Jul 9 15:01:32 localhost named[23188]: listening on IPv6 interface lo, ::1#53 Jul 9 15:01:32 localhost named[23188]: command channel listening on 127.0.0.1#953 Jul 9 15:01:32 localhost named[23188]: command channel listening on ::1#953 Jul 9 15:01:32 localhost named[23188]: the working directory is not writable Jul 9 15:01:32 localhost named[23188]: zone 1.168.192.in-addr.arpa/IN: loaded serial 1006091901 Jul 9 15:01:32 localhost named[23188]: zone volkswagner.com/IN: loaded serial 1006091901 Jul 9 15:01:32 localhost named[23188]: running Jul 9 15:01:32 localhost hdactl[23118]: named restarted successfully Jul 9 15:01:32 localhost hdactl[23118]: dhcpd is disabled Jul 9 15:01:32 localhost hdactl[23118]: dhcpd not enabled@ ############ The next time's in log for hdactl restarting are as follows ############### @Jul 13 23:47:59 localhost hdactl[21541]: starting hdactl v3.4.1. Jul 13 23:47:59 localhost hdactl[21544]: command fifo starting ... Jul 13 23:48:00 localhost named[23188]: received control channel command 'freeze volkswagner.com' Jul 13 23:48:00 localhost named[23188]: freezing zone 'volkswagner.com/IN': success Jul 13 23:48:00 localhost named[23188]: received control channel command 'freeze 1.168.192.in-addr.arpa' Jul 13 23:48:00 localhost named[23188]: freezing zone '1.168.192.in-addr.arpa/IN': success Jul 13 23:48:00 localhost named[23188]: received control channel command 'thaw volkswagner.com' Jul 13 23:48:00 localhost named[23188]: thawing zone 'volkswagner.com/IN': success Jul 13 23:48:00 localhost named[23188]: zone volkswagner.com/IN: zone serial unchanged. zone may fail to transfer to slaves. Jul 13 23:48:00 localhost named[23188]: zone volkswagner.com/IN: loaded serial 1006091935 Jul 13 23:48:00 localhost named[23188]: received control channel command 'thaw 1.168.192.in-addr.arpa' Jul 13 23:48:00 localhost named[23188]: thawing zone '1.168.192.in-addr.arpa/IN': success Jul 13 23:48:00 localhost named[23188]: zone 1.168.192.in-addr.arpa/IN: zone serial unchanged. zone may fail to transfer to slaves. Jul 13 23:48:00 localhost named[23188]: zone 1.168.192.in-addr.arpa/IN: loaded serial 1006091927 Jul 13 23:48:00 localhost hdactl[21543]: named is enabled Jul 13 23:48:01 localhost smbd[21598]: [2010/07/13 23:48:01, 0] printing/print_cups.c:103(cups_connect) Jul 13 23:48:01 localhost smbd[21598]: Unable to connect to CUPS server localhost:631 - Connection refused Jul 13 23:48:01 localhost smbd[21602]: [2010/07/13 23:48:01, 0] printing/print_cups.c:103(cups_connect) Jul 13 23:48:01 localhost smbd[21602]: Unable to connect to CUPS server localhost:631 - Connection refused Jul 13 23:48:01 localhost named[23188]: received control channel command 'stop' Jul 13 23:48:01 localhost named[23188]: shutting down: flushing changes Jul 13 23:48:01 localhost named[23188]: stopping command channel on 127.0.0.1#953 Jul 13 23:48:01 localhost named[23188]: stopping command channel on ::1#953 Jul 13 23:48:01 localhost named[23188]: no longer listening on 127.0.0.1#53 Jul 13 23:48:01 localhost named[23188]: no longer listening on 192.168.1.2#53 Jul 13 23:48:01 localhost named[23188]: no longer listening on ::1#53 Jul 13 23:48:01 localhost named[23188]: exiting Jul 13 23:48:02 localhost nmbd[18366]: [2010/07/13 23:48:02, 0] nmbd/nmbd.c:130(nmbd_sig_hup_handler) Jul 13 23:48:02 localhost nmbd[18366]: Got SIGHUP dumping debug info. Jul 13 23:48:02 localhost nmbd[18366]: [2010/07/13 23:48:02, 0] nmbd/nmbd_workgroupdb.c:281(dump_workgroups) Jul 13 23:48:02 localhost nmbd[18366]: dump_workgroups() Jul 13 23:48:02 localhost nmbd[18366]: dump workgroup on subnet 192.168.1.2: netmask=255.255.255.128: Jul 13 23:48:02 localhost nmbd[18366]: #011WAGNERHOUSE(1) current master browser = HDA Jul 13 23:48:02 localhost nmbd[18366]: #011#011HDA 40849a23 (volkswagner.com) Jul 13 23:48:02 localhost nmbd[18366]: #011#011LANDISK 40019a03 (LinkStation) Jul 13 23:48:02 localhost nmbd[18366]: #011#011T43 40819a03 (T43 server (Samba, Ubuntu)) Jul 13 23:48:02 localhost nmbd[18366]: #011#011ACER 40011003 () Jul 13 23:48:02 localhost nmbd[18366]: #011#011HPMCE 40011003 (masterbedroom) Jul 13 23:48:02 localhost nmbd[18366]: [2010/07/13 23:48:02, 0] nmbd/nmbd_workgroupdb.c:281(dump_workgroups) Jul 13 23:48:02 localhost nmbd[18366]: dump_workgroups() Jul 13 23:48:02 localhost nmbd[18366]: dump workgroup on subnet UNICAST_SUBNET: netmask= 192.168.1.2: Jul 13 23:48:02 localhost nmbd[18366]: #011WAGNERHOUSE(1) current master browser = UNKNOWN Jul 13 23:48:02 localhost nmbd[18366]: #011#011HDA 40819a23 (volkswagner.com) Jul 13 23:48:04 localhost named[21669]: starting BIND 9.6.2-P2-RedHat-9.6.2-5.P2.fc12 -u named Jul 13 23:48:04 localhost named[21669]: built with '--build=i386-redhat-linux-gnu' '--host=i386-redhat-linux-gnu' '--target=i686-redhat-linux-gnu' '--program-prefix=' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib' '--libexecdir=/usr/libexec' '--sharedstatedir=/var/lib' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--with-libtool' '--localstatedir=/var' '--enable-threads' '--enable-ipv6' '--with-pic' '--disable-static' '--disable-openssl-version-check' '--with-dlz-ldap=yes' '--with-dlz-postgres=yes' '--with-dlz-mysql=yes' '--with-dlz-filesystem=yes' '--with-gssapi=yes' '--disable-isc-spnego' 'build_alias=i386-redhat-linux-gnu' 'host_alias=i386-redhat-linux-gnu' 'target_alias=i686-redhat-linux-gnu' 'CFLAGS= -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables' 'CPPFLAGS= -DDIG_SIGCHASE'@
Also available in: Atom