Activity log for bug #717166

Date Who What changed Old value New value Message
2011-02-11 14:47:29 Will Daniels bug added bug
2011-02-12 19:00:55 Will Daniels bug task added eucalyptus (Ubuntu)
2011-02-17 14:01:24 Dave Walker eucalyptus (Ubuntu): status New Confirmed
2011-02-17 14:02:54 James Page eucalyptus (Ubuntu): importance Undecided High
2011-02-17 14:02:54 James Page eucalyptus (Ubuntu): status Confirmed Triaged
2011-02-17 23:06:38 Brian Murray nominated for series Ubuntu Natty
2011-02-17 23:06:38 Brian Murray bug task added eucalyptus (Ubuntu Natty)
2011-02-21 19:44:38 Daniel Nurmi eucalyptus (Ubuntu Natty): assignee Daniel Nurmi (nurmi)
2011-02-21 19:44:46 Daniel Nurmi eucalyptus: assignee Daniel Nurmi (nurmi)
2011-02-21 20:08:02 C de-Avillez bug added subscriber C de-Avillez
2011-02-25 15:29:44 Dave Walker tags dhcpd dhcpd server-nrs
2011-03-01 05:30:45 Will Daniels description Using the new v4 DHCP server from Natty, Eucalyptus fails to start the server to assign IP addresses to instances on their private networks. Steps to Reproduce ================== Install and configure Eucalyptus in MANAGED mode on Natty (expect other modes have the same problem also). Modify the file /etc/eucalyptus/wrappers.conf to allow calling the new DHCP server bin (dhcpd instead of dhcpd3): < dhcpd3 /usr/sbin/dhcpd3 0 #cap_net_admin > dhcpd3 /usr/sbin/dhcpd 0 #cap_net_admin Install an image and start it. Result ====== In httpd-cc_error_log... --- Internet Systems Consortium DHCP Server 4.1.1-P1 Copyright 2004-2010 Internet Systems Consortium. All rights reserved. For info, please visit https://www.isc.org/software/dhcp/ WARNING: Host declarations are global. They are not limited to the scope you declared them in. Wrote 0 deleted host decls to leases file. Wrote 0 new dynamic host decls to leases file. Wrote 0 leases to leases file. No subnet declaration for eucabr10 (no IPv4 addresses). ** Ignoring requests on eucabr10. If this is not what you want, please write a subnet declaration in your dhcpd.conf file for the network segment to which interface eucabr10 is attached. ** Not configured to listen on any interfaces! --- Notes ===== Confirmed that replacing the v4 DHCP server with the old v3 one solves the problem. Possibly this is a bug in the DHCP server as the error suggests it is not finding the subnet on the bridge interface eucabr10 ("no IPv4 addresses"), which was assigned correctly according to "ip addr show" using netlink calls, whereas the ioctl calls used by the DHCP server do not return any address for eucabr10. I looked briefly at discover.c in the DHCP server code and nothing jumped out as being substantially different between v3 and v4 though. It seems that the DHCP config file is written out to /var/run/eucalyptus/net/euca-dhcp.conf and the command used to start the server is like this: /usr/lib/eucalyptus/euca_rootwrap /usr/sbin/dhcpd -cf //var/run/eucalyptus/net/euca-dhcp.conf -lf //var/run/eucalyptus/net/euca-dhcp.leases -pf //var/run/eucalyptus/net/euca-dhcp.pid -tf //var/run/eucalyptus/net/euca-dhcp.trace eucabr10 eth0 As best I can tell, both the config file and command line look correct. Sample config: --- # automatically generated config file for DHCP server default-lease-time 1200; max-lease-time 1200; ddns-update-style none; shared-network euca { subnet 10.32.8.0 netmask 255.255.255.0 { option subnet-mask 255.255.255.0; option broadcast-address 10.32.8.255; option domain-name-servers 127.0.0.1, 10.32.8.1; option routers 10.32.8.1; } host node-10.32.8.2 { hardware ethernet D0:0D:4C:1A:08:C4; fixed-address 10.32.8.2; } host node-10.32.8.3 { hardware ethernet D0:0D:38:D8:06:CE; fixed-address 10.32.8.3; } } --- I don't know what has changed in the v4 DHCP server, but this is not working and I don't really know enough about these things to help further. Probably someone with experience/knowledge of the ISC DHCP server could spot the problem or suggest a simple solution more easily. Using the new v4 DHCP server from Natty, Eucalyptus fails to start the server to assign IP addresses to instances on their private networks. Steps to Reproduce ================== Install and configure Eucalyptus in MANAGED mode on Natty (expect other modes have the same problem also). Modify the file /etc/eucalyptus/wrappers.conf to allow calling the new DHCP server bin (dhcpd instead of dhcpd3): - dhcpd3 /usr/sbin/dhcpd3 0 #cap_net_admin + dhcpd3 /usr/sbin/dhcpd 0 #cap_net_admin Modify /etc/eucalyptus/eucalyptus.conf to use the new dhcpd bin: - VNET_DHCPDAEMON="/usr/sbin/dhcpd3" + VNET_DHCPDAEMON="/usr/sbin/dhcpd" Install an image and start it. Result ====== In httpd-cc_error_log... --- Internet Systems Consortium DHCP Server 4.1.1-P1 Copyright 2004-2010 Internet Systems Consortium. All rights reserved. For info, please visit https://www.isc.org/software/dhcp/ WARNING: Host declarations are global. They are not limited to the scope you declared them in. Wrote 0 deleted host decls to leases file. Wrote 0 new dynamic host decls to leases file. Wrote 0 leases to leases file. No subnet declaration for eucabr10 (no IPv4 addresses). ** Ignoring requests on eucabr10. If this is not what    you want, please write a subnet declaration    in your dhcpd.conf file for the network segment    to which interface eucabr10 is attached. ** Not configured to listen on any interfaces! --- Notes ===== Confirmed that replacing the v4 DHCP server with the old v3 one solves the problem. Possibly this is a bug in the DHCP server as the error suggests it is not finding the subnet on the bridge interface eucabr10 ("no IPv4 addresses"), which was assigned correctly according to "ip addr show" using netlink calls, whereas the ioctl calls used by the DHCP server do not return any address for eucabr10. I looked briefly at discover.c in the DHCP server code and nothing jumped out as being substantially different between v3 and v4 though. It seems that the DHCP config file is written out to /var/run/eucalyptus/net/euca-dhcp.conf and the command used to start the server is like this: /usr/lib/eucalyptus/euca_rootwrap /usr/sbin/dhcpd -cf //var/run/eucalyptus/net/euca-dhcp.conf -lf //var/run/eucalyptus/net/euca-dhcp.leases -pf //var/run/eucalyptus/net/euca-dhcp.pid -tf //var/run/eucalyptus/net/euca-dhcp.trace eucabr10 eth0 As best I can tell, both the config file and command line look correct. Sample config: --- # automatically generated config file for DHCP server default-lease-time 1200; max-lease-time 1200; ddns-update-style none; shared-network euca { subnet 10.32.8.0 netmask 255.255.255.0 {   option subnet-mask 255.255.255.0;   option broadcast-address 10.32.8.255;   option domain-name-servers 127.0.0.1, 10.32.8.1;   option routers 10.32.8.1; } host node-10.32.8.2 {   hardware ethernet D0:0D:4C:1A:08:C4;   fixed-address 10.32.8.2; } host node-10.32.8.3 {   hardware ethernet D0:0D:38:D8:06:CE;   fixed-address 10.32.8.3; } } --- I don't know what has changed in the v4 DHCP server, but this is not working and I don't really know enough about these things to help further. Probably someone with experience/knowledge of the ISC DHCP server could spot the problem or suggest a simple solution more easily.
2011-03-03 15:10:05 Ubuntu QA Website tags dhcpd server-nrs dhcpd iso-testing server-nrs
2011-03-04 23:14:09 Monkey bug added subscriber Monkey
2011-03-08 22:20:07 Marjo F. Mercado bug added subscriber Marjo F. Mercado
2011-03-08 22:27:17 C de-Avillez eucalyptus (Ubuntu Natty): milestone ubuntu-11.04-beta-1
2011-03-09 17:14:08 Robbie Williamson bug added subscriber Robbie Williamson
2011-03-16 02:07:35 Daniel Nurmi attachment added dhcpd.workaround.patch https://bugs.launchpad.net/ubuntu/+source/eucalyptus/+bug/717166/+attachment/1911316/+files/dhcpd.workaround.patch
2011-03-16 17:32:34 Brian Murray bug added subscriber Ubuntu Review Team
2011-03-16 17:32:38 Brian Murray tags dhcpd iso-testing server-nrs dhcpd iso-testing patch server-nrs
2011-03-22 21:31:52 C de-Avillez eucalyptus (Ubuntu Natty): importance High Medium
2011-03-22 21:32:01 C de-Avillez eucalyptus (Ubuntu Natty): importance Medium Critical
2011-03-23 01:23:31 Daniel Nurmi attachment added getifaddrs.c https://bugs.launchpad.net/eucalyptus/+bug/717166/+attachment/1931879/+files/getifaddrs.c
2011-03-28 17:51:16 Kate Stewart eucalyptus (Ubuntu Natty): milestone ubuntu-11.04-beta-1 ubuntu-11.04-beta-2
2011-03-31 20:13:17 Launchpad Janitor branch linked lp:ubuntu/isc-dhcp
2011-04-03 14:44:40 Edison Wong bug added subscriber Edison Wong
2011-04-05 16:25:57 Dave Walker eucalyptus (Ubuntu Natty): status Triaged Invalid
2011-04-11 16:44:42 Dave Walker eucalyptus (Ubuntu Natty): milestone ubuntu-11.04-beta-2
2011-04-12 14:56:29 Robbie Williamson affects eucalyptus (Ubuntu Natty) isc-dhcp (Ubuntu Natty)
2011-04-12 14:56:29 Robbie Williamson isc-dhcp (Ubuntu Natty): status Invalid Fix Released
2011-04-12 14:56:29 Robbie Williamson isc-dhcp (Ubuntu Natty): assignee Daniel Nurmi (nurmi) Dave Walker (davewalker)
2011-04-12 14:57:15 Robbie Williamson eucalyptus: status New Invalid
2011-04-25 14:45:33 Robbie Williamson isc-dhcp (Ubuntu Natty): status Fix Released In Progress
2011-04-25 14:46:21 Robbie Williamson bug task added ubuntu-release-notes
2011-04-26 15:06:09 Robbie Williamson ubuntu-release-notes: status New Invalid
2011-04-26 15:06:14 Robbie Williamson isc-dhcp (Ubuntu Natty): status In Progress Fix Released
2013-03-05 17:10:46 Launchpad Janitor branch linked lp:~smoser/ubuntu/raring/isc-dhcp/nouid