Did someone have a solution for "Unable to establish connection to http://controller:9696/v2.0/extensions.json"
Thats the debug message when I start the command "neutron ext-list" (Ubuntu 16.10):
DEBUG: stevedore.extension found extension EntryPoint.parse('token_endpoint = openstackclient.api.auth_plugin:TokenEndpoint')
DEBUG: stevedore.extension found extension EntryPoint.parse('v2token = keystoneauth1.loading._plugins.identity.v2:Token')
DEBUG: stevedore.extension found extension EntryPoint.parse('v3oauth1 = keystoneauth1.extras.oauth1._loading:V3OAuth1')
DEBUG: stevedore.extension found extension EntryPoint.parse('admin_token = keystoneauth1.loading._plugins.admin_token:AdminToken')
DEBUG: stevedore.extension found extension EntryPoint.parse('v3oidcauthcode = keystoneauth1.loading._plugins.identity.v3:OpenIDConnectAuthorizationCode')
DEBUG: stevedore.extension found extension EntryPoint.parse('v2password = keystoneauth1.loading._plugins.identity.v2:Password')
DEBUG: stevedore.extension found extension EntryPoint.parse('v3samlpassword = keystoneauth1.extras._saml2._loading:Saml2Password')
DEBUG: stevedore.extension found extension EntryPoint.parse('v3password = keystoneauth1.loading._plugins.identity.v3:Password')
DEBUG: stevedore.extension found extension EntryPoint.parse('v3oidcaccesstoken = keystoneauth1.loading._plugins.identity.v3:OpenIDConnectAccessToken')
DEBUG: stevedore.extension found extension EntryPoint.parse('v3oidcpassword = keystoneauth1.loading._plugins.identity.v3:OpenIDConnectPassword')
DEBUG: stevedore.extension found extension EntryPoint.parse('v3kerberos = keystoneauth1.extras.kerberos._loading:Kerberos')
DEBUG: stevedore.extension found extension EntryPoint.parse('token = keystoneauth1.loading._plugins.identity.generic:Token')
DEBUG: stevedore.extension found extension EntryPoint.parse('v3oidcclientcredentials = keystoneauth1.loading._plugins.identity.v3:OpenIDConnectClientCredentials')
DEBUG: stevedore.extension found extension EntryPoint.parse('v3tokenlessauth = keystoneauth1.loading._plugins.identity.v3:TokenlessAuth')
DEBUG: stevedore.extension found extension EntryPoint.parse('v3token = keystoneauth1.loading._plugins.identity.v3:Token')
DEBUG: stevedore.extension found extension EntryPoint.parse('v3totp = keystoneauth1.loading._plugins.identity.v3:TOTP')
DEBUG: stevedore.extension found extension EntryPoint.parse('password = keystoneauth1.loading._plugins.identity.generic:Password')
DEBUG: stevedore.extension found extension EntryPoint.parse('v3fedkerb = keystoneauth1.extras.kerberos._loading:MappedKerberos')
DEBUG: stevedore.extension found extension EntryPoint.parse('table = cliff.formatters.table:TableFormatter')
DEBUG: stevedore.extension found extension EntryPoint.parse('json = cliff.formatters.json_format:JSONFormatter')
DEBUG: stevedore.extension found extension EntryPoint.parse('csv = cliff.formatters.commaseparated:CSVLister')
DEBUG: stevedore.extension found extension EntryPoint.parse('value = cliff.formatters.value:ValueFormatter')
DEBUG: stevedore.extension found extension EntryPoint.parse('yaml = cliff.formatters.yaml_format:YAMLFormatter')
DEBUG: neutronclient.neutron.v2_0.extension.ListExt run(Namespace(columns=[], fields=[], formatter='table', max_width=0, noindent=False, quote_mode='nonnumeric', request_format='json', show_details=False))
DEBUG: keystoneauth.session REQ: curl -g -i -X GET http://controller:35357/v3 -H "Accept: application/json" -H "User-Agent: neutron keystoneauth1/2.12.1 python-requests/2.18.4 CPython/2.7.12"
DEBUG: keystoneauth.session RESP: [200] Date: Fri, 16 Feb 2018 10:57:55 GMT Server: Apache/2.4.18 (Ubuntu) Vary: X-Auth-Token X-Distribution: Ubuntu x-openstack-request-id: req-92f03dea-e72c-4bea-88de-2934fbe909e4 Content-Length: 250 Keep-Alive: timeout=5, max=100 Connection: Keep-Alive Content-Type: application/json
RESP BODY: {"version": {"status": "stable", "updated": "2016-10-06T00:00:00Z", "media-types": [{"base": "application/json", "type": "application/vnd.openstack.identity-v3+json"}], "id": "v3.7", "links": [{"href": "http://controller:35357/v3/", "rel": "self"}]}}
DEBUG: keystoneauth.identity.v3.base Making authentication request to http://controller:35357/v3/auth/tokens
DEBUG: keystoneauth.identity.v3.base {"token": {"is_domain": false, "methods": ["password"], "roles": [{"id": "f8ba6b17551f4d4dbab81fc60121efa8", "name": "admin"}], "expires_at": "2018-02-16T11:57:55.000000Z", "project": {"domain": {"id": "default", "name": "Default"}, "id": "c89f6b032dc94cc6acda9af565416026", "name": "admin"}, "catalog": [{"endpoints": [{"url": "http://controller:8774/v2.1/c89f6b032dc94cc6acda9af565416026", "interface": "public", "region": "RegionOne", "region_id ...
Unable to establish connection to http://controller:9696/v2.0/extension... means that an attempt to access this URL fails. Is there connectivity to controller at all? If yes, is a firewall blocking port 9696? If not, is neutron server listening on 9696?
Hi Bernd,
the controller and the compute are both on the same physical switch. They have no firewall between. They can ping over IP and over the DNS name "controller", "compute". My config for the port ist in the /etc/nova/nova.conf in the part [neutron] "url = http://controller:9696%22 (http://controller:9696").
So, what happens when you test this? For example,
curl http://controller:9696
. Neutron should respond with a list of its API versions (afaik it has only one API version, namely 2).By the way, the config in Nova doesn't affect your
neutron ext-list
command.If there is, in fact, connectivity, check the neutron server log for error messages.
"curl http://co....%22 (http://co....") returns "Failed to connect to controller port 9696 Connection refused". I have no clue why it refused. Coud it be a premission Problem or somthing else? Server_log: https://1drv.ms/t/s!Atv2JmxbyzZugy2FLwmG0vDr8k2Z (https://1drv.ms/t/s!Atv2JmxbyzZugy2FL...)