The mega-watcher for machines does not include containers addresses

Bug #1301464 reported by Francesco Banconi
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
juju-core
Fix Released
High
Ian Booth
juju-core (Ubuntu)
Fix Released
Undecided
Unassigned
juju-quickstart (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

This bug has two aspects:
- The mega-watcher for units does not include public/private addresses when using the local provider. IIUC those addresses are deprecated in UnitInfo, but using the 1.18 branch I see that PublicAddress and PrivateAddress are still populated when using ec2, while they are are just empty strings on local envs.
- The mega-watcher for machines only includes the addresses retrieved by asking the provider. I guess this is the reason why MachineInfo does not return containers' addresses.

Given the above, there is no way (in 1.18) for API clients to retrieve the addresses of a container (e.g. when the local provider is used).

This means the GUI would not be able to show units' addresses and/or link to the exposed ports.
This also means quickstart is broken when using local environments.

Related branches

Curtis Hovey (sinzui)
Changed in juju-core:
status: New → Triaged
importance: Undecided → High
Curtis Hovey (sinzui)
tags: added: addressability api juju-gui
Robie Basak (racb)
Changed in juju-core (Ubuntu):
status: New → Triaged
Changed in juju-quickstart (Ubuntu):
status: New → Triaged
Revision history for this message
Francesco Banconi (frankban) wrote :

I attached a prototype for a possible fix.
It seems to work, containers addresses are now included in the mega-watcher for machines.
The only issue, even after applying that patch, is that the NetworkScope for LXC addresses is an empty string, while I expected it to be "public", e.g.:
{u'Addresses': [{u'NetworkName': u'',
                                             u'NetworkScope': u'',
                                             u'Type': u'ipv4',
                                             u'Value': u'10.0.3.133'},
                                            {u'NetworkName': u'',
                                             u'NetworkScope': u'',
                                             u'Type': u'ipv6',
                                             u'Value': u'fe80::216:3eff:fece:7fdd'}],

Ian Booth (wallyworld)
Changed in juju-core:
assignee: nobody → Ian Booth (wallyworld)
status: Triaged → In Progress
Ian Booth (wallyworld)
Changed in juju-core:
status: In Progress → Fix Committed
Changed in juju-quickstart (Ubuntu):
status: Triaged → Fix Committed
Changed in juju-quickstart (Ubuntu):
status: Fix Committed → Confirmed
Robie Basak (racb)
Changed in juju-quickstart (Ubuntu):
status: Confirmed → Triaged
Curtis Hovey (sinzui)
Changed in juju-core:
status: Fix Committed → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package juju-core - 1.18.0-0ubuntu1

---------------
juju-core (1.18.0-0ubuntu1) trusty; urgency=medium

  * New upstream release (LP: #1287147), including fixes for:
    - maas/lxc: LXC permission denied issue (LP: #1299588).
    - core: mega-watcher for machines does not include container
      addresses (LP: #1301464).
 -- James Page <email address hidden> Mon, 07 Apr 2014 18:24:59 +0100

Changed in juju-core (Ubuntu):
status: Triaged → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package juju-quickstart - 1.3.1-0ubuntu1

---------------
juju-quickstart (1.3.1-0ubuntu1) trusty; urgency=medium

  * New upstream release. Upstream changes:
    - Support MachineInfo addresses (LP: #1301464).
    - Support the --ppa flag for distro packaging (for LP: #1301481).
  * d/p/distro-only-default: default to --distro-only when running
    juju-quickstart installed from the Ubuntu archive (LP: #1301481).
 -- Robie Basak <email address hidden> Wed, 09 Apr 2014 09:03:59 +0000

Changed in juju-quickstart (Ubuntu):
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

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