<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="FR-CH" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal">Hello,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span lang="EN-US">Can I have floating IP to assign to my VM when I’m working with a FlatNetworking mode?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">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.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">I can create a pool of floating IP but the then I’m unable to create one with the “nova floating-ip-create” command.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">I got following output: <o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">ERROR: The server has either erred or is incapable of performing the requested operation. (HTTP 500) (Request-ID: req-46ee5602-e356-47e1-a245-f4f1f0c532e9)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Here is the debug if someone could help would be really nice:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">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"}}}'<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">connect: (10.192.75.190, 5000) ************<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">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'<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">send: '{"auth": {"tenantName": "rhsummit", "passwordCredentials": {"username": "username", "password": "secret"}}}'<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">reply: 'HTTP/1.1 200 OK\r\n'<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">header: Vary: X-Auth-Token<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">header: Content-Type: application/json<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">header: Content-Length: 2179<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">header: Date: Wed, 27 Mar 2013 16:01:49 GMT<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">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"]}}}<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">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}'<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">connect: (10.192.75.190, 8774) ************<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">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'<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">send: '{"pool": null}'<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">reply: 'HTTP/1.1 500 Internal Server Error\r\n'<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">header: Content-Length: 128<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">header: Content-Type: application/json; charset=UTF-8<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">header: X-Compute-Request-Id: req-a24ce04a-9ccb-41f5-aa68-9d7727ae95f4<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">header: Date: Wed, 27 Mar 2013 16:01:49 GMT<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">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}}<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">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)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Traceback (most recent call last):<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">  File "/usr/lib/python2.6/site-packages/novaclient/shell.py", line 540, in main<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">    OpenStackComputeShell().main(sys.argv[1:])<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">  File "/usr/lib/python2.6/site-packages/novaclient/shell.py", line 476, in main<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">    args.func(self.cs, args)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">  File "/usr/lib/python2.6/site-packages/novaclient/v1_1/shell.py", line 1405, in do_floating_ip_create<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">    _print_floating_ip_list([cs.floating_ips.create(pool=args.pool)])<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">  File "/usr/lib/python2.6/site-packages/novaclient/v1_1/floating_ips.py", line 41, in create<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">    return self._create("/os-floating-ips", {'pool': pool}, "floating_ip")<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">  File "/usr/lib/python2.6/site-packages/novaclient/base.py", line 148, in _create<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">    _resp, body = self.api.client.post(url, body=body)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">  File "/usr/lib/python2.6/site-packages/novaclient/client.py", line 244, in post<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">    return self._cs_request(url, 'POST', **kwargs)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">  File "/usr/lib/python2.6/site-packages/novaclient/client.py", line 228, in _cs_request<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">    **kwargs)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">  File "/usr/lib/python2.6/site-packages/novaclient/client.py", line 210, in _time_request<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">    resp, body = self.request(url, method, **kwargs)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">  File "/usr/lib/python2.6/site-packages/novaclient/client.py", line 204, in request<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">    raise exceptions.from_response(resp, body)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">ClientException: The server has either erred or is incapable of performing the requested operation. (HTTP 500) (Request-ID: req-a24ce04a-9ccb-41f5-aa68-9d7727ae95f4)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Thanks a lot,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Cheers,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Nicolas.<o:p></o:p></span></p>
</div>
</body>
</html>