nova-dhcpbridge: hostname = argv[4] causes IndexError

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

Bug Description

Using nova trunk (bzr 1370).

I'm getting the following error from nova-dhcpbridge.log:

(nova): TRACE: Traceback (most recent call last):
(nova): TRACE: File "/usr/bin/nova-dhcpbridge", line 127, in <module>
(nova): TRACE: main()
(nova): TRACE: File "/usr/bin/nova-dhcpbridge", line 118, in main
(nova): TRACE: hostname = argv[4]
(nova): TRACE: IndexError: list index out of range
(nova): TRACE:

According the the dnsmasq man page (for the dhcp-script option):

       -6 --dhcp-script=<path>
              Whenever a new DHCP lease is created, or an old one destroyed,
              the executable specified by this option is run. <path> must be
              an absolute pathname, no PATH search occurs. The arguments to
              the process are "add", "old" or "del", the MAC address of the
              host, the IP address, and the hostname, if known.

---

Looks like the 4th arg for hostname is not getting passed to our nova-dhcpbridge script.

Related branches

Dan Prince (dan-prince)
Changed in nova:
assignee: nobody → Dan Prince (dan-prince)
status: New → In Progress
importance: Undecided → Medium
Dan Prince (dan-prince)
Changed in nova:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
milestone: none → diablo-4
Thierry Carrez (ttx)
Changed in nova:
milestone: diablo-4 → 2011.3
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.