[Openstack-operators] [OCTAVIA][QUEENS][KOLLA] - network/subnet not found.
Michael Johnson
johnsomor at gmail.com
Thu Oct 18 19:19:50 UTC 2018
Hi there.
I'm not sure what is happening there and I don't use kolla, so I need
to ask a few more questions.
Is that network ID being used for the VIP or the lb-mgmt-net?
Any chance you can provide a debug log paste from the API process for
this request?
Basically it is saying that network ID is invalid for the user making
the request.
This can happen if the user token being used doesn't have access to
that network, as an example.
It could also be a permissions issue with the service auth account
being used for the Octavia API, but this is unlikely.
Michael
On Thu, Oct 18, 2018 at 8:51 AM Gaƫl THEROND <gael.therond at gmail.com> wrote:
>
> Hi guys,
>
> I'm back to business with Octavia after a long time but I'm facing an issue that seems a little bit tricky.
>
> When trying to create a LB using either APIs (cURL/postman) calls or openstack-client the request finish with an error such as:
>
> `Network c0d40dfd-123e-4a3c-92de-eb7b57178dd3 not found. (HTTP 400)`
>
> If I put my client or the Octavia api in DEBUG mode, I found out neutron to correctly sending back to him a RESP BODY with the requested network/subnet in it.
>
> Here is the stacktrace that I get from both, Openstack client and the Octavia API logs:
>
> ```
> POST call to https://api-emea-west-az1.cloud.inkdrop.sh:9876/v2.0/lbaas/loadbalancers used request id req-2f929192-4e60-491b-b65d-3a7bef43e978
> Request returned failure status: 400
> Network c0d40dfd-123e-4a3c-92de-eb7b57178dd3 not found. (HTTP 400) (Request-ID: req-2f929192-4e60-491b-b65d-3a7bef43e978)
> Traceback (most recent call last):
> File "/home/flint/.virtualenvs/ic-emea-az1/lib/python3.4/site-packages/octaviaclient/api/v2/octavia.py", line 29, in wrapper
> response = func(*args, **kwargs)
> File "/home/flint/.virtualenvs/ic-emea-az1/lib/python3.4/site-packages/octaviaclient/api/v2/octavia.py", line 92, in load_balancer_create
> response = self.create(url, **params)
> File "/home/flint/.virtualenvs/ic-emea-az1/lib/python3.4/site-packages/osc_lib/api/api.py", line 164, in create
> ret = self._request(method, url, session=session, **params)
> File "/home/flint/.virtualenvs/ic-emea-az1/lib/python3.4/site-packages/osc_lib/api/api.py", line 141, in _request
> return session.request(url, method, **kwargs)
> File "/home/flint/.virtualenvs/ic-emea-az1/lib/python3.4/site-packages/keystoneauth1/session.py", line 869, in request
> raise exceptions.from_response(resp, method, url)
> keystoneauth1.exceptions.http.BadRequest: Bad Request (HTTP 400) (Request-ID: req-2f929192-4e60-491b-b65d-3a7bef43e978)
>
> During handling of the above exception, another exception occurred:
>
> Traceback (most recent call last):
> File "/home/flint/.virtualenvs/ic-emea-az1/lib/python3.4/site-packages/cliff/app.py", line 402, in run_subcommand
> result = cmd.run(parsed_args)
> File "/home/flint/.virtualenvs/ic-emea-az1/lib/python3.4/site-packages/osc_lib/command/command.py", line 41, in run
> return super(Command, self).run(parsed_args)
> File "/home/flint/.virtualenvs/ic-emea-az1/lib/python3.4/site-packages/cliff/display.py", line 116, in run
> column_names, data = self.take_action(parsed_args)
> File "/home/flint/.virtualenvs/ic-emea-az1/lib/python3.4/site-packages/octaviaclient/osc/v2/load_balancer.py", line 121, in take_action
> json=body)
> File "/home/flint/.virtualenvs/ic-emea-az1/lib/python3.4/site-packages/octaviaclient/api/v2/octavia.py", line 38, in wrapper
> request_id=e.request_id)
> octaviaclient.api.v2.octavia.OctaviaClientException: Network c0d40dfd-123e-4a3c-92de-eb7b57178dd3 not found. (HTTP 400) (Request-ID: req-2f929192-4e60-491b-b65d-3a7bef43e978)
> clean_up CreateLoadBalancer: Network c0d40dfd-123e-4a3c-92de-eb7b57178dd3 not found. (HTTP 400) (Request-ID: req-2f929192-4e60-491b-b65d-3a7bef43e978)
> Traceback (most recent call last):
> File "/home/flint/.virtualenvs/ic-emea-az1/lib/python3.4/site-packages/octaviaclient/api/v2/octavia.py", line 29, in wrapper
> response = func(*args, **kwargs)
> File "/home/flint/.virtualenvs/ic-emea-az1/lib/python3.4/site-packages/octaviaclient/api/v2/octavia.py", line 92, in load_balancer_create
> response = self.create(url, **params)
> File "/home/flint/.virtualenvs/ic-emea-az1/lib/python3.4/site-packages/osc_lib/api/api.py", line 164, in create
> ret = self._request(method, url, session=session, **params)
> File "/home/flint/.virtualenvs/ic-emea-az1/lib/python3.4/site-packages/osc_lib/api/api.py", line 141, in _request
> return session.request(url, method, **kwargs)
> File "/home/flint/.virtualenvs/ic-emea-az1/lib/python3.4/site-packages/keystoneauth1/session.py", line 869, in request
> raise exceptions.from_response(resp, method, url)
> keystoneauth1.exceptions.http.BadRequest: Bad Request (HTTP 400) (Request-ID: req-2f929192-4e60-491b-b65d-3a7bef43e978)
>
> During handling of the above exception, another exception occurred:
>
> Traceback (most recent call last):
> File "/home/flint/.virtualenvs/ic-emea-az1/lib/python3.4/site-packages/osc_lib/shell.py", line 135, in run
> ret_val = super(OpenStackShell, self).run(argv)
> File "/home/flint/.virtualenvs/ic-emea-az1/lib/python3.4/site-packages/cliff/app.py", line 281, in run
> result = self.run_subcommand(remainder)
> File "/home/flint/.virtualenvs/ic-emea-az1/lib/python3.4/site-packages/osc_lib/shell.py", line 175, in run_subcommand
> ret_value = super(OpenStackShell, self).run_subcommand(argv)
> File "/home/flint/.virtualenvs/ic-emea-az1/lib/python3.4/site-packages/cliff/app.py", line 402, in run_subcommand
> result = cmd.run(parsed_args)
> File "/home/flint/.virtualenvs/ic-emea-az1/lib/python3.4/site-packages/osc_lib/command/command.py", line 41, in run
> return super(Command, self).run(parsed_args)
> File "/home/flint/.virtualenvs/ic-emea-az1/lib/python3.4/site-packages/cliff/display.py", line 116, in run
> column_names, data = self.take_action(parsed_args)
> File "/home/flint/.virtualenvs/ic-emea-az1/lib/python3.4/site-packages/octaviaclient/osc/v2/load_balancer.py", line 121, in take_action
> json=body)
> File "/home/flint/.virtualenvs/ic-emea-az1/lib/python3.4/site-packages/octaviaclient/api/v2/octavia.py", line 38, in wrapper
> request_id=e.request_id)
> octaviaclient.api.v2.octavia.OctaviaClientException: Network c0d40dfd-123e-4a3c-92de-eb7b57178dd3 not found. (HTTP 400) (Request-ID: req-2f929192-4e60-491b-b65d-3a7bef43e978)
>
> END return value: 1
> ```
> I'm using the following openstack clients and libraries:
>
> ```
> keystoneauth1==3.11.0
> kolla-ansible==6.1.0
> openstacksdk==0.17.2
> os-client-config==1.31.2
> os-service-types==1.3.0
> osc-lib==1.11.1
> oslo.config==6.5.1
> oslo.context==2.21.0
> oslo.i18n==3.22.1
> oslo.log==3.40.1
> oslo.serialization==2.28.1
> oslo.utils==3.37.0
> python-cinderclient==4.1.0
> python-dateutil==2.7.3
> python-glanceclient==2.12.1
> python-keystoneclient==3.17.0
> python-neutronclient==6.10.0
> python-novaclient==11.0.0
> python-octaviaclient==1.6.0
> python-openstackclient==3.16.1
> ```
> If on the same virtualenv I'm doing:
>
> `openstack --os-cloud ic-emea-west-az0 --os-region ic-emea-west-az1 network list`
>
> I correctly get my requested network/subnet id.
>
> I'm using Kolla to deploy octavia and get the exact same issue with all the kolla 6.0.0 to 6.1.0 serie.
>
> If anyone have an idea, I'm all in ^^
>
>
> _______________________________________________
> OpenStack-operators mailing list
> OpenStack-operators at lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators
More information about the OpenStack-operators
mailing list