Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

[Havana] Neutron: Unauthorized: Authentication required

Hello,

I'm trying to finish a setup of OpenStack with Neutron on a dedicated Networking Node for testing purposes. I'm using this guide

http://docs.openstack.org/trunk/install-guide/install/apt/content/ch_neutron.html

though I'm on 13.10.

Right now, I'm at

http://docs.openstack.org/trunk/install-guide/install/apt/content/install-neutron.configure-networks.html

I'm running into the following error, with the first command. The command being:

neutron --verbose net-create ext-net -- --router:external=True --provider:network_type vlan --provider:physical_network physnet1 --provider:segmentation_id 2

And the resulting error being:

(...) DEBUG: neutronclient.client RESP:{'date': 'Fri, 06 Dec 2013 13:37:20 GMT', 'status': '401', 'content-length': '23', 'content-type': 'text/plain', 'www-authenticate': "Keystone uri='http://openstack.poc:35357'"} Authentication required

ERROR: neutronclient.shell Authentication required DEBUG: neutronclient.shell clean_up CreateNetwork DEBUG: neutronclient.shell got an error: Authentication required

--debug shows:

Authentication required Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/neutronclient/shell.py", line 517, in run_subcommand return run_command(cmd, cmd_parser, sub_argv) File "/usr/lib/python2.7/dist-packages/neutronclient/shell.py", line 78, in run_command return cmd.run(known_args) File "/usr/lib/python2.7/dist-packages/neutronclient/common/command.py", line 35, in run return super(OpenStackCommand, self).run(parsed_args) File "/usr/lib/python2.7/dist-packages/cliff/display.py", line 84, in run column_names, data = self.take_action(parsed_args) File "/usr/lib/python2.7/dist-packages/neutronclient/common/command.py", line 41, in take_action return self.get_data(parsed_args) File "/usr/lib/python2.7/dist-packages/neutronclient/neutron/v2_0/__init__.py", line 399, in get_data data = obj_creator(body) File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 108, in with_params ret = self.function(instance, args, *kwargs) File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 335, in create_network return self.post(self.networks_path, body=body) File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 1188, in post headers=headers, params=params) File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 1103, in do_request resp, replybody = self.httpclient.do_request(action, method, body=body) File "/usr/lib/python2.7/dist-packages/neutronclient/client.py", line 192, in do_request self.endpoint_url + url, method, **kwargs) File "/usr/lib/python2.7/dist-packages/neutronclient/client.py", line 156, in _cs_request raise exceptions.Unauthorized(message=body) Unauthorized: Authentication required

I retraced the setup steps, to check if I missed something. I also set the password in keystone again (same value).

The user is there: ubuntu@openstack:~$ keystone user-get neutron +----------+----------------------------------+ | Property | Value | +----------+----------------------------------+ | email | pso@hosteurope.de | | enabled | True | | id | 10f59cc91df741e880b65fdd12c5e6af | | name | neutron | +----------+----------------------------------+

The service is there:

ubuntu@openstack:~$ keystone service-get neutron +-------------+----------------------------------+ | Property | Value | +-------------+----------------------------------+ | description | OpenStack Networking Service | | id | 1903b65e55c647739511b65695e5b924 | | name | neutron | | type | network | +-------------+----------------------------------+

The endpoint is there also: | 231bde4a34ee4e1b98dda918b30cd350 | regionOne | http://openstack.poc:9696 | http://openstack.poc:9696 | http://openstack.poc:9696 | 1903b65e55c647739511b65695e5b924 |

Other than "Authentication required", I cannot find any hint's as to where the root cause lies. It seems, that this auth request doesn't even get to keystone, as there is nothing in keystones log files.

I assume something related to keystoneclient.middleware.auth_token. Though in neutron.conf, the line api_paste_config = api-paste.ini is commented out, which should make neutron use only neutron.conf for all things authorisation, section [keystone_authtoken].

I assume I'm a simpleton, as this surely is some typo, or some missing config elements. But as of now, I can't find it.

Any help is much appreciated.

Regards, Philipp

[Havana] Neutron: Unauthorized: Authentication required

Hello,

I'm trying to finish a setup of OpenStack with Neutron on a dedicated Networking Node for testing purposes. I'm using this guide

http://docs.openstack.org/trunk/install-guide/install/apt/content/ch_neutron.html

though I'm on 13.10.

Right now, I'm at

http://docs.openstack.org/trunk/install-guide/install/apt/content/install-neutron.configure-networks.html

I'm running into the following error, with the first command. The command being:

neutron --verbose net-create ext-net -- --router:external=True --provider:network_type vlan --provider:physical_network physnet1 --provider:segmentation_id 2

And the resulting error being:

(...) DEBUG: neutronclient.client RESP:{'date': 'Fri, 06 Dec 2013 13:37:20 GMT', 'status': '401', 'content-length': '23', 'content-type': 'text/plain', 'www-authenticate': "Keystone uri='http://openstack.poc:35357'"} Authentication required

ERROR: neutronclient.shell Authentication required DEBUG: neutronclient.shell clean_up CreateNetwork DEBUG: neutronclient.shell got an error: Authentication required

--debug shows:

Authentication required Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/neutronclient/shell.py", line 517, in run_subcommand return run_command(cmd, cmd_parser, sub_argv) File "/usr/lib/python2.7/dist-packages/neutronclient/shell.py", line 78, in run_command return cmd.run(known_args) File "/usr/lib/python2.7/dist-packages/neutronclient/common/command.py", line 35, in run return super(OpenStackCommand, self).run(parsed_args) File "/usr/lib/python2.7/dist-packages/cliff/display.py", line 84, in run column_names, data = self.take_action(parsed_args) File "/usr/lib/python2.7/dist-packages/neutronclient/common/command.py", line 41, in take_action return self.get_data(parsed_args) File "/usr/lib/python2.7/dist-packages/neutronclient/neutron/v2_0/__init__.py", line 399, in get_data data = obj_creator(body) File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 108, in with_params ret = self.function(instance, args, *kwargs) File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 335, in create_network return self.post(self.networks_path, body=body) File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 1188, in post headers=headers, params=params) File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 1103, in do_request resp, replybody = self.httpclient.do_request(action, method, body=body) File "/usr/lib/python2.7/dist-packages/neutronclient/client.py", line 192, in do_request self.endpoint_url + url, method, **kwargs) File "/usr/lib/python2.7/dist-packages/neutronclient/client.py", line 156, in _cs_request raise exceptions.Unauthorized(message=body) Unauthorized: Authentication required

I retraced the setup steps, to check if I missed something. I also set the password in keystone again (same value).

The user is there: ubuntu@openstack:~$ keystone user-get neutron +----------+----------------------------------+ | Property | Value | +----------+----------------------------------+ | email | pso@hosteurope.de | | enabled | True | | id | 10f59cc91df741e880b65fdd12c5e6af | | name | neutron | +----------+----------------------------------+

The service is there:

ubuntu@openstack:~$ keystone service-get neutron +-------------+----------------------------------+ | Property | Value | +-------------+----------------------------------+ | description | OpenStack Networking Service | | id | 1903b65e55c647739511b65695e5b924 | | name | neutron | | type | network | +-------------+----------------------------------+

The endpoint is there also: | 231bde4a34ee4e1b98dda918b30cd350 | regionOne | http://openstack.poc:9696 | http://openstack.poc:9696 | http://openstack.poc:9696 | 1903b65e55c647739511b65695e5b924 |

Other than "Authentication required", I cannot find any hint's as to where the root cause lies. It seems, that this auth request doesn't even get to keystone, as there is nothing in keystones log files.

I assume something related to keystoneclient.middleware.auth_token. Though in neutron.conf, the line api_paste_config = api-paste.ini is commented out, which should make neutron use only neutron.conf for all things authorisation, section [keystone_authtoken].

I assume I'm a simpleton, as this surely is some typo, or some missing config elements. But as of now, I can't find it.

Any help is much appreciated.

Regards, Philipp

UPDATE:

Firstly, the output with --debug:

:~$ neutron --debug net-create ext-net -- --router:external=True --provider:network_type vlan --provider:physical_network physnet1 --provider:segmentation_id 2 Authentication required Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/neutronclient/shell.py", line 517, in run_subcommand return run_command(cmd, cmd_parser, sub_argv) File "/usr/lib/python2.7/dist-packages/neutronclient/shell.py", line 78, in run_command return cmd.run(known_args) File "/usr/lib/python2.7/dist-packages/neutronclient/common/command.py", line 35, in run return super(OpenStackCommand, self).run(parsed_args) File "/usr/lib/python2.7/dist-packages/cliff/display.py", line 84, in run column_names, data = self.take_action(parsed_args) File "/usr/lib/python2.7/dist-packages/neutronclient/common/command.py", line 41, in take_action return self.get_data(parsed_args) File "/usr/lib/python2.7/dist-packages/neutronclient/neutron/v2_0/__init__.py", line 399, in get_data data = obj_creator(body) File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 108, in with_params ret = self.function(instance, args, *kwargs) File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 335, in create_network return self.post(self.networks_path, body=body) File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 1188, in post headers=headers, params=params) File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 1103, in do_request resp, replybody = self.httpclient.do_request(action, method, body=body) File "/usr/lib/python2.7/dist-packages/neutronclient/client.py", line 192, in do_request self.endpoint_url + url, method, **kwargs) File "/usr/lib/python2.7/dist-packages/neutronclient/client.py", line 156, in _cs_request raise exceptions.Unauthorized(message=body) Unauthorized: Authentication required

Secondly, the output with --verbose:

ubuntu@openstack:~$ neutron --verbose net-create ext-net -- --router:external=True --provider:network_type vlan --provider:physical_network physnet1 --provider:segmentation_id 2 DEBUG: neutronclient.neutron.v2_0.network.CreateNetwork get_data(Namespace(admin_state=True, columns=[], formatter='table', name=u'ext-net', prefix='', request_format='json', shared=False, tenant_id=None, variables=[])) DEBUG: neutronclient.client REQ: curl -i http://openstack.poc:35357/v2.0/tokens -X POST -H "Content-Type: application/json" -H "Accept: application/json" -H "User-Agent: python-neutronclient" -d '{"auth": {"tenantName": "admin", "passwordCredentials": {"username": "admin", "password": "REDACTED"}}}'

DEBUG: neutronclient.client RESP:{'date': 'Mon, 09 Dec 2013 07:56:54 GMT', 'vary': 'X-Auth-Token', 'content-length': '4993', 'status': '200', 'content-type': 'application/json'} {"access": {"token": {"issued_at": "2013-12-09T07:56:54.679431", "expires": "2013-12-10T07:56:54Z", "id": "MIIJHQYJKoZIhvcNAQcCoIIJDjCCCQoCAQExCTAHBgUrDgMCGjCCB3MGCSqGSIb3DQEHAaCCB2QEggdgeyJhY2Nlc3MiOiB7InRva2VuIjogeyJpc3N1ZWRfYXQiOiAiMjAxMy0xMi0wOVQwNzo1Njo1NC42Nzk0MzEiLCAiZXhwaXJlcyI6ICIyMDEzLTEyLTEwVDA3OjU2OjU0WiIsICJpZCI6ICJwbGFjZWhvbGRlciIsICJ0ZW5hbnQiOiB7ImRlc2NyaXB0aW9uIjogIkFkbWluIFRlbmFudCIsICJ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zIjogW3sibmFtZSI6ICJhZG1pbiJ9XSwgIm5hbWUiOiAiYWRtaW4ifSwgIm1ldGFkYXRhIjogeyJpc19hZG1pbiI6IDAsICJyb2xlcyI6IFsiNmM4NDk1ZGM5YjgwNGYyZjhlN2ZmOTQ2NzI3MTBiMTUiXX19fTGCAYEwggF9AgEBMFwwVzELMAkGA1UEBhMCVVMxDjAMBgNVBAgMBVVuc2V0MQ4wDAYDVQQHDAVVbnNldDEOMAwGA1UECgwFVW5zZXQxGDAWBgNVBAMMD3d3dy5leGFtcGxlLmNvbQIBATAHBgUrDgMCGjANBgkqhkiG9w0BAQEFAASCAQCp4EOuVVBqi0PJVJB1z80AI6oqCjkIubEenAxw6nv+eL1z3ZMHtObOexVE2N9II6tCiAZ5GsdKNuwa1oHHKqFrglIRzvpKC-SaNpKQlbqyc6NiRYz2qEOliZ2Re3B79QcBjyPgNXRS83OqKs9z0YhqUzDaTSXyqVJMLIxstbvMQbTz8LpAS8IGgjGS2AZ2N38SrT5+4cJ8c2C63MI+SjPwO5d3Z8MFQWEd7uL28YJkb9rffw3hHcznqIO1gA7cIak4mWmJZ2CWPG7EvSSUy7ryHzeMFGURxWc1pJ2JMEq0Kjo6kcCZLdXvEG9Zke0s1ggdga8rKV3IZ5NIkchvF7NT", "tenant": {"description": "Admin Tenant", "enabled": true, "id": "5829fb0063bb4f0d9b1aab6325f402f2", "name": "admin"}}, "serviceCatalog": [{"endpoints": [{"adminURL": "http://openstack.poc:9292", "region": "regionOne", "internalURL": "http://openstack.poc:9292", "id": "28a9ec95840345528379cf67ffb70a22", "publicURL": "http://openstack.poc:9292"}], "endpoints_links": [], "type": "image", "name": "glance"}, {"endpoints": [{"adminURL": "http://openstack.poc:8774/v2/5829fb0063bb4f0d9b1aab6325f402f2", "region": "regionOne", "internalURL": "http://openstack.poc:8774/v2/5829fb0063bb4f0d9b1aab6325f402f2", "id": "43ceb7bd842347d3ac7e1bb26376a8a3", "publicURL": "http://openstack.poc:8774/v2/5829fb0063bb4f0d9b1aab6325f402f2"}], "endpoints_links": [], "type": "compute", "name": "nova"}, {"endpoints": [{"adminURL": "http://openstack.poc:9696", "region": "regionOne", "internalURL": "http://openstack.poc:9696", "id": "004f0facdd4f432b88d61ae943a09689", "publicURL": "http://openstack.poc:9696"}], "endpoints_links": [], "type": "network", "name": "neutron"}, {"endpoints": [{"adminURL": "http://openstack.poc:35357/v2.0", "region": "regionOne", "internalURL": "http://openstack.poc:5000/v2.0", "id": "2f52447bf6ac486a9db396161c08b54a", "publicURL": "http://openstack.poc:5000/v2.0"}], "endpoints_links": [], "type": "identity", "name": "keystone"}], "user": {"username": "admin", "roles_links": [], "id": "de05bb151707412faae988935f894ba8", "roles": [{"name": "admin"}], "name": "admin"}, "metadata": {"is_admin": 0, "roles": ["6c8495dc9b804f2f8e7ff94672710b15"]}}}

