Juju needs to be able to specify floating ip pool

Bug #1534923 reported by Johan Ehnberg
24
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Canonical Juju
Fix Released
High
Unassigned

Bug Description

When using openstack where there are several separately routed floating ip pools, the pool has to be specified in order to get a floating IP belonging to the same availability zone as the instance it will be assigned to.

When no pool is specified, one seems to be chosen at random.

Juju has no (documented?) way of specifying this, and it does not match the availability zone to the pool internally.

Juju shows (unless you happen to get an IP from the right pool by chance):
agent-state: error
    agent-state-info: |-
      cannot assign public address <floating ip> to instance "<instance id>": failed to add floating ip <floating ip> to server with id: <instance id>
      caused by: request (https://keystone/servers/<instance id>/action) returned unexpected status: 400; error info: {"badRequest": {"message": "Unable to associate floating ip <floating ip> to fixed ip <fixed ip> for instance <instance id>. Error: External network <network id> is not reachable from subnet <subnet id>. Therefore, cannot associate Port <port id> with a Floating IP.", "code": 400}}

This is the same as trying to associate it manually:

External network <network id> is not reachable from subnet <subnet id>. Therefore, cannot associate Port <port id> with a Floating IP.

As a workaround, it is possible to allocate an IP from the right pool manually before deploying with juju. Juju uses this automatically.

Tags: sts
Revision history for this message
Johan Ehnberg (johan-ehnberg) wrote :

This is related to, but not solved by bug #1183831.

Aaron Bentley (abentley)
Changed in juju-core:
status: New → Triaged
importance: Undecided → High
Changed in juju-core:
milestone: none → 2.0.0
no longer affects: juju-core/2.0
Changed in juju-core:
milestone: 2.0.0 → 2.1.0
affects: juju-core → juju
Changed in juju:
milestone: 2.1.0 → none
milestone: none → 2.1.0
tags: added: sts
Revision history for this message
Jorge Niedbalski (niedbalski) wrote :

Hello,

I was able to reproduce this issue by bootstrapping with the --config network=<net-name> --config use-floating-ip=true options and not having a ext_net network defined.

However, using the latest 2.1 build I am able to configure a different external-network (via the --config external-network=UUID) parameter without issues.

So, this is issue seems to have been fixed by https://github.com/juju/juju/pull/6552

Changed in juju:
status: Triaged → Fix Committed
Revision history for this message
Anastasia (anastasia-macmood) wrote :

Changed milestone to 2.1-rc1 as this is current development. Nothing yet has been committed to 2.10 (final) :D

Thank you, Jorge, for update \o/

Changed in juju:
milestone: 2.1.0 → 2.1-rc1
Revision history for this message
Anastasia (anastasia-macmood) wrote :

Missed fullstop in above comment - 2.1.0 (final), of course!

Curtis Hovey (sinzui)
Changed in juju:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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