Comment 2 for bug 1247500

Revision history for this message
sodre (psodre) wrote : Re: [Bug 1247500] Re: Floating IPs are not recycled in OpenStack Havana

Yes. I did have floatingIp = true.

The issue is between json, goose and to a lesser extent juju.

0) Juju asks goose for the list of Floating Ips.

1) Goose uses REST API and Json to parse the output from Nova.
    If the FloatingIP is not associated to an instance, Json(?) sets
       fip.InstanceId = "<nil>" <— this is the actual string

2) Juju checks if fip.InstanceId == nil OR *fip.instanceId == “” to say that it is free.

The immediate fix at the Juju level is easy, i.e. add OR *fip.instanceId == “<nil>”. I have tested this fix in my private OpenStack install and it works.

I did not propose that change because I am not sure if the issue is higher up, i.e. at Goose or Json and the way
that Go handles nil pointers/strings. I’ll add my branch to launchpad in a few for completeness.

On Nov 5, 2013, at 6:43 PM, Curtis Hovey <email address hidden> wrote:

> Was the env configured to use floating IPs.
> use-floating-ip: true
>
> ** Tags added: addressability ubuntu-openstack
>
> ** Changed in: juju-core
> Status: New => Incomplete
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1247500
>
> Title:
> Floating IPs are not recycled in OpenStack Havana
>
> Status in juju-core:
> Incomplete
>
> Bug description:
> Current implementation of Juju is not able to recycle existing
> floating ips.
>
> Steps:
> 1) Start with Havana and pre-allocate IPs to your Tenant.
> 2) Run juju bootstrap.
> 3) Notice that Juju will not use the pre-allocated and Free Floating IP.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/juju-core/+bug/1247500/+subscriptions