DEBUG: neutronclient.client REQ: curl -i http://openstack.poc:9696/v2.0/networks.json -X POST -H "X-Auth-Token: MIIJHQYJKoZIhvcNAQcCoIIJDjCCCQoCAQExCTAHBgUrDgMCGjCCB3MGCSqGSIb3DQEHAaCCB2QEggdgeyJhY2Nlc3MiOiB7InRva2VuIjogeyJpc3N1ZWRfYXQiOiAiMjAxMy0xMi0wOVQwNzo1Njo1NC42Nzk0MzEiLCAiZXhwaXJlcyI6ICIyMDEzLTEyLTEwVDA3OjU2OjU0WiIsICJpZCI6ICJwbGFjZWhvbGRlciIsICJ0ZW5hbnQiOiB7ImRlc2NyaXB0aW9uIjogIkFkbWluIFRlbmFudCIsICJlbmFibGVkIjogdHJ1ZSwgImlkIjogIjU4MjlmYjAwNjNiYjRmMGQ5YjFhYWI2MzI1ZjQwMmYyIiwgIm5hbWUiOiAiYWRtaW4ifX0sICJzZXJ2aWNlQ2F0YWxvZyI6IFt7ImVuZHBvaW50cyI6IFt7ImFkbWluVVJMIjogImh0dHA6Ly9vcGVuc3RhY2sucG9jLnBkLmhvc3RldXJvcGUuZGU6OTI5MiIsICJyZWdpb24iOiAicmVnaW9uT25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ECgwFVW5zZXQxGDAWBgNVBAMMD3d3dy5leGFtcGxlLmNvbQIBATAHBgUrDgMCGjANBgkqhkiG9w0BAQEFAASCAQCp4EOuVVBqi0PJVJB1z80AI6oqCjkIubEenAxw6nv+eL1z3ZMHtObOexVE2N9II6tCiAZ5GsdKNuwa1oHHKqFrglIRzvpKC-SaNpKQlbqyc6NiRYz2qEOliZ2Re3B79QcBjyPgNXRS83OqKs9z0YhqUzDaTSXyqVJMLIxstbvMQbTz8LpAS8IGgjGS2AZ2N38SrT5+4cJ8c2C63MI+SjPwO5d3Z8MFQWEd7uL28YJkb9rffw3hHcznqIO1gA7cIak4mWmJZ2CWPG7EvSSUy7ryHzeMFGURxWc1pJ2JMEq0Kjo6kcCZLdXvEG9Zke0s1ggdga8rKV3IZ5NIkchvF7NT" -H "Content-Type: application/json" -H "Accept: application/json" -H "User-Agent: python-neutronclient" -d '{"network": {"router:external": "True", "name": "ext-net", "provider:physical_network": "physnet1", "admin_state_up": true, "provider:network_type": "vlan", "provider:segmentation_id": "2"}}'

DEBUG: neutronclient.client RESP:{'date': 'Mon, 09 Dec 2013 07:56:58 GMT', 'status': '401', 'content-length': '23', 'content-type': 'text/plain', 'www-authenticate': "Keystone uri='http://openstack.poc:35357'"} Authentication required

DEBUG: neutronclient.client REQ: curl -i http://openstack.poc:35357/v2.0/tokens -X POST -H "Content-Type: application/json" -H "Accept: application/json" -H "User-Agent: python-neutronclient" -d '{"auth": {"tenantName": "admin", "passwordCredentials": {"username": "admin", "password": "REDACTED"}}}'

DEBUG: neutronclient.client RESP:{'date': 'Mon, 09 Dec 2013 07:56:58 GMT', 'vary': 'X-Auth-Token', 'content-length': '4993', 'status': '200', 'content-type': 'application/json'} {"access": {"token": {"issued_at": "2013-12-09T07:56:58.344237", "expires": "2013-12-10T07:56:58Z", "id": "MIIJHQYJKoZIhvcNAQcCoIIJDjCCCQoCAQExCTAHBgUrDgMCGjCCB3MGCSqGSIb3DQEHAaCCB2QEggdgeyJhY2Nlc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MCJ9XSwgImVuZHBvaW50c19saW5rcyI6IFtdLCAidHlwZSI6ICJpZGVudGl0eSIsICJuYW1lIjogImtleXN0b25lIn1dLCAidXNlciI6IHsidXNlcm5hbWUiOiAiYWRtaW4iLCAicm9sZXNfbGlua3MiOiBbXSwgImlkIjogImRlMDViYjE1MTcwNzQxMmZhYWU5ODg5MzVmODk0YmE4IiwgInJvbGVzIjogW3sibmFtZSI6ICJhZG1pbiJ9XSwgIm5hbWUiOiAiYWRtaW4ifSwgIm1ldGFkYXRhIjogeyJpc19hZG1pbiI6IDAsICJyb2xlcyI6IFsiNmM4NDk1ZGM5YjgwNGYyZjhlN2ZmOTQ2NzI3MTBiMTUiXX19fTGCAYEwggF9AgEBMFwwVzELMAkGA1UEBhMCVVMxDjAMBgNVBAgMBVVuc2V0MQ4wDAYDVQQHDAVVbnNldDEOMAwGA1UECgwFVW5zZXQxGDAWBgNVBAMMD3d3dy5leGFtcGxlLmNvbQIBATAHBgUrDgMCGjANBgkqhkiG9w0BAQEFAASCAQBQr-XHjB66Dv-oDCHFGl9Uz+AlRoihiEVNbfd-bs1LV4hs0Lh3zPprjC5PBJ29SjRMa1ZUPXXPr+qIUfo-i9LYr3sU09G0U41KdfFy8LRNvEo1zddN84YCr1DVEmvelkrw+KVLDXo0JlO54xOKf33dFB4l13vuIcy7MeQPgH8CzoQET0bkEWzRr0jRNkVLvDN9zKIAA1BxDrwwuJOhD1LDvSnWiklkSvzVGlubnOmSteO7rGx8boY6JpJ79rspFbBdncI2rfcP0pgyLFEmei+oLPp3C2BWoMcyxQxikW8cmuPKCLGsVB-K48i7RGtX95B6nBDWJwIjSLJ6+TiU2Xrt", "tenant": {"description": "Admin Tenant", "enabled": true, "id": "5829fb0063bb4f0d9b1aab6325f402f2", "name": "admin"}}, "serviceCatalog": [{"endpoints": [{"adminURL": "http://openstack.poc:9292", "region": "regionOne", "internalURL": "http://openstack.poc:9292", "id": "28a9ec95840345528379cf67ffb70a22", "publicURL": "http://openstack.poc:9292"}], "endpoints_links": [], "type": "image", "name": "glance"}, {"endpoints": [{"adminURL": "http://openstack.poc:8774/v2/5829fb0063bb4f0d9b1aab6325f402f2", "region": "regionOne", "internalURL": "http://openstack.poc:8774/v2/5829fb0063bb4f0d9b1aab6325f402f2", "id": "43ceb7bd842347d3ac7e1bb26376a8a3", "publicURL": "http://openstack.poc:8774/v2/5829fb0063bb4f0d9b1aab6325f402f2"}], "endpoints_links": [], "type": "compute", "name": "nova"}, {"endpoints": [{"adminURL": "http://openstack.poc:9696", "region": "regionOne", "internalURL": "http://openstack.poc:9696", "id": "004f0facdd4f432b88d61ae943a09689", "publicURL": "http://openstack.poc:9696"}], "endpoints_links": [], "type": "network", "name": "neutron"}, {"endpoints": [{"adminURL": "http://openstack.po:35357/v2.0", "region": "regionOne", "internalURL": "http://openstack.poc:5000/v2.0", "id": "2f52447bf6ac486a9db396161c08b54a", "publicURL": "http://openstack.poc:5000/v2.0"}], "endpoints_links": [], "type": "identity", "name": "keystone"}], "user": {"username": "admin", "roles_links": [], "id": "de05bb151707412faae988935f894ba8", "roles": [{"name": "admin"}], "name": "admin"}, "metadata": {"is_admin": 0, "roles": ["6c8495dc9b804f2f8e7ff94672710b15"]}}}

DEBUG: neutronclient.client REQ: curl -i http://openstack.poc:9696/v2.0/networks.json -X POST -H "X-Auth-Token: MIIJHQYJKoZIhvcNAQcCoIIJDjCCCQoCAQExCTAHBgUrDgMCGjCCB3MGCSqGSIb3DQEHAaCCB2QEggdgeyJhY2Nlc3MiOiB7InRva2VuIjogeyJpc3N1ZWRfYXQiOiAiMjAxMy0xMi0wOVQwNzo1Njo1OC4zNDQyMzciLCAiZXhwaXJlcyI6ICIyMDEzLTEyLTEwVDA3OjU2OjU4WiIsICJpZCI6ICJwbGFjZWhvbGRlciIsICJ0ZW5hbnQiOiB7ImRlc2NyaXB0aW9uIjogIkFkbWluIFRlbmFudCIsICJlbmFibGVkIjogdHJ1ZSwgImlkIjogIjU4MjlmYjAwNjNiYjRmMGQ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4ifSwgIm1ldGFkYXRhIjogeyJpc19hZG1pbiI6IDAsICJyb2xlcyI6IFsiNmM4NDk1ZGM5YjgwNGYyZjhlN2ZmOTQ2NzI3MTBiMTUiXX19fTGCAYEwggF9AgEBMFwwVzELMAkGA1UEBhMCVVMxDjAMBgNVBAgMBVVuc2V0MQ4wDAYDVQQHDAVVbnNldDEOMAwGA1UECgwFVW5zZXQxGDAWBgNVBAMMD3d3dy5leGFtcGxlLmNvbQIBATAHBgUrDgMCGjANBgkqhkiG9w0BAQEFAASCAQBQr-XHjB66Dv-oDCHFGl9Uz+AlRoihiEVNbfd-bs1LV4hs0Lh3zPprjC5PBJ29SjRMa1ZUPXXPr+qIUfo-i9LYr3sU09G0U41KdfFy8LRNvEo1zddN84YCr1DVEmvelkrw+KVLDXo0JlO54xOKf33dFB4l13vuIcy7MeQPgH8CzoQET0bkEWzRr0jRNkVLvDN9zKIAA1BxDrwwuJOhD1LDvSnWiklkSvzVGlubnOmSteO7rGx8boY6JpJ79rspFbBdncI2rfcP0pgyLFEmei+oLPp3C2BWoMcyxQxikW8cmuPKCLGsVB-K48i7RGtX95B6nBDWJwIjSLJ6+TiU2Xrt" -H "Content-Type: application/json" -H "Accept: application/json" -H "User-Agent: python-neutronclient" -d '{"network": {"router:external": "True", "name": "ext-net", "provider:physical_network": "physnet1", "admin_state_up": true, "provider:network_type": "vlan", "provider:segmentation_id": "2"}}'

