illegal domain novalocal in /var/lib/nova/networks/nova-br100.conf

Bug #713434 reported by Christian Berendt
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Medium
Christian Berendt

Bug Description

I tried starting nova-network, but I end in the following error. I couldn't find a flag to change the domain in nova-network --help.

relevant settings in /etc/nova/nova.conf:
--network_manager=nova.network.manager.VlanManager
--fixed_range=192.168.0.0/24
--network_size=5000

Feb 5 00:43:00 mandarin 2011-02-05 00:43:00,818 AUDIT nova.root [-] Starting network node (version 2011.1-workspace:tarmac-20110202111800-10sib5zxlu8xluca)
Feb 5 00:43:01 mandarin sudo: root : TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/sbin/ifconfig br100 192.168.0.1 broadcast 192.168.0.127 netmask 255.255.255.128 up
Feb 5 00:43:01 mandarin sudo: root : TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/usr/sbin/iptables --delete FORWARD --in-interface br100 -j ACCEPT
Feb 5 00:43:01 mandarin sudo: root : TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/usr/sbin/iptables -I FORWARD --in-interface br100 -j ACCEPT
Feb 5 00:43:01 mandarin sudo: root : TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/usr/sbin/iptables --delete FORWARD --out-interface br100 -j ACCEPT
Feb 5 00:43:01 mandarin sudo: root : TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/usr/sbin/iptables -I FORWARD --out-interface br100 -j ACCEPT
Feb 5 00:43:01 mandarin sudo: root : TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/usr/sbin/iptables -N nova-local
Feb 5 00:43:01 mandarin sudo: root : TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/usr/sbin/iptables --delete FORWARD -j nova-local
Feb 5 00:43:01 mandarin sudo: root : TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/usr/sbin/iptables -I FORWARD -j nova-local
Feb 5 00:43:01 mandarin sudo: root : TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/usr/sbin/iptables --delete FORWARD -d 192.168.0.2 -p udp --dport 1194 -j ACCEPT
Feb 5 00:43:01 mandarin sudo: root : TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/usr/sbin/iptables -I FORWARD -d 192.168.0.2 -p udp --dport 1194 -j ACCEPT
Feb 5 00:43:01 mandarin sudo: root : TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/usr/sbin/iptables --delete PREROUTING -t nat -d 127.0.0.1 -p udp --dport 1000 -j DNAT --to 192.168.0.2:1194
Feb 5 00:43:01 mandarin sudo: root : TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/usr/sbin/iptables -I PREROUTING -t nat -d 127.0.0.1 -p udp --dport 1000 -j DNAT --to 192.168.0.2:1194
Feb 5 00:43:01 mandarin sudo: root : TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/usr/sbin/dnsmasq --strict-order --bind-interfaces --conf-file= --pid-file=/var/lib/nova/networks/nova-br100.pid --listen-address=192.168.0.1 --except-interface=lo --dhcp-range=192.168.0.3,static,120s --dhcp-hostsfile=/var/lib/nova/networks/nova-br100.conf --dhcp-script=/usr/bin/nova-dhcpbridge --leasefile-ro
Feb 5 00:43:01 mandarin dnsmasq[5912]: started, version 2.45 cachesize 150
Feb 5 00:43:01 mandarin dnsmasq[5912]: compile time options: IPv6 GNU-getopt no-ISC-leasefile no-DBus no-I18N TFTP
Feb 5 00:43:01 mandarin dnsmasq[5912]: DHCP, static leases only on 192.168.0.3, lease time 2m
Feb 5 00:43:01 mandarin dnsmasq[5912]: reading /etc/resolv.conf
Feb 5 00:43:01 mandarin dnsmasq[5912]: using nameserver 8.8.8.8#53
Feb 5 00:43:01 mandarin dnsmasq[5912]: read /etc/hosts - 7 addresses
Feb 5 00:43:01 mandarin dnsmasq[5912]: read /var/lib/nova/networks/nova-br100.conf
Feb 5 00:43:01 mandarin dnsmasq[5912]: illegal domain novalocal in /var/lib/nova/networks/nova-br100.conf.
Feb 5 00:43:01 mandarin dnsmasq[5912]: illegal domain novalocal in /var/lib/nova/networks/nova-br100.conf.
Feb 5 00:43:01 mandarin dnsmasq[5912]: illegal domain novalocal in /var/lib/nova/networks/nova-br100.conf.
Feb 5 00:43:01 mandarin dnsmasq[5912]: illegal domain novalocal in /var/lib/nova/networks/nova-br100.conf.
Feb 5 00:43:01 mandarin dnsmasq[5912]: illegal domain novalocal in /var/lib/nova/networks/nova-br100.conf.
Feb 5 00:43:01 mandarin dnsmasq[5912]: illegal domain novalocal in /var/lib/nova/networks/nova-br100.conf.
Feb 5 00:43:01 mandarin dnsmasq[5912]: illegal domain novalocal in /var/lib/nova/networks/nova-br100.conf.
Feb 5 00:43:01 mandarin dnsmasq[5912]: illegal domain novalocal in /var/lib/nova/networks/nova-br100.conf.
Feb 5 00:43:01 mandarin dnsmasq[5912]: illegal domain novalocal in /var/lib/nova/networks/nova-br100.conf.
Feb 5 00:43:01 mandarin dnsmasq[5912]: illegal domain novalocal in /var/lib/nova/networks/nova-br100.conf.
Feb 5 00:43:01 mandarin dnsmasq[5912]: illegal domain novalocal in /var/lib/nova/networks/nova-br100.conf.
Feb 5 00:43:01 mandarin dnsmasq[5912]: illegal domain novalocal in /var/lib/nova/networks/nova-br100.conf.
Feb 5 00:43:01 mandarin dnsmasq[5912]: illegal domain novalocal in /var/lib/nova/networks/nova-br100.conf.
Feb 5 00:43:01 mandarin dnsmasq[5912]: illegal domain novalocal in /var/lib/nova/networks/nova-br100.conf.
Feb 5 00:43:01 mandarin sudo: root : TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/usr/sbin/iptables -t nat -N SNATTING
Feb 5 00:43:02 mandarin sudo: root : TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/usr/sbin/iptables -t nat -D POSTROUTING -j SNATTING
Feb 5 00:43:02 mandarin sudo: root : TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/usr/sbin/iptables -t nat -A POSTROUTING -j SNATTING
Feb 5 00:43:02 mandarin sudo: root : TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/usr/sbin/iptables --delete SNATTING -t nat -s 192.168.0.0/24 -j SNAT --to-source 127.0.0.1
Feb 5 00:43:02 mandarin sudo: root : TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/usr/sbin/iptables -A SNATTING -t nat -s 192.168.0.0/24 -j SNAT --to-source 127.0.0.1
Feb 5 00:43:02 mandarin sudo: root : TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/usr/sbin/iptables --delete POSTROUTING -t nat -s 192.168.0.0/24 -d 10.128.0.0/24 -j ACCEPT
Feb 5 00:43:02 mandarin sudo: root : TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/usr/sbin/iptables -I POSTROUTING -t nat -s 192.168.0.0/24 -d 10.128.0.0/24 -j ACCEPT
Feb 5 00:43:02 mandarin sudo: root : TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/usr/sbin/iptables --delete POSTROUTING -t nat -s 192.168.0.0/24 -d 192.168.0.0/24 -j ACCEPT
Feb 5 00:43:02 mandarin sudo: root : TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/usr/sbin/iptables -I POSTROUTING -t nat -s 192.168.0.0/24 -d 192.168.0.0/24 -j ACCEPT
Feb 5 00:43:02 mandarin sudo: root : TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/usr/sbin/iptables --delete PREROUTING -t nat -s 0.0.0.0/0 -d 169.254.169.254/32 -p tcp -m tcp --dport 80 -j DNAT --to-destination 127.0.0.1:8773
Feb 5 00:43:02 mandarin sudo: root : TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/usr/sbin/iptables -I PREROUTING -t nat -s 0.0.0.0/0 -d 169.254.169.254/32 -p tcp -m tcp --dport 80 -j DNAT --to-destination 127.0.0.1:8773
Feb 5 00:43:02 mandarin 2011-02-05 00:43:02,229 CRITICAL nova.root [-] list index out of range (nova.root): TRACE: Traceback (most recent call last): (nova.root): TRACE: File "/usr/bin/nova-dhcpbridge", line 131, in <module> (nova.root): TRACE: main() (nova.root): TRACE: File "/usr/bin/nova-dhcpbridge", line 122, in main (nova.root): TRACE: hostname = argv[4] (nova.root): TRACE: IndexError: list index out of range (nova.root): TRACE:
Feb 5 00:43:02 mandarin dnsmasq[5912]: child process exited with status 1
Feb 5 00:43:02 mandarin 2011-02-05 00:43:02,549 CRITICAL nova.root [-] list index out of range (nova.root): TRACE: Traceback (most recent call last): (nova.root): TRACE: File "/usr/bin/nova-dhcpbridge", line 131, in <module> (nova.root): TRACE: main() (nova.root): TRACE: File "/usr/bin/nova-dhcpbridge", line 122, in main (nova.root): TRACE: hostname = argv[4] (nova.root): TRACE: IndexError: list index out of range (nova.root): TRACE:
Feb 5 00:43:02 mandarin dnsmasq[5912]: child process exited with status 1
Feb 5 00:43:02 mandarin 2011-02-05 00:43:02,868 CRITICAL nova.root [-] list index out of range (nova.root): TRACE: Traceback (most recent call last): (nova.root): TRACE: File "/usr/bin/nova-dhcpbridge", line 131, in <module> (nova.root): TRACE: main() (nova.root): TRACE: File "/usr/bin/nova-dhcpbridge", line 122, in main (nova.root): TRACE: hostname = argv[4] (nova.root): TRACE: IndexError: list index out of range (nova.root): TRACE:
Feb 5 00:43:02 mandarin dnsmasq[5912]: child process exited with status 1
Feb 5 00:43:03 mandarin 2011-02-05 00:43:03,188 CRITICAL nova.root [-] list index out of range (nova.root): TRACE: Traceback (most recent call last): (nova.root): TRACE: File "/usr/bin/nova-dhcpbridge", line 131, in <module> (nova.root): TRACE: main() (nova.root): TRACE: File "/usr/bin/nova-dhcpbridge", line 122, in main (nova.root): TRACE: hostname = argv[4] (nova.root): TRACE: IndexError: list index out of range (nova.root): TRACE:
Feb 5 00:43:03 mandarin dnsmasq[5912]: child process exited with status 1

