[rhos-list] floating IP config

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


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)

Here is the debug if someone could help would be really nice:

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

connect: (10.192.75.190, 5000) ************
send: 'POST /v2.0/tokens HTTP/1.1\r\nHost: 10.192.75.190:5000\r\nContent-Length: 107\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": "rhsummit", "passwordCredentials": {"username": "username", "password": "secret"}}}'
reply: 'HTTP/1.1 200 OK\r\n'
header: Vary: X-Auth-Token
header: Content-Type: application/json
header: Content-Length: 2179
header: Date: Wed, 27 Mar 2013 16:01:49 GMT
RESP:{'date': 'Wed, 27 Mar 2013 16:01:49 GMT', 'vary': 'X-Auth-Token', 'content-length': '2179', 'status': '200', 'content-type': 'application/json'} {"access": {"token": {"expires": "2013-03-28T16:01:49Z", "id": "de3c7f42f82945ae98ae623f12fb2332", "tenant": {"enabled": true, "description": null, "name": "rhsummit", "id": "bc308f566c2b46aea7812a033de1f21c"}}, "serviceCatalog": [{"endpoints": [{"adminURL": "http://10.192.75.190:8776/v1/bc308f566c2b46aea7812a033de1f21c", "region": "regionOne", "internalURL": "http://10.192.75.190:8776/v1/bc308f566c2b46aea7812a033de1f21c", "id": "115d528d2b804f67bf1f5cd789583b52", "publicURL": "http://10.192.75.190:8776/v1/bc308f566c2b46aea7812a033de1f21c"}], "endpoints_links": [], "type": "volume", "name": "cinder"}, {"endpoints": [{"adminURL": "http://10.192.75.190:8080/v1/AUTH_bc308f566c2b46aea7812a033de1f21c", "region": "regionOne", "internalURL": "http://10.192.75.190:8080/v1/AUTH_bc308f566c2b46aea7812a033de1f21c", "id": "b11d4db9596e4eee90c72962a372d097", "publicURL": "http://10.192.75.190:8080/v1/AUTH_bc308f566c2b46aea7812a033de1f21c"}], "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/bc308f566c2b46aea7812a033de1f21c", "region": "regionOne", "internalURL": "http://10.192.75.190:8774/v1.1/bc308f566c2b46aea7812a033de1f21c", "id": "62101f9435204e798be3eac5e961f38f", "publicURL": "http://10.192.75.190:8774/v1.1/bc308f566c2b46aea7812a033de1f21c"}], "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"}], "endpoints_links": [], "type": "identity", "name": "keystone"}], "user": {"username": "username", "roles_links": [], "id": "fdfcf45f412a46e4880e6d8bd8143b61", "roles": [{"name": "user"}], "name": "username"}, "metadata": {"is_admin": 0, "roles": ["205bacf627554e7e8a66bf97946111bd"]}}}


REQ: curl -i http://10.192.75.190:8774/v1.1/bc308f566c2b46aea7812a033de1f21c/os-floating-ips -X POST -H "X-Auth-Project-Id: rhsummit" -H "User-Agent: python-novaclient" -H "Content-Type: application/json" -H "Accept: application/json" -H "X-Auth-Token: de3c7f42f82945ae98ae623f12fb2332" -d '{"pool": null}'

connect: (10.192.75.190, 8774) ************
send: u'POST /v1.1/bc308f566c2b46aea7812a033de1f21c/os-floating-ips HTTP/1.1\r\nHost: 10.192.75.190:8774\r\nContent-Length: 14\r\nx-auth-project-id: rhsummit\r\naccept-encoding: gzip, deflate\r\naccept: application/json\r\nx-auth-token: de3c7f42f82945ae98ae623f12fb2332\r\nuser-agent: python-novaclient\r\ncontent-type: application/json\r\n\r\n'
send: '{"pool": null}'
reply: 'HTTP/1.1 500 Internal Server Error\r\n'
header: Content-Length: 128
header: Content-Type: application/json; charset=UTF-8
header: X-Compute-Request-Id: req-a24ce04a-9ccb-41f5-aa68-9d7727ae95f4
header: Date: Wed, 27 Mar 2013 16:01:49 GMT
RESP:{'date': 'Wed, 27 Mar 2013 16:01:49 GMT', 'status': '500', 'content-length': '128', 'content-type': 'application/json; charset=UTF-8', 'x-compute-request-id': 'req-a24ce04a-9ccb-41f5-aa68-9d7727ae95f4'} {"computeFault": {"message": "The server has either erred or is incapable of performing the requested operation.", "code": 500}}

DEBUG (shell:543) The server has either erred or is incapable of performing the requested operation. (HTTP 500) (Request-ID: req-a24ce04a-9ccb-41f5-aa68-9d7727ae95f4)
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 1405, in do_floating_ip_create
    _print_floating_ip_list([cs.floating_ips.create(pool=args.pool)])
  File "/usr/lib/python2.6/site-packages/novaclient/v1_1/floating_ips.py", line 41, in create
    return self._create("/os-floating-ips", {'pool': pool}, "floating_ip")
  File "/usr/lib/python2.6/site-packages/novaclient/base.py", line 148, in _create
    _resp, body = self.api.client.post(url, body=body)
  File "/usr/lib/python2.6/site-packages/novaclient/client.py", line 244, in post
    return self._cs_request(url, 'POST', **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)
ClientException: The server has either erred or is incapable of performing the requested operation. (HTTP 500) (Request-ID: req-a24ce04a-9ccb-41f5-aa68-9d7727ae95f4)

Thanks a lot,
Cheers,

Nicolas.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/rhos-list/attachments/20130327/b6176aa3/attachment.htm>


More information about the rhos-list mailing list