DEBUG: neutronclient.client RESP:{'date': 'Mon, 09 Dec 2013 07:57:01 GMT', 'status': '401', 'content-length': '23', 'content-type': 'text/plain', 'www-authenticate': "Keystone uri='http://openstack.poc:35357'"} Authentication required

ERROR: neutronclient.shell Authentication required DEBUG: neutronclient.shell clean_up CreateNetwork DEBUG: neutronclient.shell got an error: Authentication required

[Havana] Neutron: Unauthorized: Authentication required

Hello,

I'm trying to finish a setup of OpenStack with Neutron on a dedicated Networking Node for testing purposes. I'm using this guide

http://docs.openstack.org/trunk/install-guide/install/apt/content/ch_neutron.html

though I'm on 13.10.

Right now, I'm at

http://docs.openstack.org/trunk/install-guide/install/apt/content/install-neutron.configure-networks.html

I'm running into the following error, with the first command. The command being:

neutron --verbose net-create ext-net -- --router:external=True --provider:network_type vlan --provider:physical_network physnet1 --provider:segmentation_id 2

And the resulting error being:

(...) DEBUG: neutronclient.client RESP:{'date': 'Fri, 06 Dec 2013 13:37:20 GMT', 'status': '401', 'content-length': '23', 'content-type': 'text/plain', 'www-authenticate': "Keystone uri='http://openstack.poc:35357'"} Authentication required

ERROR: neutronclient.shell Authentication required DEBUG: neutronclient.shell clean_up CreateNetwork DEBUG: neutronclient.shell got an error: Authentication required

--debug shows:

Authentication required Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/neutronclient/shell.py", line 517, in run_subcommand return run_command(cmd, cmd_parser, sub_argv) File "/usr/lib/python2.7/dist-packages/neutronclient/shell.py", line 78, in run_command return cmd.run(known_args) File "/usr/lib/python2.7/dist-packages/neutronclient/common/command.py", line 35, in run return super(OpenStackCommand, self).run(parsed_args) File "/usr/lib/python2.7/dist-packages/cliff/display.py", line 84, in run column_names, data = self.take_action(parsed_args) File "/usr/lib/python2.7/dist-packages/neutronclient/common/command.py", line 41, in take_action return self.get_data(parsed_args) File "/usr/lib/python2.7/dist-packages/neutronclient/neutron/v2_0/__init__.py", line 399, in get_data data = obj_creator(body) File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 108, in with_params ret = self.function(instance, args, *kwargs) File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 335, in create_network return self.post(self.networks_path, body=body) File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 1188, in post headers=headers, params=params) File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 1103, in do_request resp, replybody = self.httpclient.do_request(action, method, body=body) File "/usr/lib/python2.7/dist-packages/neutronclient/client.py", line 192, in do_request self.endpoint_url + url, method, **kwargs) File "/usr/lib/python2.7/dist-packages/neutronclient/client.py", line 156, in _cs_request raise exceptions.Unauthorized(message=body) Unauthorized: Authentication required

I retraced the setup steps, to check if I missed something. I also set the password in keystone again (same value).

The user is there: ubuntu@openstack:~$ keystone user-get neutron +----------+----------------------------------+ | Property | Value | +----------+----------------------------------+ | email | pso@hosteurope.de | | enabled | True | | id | 10f59cc91df741e880b65fdd12c5e6af | | name | neutron | +----------+----------------------------------+

The service is there:

ubuntu@openstack:~$ keystone service-get neutron +-------------+----------------------------------+ | Property | Value | +-------------+----------------------------------+ | description | OpenStack Networking Service | | id | 1903b65e55c647739511b65695e5b924 | | name | neutron | | type | network | +-------------+----------------------------------+

The endpoint is there also: | 231bde4a34ee4e1b98dda918b30cd350 | regionOne | http://openstack.poc:9696 | http://openstack.poc:9696 | http://openstack.poc:9696 | 1903b65e55c647739511b65695e5b924 |

Other than "Authentication required", I cannot find any hint's as to where the root cause lies. It seems, that this auth request doesn't even get to keystone, as there is nothing in keystones log files.

I assume something related to keystoneclient.middleware.auth_token. Though in neutron.conf, the line api_paste_config = api-paste.ini is commented out, which should make neutron use only neutron.conf for all things authorisation, section [keystone_authtoken].

I assume I'm a simpleton, as this surely is some typo, or some missing config elements. But as of now, I can't find it.

Any help is much appreciated.

Regards, Philipp

UPDATE:

Firstly, the output with --debug:

:~$ neutron --debug net-create ext-net -- --router:external=True --provider:network_type vlan --provider:physical_network physnet1 --provider:segmentation_id 2 2

Authentication required Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/neutronclient/shell.py", line 517, in run_subcommand return run_command(cmd, cmd_parser, sub_argv) File "/usr/lib/python2.7/dist-packages/neutronclient/shell.py", line 78, in run_command return cmd.run(known_args) File "/usr/lib/python2.7/dist-packages/neutronclient/common/command.py", line 35, in run return super(OpenStackCommand, self).run(parsed_args) File "/usr/lib/python2.7/dist-packages/cliff/display.py", line 84, in run column_names, data = self.take_action(parsed_args) File "/usr/lib/python2.7/dist-packages/neutronclient/common/command.py", line 41, in take_action return self.get_data(parsed_args) File "/usr/lib/python2.7/dist-packages/neutronclient/neutron/v2_0/__init__.py", line 399, in get_data data = obj_creator(body) File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 108, in with_params ret = self.function(instance, args, *kwargs) File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 335, in create_network return self.post(self.networks_path, body=body) File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 1188, in post headers=headers, params=params) File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 1103, in do_request resp, replybody = self.httpclient.do_request(action, method, body=body) File "/usr/lib/python2.7/dist-packages/neutronclient/client.py", line 192, in do_request self.endpoint_url + url, method, **kwargs) File "/usr/lib/python2.7/dist-packages/neutronclient/client.py", line 156, in _cs_request raise exceptions.Unauthorized(message=body) Unauthorized: Authentication required

Secondly, the output with --verbose:

ubuntu@openstack:~$ neutron --verbose net-create ext-net -- --router:external=True --provider:network_type vlan --provider:physical_network physnet1 --provider:segmentation_id -- provider:segmentation_id 2 DEBUG: neutronclient.neutron.v2_0.network.CreateNetwork get_data(Namespace(admin_state=True, columns=[], formatter='table', name=u'ext-net', prefix='', request_format='json', shared=False, tenant_id=None, variables=[])) DEBUG: neutronclient.client REQ: curl -i http://openstack.poc:35357/v2.0/tokens -X POST -H "Content-Type: application/json" -H "Accept: application/json" -H "User-Agent: python-neutronclient" python- neutronclient" -d '{"auth": {"tenantName": "admin", "passwordCredentials": {"username": "admin", "password": "REDACTED"}}}'

DEBUG: neutronclient.client RESP:{'date': 'Mon, 09 Dec 2013 07:56:54 GMT', 'vary': 'X-Auth-Token', 'content-length': '4993', 'status': '200', 'content-type': 'application/json'} {"access": {"token": {"issued_at": "2013-12-09T07:56:54.679431", "expires": "2013-12-10T07:56:54Z", "id": "MIIJHQYJKoZIhvcNAQcCoIIJDjCCCQoCAQExCTAHBgUrDgMCGjCCB3MGCSqGSIb3DQEHAaCCB2QEggdgeyJhY2Nlc3MiOiB7InRva2VuIjogeyJpc3N1ZWRfYXQiOiAiMjAxMy0xMi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RtaW4iLCAicm9sZXNfbGlua3MiOiBbXSwgImlkIjogImRlMDViYjE1MTcwNzQxMmZhYWU5ODg5MzVmODk0YmE4IiwgInJvbGVzIjogW3sibmFtZSI6ICJhZG1pbiJ9XSwgI m5hbWUiOiAiYWRtaW4ifSwgIm1ldGFkYXRhIjogeyJpc19hZG1pbiI6IDAsICJyb2xlcyI6IFsiNmM4NDk1ZGM5YjgwNGYyZjhlN2ZmOTQ2NzI3MTBiMTUiXX19fTGCAYEwggF9AgE BMFwwVzELMAkGA1UEBhMCVVMxDjAMBgNVBAgMBVVuc2V0MQ4wDAYDVQQHDAVVbnNldDEOMAwGA1UECgwFVW5zZXQxGDAWBgNVBAMMD3d3dy5leGFtcGxlLmNvbQIB ATAHBgUrDgMCGjANBgkqhkiG9w0BAQEFAASCAQCp4EOuVVBqi0PJVJB1z80AI6oqCjkIubEenAxw6nv+eL1z3ZMHtObOexVE2N9II6tCiAZ5GsdKNuwa1oHHKqFrglIRzvpKC- SaNpKQlbqyc6NiRYz2qEOliZ2Re3B79QcBjyPgNXRS83OqKs9z0YhqUzDaTSXyqVJMLIxstbvMQbTz8LpAS8IGgjGS2AZ2N38SrT5+4cJ8c2C63MI+SjPwO5d3Z8MFQWEd7uL28YJkb 9rffw3hHcznqIO1gA7cIak4mWmJZ2CWPG7EvSSUy7ryHzeMFGURxWc1pJ2JMEq0Kjo6kcCZLdXvEG9Zke0s1ggdga8rKV3IZ5NIkchvF7NT", "tenant": {"description": "Admin Tenant", "enabled": true, "id": "5829fb0063bb4f0d9b1aab6325f402f2", "name": "admin"}}, "serviceCatalog": [{"endpoints": [{"adminURL": "http://openstack.poc:9292", "region": "regionOne", "internalURL": "http://openstack.poc:9292", "id": "28a9ec95840345528379cf67ffb70a22", "publicURL": "http://openstack.poc:9292"}], "endpoints_links": [], "type": "image", "name": "glance"}, {"endpoints": [{"adminURL": "http://openstack.poc:8774/v2/5829fb0063bb4f0d9b1aab6325f402f2", "region": "regionOne", "internalURL": "http://openstack.poc:8774/v2/5829fb0063bb4f0d9b1aab6325f402f2", "id": "43ceb7bd842347d3ac7e1bb26376a8a3", "publicURL": "http://openstack.poc:8774/v2/5829fb0063bb4f0d9b1aab6325f402f2"}], "endpoints_links": [], "type": "compute", "name": "nova"}, {"endpoints": [{"adminURL": "http://openstack.poc:9696", "region": "regionOne", "internalURL": "http://openstack.poc:9696", "id": "004f0facdd4f432b88d61ae943a09689", "publicURL": "http://openstack.poc:9696"}], "endpoints_links": [], "type": "network", "name": "neutron"}, {"endpoints": [{"adminURL": "http://openstack.poc:35357/v2.0", "region": "regionOne", "internalURL": "http://openstack.poc:5000/v2.0", "id": "2f52447bf6ac486a9db396161c08b54a", "publicURL": "http://openstack.poc:5000/v2.0"}], "endpoints_links": [], "type": "identity", "name": "keystone"}], "user": {"username": "admin", "roles_links": [], "id": "de05bb151707412faae988935f894ba8", "roles": [{"name": "admin"}], "name": "admin"}, "metadata": {"is_admin": 0, "roles": ["6c8495dc9b804f2f8e7ff94672710b15"]}}}