Related branches

Revision history for this message
Christian Berendt (berendt) wrote :

Two dnsmasq processes are running after starting nova-network:

5912 ? S 0:00 dnsmasq --strict-order --bind-interfaces --conf-file= --pid-file=/var/lib/nova/networks/nova-br100.pid --listen-address=192.168.0.1 --except-interface=lo --dhcp-range=192.168.0.3,static,120s --dhcp-hostsfile=/var/lib/nova/networks/nova-br100.conf --dhcp-script=/usr/bin/nova-dhcpbridge --leasefile-ro
 5913 ? S 0:00 dnsmasq --strict-order --bind-interfaces --conf-file= --pid-file=/var/lib/nova/networks/nova-br100.pid --listen-address=192.168.0.1 --except-interface=lo --dhcp-range=192.168.0.3,static,120s --dhcp-hostsfile=/var/lib/nova/networks/nova-br100.conf --dhcp-script=/usr/bin/nova-dhcpbridge --leasefile-ro

Revision history for this message
Christian Berendt (berendt) wrote :

the string "novalocal" is hardcoded in nova/network/linux_net.py in the method _host_dhcp(). I don't like this and I suggest using a flag.

Revision history for this message
Christian Berendt (berendt) wrote :

and dnsmasq needs the parameter --domain=, this fixes the problem with the unknwon domain. i extended the patch.

(Feb 5 00:43:01 mandarin dnsmasq[5912]: illegal domain novalocal in /var/lib/nova/networks/nova-br100.conf.)

summary: - dnsmasq fails with status 1 and illegal domain novalocal in
- /var/lib/nova/networks/nova-br100.conf
+ illegal domain novalocal in /var/lib/nova/networks/nova-br100.conf
Thierry Carrez (ttx)
Changed in nova:
assignee: nobody → Christian Berendt (berendt)
importance: Undecided → Medium
status: New → In Progress
Changed in nova:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
milestone: none → 2011.2
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.