eucalyptus link local address should be labeled

Bug #452754 reported by Dustin Kirkland 
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
eucalyptus (Ubuntu)
Fix Released
High
Dustin Kirkland 
Karmic
Fix Released
High
Dustin Kirkland 

Bug Description

Closely related to Bug #451607 (in part, the cause of).

Eucalyptus needs 169.254.169.254 to provide the metadata service (compatibility with Amazon EC2).

When configuring this address, we should label it appropriately, such that it doesn't conflict with eth0.

:-Dustin

Revision history for this message
Dustin Kirkland  (kirkland) wrote :

With my patch:

ubuntu@cluster:~$ ifconfig
eth0 Link encap:Ethernet HWaddr 00:16:d3:ca:e8:1e
          inet addr:192.168.1.20 Bcast:192.168.1.255 Mask:255.255.255.0
          inet6 addr: fe80::216:d3ff:feca:e81e/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
          RX packets:1039 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1034 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:82011 (82.0 KB) TX bytes:940715 (940.7 KB)
          Memory:f8200000-f8220000

eth0:metadata Link encap:Ethernet HWaddr 00:16:d3:ca:e8:1e
          inet addr:169.254.169.254 Bcast:0.0.0.0 Mask:255.255.255.255
          UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
          Memory:f8200000-f8220000

lo Link encap:Local Loopback
          inet addr:127.0.0.1 Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING MTU:16436 Metric:1
          RX packets:19662 errors:0 dropped:0 overruns:0 frame:0
          TX packets:19662 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:3384016 (3.3 MB) TX bytes:3384016 (3.3 MB)

ubuntu@cluster:~$ ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
    link/ether 00:16:d3:ca:e8:1e brd ff:ff:ff:ff:ff:ff
    inet 169.254.169.254/32 scope link eth0:metadata
    inet 192.168.1.20/24 brd 192.168.1.255 scope global eth0
    inet6 fe80::216:d3ff:feca:e81e/64 scope link
       valid_lft forever preferred_lft forever
3: wmaster0: <> mtu 0 qdisc noop state DOWN qlen 1000
    link/ieee802.11 00:19:7e:92:15:a3 brd 00:00:00:00:00:00
4: wlan0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
    link/ether 00:19:7e:92:15:a3 brd ff:ff:ff:ff:ff:ff

Revision history for this message
Dustin Kirkland  (kirkland) wrote :

Should do the same for the pub and priv addresses also on the CLC.

:-Dustin

Changed in eucalyptus (Ubuntu):
status: New → Fix Committed
importance: Undecided → High
assignee: nobody → Dustin Kirkland (kirkland)
milestone: none → ubuntu-9.10
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package eucalyptus - 1.6~bzr931-0ubuntu4

---------------
eucalyptus (1.6~bzr931-0ubuntu4) karmic; urgency=low

  [ Kees Cook ]
  * Fix unsafe /tmp file uses (LP: #445105):
    - tools/detach.pl: remove debugging XML dump call.
    - node/handlers_xen.c: use mkstemp().

  [ Mathias Gug ]
  * debian/eucalyptus-common.eucalyptus.upstart: Start eucalyptus-cloud
    with all the relevant options (LP: #452665).

  [ Dustin Kirkland ]
  * cluster/handlers.c, net/vnetwork.c: label the 169.254.169.254 link
    local address with :metadata, the public vm ip addresses with :pub,
    and the private vm ip addresses with :priv, to separate it appropriately
    (LP: #452754)
  * debian/eucalyptus-ipaddr.conf: and now that we're separating the weird
    addresses to their own labels, we can show just the device label, much
    cleaner output, (LP: #451607)
  * debian/copyright: Eucalyptus licensed 1.6 under the GPLv3, update
    our copyright file accordingly, (LP: #453129)
  * debian/control, debian/eucalyptus-java-common.links: the CLC absolutely
    needs the ecj.jar installed and linked for euca-* and ec2-* API calls
    to work (LP: #453177)

 -- Dustin Kirkland <email address hidden> Fri, 16 Oct 2009 13:28:32 -0500

Changed in eucalyptus (Ubuntu Karmic):
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.