<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Hi colleagues,</p>
<p>when I use in [api_settings] section of octavia.conf<br>
</p>
<p><tt>api_v1_enabled = False</tt><tt><br>
</tt><tt>api_v2_enabled = True</tt></p>
<p>I'm getting member creation failed:</p>
<p><tt>2017-12-04 22:20:37.326 7199 INFO
neutron_lbaas.services.loadbalancer.plugin
[req-2c3d3185-9440-4f3d-90de-dff87de783b9
e6406606bd9d48aabc413468f9703cf6 c1114776e144400da17d8e0608</tt><tt>56be8c
- default default] Calling driver operation
LoadBalancerManager.create</tt><tt><br>
</tt><tt>2017-12-04 22:20:37.326 7199 DEBUG
neutron_lbaas.drivers.octavia.driver
[req-2c3d3185-9440-4f3d-90de-dff87de783b9
e6406606bd9d48aabc413468f9703cf6 c1114776e144400da17d8e060856be8</tt><tt>c
- default default] url = <a class="moz-txt-link-freetext" href="http://lagavulin:9876/v1/loadbalancers">http://lagavulin:9876/v1/loadbalancers</a>
request
/usr/lib/python2.7/dist-packages/neutron_lbaas/drivers/octavia/driver.py:138</tt><tt><br>
</tt><tt>2017-12-04 22:20:37.327 7199 DEBUG
neutron_lbaas.drivers.octavia.driver
[req-2c3d3185-9440-4f3d-90de-dff87de783b9
e6406606bd9d48aabc413468f9703cf6 c1114776e144400da17d8e060856be8</tt><tt>c
- default default] args = {"vip": {"subnet_id":
"1748a90d-25bc-46a0-b623-d8450db83ed1", "port_id":
"f773321c-eb34-41fa-8434-45358e6232fb", "ip_address":
"10.1.1.12"}, "name": "</tt><tt>nbt-balancer", "project_id":
"c1114776e144400da17d8e060856be8c", "enabled": true, "id":
"25604d3c-1714-4837-ad98-8ea2d2f03bc7", "description": ""}
request /usr/lib/python2.7/dist</tt><tt>-packages/neutron_lbaas/drivers/octavia/driver.py:139</tt><tt><br>
</tt><tt>2017-12-04 22:20:37.337 7199 DEBUG
neutron_lbaas.drivers.octavia.driver
[req-2c3d3185-9440-4f3d-90de-dff87de783b9
e6406606bd9d48aabc413468f9703cf6 c1114776e144400da17d8e060856be8</tt><tt>c
- default default] Octavia Response Code: 405 request
/usr/lib/python2.7/dist-packages/neutron_lbaas/drivers/octavia/driver.py:144</tt><tt><br>
</tt><tt>2017-12-04 22:20:37.338 7199 DEBUG
neutron_lbaas.drivers.octavia.driver
[req-2c3d3185-9440-4f3d-90de-dff87de783b9
e6406606bd9d48aabc413468f9703cf6
c1114776e144400da17d8e060856be8c - default default] Octavia
Response Body: <html></tt><tt><br>
</tt><tt> <head></tt><tt><br>
</tt><tt> <title>405 Method Not Allowed</title></tt><tt><br>
</tt><tt> </head></tt><tt><br>
</tt><tt> <body></tt><tt><br>
</tt><tt> <h1>405 Method Not Allowed</h1></tt><tt><br>
</tt><tt> The method POST is not allowed for this resource.
<br /><br /></tt><tt><br>
</tt><tt><br>
</tt><tt> </body></tt><tt><br>
</tt><tt></html> request
/usr/lib/python2.7/dist-packages/neutron_lbaas/drivers/octavia/driver.py:145</tt></p>
<p>when I use both v1 and v2 enabled, I see ALL calls to API like
<a class="moz-txt-link-freetext" href="http://...:9876/">http://...:9876/</a><u>v1</u>/... and corresponding log records like</p>
<p><tt>2017-12-04 18:12:01.676 27192 INFO octavia.api.</tt><tt><u>v1</u></tt><tt>.controllers.*</tt><br>
</p>
<p>does "v1" means that neutron use LBaaS API v1 instead of v2 ?
Neutron itself configured to use LBaaS v2 :</p>
<p><tt>[DEFAULT]</tt><tt><br>
</tt><tt>service_plugins =
router,neutron_lbaas.services.loadbalancer.plugin.LoadBalancerPluginv2</tt><tt><br>
</tt><tt>[service_providers]</tt><tt><br>
</tt><tt>service_provider =
LOADBALANCERV2:Octavia:neutron_lbaas.drivers.octavia.driver.OctaviaDriver:default</tt><tt><br>
</tt></p>
<p>Is it enough or how to configure both neutron and octavia to use
API v2 instead of v1? I'm under Ubuntu 16 and Openstack Pike and
there are just "python-neutron-lbaas" package installed (no
lbaasv2-agent, lbaas-common, etc) and octavia itself (using "pip
install octavia" in <u>virtual environment</u>). Thus, endpoints
configured unversioned in this way:</p>
<p><tt>+----------------------------------+-----------+--------------+----------------+---------+-----------+--------------------------+</tt><tt><br>
</tt><tt>| ID | Region | Service
Name | Service Type | Enabled | Interface |
URL |</tt><tt><br>
</tt><tt>+----------------------------------+-----------+--------------+----------------+---------+-----------+--------------------------+</tt><tt><br>
</tt><tt>| 18862b1bd4c643aca207f8b2d9066895 | RegionOne |
octavia | load-balancer | True | internal |
<a class="moz-txt-link-freetext" href="http://lagavulin:9876/">http://lagavulin:9876/</a> |</tt><tt><br>
</tt><tt>| 8cb62ab73fb2431dbc3a0def744852ea | RegionOne |
octavia | load-balancer | True | public |
<a class="moz-txt-link-freetext" href="http://lagavulin:9876/">http://lagavulin:9876/</a> |</tt><tt><br>
</tt><tt>| 909e9fc434cb4667bb828828bf49f906 | RegionOne |
octavia | load-balancer | True | admin |
<a class="moz-txt-link-freetext" href="http://lagavulin:9876/">http://lagavulin:9876/</a> |</tt><tt><br>
</tt><tt>+----------------------------------+-----------+--------------+----------------+---------+-----------+--------------------------+</tt><br>
</p>
<p>and no neutron lbaas agent in the list of agents (since there is
no lbaasv2 agent installed and configured in the system).</p>
<p>Seems I'm missing something.<br>
</p>
<p>And two related questions:</p>
<ul>
<li>which method to provide API is more preferable - WSGI or
standalone octavia-api process?<br>
</li>
<li>how to be sure that Octavia code matches Pike version? I'm
using "pip install octavia" and it's v1.0.1 at the moment, but
not sure it matches package "python-neutron-lbaas" version
2:11.0.0-0ubuntu1~cloud0<br>
</li>
</ul>
<p>Thank you.</p>
<pre class="moz-signature" cols="72">--
Volodymyr Litovka
"Vision without Execution is Hallucination." -- Thomas Edison</pre>
</body>
</html>