Bug 822797 - HOSTNAME is not known for systemd startup script
Summary: HOSTNAME is not known for systemd startup script
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: dnsmasq
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Tomáš Hozza
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-05-18 08:07 UTC by Zdenek Kabelac
Modified: 2012-11-27 04:40 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-11-27 04:40:07 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Zdenek Kabelac 2012-05-18 08:07:30 UTC
Description of problem:

My /var/log/messages file has this:

dnsmasq[630]: dnsmasq: bad command line options: try --help

My assumption from looking at:

# systemctl status dnsmasq.service
dnsmasq.service - DNS caching server.
	  Loaded: loaded (/usr/lib/systemd/system/dnsmasq.service; enabled)
	  Active: failed (Result: exit-code) since Thu, 17 May 2012 13:34:35 +0200; 20h ago
	 Process: 630 ExecStart=/usr/sbin/dnsmasq -s $HOSTNAME (code=exited, status=1/FAILURE)
	  CGroup: name=systemd:/system/dnsmasq.service

is that $HOSTNAME is not set.

# cat /etc/sysconfig/network
NETWORKING=yes
NETWORKING_IPV6=no
IPV6FORWARDING=no
IPV6_AUTOCONF=no
HOSTNAME=

# cat /etc/hostname 
linux


Also it looks like there are some conflicts with libvirt package,
which starts its own dnsmasq.


# LANG=C ps aux | grep dnsmasq
nobody     724  0.0  0.0  13096   832 ?        S    May17   0:00 /sbin/dnsmasq --strict-order --bind-interfaces --pid-file=/var/run/libvirt/network/default.pid --conf-file= --except-interface lo --listen-address 192.168.122.1 --dhcp-range 192.168.122.2,192.168.122.254 --dhcp-leasefile=/var/lib/libvirt/dnsmasq/default.leases --dhcp-lease-max=253 --dhcp-no-override

The problem seems to be, that during some 'yum upgrade' this fails to work,
and qemu guests are not getting their DHCP IP addresses.


Version-Release number of selected component (if applicable):
dnsmasq-2.59-5.fc18.x86_64

How reproducible:


Steps to Reproduce:
1. boot rawhide with  dnsmasq.service enabled.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Sandro Mathys 2012-09-05 09:19:00 UTC
I'm having the same issue in F17. There any intent to fix this anytime soon?

Comment 2 Fedora Admin XMLRPC Client 2012-10-22 13:20:43 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 3 Marcos Mello 2012-11-12 16:43:42 UTC
Recent systemd removed HOSTNAME variable from /etc/sysconfig/network

http://pkgs.fedoraproject.org/cgit/systemd.git/commit/?id=0969ad24898347919865e9298fa01e19cec98649

https://fedorahosted.org/fesco/ticket/963

Comment 4 Tomáš Hozza 2012-11-19 10:43:37 UTC
HOSTNAME will be removed from service file. It seems to be the best solution also for Bug 753656.

Comment 5 Tomáš Hozza 2012-11-19 10:59:52 UTC
(In reply to comment #1)
> I'm having the same issue in F17. There any intent to fix this anytime soon?

If you are using libvirt and virt-manager, it starts its own instances of dnsmasq. Then systemctl start dnsmasq.service will most probably fail.

The best thing to do is check journalctl to see the exact reason. When I tired it on F17 dnsmasq didn't start, because it failed to create listening socket for port 53 (address was already in use).

Comment 6 Fedora Update System 2012-11-19 12:29:40 UTC
dnsmasq-2.63-3.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/FEDORA-2012-17789/dnsmasq-2.63-3.fc18

Comment 7 Fedora Update System 2012-11-19 19:34:40 UTC
Package dnsmasq-2.63-3.fc18:
* should fix your issue,
* was pushed to the Fedora 18 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing dnsmasq-2.63-3.fc18'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-17789/dnsmasq-2.63-3.fc18
then log in and leave karma (feedback).

Comment 8 Fedora Update System 2012-11-20 20:23:00 UTC
Package dnsmasq-2.63-4.fc18:
* should fix your issue,
* was pushed to the Fedora 18 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing dnsmasq-2.63-4.fc18'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-17789/dnsmasq-2.63-4.fc18
then log in and leave karma (feedback).

Comment 9 Fedora Update System 2012-11-27 04:40:09 UTC
dnsmasq-2.63-4.fc18 has been pushed to the Fedora 18 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.