DEBUG: neutronclient.client REQ: curl -i http://openstack.poc:9696/v2.0/networks.json -X POST -H "X-Auth-Token: MIIJHQYJKoZIhvcNAQcCoIIJDjCCCQoCAQExCTAHBgUrDgMCGjCCB3MGCSqGSIb3DQEHAaCCB2QEggdgeyJhY2Nlc3MiOiB7InRva2VuIjogeyJpc3N1ZWRfYXQiOiAiMjAxMy0xMi0wOVQwNzo1Njo1NC42Nzk0MzEiLCAiZXhwaXJlcyI6ICIyMDEzLTEyLTEwVDA3OjU2OjU0WiIsICJpZCI6ICJwbGFjZWhvbGRlciIsICJ0ZW5hbnQiOiB7ImRlc2NyaXB0aW9uIjogIkFkbWluIFRlbmFudCIsICJlbmFibGVkIjogdHJ1ZSwgImlkIjogIjU4MjlmYjAwNjNiYjRmMGQ5YjFhYWI2MzI1ZjQwMmYyIiwgIm5hbWUiOiAiYWRtaW4ifX0sICJzZXJ2aWNlQ2F0YWxvZyI6IFt7ImVuZHBvaW50cyI6IFt7ImFk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DVQQHDAVVbnNldDEOMAwGA1UECgwFVW5zZXQxGDAWBgNVBAMMD3d3dy5leGFtcGxlLmNvbQIB ATAHBgUrDgMCGjANBgkqhkiG9w0BAQEFAASCAQCp4EOuVVBqi0PJVJB1z80AI6oqCjkIubEenAxw6nv+eL1z3ZMHtObOexVE2N9II6tCiAZ5GsdKNuwa1oHHKqFrglIRzvpKC- SaNpKQlbqyc6NiRYz2qEOliZ2Re3B79QcBjyPgNXRS83OqKs9z0YhqUzDaTSXyqVJMLIxstbvMQbTz8LpAS8IGgjGS2AZ2N38SrT5+4cJ8c2C63MI+SjPwO5d3Z8MFQWEd7uL28YJkb 9rffw3hHcznqIO1gA7cIak4mWmJZ2CWPG7EvSSUy7ryHzeMFGURxWc1pJ2JMEq0Kjo6kcCZLdXvEG9Zke0s1ggdga8rKV3IZ5NIkchvF7NT" -H "Content-Type: application/json" -H "Accept: application/json" -H "User-Agent: python-neutronclient" -d '{"network": {"router:external": "True", "name": "ext-net", "provider:physical_network": "physnet1", "admin_state_up": true, "provider:network_type": "vlan", "provider:segmentation_id": "2"}}'

DEBUG: neutronclient.client RESP:{'date': 'Mon, 09 Dec 2013 07:56:58 GMT', 'status': '401', 'content-length': '23', 'content-type': 'text/plain', 'www-authenticate': "Keystone uri='http://openstack.poc:35357'"} Authentication required

DEBUG: neutronclient.client REQ: curl -i http://openstack.poc:35357/v2.0/tokens -X POST -H "Content-Type: application/json" -H "Accept: application/json" -H "User-Agent: python-neutronclient" python- neutronclient" -d '{"auth": {"tenantName": "admin", "passwordCredentials": {"username": "admin", "password": "REDACTED"}}}'

DEBUG: neutronclient.client RESP:{'date': 'Mon, 09 Dec 2013 07:56:58 GMT', 'vary': 'X-Auth-Token', 'content-length': '4993', 'status': '200', 'content-type': 'application/json'} {"access": {"token": {"issued_at": "2013-12-09T07:56:58.344237", "expires": "2013-12-10T07:56:58Z", "id": "MIIJHQYJKoZIhvcNAQcCoIIJDjCCCQoCAQExCTAHBgUrDgMCGjCCB3MG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SI6ICJpZGVudGl0eSIsICJuYW1lIjogImtleXN0b25lIn1dLCAidXNlciI6IHsidXNlcm5hbWUi OiAiYWRtaW4iLCAicm9sZXNfbGlua3MiOiBbXSwgImlkIjogImRlMDViYjE1MTcwNzQxMmZhYWU5ODg5MzVmODk0YmE4IiwgInJvbGVzIjogW3sibmFtZSI6ICJhZG1pbiJ9XSwgI m5hbWUiOiAiYWRtaW4ifSwgIm1ldGFkYXRhIjogeyJpc19hZG1pbiI6IDAsICJyb2xlcyI6IFsiNmM4NDk1ZGM5YjgwNGYyZjhlN2ZmOTQ2NzI3MTBiMTUiXX19fTGCAYEwggF9AgE BMFwwVzELMAkGA1UEBhMCVVMxDjAMBgNVBAgMBVVuc2V0MQ4wDAYDVQQHDAVVbnNldDEOMAwGA1UECgwFVW5zZXQxGDAWBgNVBAMMD3d3dy5leGFtcGxlLmNvbQIB ATAHBgUrDgMCGjANBgkqhkiG9w0BAQEFAASCAQBQr-XHjB66Dv-oDCHFGl9Uz+AlRoihiEVNbfd-bs1LV4hs0Lh3zPprjC5PBJ29SjRMa1ZUPXXPr+qIUfo- i9LYr3sU09G0U41KdfFy8LRNvEo1zddN84YCr1DVEmvelkrw+KVLDXo0JlO54xOKf33dFB4l13vuIcy7MeQPgH8CzoQET0bkEWzRr0jRNkVLvDN9zKIAA1BxDrwwuJOhD1LDvSnWi klkSvzVGlubnOmSteO7rGx8boY6JpJ79rspFbBdncI2rfcP0pgyLFEmei+oLPp3C2BWoMcyxQxikW8cmuPKCLGsVB-K48i7RGtX95B6nBDWJwIjSLJ6+TiU2Xrt", "tenant": {"description": "Admin Tenant", "enabled": true, "id": "5829fb0063bb4f0d9b1aab6325f402f2", "name": "admin"}}, "serviceCatalog": [{"endpoints": [{"adminURL": "http://openstack.poc:9292", "region": "regionOne", "internalURL": "http://openstack.poc:9292", "id": "28a9ec95840345528379cf67ffb70a22", "publicURL": "http://openstack.poc:9292"}], "endpoints_links": [], "type": "image", "name": "glance"}, {"endpoints": [{"adminURL": "http://openstack.poc:8774/v2/5829fb0063bb4f0d9b1aab6325f402f2", "region": "regionOne", "internalURL": "http://openstack.poc:8774/v2/5829fb0063bb4f0d9b1aab6325f402f2", "id": "43ceb7bd842347d3ac7e1bb26376a8a3", "publicURL": "http://openstack.poc:8774/v2/5829fb0063bb4f0d9b1aab6325f402f2"}], "endpoints_links": [], "type": "compute", "name": "nova"}, {"endpoints": [{"adminURL": "http://openstack.poc:9696", "region": "regionOne", "internalURL": "http://openstack.poc:9696", "id": "004f0facdd4f432b88d61ae943a09689", "publicURL": "http://openstack.poc:9696"}], "endpoints_links": [], "type": "network", "name": "neutron"}, {"endpoints": [{"adminURL": "http://openstack.po:35357/v2.0", "region": "regionOne", "internalURL": "http://openstack.poc:5000/v2.0", "id": "2f52447bf6ac486a9db396161c08b54a", "publicURL": "http://openstack.poc:5000/v2.0"}], "endpoints_links": [], "type": "identity", "name": "keystone"}], "user": {"username": "admin", "roles_links": [], "id": "de05bb151707412faae988935f894ba8", "roles": [{"name": "admin"}], "name": "admin"}, "metadata": {"is_admin": 0, "roles": ["6c8495dc9b804f2f8e7ff94672710b15"]}}}

DEBUG: neutronclient.client REQ: curl -i http://openstack.poc:9696/v2.0/networks.json -X POST -H "X-Auth-Token: MIIJHQYJKoZIhvcNAQcCoIIJDjCCCQoCAQExCTAHBgUrDgMCGjCCB3MGCSqGSIb3DQEHAaCCB2QEggdgeyJhY2Nlc3MiOiB7InRva2VuIjogeyJpc3N1ZWRfYXQiOiAiMjAxMy0xMi0wOVQwNzo1Njo1OC4zNDQyMzciLCAiZXhwaXJlcyI6ICIyMDEzLTEyLTEwVDA3OjU2OjU4WiIsICJpZCI6ICJwbGFjZWhvbGRlciIsICJ0ZW5hbnQiOiB7ImRlc2NyaXB0aW9uIjogIkFkbWluIFRlbmFudCIsICJlbmFibGVkIjogdHJ1ZSwgImlkIjogIjU4MjlmYjAwNjNiYjRmMGQ5YjFhYWI2MzI1ZjQwMmYyIiwgIm5hbWUiOiAiY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9AgE BMFwwVzELMAkGA1UEBhMCVVMxDjAMBgNVBAgMBVVuc2V0MQ4wDAYDVQQHDAVVbnNldDEOMAwGA1UECgwFVW5zZXQxGDAWBgNVBAMMD3d3dy5leGFtcGxlLmNvbQIB ATAHBgUrDgMCGjANBgkqhkiG9w0BAQEFAASCAQBQr-XHjB66Dv-oDCHFGl9Uz+AlRoihiEVNbfd-bs1LV4hs0Lh3zPprjC5PBJ29SjRMa1ZUPXXPr+qIUfo- i9LYr3sU09G0U41KdfFy8LRNvEo1zddN84YCr1DVEmvelkrw+KVLDXo0JlO54xOKf33dFB4l13vuIcy7MeQPgH8CzoQET0bkEWzRr0jRNkVLvDN9zKIAA1BxDrwwuJOhD1LDvSnWi klkSvzVGlubnOmSteO7rGx8boY6JpJ79rspFbBdncI2rfcP0pgyLFEmei+oLPp3C2BWoMcyxQxikW8cmuPKCLGsVB-K48i7RGtX95B6nBDWJwIjSLJ6+TiU2Xrt" -H "Content-Type: application/json" -H "Accept: application/json" -H "User-Agent: python-neutronclient" -d '{"network": {"router:external": "True", "name": "ext-net", "provider:physical_network": "physnet1", "admin_state_up": true, "provider:network_type": "vlan", "provider:segmentation_id": "2"}}'

DEBUG: neutronclient.client RESP:{'date': 'Mon, 09 Dec 2013 07:57:01 GMT', 'status': '401', 'content-length': '23', 'content-type': 'text/plain', 'www-authenticate': "Keystone uri='http://openstack.poc:35357'"} Authentication required

ERROR: neutronclient.shell Authentication required DEBUG: neutronclient.shell clean_up CreateNetwork DEBUG: neutronclient.shell got an error: Authentication required

[Havana] Neutron: Unauthorized: Authentication required

Hello,

I'm trying to finish a setup of OpenStack with Neutron on a dedicated Networking Node for testing purposes. I'm using this guide

http://docs.openstack.org/trunk/install-guide/install/apt/content/ch_neutron.html

though I'm on 13.10.

Right now, I'm at

http://docs.openstack.org/trunk/install-guide/install/apt/content/install-neutron.configure-networks.html

I'm running into the following error, with the first command. The command being:

neutron --verbose net-create ext-net -- --router:external=True --provider:network_type vlan --provider:physical_network --provider: physical_network physnet1 --provider:segmentation_id 2

And the resulting error being:

(...) DEBUG: neutronclient.client RESP:{'date': 'Fri, 06 Dec 2013 13:37:20 GMT', 'status': '401', 'content-length': '23', 'content-type': 'text/plain', 'www-authenticate': "Keystone uri='http://openstack.poc:35357'"} Authentication required

ERROR: neutronclient.shell Authentication required DEBUG: neutronclient.shell clean_up CreateNetwork DEBUG: neutronclient.shell got an error: Authentication required

--debug shows:

Authentication required Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/neutronclient/shell.py", line 517, in run_subcommand return run_command(cmd, cmd_parser, sub_argv) File "/usr/lib/python2.7/dist-packages/neutronclient/shell.py", line 78, in run_command return cmd.run(known_args) File "/usr/lib/python2.7/dist-packages/neutronclient/common/command.py", line 35, in run return super(OpenStackCommand, self).run(parsed_args) File "/usr/lib/python2.7/dist-packages/cliff/display.py", line 84, in run column_names, data = self.take_action(parsed_args) File "/usr/lib/python2.7/dist-packages/neutronclient/common/command.py", line 41, in take_action return self.get_data(parsed_args) File "/usr/lib/python2.7/dist-packages/neutronclient/neutron/v2_0/__init__.py", line 399, in get_data data = obj_creator(body) File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 108, in with_params ret = self.function(instance, args, *kwargs) File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 335, in create_network return self.post(self.networks_path, body=body) File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 1188, in post headers=headers, params=params) File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 1103, in do_request resp, replybody = self.httpclient.do_request(action, method, body=body) File "/usr/lib/python2.7/dist-packages/neutronclient/client.py", line 192, in do_request self.endpoint_url + url, method, **kwargs) File "/usr/lib/python2.7/dist-packages/neutronclient/client.py", line 156, in _cs_request raise exceptions.Unauthorized(message=body) Unauthorized: Authentication required

I retraced the setup steps, to check if I missed something. I also set the password in keystone again (same value).

The user is there: ubuntu@openstack:~$ keystone user-get neutron +----------+----------------------------------+ | Property | Value | +----------+----------------------------------+ | email | pso@hosteurope.de | | enabled | True | | id | 10f59cc91df741e880b65fdd12c5e6af | | name | neutron | +----------+----------------------------------+

The service is there:

ubuntu@openstack:~$ keystone service-get neutron +-------------+----------------------------------+ | Property | Value | +-------------+----------------------------------+ | description | OpenStack Networking Service | | id | 1903b65e55c647739511b65695e5b924 | | name | neutron | | type | network | +-------------+----------------------------------+

The endpoint is there also: | 231bde4a34ee4e1b98dda918b30cd350 | regionOne | http://openstack.poc:9696 | http://openstack.poc:9696 | http://openstack.poc:9696 | 1903b65e55c647739511b65695e5b924 |

Other than "Authentication required", I cannot find any hint's as to where the root cause lies. It seems, that this auth request doesn't even get to keystone, as there is nothing in keystones log files.

I assume something related to keystoneclient.middleware.auth_token. Though in neutron.conf, the line api_paste_config = api-paste.ini is commented out, which should make neutron use only neutron.conf for all things authorisation, section [keystone_authtoken].

I assume I'm a simpleton, as this surely is some typo, or some missing config elements. But as of now, I can't find it.

Any help is much appreciated.

Regards, Philipp

UPDATE:

Firstly, the output with --debug:

:~$ neutron --debug net-create ext-net -- --router:external=True --provider:network_type vlan --provider:physical_network physnet1 --provider:segmentation_id 2

Authentication required Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/neutronclient/shell.py", line 517, in run_subcommand return run_command(cmd, cmd_parser, sub_argv) File "/usr/lib/python2.7/dist-packages/neutronclient/shell.py", line 78, in run_command return cmd.run(known_args) File "/usr/lib/python2.7/dist-packages/neutronclient/common/command.py", line 35, in run return super(OpenStackCommand, self).run(parsed_args) File "/usr/lib/python2.7/dist-packages/cliff/display.py", line 84, in run column_names, data = self.take_action(parsed_args) File "/usr/lib/python2.7/dist-packages/neutronclient/common/command.py", line 41, in take_action return self.get_data(parsed_args) File "/usr/lib/python2.7/dist-packages/neutronclient/neutron/v2_0/__init__.py", line 399, in get_data data = obj_creator(body) File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 108, in with_params ret = self.function(instance, args, *kwargs) File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 335, in create_network return self.post(self.networks_path, body=body) File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 1188, in post headers=headers, params=params) File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 1103, in do_request resp, replybody = self.httpclient.do_request(action, method, body=body) File "/usr/lib/python2.7/dist-packages/neutronclient/client.py", line 192, in do_request self.endpoint_url + url, method, **kwargs) File "/usr/lib/python2.7/dist-packages/neutronclient/client.py", line 156, in _cs_request raise exceptions.Unauthorized(message=body) Unauthorized: Authentication required

Secondly, the output with --verbose:

ubuntu@openstack:~$ neutron --verbose net-create ext-net -- --router:external=True --provider:network_type vlan --provider:physical_network physnet1 -- provider:segmentation_id 2 DEBUG: neutronclient.neutron.v2_0.network.CreateNetwork get_data(Namespace(admin_state=True, columns=[], formatter='table', name=u'ext-net', prefix='', request_format='json', shared=False, tenant_id=None, variables=[])) DEBUG: neutronclient.client REQ: curl -i http://openstack.poc:35357/v2.0/tokens -X POST -H "Content-Type: application/json" -H "Accept: application/json" -H "User-Agent: python- neutronclient" -d '{"auth": {"tenantName": "admin", "passwordCredentials": {"username": "admin", "password": "REDACTED"}}}'

DEBUG: neutronclient.client RESP:{'date': 'Mon, 09 Dec 2013 07:56:54 GMT', 'vary': 'X-Auth-Token', 'content-length': '4993', 'status': '200', 'content-type': 'application/json'} {"access": {"token": {"issued_at": "2013-12-09T07:56:54.679431", "expires": "2013-12-10T07:56:54Z", "id": "MIIJHQYJKoZIhvcNAQcCoIIJDjCCCQoCAQExCTAHBgUrDgMCGjCCB3MGCSqGSIb3DQEHAaCCB2QEggdgeyJhY2Nlc3MiOiB7InRva2VuIjogeyJpc3N1ZWRfYXQiOiAiMjAxMy0x Mi0wOVQwNzo1Njo1NC42Nzk0MzEiLCAiZXhwaXJlcyI6ICIyMDEzLTEyLTEwVDA3OjU2OjU0WiIsICJpZCI6ICJwbGFjZWhvbGRlciIsICJ0ZW5hbnQiOiB7ImRlc2Ny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zQxMmZhYWU5ODg5MzVmODk0YmE4IiwgInJvbGVzIjogW3sibmFtZSI6ICJhZG1pbiJ9XSwgI m5hbWUiOiAiYWRtaW4ifSwgIm1ldGFkYXRhIjogeyJpc19hZG1pbiI6IDAsICJyb2xlcyI6IFsiNmM4NDk1ZGM5YjgwNGYyZjhlN2ZmOTQ2NzI3MTBiMTUiXX19fTGCAYEwggF9AgE BMFwwVzELMAkGA1UEBhMCVVMxDjAMBgNVBAgMBVVuc2V0MQ4wDAYDVQQHDAVVbnNldDEOMAwGA1UECgwFVW5zZXQxGDAWBgNVBAMMD3d3dy5leGFtcGxlLmNvbQIB ATAHBgUrDgMCGjANBgkqhkiG9w0BAQEFAASCAQCp4EOuVVBqi0PJVJB1z80AI6oqCjkIubEenAxw6nv+eL1z3ZMHtObOexVE2N9II6tCiAZ5GsdKNuwa1oHHKqFrglIRzvpKC- SaNpKQlbqyc6NiRYz2qEOliZ2Re3B79QcBjyPgNXRS83OqKs9z0YhqUzDaTSXyqVJMLIxstbvMQbTz8LpAS8IGgjGS2AZ2N38SrT5+4cJ8c2C63MI+SjPwO5d3Z8MFQWEd7uL28YJkb 9rffw3hHcznqIO1gA7cIak4mWmJZ2CWPG7EvSSUy7ryHzeMFGURxWc1pJ2JMEq0Kjo6kcCZLdXvEG9Zke0s1ggdga8rKV3IZ5NIkchvF7NT", "tenant": {"description": "Admin Tenant", "enabled": true, "id": "5829fb0063bb4f0d9b1aab6325f402f2", "name": "admin"}}, "serviceCatalog": [{"endpoints": [{"adminURL": "http://openstack.poc:9292", "region": "regionOne", "internalURL": "http://openstack.poc:9292", "id": "28a9ec95840345528379cf67ffb70a22", "publicURL": "http://openstack.poc:9292"}], "endpoints_links": [], "type": "image", "name": "glance"}, {"endpoints": [{"adminURL": "http://openstack.poc:8774/v2/5829fb0063bb4f0d9b1aab6325f402f2", "region": "regionOne", "internalURL": "http://openstack.poc:8774/v2/5829fb0063bb4f0d9b1aab6325f402f2", "id": "43ceb7bd842347d3ac7e1bb26376a8a3", "publicURL": "http://openstack.poc:8774/v2/5829fb0063bb4f0d9b1aab6325f402f2"}], "endpoints_links": [], "type": "compute", "name": "nova"}, {"endpoints": [{"adminURL": "http://openstack.poc:9696", "region": "regionOne", "internalURL": "http://openstack.poc:9696", "id": "004f0facdd4f432b88d61ae943a09689", "publicURL": "http://openstack.poc:9696"}], "endpoints_links": [], "type": "network", "name": "neutron"}, {"endpoints": [{"adminURL": "http://openstack.poc:35357/v2.0", "region": "regionOne", "internalURL": "http://openstack.poc:5000/v2.0", "id": "2f52447bf6ac486a9db396161c08b54a", "publicURL": "http://openstack.poc:5000/v2.0"}], "endpoints_links": [], "type": "identity", "name": "keystone"}], "user": {"username": "admin", "roles_links": [], "id": "de05bb151707412faae988935f894ba8", "roles": [{"name": "admin"}], "name": "admin"}, "metadata": {"is_admin": 0, "roles": ["6c8495dc9b804f2f8e7ff94672710b15"]}}}

DEBUG: neutronclient.client REQ: curl -i http://openstack.poc:9696/v2.0/networks.json -X POST -H "X-Auth-Token: MIIJHQYJKoZIhvcNAQcCoIIJDjCCCQoCAQExCTAHBgUrDgMCGjCCB3MGCSqGSIb3DQEHAaCCB2QEggdgeyJhY2Nlc3MiOiB7InRva2VuIjogeyJpc3N1ZWRfYXQiOiAiMjAxMy0x Mi0wOVQwNzo1Njo1NC42Nzk0MzEiLCAiZXhwaXJlcyI6ICIyMDEzLTEyLTEwVDA3OjU2OjU0WiIsICJpZCI6ICJwbGFjZWhvbGRlciIsICJ0ZW5hbnQiOiB7ImRlc2NyaXB0aW9uIjo gIkFkbWluIFRlbmFudCIsICJlbmFibGVkIjogdHJ1ZSwgImlkIjogIjU4MjlmYjAwNjNiYjRmMGQ5YjFhYWI2MzI1ZjQwMmYyIiwgIm5hbWUiOiAiYWRtaW4ifX0sICJzZXJ2aWNlQ2 F0YWxvZyI6IFt7ImVuZHBvaW50cyI6IFt7ImFkbWluVVJMIjogImh0dHA6Ly9vcGVuc3RhY2sucG9jLnBkLmhvc3RldX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VBAgMBVVuc2V0MQ4wDAYDVQQHDAVVbnNldDEOMAwGA1UECgwFVW5zZXQxGDAWBgNVBAMMD3d3dy5leGFtcGxlLmNvbQIB ATAHBgUrDgMCGjANBgkqhkiG9w0BAQEFAASCAQCp4EOuVVBqi0PJVJB1z80AI6oqCjkIubEenAxw6nv+eL1z3ZMHtObOexVE2N9II6tCiAZ5GsdKNuwa1oHHKqFrglIRzvpKC- SaNpKQlbqyc6NiRYz2qEOliZ2Re3B79QcBjyPgNXRS83OqKs9z0YhqUzDaTSXyqVJMLIxstbvMQbTz8LpAS8IGgjGS2AZ2N38SrT5+4cJ8c2C63MI+SjPwO5d3Z8MFQWEd7uL28YJkb 9rffw3hHcznqIO1gA7cIak4mWmJZ2CWPG7EvSSUy7ryHzeMFGURxWc1pJ2JMEq0Kjo6kcCZLdXvEG9Zke0s1ggdga8rKV3IZ5NIkchvF7NT" -H "Content-Type: application/json" -H "Accept: application/json" -H "User-Agent: python-neutronclient" -d '{"network": {"router:external": "True", "name": "ext-net", "provider:physical_network": "physnet1", "admin_state_up": true, "provider:network_type": "vlan", "provider:segmentation_id": "2"}}'

DEBUG: neutronclient.client RESP:{'date': 'Mon, 09 Dec 2013 07:56:58 GMT', 'status': '401', 'content-length': '23', 'content-type': 'text/plain', 'www-authenticate': "Keystone uri='http://openstack.poc:35357'"} Authentication required

DEBUG: neutronclient.client REQ: curl -i http://openstack.poc:35357/v2.0/tokens -X POST -H "Content-Type: application/json" -H "Accept: application/json" -H "User-Agent: python- neutronclient" -d '{"auth": {"tenantName": "admin", "passwordCredentials": {"username": "admin", "password": "REDACTED"}}}'

