You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@jclouds.apache.org by "Christopher Dancy (JIRA)" <ji...@apache.org> on 2014/06/19 18:44:24 UTC

[jira] [Reopened] (JCLOUDS-471) FloatingIPApi.create() does not work, pool needed

     [ https://issues.apache.org/jira/browse/JCLOUDS-471?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Christopher Dancy reopened JCLOUDS-471:
---------------------------------------


Calling 'ComputeService.createNodesInGroup' whilst passing in a Template with attached NovaTemplateOptions.autoAssignFloatingIps(true) ultimately results in NPE trying to execute FloatingApi.create() inside class (line 81): 

https://github.com/jclouds/jclouds/blob/4c74b497547e42b8bdc94dbae3d4cd94ff3945d6/apis/openstack-nova/src/main/java/org/jclouds/openstack/nova/v2_0/compute/functions/AllocateAndAddFloatingIpToNode.java

> FloatingIPApi.create() does not work, pool needed
> -------------------------------------------------
>
>                 Key: JCLOUDS-471
>                 URL: https://issues.apache.org/jira/browse/JCLOUDS-471
>             Project: jclouds
>          Issue Type: Bug
>          Components: jclouds-compute
>    Affects Versions: 1.6.1
>         Environment: OpenStack Havana
> [root@rdohavana ~]# nova --version
> 2.15.0
> [root@rdohavana ~]# neutron --version
> 2.3.1
>            Reporter: Radek Skokan
>            Assignee: Jeremy Daggett
>            Priority: Minor
>
> The org.jclouds.openstack.nova.v2_0.extensions.create() method fails and OpenStack's nova api.log contains
> {code}
> 2014-02-16 18:29:30.605 2918 DEBUG neutronclient.client [-] RESP:{'date': 'Sun, 16 Feb 2014 17:29:30 GMT', 'status': '200', 'content-length': '16', 'content-type': 'application/json; charset=UTF-8', 'content-location': 'http://172.16.2.154:9696/v2.0/networks.json?router%3Aexternal=True&name=nova&fields=id'} {"networks": []}
>  http_log_resp /usr/lib/python2.6/site-packages/neutronclient/common/utils.py:179
> 2014-02-16 18:29:30.606 2918 ERROR nova.api.openstack [req-bf3afd86-e1cb-4549-8c87-1036757a97ef 08ba127f0d6842279f9db8e8bc6977e9 943fc35af6c3475b9a77e55374452741] Caught error: Floating ip pool not found.
> ...
> 2014-02-16 18:29:30.606 2918 TRACE nova.api.openstack   File "/usr/lib/python2.6/site-packages/nova/network/neutronv2/api.py", line 810, in _get_floating_ip_pool_id_by_name_or_id
> 2014-02-16 18:29:30.606 2918 TRACE nova.api.openstack     raise exception.FloatingIpPoolNotFound()
> 2014-02-16 18:29:30.606 2918 TRACE nova.api.openstack FloatingIpPoolNotFound: Floating ip pool not found.
> 2014-02-16 18:29:30.606 2918 TRACE nova.api.openstack 
> 2014-02-16 18:29:30.627 2918 INFO nova.api.openstack [req-bf3afd86-e1cb-4549-8c87-1036757a97ef 08ba127f0d6842279f9db8e8bc6977e9 943fc35af6c3475b9a77e55374452741] http://172.16.2.154:8774/v2/943fc35af6c3475b9a77e55374452741/os-floating-ips returned with HTTP 404
> 2014-02-16 18:29:30.628 2918 DEBUG nova.api.openstack.wsgi [req-bf3afd86-e1cb-4549-8c87-1036757a97ef 08ba127f0d6842279f9db8e8bc6977e9 943fc35af6c3475b9a77e55374452741] Returning 404 to user: FloatingIpPoolNotFound: Floating ip pool not found. __call__ /usr/lib/python2.6/site-packages/nova/api/openstack/wsgi.py:1224
> 2014-02-16 18:29:30.629 2918 INFO nova.osapi_compute.wsgi.server [req-bf3afd86-e1cb-4549-8c87-1036757a97ef 08ba127f0d6842279f9db8e8bc6977e9 943fc35af6c3475b9a77e55374452741] 172.16.2.111 "POST /v2/943fc35af6c3475b9a77e55374452741/os-floating-ips HTTP/1.1" status: 404 len: 315 time: 0.0420260
> {code}
> It is because create() provides no floating IP pool name to OpenStack, which is required.
> A workaround is to use allocateFromPool(String poolName)



--
This message was sent by Atlassian JIRA
(v6.2#6252)