Floating IP association issue with OpenStack Neutron
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ooi |
Fix Released
|
High
|
Luís Filipe Sequeira Alves |
Bug Description
Since the upgrade of our Cloud infrastructure to Newton, the users cannot associate floating IP using the OCCI interface.
The following command:
occi --endpoint https:/
/tmp/x509up_u1001 -a describe -X -r network
returns:
F, [2017-08-
The d4a0d188-
We have a per-tenant router infrastructure, with one external flat network. As it should only be used to give floating ip in the allocation range, it has not been set as shared.
We have switch to the neutron backend in the OOI configuration, as the nova network backend is not supported anymore in Newton.
Changed in ooi: | |
importance: | Undecided → High |
status: | New → Confirmed |
Changed in ooi: | |
status: | Fix Committed → In Progress |
Changed in ooi: | |
milestone: | none → 1.2.0 |
Changed in ooi: | |
status: | Fix Committed → Fix Released |
The problem is in this method from ooi/api/ helpers_ neutron. py
def get_network_ details( self, req, id):
"""Get info from a network.
It returns json code from the server
:param req: the incoming network PUBLIC_ NETWORK: public_ network( req) get_request( req, path) from_response( response, "network", {})
req_ subnet = self._make_ get_request( req, path)
response_ subnet = req_subnet. get_response( )
net[ "subnet_ info"] = self.get_ from_response(
response_ subnet, "subnet", {})
:param id: net identification
"""
if id == os_helpers.
id = self._get_
path = "/networks/%s" % id
req = self._make_
response = req.get_response()
net = self.get_
# subnet
if "subnets" in net:
path = "/subnets/%s" % net["subnets"][0]
return ooi_networks[0]
The conditional there is requesting information from each of the
subnets, even if the user does not have access to them (as it may be in
the case of a external and not shared network).
Should we just remove the subnet listing in this case (maybe catch the exception and skip that subnet)?