DEBUG: neutronclient.client RESP:{'date': 'Mon, 09 Dec 2013 07:56:58 GMT', 'vary': 'X-Auth-Token', 'content-length': '4993', 'status': '200', 'content-type': 'application/json'} {"access": {"token": {"issued_at": "2013-12-09T07:56:58.344237", "expires": "2013-12-10T07:56:58Z", "id": "MIIJHQYJKoZIhvcNAQcCoIIJDjCCCQoCAQExCTAHBgU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3BlbnN0YWNrLnBvYy5wZC5ob3N0Z XVyb3BlLmRlOjUwMDAvdjIuMCJ9XSwgImVuZHBvaW50c19saW5rcyI6IFtdLCAidHlwZSI6ICJpZGVudGl0eSIsICJuYW1lIjogImtleXN0b25lIn1dLCAidXNlciI6IHsidXNlcm5hbWUi OiAiYWRtaW4iLCAicm9sZXNfbGlua3MiOiBbXSwgImlkIjogImRlMDViYjE1MTcwNzQxMmZhYWU5ODg5MzVmODk0YmE4IiwgInJvbGVzIjogW3sibmFtZSI6ICJhZG1pbiJ9XSwgI m5hbWUiOiAiYWRtaW4ifSwgIm1ldGFkYXRhIjogeyJpc19hZG1pbiI6IDAsICJyb2xlcyI6IFsiNmM4NDk1ZGM5YjgwNGYyZjhlN2ZmOTQ2NzI3MTBiMTUiXX19fTGCAYEwggF9AgE BMFwwVzELMAkGA1UEBhMCVVMxDjAMBgNVBAgMBVVuc2V0MQ4wDAYDVQQHDAVVbnNldDEOMAwGA1UECgwFVW5zZXQxGDAWBgNVBAMMD3d3dy5leGFtcGxlLmNvbQIB ATAHBgUrDgMCGjANBgkqhkiG9w0BAQEFAASCAQBQr-XHjB66Dv-oDCHFGl9Uz+AlRoihiEVNbfd-bs1LV4hs0Lh3zPprjC5PBJ29SjRMa1ZUPXXPr+qIUfo- i9LYr3sU09G0U41KdfFy8LRNvEo1zddN84YCr1DVEmvelkrw+KVLDXo0JlO54xOKf33dFB4l13vuIcy7MeQPgH8CzoQET0bkEWzRr0jRNkVLvDN9zKIAA1BxDrwwuJOhD1LDvSnWi klkSvzVGlubnOmSteO7rGx8boY6JpJ79rspFbBdncI2rfcP0pgyLFEmei+oLPp3C2BWoMcyxQxikW8cmuPKCLGsVB-K48i7RGtX95B6nBDWJwIjSLJ6+TiU2Xrt", "tenant": {"description": "Admin Tenant", "enabled": true, "id": "5829fb0063bb4f0d9b1aab6325f402f2", "name": "admin"}}, "serviceCatalog": [{"endpoints": [{"adminURL": "http://openstack.poc:9292", "region": "regionOne", "internalURL": "http://openstack.poc:9292", "id": "28a9ec95840345528379cf67ffb70a22", "publicURL": "http://openstack.poc:9292"}], "endpoints_links": [], "type": "image", "name": "glance"}, {"endpoints": [{"adminURL": "http://openstack.poc:8774/v2/5829fb0063bb4f0d9b1aab6325f402f2", "region": "regionOne", "internalURL": "http://openstack.poc:8774/v2/5829fb0063bb4f0d9b1aab6325f402f2", "id": "43ceb7bd842347d3ac7e1bb26376a8a3", "publicURL": "http://openstack.poc:8774/v2/5829fb0063bb4f0d9b1aab6325f402f2"}], "endpoints_links": [], "type": "compute", "name": "nova"}, {"endpoints": [{"adminURL": "http://openstack.poc:9696", "region": "regionOne", "internalURL": "http://openstack.poc:9696", "id": "004f0facdd4f432b88d61ae943a09689", "publicURL": "http://openstack.poc:9696"}], "endpoints_links": [], "type": "network", "name": "neutron"}, {"endpoints": [{"adminURL": "http://openstack.po:35357/v2.0", "region": "regionOne", "internalURL": "http://openstack.poc:5000/v2.0", "id": "2f52447bf6ac486a9db396161c08b54a", "publicURL": "http://openstack.poc:5000/v2.0"}], "endpoints_links": [], "type": "identity", "name": "keystone"}], "user": {"username": "admin", "roles_links": [], "id": "de05bb151707412faae988935f894ba8", "roles": [{"name": "admin"}], "name": "admin"}, "metadata": {"is_admin": 0, "roles": ["6c8495dc9b804f2f8e7ff94672710b15"]}}}

DEBUG: neutronclient.client REQ: curl -i http://openstack.poc:9696/v2.0/networks.json -X POST -H "X-Auth-Token: MIIJHQYJKoZIhvcNAQcCoIIJDjCCCQoCAQExCTAHBgUrDgMCGjCCB3MGCSqGSIb3DQEHAaCCB2QEggdgeyJhY2Nlc3MiOiB7InRva2VuIjogeyJpc3N1ZWRfYXQiOiAiMjAxMy0x Mi0wOVQwNzo1Njo1OC4zNDQyMzciLCAiZXhwaXJlcyI6ICIyMDEzLTEyLTEwVDA3OjU2OjU4WiIsICJpZCI6ICJwbGFjZWhvbGRlciIsICJ0ZW5hbnQiOiB7ImRlc2NyaXB0aW9uIjo gIkFkbWluIFRlbmFud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iwgInJvbGVzIjogW3sibmFtZSI6ICJhZG1pbiJ9XSwgI m5hbWUiOiAiYWRtaW4ifSwgIm1ldGFkYXRhIjogeyJpc19hZG1pbiI6IDAsICJyb2xlcyI6IFsiNmM4NDk1ZGM5YjgwNGYyZjhlN2ZmOTQ2NzI3MTBiMTUiXX19fTGCAYEwggF9AgE BMFwwVzELMAkGA1UEBhMCVVMxDjAMBgNVBAgMBVVuc2V0MQ4wDAYDVQQHDAVVbnNldDEOMAwGA1UECgwFVW5zZXQxGDAWBgNVBAMMD3d3dy5leGFtcGxlLmNvbQIB ATAHBgUrDgMCGjANBgkqhkiG9w0BAQEFAASCAQBQr-XHjB66Dv-oDCHFGl9Uz+AlRoihiEVNbfd-bs1LV4hs0Lh3zPprjC5PBJ29SjRMa1ZUPXXPr+qIUfo- i9LYr3sU09G0U41KdfFy8LRNvEo1zddN84YCr1DVEmvelkrw+KVLDXo0JlO54xOKf33dFB4l13vuIcy7MeQPgH8CzoQET0bkEWzRr0jRNkVLvDN9zKIAA1BxDrwwuJOhD1LDvSnWi klkSvzVGlubnOmSteO7rGx8boY6JpJ79rspFbBdncI2rfcP0pgyLFEmei+oLPp3C2BWoMcyxQxikW8cmuPKCLGsVB-K48i7RGtX95B6nBDWJwIjSLJ6+TiU2Xrt" -H "Content-Type: application/json" -H "Accept: application/json" -H "User-Agent: python-neutronclient" -d '{"network": {"router:external": "True", "name": "ext-net", "provider:physical_network": "physnet1", "admin_state_up": true, "provider:network_type": "vlan", "provider:segmentation_id": "2"}}'

DEBUG: neutronclient.client RESP:{'date': 'Mon, 09 Dec 2013 07:57:01 GMT', 'status': '401', 'content-length': '23', 'content-type': 'text/plain', 'www-authenticate': "Keystone uri='http://openstack.poc:35357'"} Authentication required

ERROR: neutronclient.shell Authentication required DEBUG: neutronclient.shell clean_up CreateNetwork DEBUG: neutronclient.shell got an error: Authentication required

[Havana] Neutron: Unauthorized: Authentication required

Hello,

I'm trying to finish a setup of OpenStack with Neutron on a dedicated Networking Node for testing purposes. I'm using this guide

http://docs.openstack.org/trunk/install-guide/install/apt/content/ch_neutron.html

though I'm on 13.10.

Right now, I'm at

http://docs.openstack.org/trunk/install-guide/install/apt/content/install-neutron.configure-networks.html

I'm running into the following error, with the first command. The command being:

neutron --verbose net-create ext-net -- --router:external=True --provider:network_type vlan --provider: physical_network physnet1 --provider:segmentation_id 2

And the resulting error being:

(...) DEBUG: neutronclient.client RESP:{'date': 'Fri, 06 Dec 2013 13:37:20 GMT', 'status': '401', 'content-length': '23', 'content-type': 'text/plain', 'www-authenticate': "Keystone uri='http://openstack.poc:35357'"} Authentication required

ERROR: neutronclient.shell Authentication required DEBUG: neutronclient.shell clean_up CreateNetwork DEBUG: neutronclient.shell got an error: Authentication required

--debug shows:

Authentication required Traceback required Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/neutronclient/shell.py", last): File "/usr/lib/python2.7/dist-packages/neutronclient/shell.py", line 517, in run_subcommand return run_command(cmd, cmd_parser, sub_argv) sub_argv) File "/usr/lib/python2.7/dist-packages/neutronclient/shell.py", line 78, in run_command return cmd.run(known_args) File "/usr/lib/python2.7/dist-packages/neutronclient/shell.py", line 78, in run_command return cmd.run(known_args) File "/usr/lib/python2.7/dist-packages/neutronclient/common/command.py", "/usr/lib/python2.7/dist-packages/neutronclient/common/command.py", line 35, in run return super(OpenStackCommand, self).run(parsed_args) File "/usr/lib/python2.7/dist-packages/cliff/display.py", self).run(parsed_args) File "/usr/lib/python2.7/dist-packages/cliff/display.py", line 84, in run column_names, data = self.take_action(parsed_args) File "/usr/lib/python2.7/dist-packages/neutronclient/common/command.py", self.take_action(parsed_args) File "/usr/lib/python2.7/dist-packages/neutronclient/common/command.py", line 41, in take_action return self.get_data(parsed_args) File "/usr/lib/python2.7/dist-packages/neutronclient/neutron/v2_0/__init__.py", self.get_data(parsed_args) File "/usr/lib/python2.7/dist-packages/neutronclient/neutron/v2_0/__init__.py", line 399, in get_data data = obj_creator(body) obj_creator(body) File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 108, in with_params ret = self.function(instance, args, *kwargs) kwargs) File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 335, in create_network return self.post(self.networks_path, body=body) File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", self.post(self.networks_path, body=body) File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 1188, in post headers=headers, params=params) File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", params=params) File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 1103, in do_request resp, replybody = self.httpclient.do_request(action, self.httpclient.do_request(action, method, body=body) File "/usr/lib/python2.7/dist-packages/neutronclient/client.py", body=body) File "/usr/lib/python2.7/dist-packages/neutronclient/client.py", line 192, in do_request self.endpoint_url + url, method, **kwargs) **kwargs) File "/usr/lib/python2.7/dist-packages/neutronclient/client.py", "/usr/lib/python2.7/dist-packages/neutronclient/client.py", line 156, in _cs_request raise exceptions.Unauthorized(message=body) Unauthorized: Authentication required

I retraced the setup steps, to check if I missed something. I also set the password in keystone again (same value).

The user is there: ubuntu@openstack:~$ keystone user-get neutron +----------+----------------------------------+ | Property | Value | +----------+----------------------------------+ | email | pso@hosteurope.de | | enabled | True | | id | 10f59cc91df741e880b65fdd12c5e6af | | name | neutron | +----------+----------------------------------+

The service is there:

ubuntu@openstack:~$ keystone service-get neutron +-------------+----------------------------------+ | Property | Value | +-------------+----------------------------------+ | description | OpenStack Networking Service | | id | 1903b65e55c647739511b65695e5b924 | | name | neutron | | type | network | +-------------+----------------------------------+

The endpoint is there also: | 231bde4a34ee4e1b98dda918b30cd350 | regionOne | http://openstack.poc:9696 | http://openstack.poc:9696 | http://openstack.poc:9696 | 1903b65e55c647739511b65695e5b924 |

Other than "Authentication required", I cannot find any hint's as to where the root cause lies. It seems, that this auth request doesn't even get to keystone, as there is nothing in keystones log files.

I assume something related to keystoneclient.middleware.auth_token. Though in neutron.conf, the line api_paste_config = api-paste.ini is commented out, which should make neutron use only neutron.conf for all things authorisation, section [keystone_authtoken].

I assume I'm a simpleton, as this surely is some typo, or some missing config elements. But as of now, I can't find it.

Any help is much appreciated.

Regards, Philipp

UPDATE:

Firstly, the output with --debug:

:~$ neutron --debug net-create ext-net -- --router:external=True --provider:network_type vlan --provider:physical_network physnet1 --provider:segmentation_id 2

Authentication required Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/neutronclient/shell.py", line 517, in run_subcommand return run_command(cmd, cmd_parser, sub_argv) File "/usr/lib/python2.7/dist-packages/neutronclient/shell.py", line 78, in run_command return cmd.run(known_args) File "/usr/lib/python2.7/dist-packages/neutronclient/common/command.py", line 35, in run return super(OpenStackCommand, self).run(parsed_args) File "/usr/lib/python2.7/dist-packages/cliff/display.py", line 84, in run column_names, data = self.take_action(parsed_args) File "/usr/lib/python2.7/dist-packages/neutronclient/common/command.py", line 41, in take_action return self.get_data(parsed_args) File "/usr/lib/python2.7/dist-packages/neutronclient/neutron/v2_0/__init__.py", line 399, in get_data data = obj_creator(body) File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 108, in with_params ret = self.function(instance, args, *kwargs) File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 335, in create_network return self.post(self.networks_path, body=body) File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 1188, in post headers=headers, params=params) File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 1103, in do_request resp, replybody = self.httpclient.do_request(action, method, body=body) File "/usr/lib/python2.7/dist-packages/neutronclient/client.py", line 192, in do_request self.endpoint_url + url, method, **kwargs) File "/usr/lib/python2.7/dist-packages/neutronclient/client.py", line 156, in _cs_request raise exceptions.Unauthorized(message=body) Unauthorized: Authentication required

