[rhos-list] floating IP config

Vogel Nicolas nicolas.vogel at heig-vd.ch
Wed Mar 27 16:47:32 UTC 2013


Thanks for the tip, I checked all the nova logs but didn't saw that the first time.
It's a problem with an RPC function which couldn't be find. I read about similar errors on the web but didn't find how to solve it.

Here's the nova-api log:
2013-03-27 17:36:01 3890 TRACE nova.api.openstack RemoteError: Remote error: AttributeError No such RPC function 'allocate_floating_ip'
2013-03-27 17:36:01 3890 TRACE nova.api.openstack [u'Traceback (most recent call last):\n', u'  File "/usr/lib/python2.6/site-packages/nova/openstack/common/rpc/amqp.py", line 276, in _process_data\n    rval = self.proxy.dispatch(ctxt, version, method, **args)\n', u'  File "/usr/lib/python2.6/site-packages/nova/openstack/common/rpc/dispatcher.py", line 148, in dispatch\n    raise AttributeError("No such RPC function \'%s\'" % method)\n', u"AttributeError: No such RPC function 'allocate_floating_ip'\n"].
2013-03-27 17:36:01 3890 TRACE nova.api.openstack 
2013-03-27 17:36:01 INFO nova.api.openstack [req-2cc5bf1b-32fa-4d13-a630-a837a4a72b41 c3f5a9dfdffe49838c6f1b332c3ffeca a32f87f42fdd4577b62261b08e4e597c] http://10.192.75.190:8774/v1.1/a32f87f42fdd4577b62261b08e4e597c/os-floating-ips returned with HTTP 500
2013-03-27 17:36:01 INFO nova.osapi_compute.wsgi.server [req-2cc5bf1b-32fa-4d13-a630-a837a4a72b41 c3f5a9dfdffe49838c6f1b332c3ffeca a32f87f42fdd4577b62261b08e4e597c] 10.192.75.190 - - [27/Mar/2013 17:36:01] "POST /v1.1/a32f87f42fdd4577b62261b08e4e597c/os-floating-ips HTTP/1.1" 500 335 0.121185

!!!...No such RPC function 'allocate_floating_ip...!!!
I think this is linked with the error I got when entering the "nova service-list" command: ERROR: n/a (HTTP 404)
When I'm restarting all the nova services they all look fine but I can't display their status.

Here's the debug:
REQ: curl -i http://10.192.75.190:35357/v2.0/tokens -X POST -H "Content-Type: application/json" -H "Accept: application/json" -H "User-Agent: python-novaclient" -d '{"auth": {"tenantName": "admin", "passwordCredentials": {"username": "admin", "password": "secret"}}}'