Secondly, the output with --verbose:

ubuntu@openstack:~$ neutron --verbose net-create ext-net -- --router:external=True --provider:network_type vlan --provider:physical_network -- provider:physical_network physnet1 -- provider:segmentation_id 2 2

DEBUG: neutronclient.neutron.v2_0.network.CreateNetwork get_data(Namespace(admin_state=True, columns=[], formatter='table', name=u'ext-net', prefix='', request_format='json', shared=False, tenant_id=None, variables=[])) variables=[]))

DEBUG: neutronclient.client REQ: curl -i http://openstack.poc:35357/v2.0/tokens -X POST -H "Content-Type: application/json" -H "Accept: application/json" -H "User-Agent: python- neutronclient" -d '{"auth": {"tenantName": "admin", "passwordCredentials": {"username": "admin", "password": "REDACTED"}}}'

DEBUG: neutronclient.client RESP:{'date': 'Mon, 09 Dec 2013 07:56:54 GMT', 'vary': 'X-Auth-Token', 'content-length': '4993', 'status': '200', 'content-type': 'application/json'} {"access": {"token": {"issued_at": "2013-12-09T07:56:54.679431", "expires": "2013-12-10T07:56:54Z", "id": "MIIJHQYJKoZIhvcNAQcCoIIJDjCCCQoCAQExCTAHBgUrDgMCGjCCB3MGCSqGSIb3DQEHAaCCB2QEggdgeyJhY2Nlc3MiOiB7InRv a2VuIjogeyJpc3N1ZWRfYXQiOiAiMjAxMy0x Mi0wOVQwNzo1Njo1NC42Nzk0MzEiLCAiZXhwaXJlcyI6ICIyMDEzLTEyLTEwVDA3OjU2OjU0WiIsICJpZCI6ICJwbGFjZWhvbGRlciI sICJ0ZW5hbnQiOiB7ImRlc2NyaXB0aW9uIjo gIkFkbWluIFRlbmFudCIsICJlbmFibGVkIjogdHJ1ZSwgImlkIjogIjU4MjlmYjAwNjNiYjRmMGQ5YjFhYWI2MzI1ZjQwMmYyIiwgIm 5hbWUiOiAiYWRtaW4ifX0sICJzZXJ2aWNlQ2 F0YWxvZyI6IFt7ImVuZHBvaW50cyI6IFt7ImFkbWluVVJMIjogImh0dHA6Ly9vcGVuc3RhY2sucG9jLnBkLmhvc3RldXJvcGUuZGU6 OTI5MiIsICJyZWdpb24iOiAicmVnaW9uT25lIi wgImludGVybmFsVVJMIjogImh0dHA6Ly9vcGVuc3RhY2sucG9jL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mNvbQIB ATAHBgUrDgMCGjANBgkqhkiG9w0BAQEFAASCAQCp4EOuVVBqi0PJVJB1z80AI6oqCjkIubEenAxw6nv+eL1z3ZMHtObOexVE2N 9II6tCiAZ5GsdKNuwa1oHHKqFrglIRzvpKC- SaNpKQlbqyc6NiRYz2qEOliZ2Re3B79QcBjyPgNXRS83OqKs9z0YhqUzDaTSXyqVJMLIxstbvMQbTz8LpAS8IGgjGS2AZ2N38SrT5+4c J8c2C63MI+SjPwO5d3Z8MFQWEd7uL28YJkb 9rffw3hHcznqIO1gA7cIak4mWmJZ2CWPG7EvSSUy7ryHzeMFGURxWc1pJ2JMEq0Kjo6kcCZLdXvEG9Zke0s1ggdga8rKV3IZ5NIkc hvF7NT", "tenant": {"description": "Admin Tenant", "enabled": true, "id": "5829fb0063bb4f0d9b1aab6325f402f2", "name": "admin"}}, "serviceCatalog": [{"endpoints": [{"adminURL": "http://openstack.poc:9292", "region": "regionOne", "internalURL": "http://openstack.poc:9292", "id": "28a9ec95840345528379cf67ffb70a22", "publicURL": "http://openstack.poc:9292"}], "endpoints_links": [], "type": "image", "name": "glance"}, {"endpoints": [{"adminURL": "http://openstack.poc:8774/v2/5829fb0063bb4f0d9b1aab6325f402f2", "region": "regionOne", "internalURL": "http://openstack.poc:8774/v2/5829fb0063bb4f0d9b1aab6325f402f2", "id": "43ceb7bd842347d3ac7e1bb26376a8a3", "publicURL": "http://openstack.poc:8774/v2/5829fb0063bb4f0d9b1aab6325f402f2"}], "endpoints_links": [], "type": "compute", "name": "nova"}, {"endpoints": [{"adminURL": "http://openstack.poc:9696", "region": "regionOne", "internalURL": "http://openstack.poc:9696", "id": "004f0facdd4f432b88d61ae943a09689", "publicURL": "http://openstack.poc:9696"}], "endpoints_links": [], "type": "network", "name": "neutron"}, {"endpoints": [{"adminURL": "http://openstack.poc:35357/v2.0", "region": "regionOne", "internalURL": "http://openstack.poc:5000/v2.0", "id": "2f52447bf6ac486a9db396161c08b54a", "publicURL": "http://openstack.poc:5000/v2.0"}], "endpoints_links": [], "type": "identity", "name": "keystone"}], "user": {"username": "admin", "roles_links": [], "id": "de05bb151707412faae988935f894ba8", "roles": [{"name": "admin"}], "name": "admin"}, "metadata": {"is_admin": 0, "roles": ["6c8495dc9b804f2f8e7ff94672710b15"]}}}

DEBUG: neutronclient.client

REQ: curl -i http://openstack.poc:9696/v2.0/networks.json -X POST -H "X-Auth-Token: MIIJHQYJKoZIhvcNAQcCoIIJDjCCCQoCAQExCTAHBgUrDgMCGjCCB3MGCSqGSIb3DQEHAaCCB2QEggdgeyJhY2Nlc3MiOiB7InRv a2VuIjogeyJpc3N1ZWRfYXQiOiAiMjAxMy0x Mi0wOVQwNzo1Njo1NC42Nzk0MzEiLCAiZXhwaXJlcyI6ICIyMDEzLTEyLTEwVDA3OjU2OjU0WiIsICJpZCI6ICJwbGFjZWhvbGRlciI sICJ0ZW5hbnQiOiB7ImRlc2NyaXB0aW9uIjo gIkFkbWluIFRlbmFudCIsICJlbmFibGVkIjogdHJ1ZSwgImlkIjogIjU4MjlmYjAwNjNiYjRmMGQ5YjFhYWI2MzI1ZjQwMmYyIiwgIm 5hbWUiOiAiYWRtaW4ifX0sICJzZXJ2aWNlQ2 F0YWxvZyI6IFt7ImVuZHBvaW50cyI6IFt7ImFkbWluVVJMIjogImh0dHA6Ly9vcGVuc3RhY2sucG9jLnBkLmhvc3RldXJvcGUuZGU6 OTI5MiIsICJyZWdpb24iOiAicmVnaW9uT25lIi wgImludGVybmFsVVJMIjogImh0dHA6Ly9vcGVuc3RhY2sucG9jLnBkLmhvc3RldXJvcGUuZGU6OTI5MiIsICJpZCI6ICIyOGE5ZWM5 NTg0MDM0NTUyODM3OWNmNjdmZmI3MGE yMiIsICJwdWJsaWNVUkwiOiAiaHR0cDovL29wZW5zdGFjay5wb2MucGQuaG9zdGV1cm9wZS5kZTo5MjkyIn1dLCAiZW5kcG9pb nRzX2xpbmtzIjogW10sICJ0eXBlIjogImltYWd lIiwgIm5hbWUiOiAiZ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2N38SrT5+4c J8c2C63MI+SjPwO5d3Z8MFQWEd7uL28YJkb 9rffw3hHcznqIO1gA7cIak4mWmJZ2CWPG7EvSSUy7ryHzeMFGURxWc1pJ2JMEq0Kjo6kcCZLdXvEG9Zke0s1ggdga8rKV3IZ5NIkc hvF7NT" -H "Content-Type: application/json" -H "Accept: application/json" -H "User-Agent: python-neutronclient" -d '{"network": {"router:external": "True", "name": "ext-net", "provider:physical_network": "physnet1", "admin_state_up": true, "provider:network_type": "vlan", "provider:segmentation_id": "2"}}'

DEBUG: neutronclient.client RESP:{'date': 'Mon, 09 Dec 2013 07:56:58 GMT', 'status': '401', 'content-length': '23', 'content- type': 'text/plain', 'www-authenticate': "Keystone uri='http://openstack.poc:35357'"} Authentication required

DEBUG: neutronclient.client REQ: curl -i http://openstack.poc:35357/v2.0/tokens -X POST -H "Content-Type: application/json" -H "Accept: application/json" -H "User-Agent: python- neutronclient" -d '{"auth": {"tenantName": "admin", "passwordCredentials": {"username": "admin", "password": "REDACTED"}}}'

DEBUG: neutronclient.client RESP:{'date': 'Mon, 09 Dec 2013 07:56:54 GMT', 'vary': 'X-Auth-Token', 'content-length': '4993', 'status': '200', 'content-type': 'application/json'} {"access": {"token": {"issued_at": "2013-12-09T07:56:54.679431", "expires": "2013-12-10T07:56:54Z", "id": "MIIJHQYJKoZIhvcNAQcCoIIJDjCCCQoCAQExCTAHBgUrDgMCGjCCB3MGCSqGSIb3DQEHAaCCB2QEggdgeyJhY2Nlc3MiOiB7InRva2VuIjogeyJpc3N1ZWRfYXQiOiAiMjAxMy0x Mi0wOVQwNzo1Njo1NC42Nzk0MzEiLCAiZXhwaXJlcyI6ICIyMDEzLTEyLTEwVDA3OjU2OjU0WiIsICJpZCI6ICJwbGFjZWhvbGRlciIsICJ0ZW5hbnQiOiB7ImRlc2NyaXB0aW9uIjo gIkFkbWluIFRlbmFudCIsICJlbmFibGVkIjogdHJ1ZSwgImlkIjogIjU4MjlmYjAwNjNiYjRmMGQ5YjFhYW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wgIm1ldGFkYXRhIjogeyJpc19hZG1pbiI6IDAsICJyb2xlcyI6IFsiNmM4NDk1ZGM5YjgwNGYyZjhlN2ZmOTQ2NzI3MTBiMTUiXX19fTGCAYEwggF9AgE BMFwwVzELMAkGA1UEBhMCVVMxDjAMBgNVBAgMBVVuc2V0MQ4wDAYDVQQHDAVVbnNldDEOMAwGA1UECgwFVW5zZXQxGDAWBgNVBAMMD3d3dy5leGFtcGxlLmNvbQIB ATAHBgUrDgMCGjANBgkqhkiG9w0BAQEFAASCAQCp4EOuVVBqi0PJVJB1z80AI6oqCjkIubEenAxw6nv+eL1z3ZMHtObOexVE2N9II6tCiAZ5GsdKNuwa1oHHKqFrglIRzvpKC- SaNpKQlbqyc6NiRYz2qEOliZ2Re3B79QcBjyPgNXRS83OqKs9z0YhqUzDaTSXyqVJMLIxstbvMQbTz8LpAS8IGgjGS2AZ2N38SrT5+4cJ8c2C63MI+SjPwO5d3Z8MFQWEd7uL28YJkb 9rffw3hHcznqIO1gA7cIak4mWmJZ2CWPG7EvSSUy7ryHzeMFGURxWc1pJ2JMEq0Kjo6kcCZLdXvEG9Zke0s1ggdga8rKV3IZ5NIkchvF7NT", "tenant": {"description": "Admin Tenant", "enabled": true, "id": "5829fb0063bb4f0d9b1aab6325f402f2", "name": "admin"}}, "serviceCatalog": [{"endpoints": [{"adminURL": "http://openstack.poc:9292", "region": "regionOne", "internalURL": "http://openstack.poc:9292", "id": "28a9ec95840345528379cf67ffb70a22", "publicURL": "http://openstack.poc:9292"}], "endpoints_links": [], "type": "image", "name": "glance"}, {"endpoints": [{"adminURL": "http://openstack.poc:8774/v2/5829fb0063bb4f0d9b1aab6325f402f2", "region": "regionOne", "internalURL": "http://openstack.poc:8774/v2/5829fb0063bb4f0d9b1aab6325f402f2", "id": "43ceb7bd842347d3ac7e1bb26376a8a3", "publicURL": "http://openstack.poc:8774/v2/5829fb0063bb4f0d9b1aab6325f402f2"}], "endpoints_links": [], "type": "compute", "name": "nova"}, {"endpoints": [{"adminURL": "http://openstack.poc:9696", "region": "regionOne", "internalURL": "http://openstack.poc:9696", "id": "004f0facdd4f432b88d61ae943a09689", "publicURL": "http://openstack.poc:9696"}], "endpoints_links": [], "type": "network", "name": "neutron"}, {"endpoints": [{"adminURL": "http://openstack.poc:35357/v2.0", "region": "regionOne", "internalURL": "http://openstack.poc:5000/v2.0", "id": "2f52447bf6ac486a9db396161c08b54a", "publicURL": "http://openstack.poc:5000/v2.0"}], "endpoints_links": [], "type": "identity", "name": "keystone"}], "user": {"username": "admin", "roles_links": [], "id": "de05bb151707412faae988935f894ba8", "roles": [{"name": "admin"}], "name": "admin"}, "metadata": {"is_admin": 0, "roles": ["6c8495dc9b804f2f8e7ff94672710b15"]}}}

DEBUG: neutronclient.client REQ: curl -i http://openstack.poc:9696/v2.0/networks.json -X POST -H "X-Auth-Token: MIIJHQYJKoZIhvcNAQcCoIIJDjCCCQoCAQExCTAHBgUrDgMCGjCCB3MGCSqGSIb3DQEHAaCCB2QEggdgeyJhY2Nlc3MiOiB7InRva2VuIjogeyJpc3N1ZWRfYXQiOiAiMjAxMy0x Mi0wOVQwNzo1Njo1NC42Nzk0MzEiLCAiZXhwaXJlcyI6ICIyMDEzLTEyLTEwVDA3OjU2OjU0WiIsICJpZCI6ICJwbGFjZWhvbGRlciIsICJ0ZW5hbnQiOiB7ImRlc2NyaXB0aW9uIjo gIkFkbWluIFRlbmFudCIsICJlbmFibGVkIjogdHJ1ZSwgImlkIjogIjU4MjlmYjAwNjNiYjRmMGQ5YjFhYWI2MzI1ZjQwMmYyIiwgIm5hbWUiOiAiYWRtaW4ifX0sICJzZXJ2aWNlQ2 F0YWxvZyI6IFt7ImVuZHBvaW50cyI6IFt7ImFkbWluVVJMIjogImh0dHA6Ly9vcGVuc3RhY2sucG9jLnBkLmhvc3RldXJvcGUuZGU6OTI5MiIsICJyZWdpb24iOiAicmVnaW9uT25lIi wgImludGVybmFsVVJMIjogImh0dHA6Ly9vcGVuc3RhY2sucG9jLn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B ATAHBgUrDgMCGjANBgkqhkiG9w0BAQEFAASCAQCp4EOuVVBqi0PJVJB1z80AI6oqCjkIubEenAxw6nv+eL1z3ZMHtObOexVE2N9II6tCiAZ5GsdKNuwa1oHHKqFrglIRzvpKC- SaNpKQlbqyc6NiRYz2qEOliZ2Re3B79QcBjyPgNXRS83OqKs9z0YhqUzDaTSXyqVJMLIxstbvMQbTz8LpAS8IGgjGS2AZ2N38SrT5+4cJ8c2C63MI+SjPwO5d3Z8MFQWEd7uL28YJkb 9rffw3hHcznqIO1gA7cIak4mWmJZ2CWPG7EvSSUy7ryHzeMFGURxWc1pJ2JMEq0Kjo6kcCZLdXvEG9Zke0s1ggdga8rKV3IZ5NIkchvF7NT" -H "Content-Type: application/json" -H "Accept: application/json" -H "User-Agent: python-neutronclient" -d '{"network": {"router:external": "True", "name": "ext-net", "provider:physical_network": "physnet1", "admin_state_up": true, "provider:network_type": "vlan", "provider:segmentation_id": "2"}}'

DEBUG: neutronclient.client RESP:{'date': 'Mon, 09 Dec 2013 07:56:58 GMT', 'status': '401', 'content-length': '23', 'content-type': 'text/plain', 'www-authenticate': "Keystone uri='http://openstack.poc:35357'"} Authentication required

DEBUG: neutronclient.client REQ: curl -i http://openstack.poc:35357/v2.0/tokens -X POST -H "Content-Type: application/json" -H "Accept: application/json" -H "User-Agent: python- neutronclient" -d '{"auth": {"tenantName": "admin", "passwordCredentials": {"username": "admin", "password": "REDACTED"}}}'

DEBUG: neutronclient.client RESP:{'date': 'Mon, 09 Dec 2013 07:56:58 GMT', 'vary': 'X-Auth-Token', 'content-length': '4993', 'status': '200', 'content-type': 'application/json'} {"access": {"token": {"issued_at": "2013-12-09T07:56:58.344237", "expires": "2013-12-10T07:56:58Z", "id": "MIIJHQYJKoZIhvcNAQcCoIIJDjCCCQoCAQExCTAHBgUrDgMCGjCCB3MGCSqGSIb3DQEHAaCCB2QEggdgeyJhY2Nlc3MiOiB7InRva2VuIjogeyJpc3N1ZWRfYXQiOiAiMjAxMy0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lwZSI6ICJpZGVudGl0eSIsICJuYW1lIjogImtleXN0b25lIn1dLCAidXNlciI6IHsidXNlcm5hbWUi OiAiYWRtaW4iLCAicm9sZXNfbGlua3MiOiBbXSwgImlkIjogImRlMDViYjE1MTcwNzQxMmZhYWU5ODg5MzVmODk0YmE4IiwgInJvbGVzIjogW3sibmFtZSI6ICJhZG1pbiJ9XSwgI m5hbWUiOiAiYWRtaW4ifSwgIm1ldGFkYXRhIjogeyJpc19hZG1pbiI6IDAsICJyb2xlcyI6IFsiNmM4NDk1ZGM5YjgwNGYyZjhlN2ZmOTQ2NzI3MTBiMTUiXX19fTGCAYEwggF9AgE BMFwwVzELMAkGA1UEBhMCVVMxDjAMBgNVBAgMBVVuc2V0MQ4wDAYDVQQHDAVVbnNldDEOMAwGA1UECgwFVW5zZXQxGDAWBgNVBAMMD3d3dy5leGFtcGxlLmNvbQIB ATAHBgUrDgMCGjANBgkqhkiG9w0BAQEFAASCAQBQr-XHjB66Dv-oDCHFGl9Uz+AlRoihiEVNbfd-bs1LV4hs0Lh3zPprjC5PBJ29SjRMa1ZUPXXPr+qIUfo- i9LYr3sU09G0U41KdfFy8LRNvEo1zddN84YCr1DVEmvelkrw+KVLDXo0JlO54xOKf33dFB4l13vuIcy7MeQPgH8CzoQET0bkEWzRr0jRNkVLvDN9zKIAA1BxDrwwuJOhD1LDvSnWi klkSvzVGlubnOmSteO7rGx8boY6JpJ79rspFbBdncI2rfcP0pgyLFEmei+oLPp3C2BWoMcyxQxikW8cmuPKCLGsVB-K48i7RGtX95B6nBDWJwIjSLJ6+TiU2Xrt", "tenant": {"description": "Admin Tenant", "enabled": true, "id": "5829fb0063bb4f0d9b1aab6325f402f2", "name": "admin"}}, "serviceCatalog": [{"endpoints": [{"adminURL": "http://openstack.poc:9292", "region": "regionOne", "internalURL": "http://openstack.poc:9292", "id": "28a9ec95840345528379cf67ffb70a22", "publicURL": "http://openstack.poc:9292"}], "endpoints_links": [], "type": "image", "name": "glance"}, {"endpoints": [{"adminURL": "http://openstack.poc:8774/v2/5829fb0063bb4f0d9b1aab6325f402f2", "region": "regionOne", "internalURL": "http://openstack.poc:8774/v2/5829fb0063bb4f0d9b1aab6325f402f2", "id": "43ceb7bd842347d3ac7e1bb26376a8a3", "publicURL": "http://openstack.poc:8774/v2/5829fb0063bb4f0d9b1aab6325f402f2"}], "endpoints_links": [], "type": "compute", "name": "nova"}, {"endpoints": [{"adminURL": "http://openstack.poc:9696", "region": "regionOne", "internalURL": "http://openstack.poc:9696", "id": "004f0facdd4f432b88d61ae943a09689", "publicURL": "http://openstack.poc:9696"}], "endpoints_links": [], "type": "network", "name": "neutron"}, {"endpoints": [{"adminURL": "http://openstack.po:35357/v2.0", "region": "regionOne", "internalURL": "http://openstack.poc:5000/v2.0", "id": "2f52447bf6ac486a9db396161c08b54a", "publicURL": "http://openstack.poc:5000/v2.0"}], "endpoints_links": [], "type": "identity", "name": "keystone"}], "user": {"username": "admin", "roles_links": [], "id": "de05bb151707412faae988935f894ba8", "roles": [{"name": "admin"}], "name": "admin"}, "metadata": {"is_admin": 0, "roles": ["6c8495dc9b804f2f8e7ff94672710b15"]}}}

DEBUG: neutronclient.client REQ: curl -i http://openstack.poc:9696/v2.0/networks.json -X POST -H "X-Auth-Token: MIIJHQYJKoZIhvcNAQcCoIIJDjCCCQoCAQExCTAHBgUrDgMCGjCCB3MGCSqGSIb3DQEHAaCCB2QEggdgeyJhY2Nlc3MiOiB7InRva2VuIjogeyJpc3N1ZWRfYXQiOiAiMjAxMy0x Mi0wOVQwNzo1Njo1OC4zNDQyMzciLCAiZXhwaXJlcyI6ICIyMDEzLTEyLTEwVDA3OjU2OjU4WiIsICJpZCI6ICJwbGFjZWhvbGRlciIsICJ0ZW5hbnQiOiB7ImRlc2NyaXB0aW9uIjo gIkFkbWluIFRlbmFudCIsICJlbmFibGVkIjogdHJ1ZSwgImlkIjogIjU4MjlmYjAwNjNiYjRmMGQ5YjFhYWI2MzI1ZjQwMmYyIiwgIm5hbWUi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pbiI6IDAsICJyb2xlcyI6IFsiNmM4NDk1ZGM5YjgwNGYyZjhlN2ZmOTQ2NzI3MTBiMTUiXX19fTGCAYEwggF9AgE BMFwwVzELMAkGA1UEBhMCVVMxDjAMBgNVBAgMBVVuc2V0MQ4wDAYDVQQHDAVVbnNldDEOMAwGA1UECgwFVW5zZXQxGDAWBgNVBAMMD3d3dy5leGFtcGxlLmNvbQIB ATAHBgUrDgMCGjANBgkqhkiG9w0BAQEFAASCAQBQr-XHjB66Dv-oDCHFGl9Uz+AlRoihiEVNbfd-bs1LV4hs0Lh3zPprjC5PBJ29SjRMa1ZUPXXPr+qIUfo- i9LYr3sU09G0U41KdfFy8LRNvEo1zddN84YCr1DVEmvelkrw+KVLDXo0JlO54xOKf33dFB4l13vuIcy7MeQPgH8CzoQET0bkEWzRr0jRNkVLvDN9zKIAA1BxDrwwuJOhD1LDvSnWi klkSvzVGlubnOmSteO7rGx8boY6JpJ79rspFbBdncI2rfcP0pgyLFEmei+oLPp3C2BWoMcyxQxikW8cmuPKCLGsVB-K48i7RGtX95B6nBDWJwIjSLJ6+TiU2Xrt" -H "Content-Type: application/json" -H "Accept: application/json" -H "User-Agent: python-neutronclient" -d '{"network": {"router:external": "True", "name": "ext-net", "provider:physical_network": "physnet1", "admin_state_up": true, "provider:network_type": "vlan", "provider:segmentation_id": "2"}}'

DEBUG: neutronclient.client RESP:{'date': 'Mon, 09 Dec 2013 07:57:01 GMT', 'status': '401', 'content-length': '23', 'content-type': 'content- type': 'text/plain', 'www-authenticate': "Keystone uri='http://openstack.poc:35357'"} Authentication required

ERROR: neutronclient.shell Authentication required DEBUG: neutronclient.shell clean_up CreateNetwork DEBUG: neutronclient.shell got an error: Authentication required