connect: (10.192.75.190, 35357) ************
send: 'POST /v2.0/tokens HTTP/1.1\r\nHost: 10.192.75.190:35357\r\nContent-Length: 101\r\ncontent-type: application/json\r\naccept-encoding: gzip, deflate\r\naccept: application/json\r\nuser-agent: python-novaclient\r\n\r\n'
send: '{"auth": {"tenantName": "admin", "passwordCredentials": {"username": "admin", "password": "secret"}}}'
reply: 'HTTP/1.1 200 OK\r\n'
header: Vary: X-Auth-Token
header: Content-Type: application/json
header: Content-Length: 2171
header: Date: Wed, 27 Mar 2013 16:39:24 GMT
RESP:{'date': 'Wed, 27 Mar 2013 16:39:24 GMT', 'vary': 'X-Auth-Token', 'content-length': '2171', 'status': '200', 'content-type': 'application/json'} {"access": {"token": {"expires": "2013-03-28T16:39:24Z", "id": "7458ef3f7e464cc7855524a214a04486", "tenant": {"enabled": true, "description": null, "name": "admin", "id": "a32f87f42fdd4577b62261b08e4e597c"}}, "serviceCatalog": [{"endpoints": [{"adminURL": "http://10.192.75.190:8776/v1/a32f87f42fdd4577b62261b08e4e597c", "region": "regionOne", "internalURL": "http://10.192.75.190:8776/v1/a32f87f42fdd4577b62261b08e4e597c", "id": "115d528d2b804f67bf1f5cd789583b52", "publicURL": "http://10.192.75.190:8776/v1/a32f87f42fdd4577b62261b08e4e597c"}], "endpoints_links": [], "type": "volume", "name": "cinder"}, {"endpoints": [{"adminURL": "http://10.192.75.190:8080/v1/AUTH_a32f87f42fdd4577b62261b08e4e597c", "region": "regionOne", "internalURL": "http://10.192.75.190:8080/v1/AUTH_a32f87f42fdd4577b62261b08e4e597c", "id": "b11d4db9596e4eee90c72962a372d097", "publicURL": "http://10.192.75.190:8080/v1/AUTH_a32f87f42fdd4577b62261b08e4e597c"}], "endpoints_links": [], "type": "object-store", "name": "swift"}, {"endpoints": [{"adminURL": "http://10.192.75.190:9292/v1", "region": "regionOne", "internalURL": "http://10.192.75.190:9292/v1", "id": "39cfe232d3ca43e2996f362c4d67e8fe", "publicURL": "http://10.192.75.190:9292/v1"}], "endpoints_links": [], "type": "image", "name": "glance"}, {"endpoints": [{"adminURL": "http://10.192.75.190:8774/v1.1/a32f87f42fdd4577b62261b08e4e597c", "region": "regionOne", "internalURL": "http://10.192.75.190:8774/v1.1/a32f87f42fdd4577b62261b08e4e597c", "id": "62101f9435204e798be3eac5e961f38f", "publicURL": "http://10.192.75.190:8774/v1.1/a32f87f42fdd4577b62261b08e4e597c"}], "endpoints_links": [], "type": "compute", "name": "nova"}, {"endpoints": [{"adminURL": "http://10.192.75.190:35357/v2.0", "region": "RegionOne", "internalURL": "http://10.192.75.190:5000/v2.0", "id": "820740662d4b4b9c8a33cbcfc586fb37", "publicURL": "http://10.192.75.190:5000/v2.0"}], "endpoi
nts_links": [], "type": "identity", "name": "keystone"}], "user": {"username": "admin", "roles_links": [], "id": "c3f5a9dfdffe49838c6f1b332c3ffeca", "roles": [{"name": "admin"}], "name": "admin"}, "metadata": {"is_admin": 0, "roles": ["1104d70fc1014bf8b725cf264731c88e"]}}}


REQ: curl -i http://10.192.75.190:8774/v1.1/a32f87f42fdd4577b62261b08e4e597c/os-services -X GET -H "X-Auth-Project-Id: admin" -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: 7458ef3f7e464cc7855524a214a04486"

connect: (10.192.75.190, 8774) ************
send: u'GET /v1.1/a32f87f42fdd4577b62261b08e4e597c/os-services HTTP/1.1\r\nHost: 10.192.75.190:8774\r\nx-auth-project-id: admin\r\nx-auth-token: 7458ef3f7e464cc7855524a214a04486\r\naccept-encoding: gzip, deflate\r\naccept: application/json\r\nuser-agent: python-novaclient\r\n\r\n'
reply: 'HTTP/1.1 404 Not Found\r\n'
header: Content-Length: 52
header: Content-Type: text/plain; charset=UTF-8
header: Date: Wed, 27 Mar 2013 16:39:24 GMT
RESP:{'date': 'Wed, 27 Mar 2013 16:39:24 GMT', 'status': '404', 'content-length': '52', 'content-type': 'text/plain; charset=UTF-8'} 404 Not Found

The resource could not be found.

   

DEBUG (shell:543) n/a (HTTP 404)
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/novaclient/shell.py", line 540, in main
    OpenStackComputeShell().main(sys.argv[1:])
  File "/usr/lib/python2.6/site-packages/novaclient/shell.py", line 476, in main
    args.func(self.cs, args)
  File "/usr/lib/python2.6/site-packages/novaclient/v1_1/shell.py", line 1976, in do_service_list
    result = cs.services.list(args.host, args.servicename)
  File "/usr/lib/python2.6/site-packages/novaclient/v1_1/services.py", line 50, in list
    return self._list(url, "services")
  File "/usr/lib/python2.6/site-packages/novaclient/base.py", line 62, in _list
    _resp, body = self.api.client.get(url)
  File "/usr/lib/python2.6/site-packages/novaclient/client.py", line 241, in get
    return self._cs_request(url, 'GET', **kwargs)
  File "/usr/lib/python2.6/site-packages/novaclient/client.py", line 228, in _cs_request
    **kwargs)
  File "/usr/lib/python2.6/site-packages/novaclient/client.py", line 210, in _time_request
    resp, body = self.request(url, method, **kwargs)
  File "/usr/lib/python2.6/site-packages/novaclient/client.py", line 204, in request
    raise exceptions.from_response(resp, body)
NotFound: n/a (HTTP 404)
ERROR: n/a (HTTP 404)

The nova-api.log just says the same:
2013-03-27 17:39:24 INFO nova.osapi_compute.wsgi.server [req-6c9ca40f-5ede-4934-9578-5fdeb28118d9 c3f5a9dfdffe49838c6f1b332c3ffeca a32f87f42fdd4577b62261b08e4e597c] 10.192.75.190 - - [27/Mar/2013 17:39:24] "GET /v1.1/a32f87f42fdd4577b62261b08e4e597c/os-services HTTP/1.1" 404 176 0.043507

-----Original Message-----
From: rhos-list-bounces at redhat.com [mailto:rhos-list-bounces at redhat.com] On Behalf Of Russell Bryant
Sent: mercredi 27 mars 2013 17:35
To: rhos-list at redhat.com
Subject: Re: [rhos-list] floating IP config

On 03/27/2013 12:03 PM, Vogel Nicolas wrote:
> Hello,
> 
>  
> 
> Can I have floating IP to assign to my VM when I’m working with a 
> FlatNetworking mode?
> 
> I have already a dhcp server in my subnet so I don’t need one. I’m 
> just using the br100 bridged to em2 in order to extend my subnet for my VMs.
> 
> I can create a pool of floating IP but the then I’m unable to create 
> one with the “nova floating-ip-create” command.
> 
> I got following output:
> 
> ERROR: The server has either erred or is incapable of performing the 
> requested operation. (HTTP 500) (Request-ID:
> req-46ee5602-e356-47e1-a245-f4f1f0c532e9)

Can you check the server-side logs after doing this?  Look for a Traceback in nova-api.log to start with.

--
Russell Bryant

_______________________________________________
rhos-list mailing list
rhos-list at redhat.com
https://www.redhat.com/mailman/listinfo/rhos-list




More information about the rhos-list mailing list