← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1709233] Re: Unauthorized: Unknown auth type: None when launching instance

 

Looks like your Neutron configuration in your nova.conf files is incorrect. 
You need to provide some neutron-specific configuration variables for the API and compute nodes knowing how to reach Neutron API.

See https://docs.openstack.org/ocata/config-reference/compute/config-
options.html#id29 for reference and mainly
https://docs.openstack.org/ocata/install-guide-rdo/neutron-compute-
install.html#configure-the-compute-service-to-use-the-networking-service

** Changed in: nova
       Status: New => Invalid

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1709233

Title:
  Unauthorized: Unknown auth type: None when launching instance

Status in OpenStack Compute (nova):
  Invalid

Bug description:
  I'm trying to install Openstack Ocata on CentOS running on VirtualBox
  environment according to the installation document, while I
  encountered one problem when trying to launch the basic instance via
  CLI or dashboard, got the same error logs as below:

  ====logs of nova-api=====
  2017-08-08 15:18:20.830 2725 INFO nova.osapi_compute.wsgi.server [req-f31e391e-a3b8-4358-ada4-55f6cb57c050 f8c1accdd8af4d13a729d211f0da5dd4 6449ae304b29491492ddeb3663c1a508 - default default] 10.0.0.11 "GET /v2.1/flavors/0 HTTP/1.1" status: 200 len: 686 time: 0.0181510
  2017-08-08 15:18:21.182 2725 ERROR nova.api.openstack.extensions [req-1a5aefdf-9c63-46a7-ab11-5a7043f66714 f8c1accdd8af4d13a729d211f0da5dd4 6449ae304b29491492ddeb3663c1a508 - default default] Unexpected exception in API method
  2017-08-08 15:18:21.182 2725 ERROR nova.api.openstack.extensions Traceback (most recent call last):
  2017-08-08 15:18:21.182 2725 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/nova/api/openstack/extensions.py", line 338, in wrapped
  2017-08-08 15:18:21.182 2725 ERROR nova.api.openstack.extensions     return f(*args, **kwargs)
  2017-08-08 15:18:21.182 2725 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/nova/api/validation/__init__.py", line 108, in wrapper
  2017-08-08 15:18:21.182 2725 ERROR nova.api.openstack.extensions     return func(*args, **kwargs)
  2017-08-08 15:18:21.182 2725 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/nova/api/validation/__init__.py", line 108, in wrapper
  2017-08-08 15:18:21.182 2725 ERROR nova.api.openstack.extensions     return func(*args, **kwargs)
  2017-08-08 15:18:21.182 2725 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/nova/api/validation/__init__.py", line 108, in wrapper
  2017-08-08 15:18:21.182 2725 ERROR nova.api.openstack.extensions     return func(*args, **kwargs)
  2017-08-08 15:18:21.182 2725 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/nova/api/validation/__init__.py", line 108, in wrapper
  2017-08-08 15:18:21.182 2725 ERROR nova.api.openstack.extensions     return func(*args, **kwargs)
  2017-08-08 15:18:21.182 2725 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/nova/api/validation/__init__.py", line 108, in wrapper
  2017-08-08 15:18:21.182 2725 ERROR nova.api.openstack.extensions     return func(*args, **kwargs)
  2017-08-08 15:18:21.182 2725 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/nova/api/validation/__init__.py", line 108, in wrapper
  2017-08-08 15:18:21.182 2725 ERROR nova.api.openstack.extensions     return func(*args, **kwargs)
  2017-08-08 15:18:21.182 2725 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/nova/api/openstack/compute/servers.py", line 642, in create
  2017-08-08 15:18:21.182 2725 ERROR nova.api.openstack.extensions     **create_kwargs)
  2017-08-08 15:18:21.182 2725 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/nova/hooks.py", line 154, in inner
  2017-08-08 15:18:21.182 2725 ERROR nova.api.openstack.extensions     rv = f(*args, **kwargs)
  2017-08-08 15:18:21.182 2725 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/nova/compute/api.py", line 1613, in create
  2017-08-08 15:18:21.182 2725 ERROR nova.api.openstack.extensions     check_server_group_quota=check_server_group_quota)
  2017-08-08 15:18:21.182 2725 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/nova/compute/api.py", line 1186, in _create_instance
  2017-08-08 15:18:21.182 2725 ERROR nova.api.openstack.extensions     reservation_id, max_count)
  2017-08-08 15:18:21.182 2725 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/nova/compute/api.py", line 902, in _validate_and_build_base_options
  2017-08-08 15:18:21.182 2725 ERROR nova.api.openstack.extensions     pci_request_info, requested_networks)
  2017-08-08 15:18:21.182 2725 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 1432, in create_pci_requests_for_sriov_ports
  2017-08-08 15:18:21.182 2725 ERROR nova.api.openstack.extensions     neutron = get_client(context, admin=True)
  2017-08-08 15:18:21.182 2725 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 138, in get_client
  2017-08-08 15:18:21.182 2725 ERROR nova.api.openstack.extensions     _ADMIN_AUTH = _load_auth_plugin(CONF)
  2017-08-08 15:18:21.182 2725 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 74, in _load_auth_plugin
  2017-08-08 15:18:21.182 2725 ERROR nova.api.openstack.extensions     raise neutron_client_exc.Unauthorized(message=err_msg)
  2017-08-08 15:18:21.182 2725 ERROR nova.api.openstack.extensions Unauthorized: Unknown auth type: None
  2017-08-08 15:18:21.182 2725 ERROR nova.api.openstack.extensions 
  2017-08-08 15:18:21.183 2725 INFO nova.api.openstack.wsgi [req-1a5aefdf-9c63-46a7-ab11-5a7043f66714 f8c1accdd8af4d13a729d211f0da5dd4 6449ae304b29491492ddeb3663c1a508 - default default] HTTP exception thrown: Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.
  <class 'neutronclient.common.exceptions.Unauthorized'>
  2017-08-08 15:18:21.184 2725 INFO nova.osapi_compute.wsgi.server [req-1a5aefdf-9c63-46a7-ab11-5a7043f66714 f8c1accdd8af4d13a729d211f0da5dd4 6449ae304b29491492ddeb3663c1a508 - default default] 10.0.0.11 "POST /v2.1/servers HTTP/1.1" status: 500 len: 585 time: 0.2210422
  ========

  CLI step to trigger the problem when launching instance:
  ========
  [openstack@controller ~]$ cat demo-openrc 
  export OS_PROJECT_DOMAIN_NAME=Default
  export OS_USER_DOMAIN_NAME=Default
  export OS_PROJECT_NAME=demo
  export OS_USERNAME=demo
  export OS_PASSWORD=******
  export OS_AUTH_URL=http://controller:5000/v3
  export OS_IDENTITY_API_VERSION=3
  export OS_IMAGE_API_VERSION=2
  [openstack@controller ~]$ . demo-openrc 
  [openstack@controller ~]$ openstack server create --flavor 0 --image 358d684a-0842-47e1-b416-e4fbda532932 --nic net-id=cb42b0e4-270f-4ebc-ab68-494f589804a8 --security-group default   --key-name mykey demo1 --debug
  START with options: [u'server', u'create', u'--flavor', u'0', u'--image', u'358d684a-0842-47e1-b416-e4fbda532932', u'--nic', u'net-id=cb42b0e4-270f-4ebc-ab68-494f589804a8', u'--security-group', u'default', u'--key-name', u'mykey', u'demo1', u'--debug']
  options: Namespace(access_key='', access_secret='***', access_token='***', access_token_endpoint='', access_token_type='', auth_type='', auth_url='http://controller:5000/v3', cacert=None, cert='', client_id='', client_secret='***', cloud='', code='', consumer_key='', consumer_secret='***', debug=True, default_domain='default', default_domain_id='', default_domain_name='', deferred_help=False, discovery_endpoint='', domain_id='', domain_name='', endpoint='', identity_provider='', identity_provider_url='', insecure=None, interface='', key='', log_file=None, old_profile=None, openid_scope='', os_beta_command=False, os_compute_api_version='', os_data_processing_api_version='1.1', os_data_processing_url='', os_database_api_version='1', os_dns_api_version='2', os_identity_api_version='3', os_image_api_version='2', os_network_api_version='', os_object_api_version='', os_orchestration_api_version='1', os_project_id=None, os_project_name=None, os_volume_api_version='', os_workflow_api_version='2', passcode='', password='***', profile=None, project_domain_id='', project_domain_name='Default', project_id='', project_name='demo', protocol='', redirect_uri='', region_name='', timing=False, token='***', trust_id='', url='', user_domain_id='', user_domain_name='Default', user_id='', username='demo', verbose_level=3, verify=None)
  Auth plugin password selected
  auth_config_hook(): {'auth_type': 'password', 'beta_command': False, u'compute_api_version': u'2', 'key': None, u'database_api_version': '1', 'data_processing_api_version': '1.1', 'auth_url': 'http://controller:5000/v3', u'network_api_version': u'2', u'message': u'', u'image_format': u'qcow2', 'networks': [], u'image_api_version': '2', 'verify': True, u'dns_api_version': '2', u'object_store_api_version': u'1', 'username': 'demo', u'container_infra_api_version': u'1', 'verbose_level': 3, 'region_name': '', 'api_timeout': None, u'baremetal_api_version': u'1', 'auth': {'user_domain_name': 'Default', 'project_name': 'demo', 'project_domain_name': 'Default'}, 'default_domain': 'default', u'container_api_version': u'1', u'image_api_use_tasks': False, u'floating_ip_source': u'neutron', u'orchestration_api_version': '1', 'timing': False, 'password': '***', u'application_catalog_api_version': u'1', 'cacert': None, u'key_manager_api_version': u'v1', u'metering_api_version': u'2', 'deferred_help': False, u'identity_api_version': '3', 'workflow_api_version': '2', u'volume_api_version': u'2', 'cert': None, u'secgroup_source': u'neutron', u'status': u'active', 'debug': True, u'interface': None, u'disable_vendor_agent': {}}
  defaults: {u'auth_type': 'password', u'status': u'active', u'compute_api_version': u'2', 'key': None, u'database_api_version': u'1.0', 'api_timeout': None, u'baremetal_api_version': u'1', u'image_api_version': u'2', u'container_infra_api_version': u'1', u'metering_api_version': u'2', u'image_api_use_tasks': False, u'floating_ip_source': u'neutron', u'orchestration_api_version': u'1', 'cacert': None, u'network_api_version': u'2', u'message': u'', u'image_format': u'qcow2', u'application_catalog_api_version': u'1', u'key_manager_api_version': u'v1', 'verify': True, u'identity_api_version': u'2.0', u'volume_api_version': u'2', 'cert': None, u'secgroup_source': u'neutron', u'container_api_version': u'1', u'dns_api_version': u'2', u'object_store_api_version': u'1', u'interface': None, u'disable_vendor_agent': {}}
  cloud cfg: {'auth_type': 'password', 'beta_command': False, u'compute_api_version': u'2', 'key': None, u'database_api_version': '1', 'data_processing_api_version': '1.1', 'auth_url': 'http://controller:5000/v3', u'network_api_version': u'2', u'message': u'', u'image_format': u'qcow2', 'networks': [], u'image_api_version': '2', 'verify': True, u'dns_api_version': '2', u'object_store_api_version': u'1', 'username': 'demo', u'container_infra_api_version': u'1', 'verbose_level': 3, 'region_name': '', 'api_timeout': None, u'baremetal_api_version': u'1', 'auth': {'user_domain_name': 'Default', 'project_name': 'demo', 'project_domain_name': 'Default'}, 'default_domain': 'default', u'container_api_version': u'1', u'image_api_use_tasks': False, u'floating_ip_source': u'neutron', u'orchestration_api_version': '1', 'timing': False, 'password': '***', u'application_catalog_api_version': u'1', 'cacert': None, u'key_manager_api_version': u'v1', u'metering_api_version': u'2', 'deferred_help': False, u'identity_api_version': '3', 'workflow_api_version': '2', u'volume_api_version': u'2', 'cert': None, u'secgroup_source': u'neutron', u'status': u'active', 'debug': True, u'interface': None, u'disable_vendor_agent': {}}
  compute API version 2, cmd group openstack.compute.v2
  network API version 2, cmd group openstack.network.v2
  image API version 2, cmd group openstack.image.v2
  volume API version 2, cmd group openstack.volume.v2
  identity API version 3, cmd group openstack.identity.v3
  object_store API version 1, cmd group openstack.object_store.v1
  database API version 1, cmd group openstack.database.v1
  data_processing API version 1.1, cmd group openstack.data_processing.v1
  workflow_engine API version 2, cmd group openstack.workflow_engine.v2
  orchestration API version 1, cmd group openstack.orchestration.v1
  dns API version 2, cmd group openstack.dns.v2
  neutronclient API version 2, cmd group openstack.neutronclient.v2
  Auth plugin password selected
  auth_config_hook(): {'auth_type': 'password', 'beta_command': False, u'compute_api_version': u'2', 'key': None, u'database_api_version': '1', 'data_processing_api_version': '1.1', 'auth_url': 'http://controller:5000/v3', u'network_api_version': u'2', u'message': u'', u'image_format': u'qcow2', 'networks': [], u'image_api_version': '2', 'verify': True, u'dns_api_version': '2', u'object_store_api_version': u'1', 'username': 'demo', u'container_infra_api_version': u'1', 'verbose_level': 3, 'region_name': '', 'api_timeout': None, u'baremetal_api_version': u'1', 'auth': {'user_domain_name': 'Default', 'project_name': 'demo', 'project_domain_name': 'Default'}, 'default_domain': 'default', u'container_api_version': u'1', u'image_api_use_tasks': False, u'floating_ip_source': u'neutron', u'orchestration_api_version': '1', 'timing': False, 'password': '***', u'application_catalog_api_version': u'1', 'cacert': None, u'key_manager_api_version': u'v1', u'metering_api_version': u'2', 'deferred_help': False, u'identity_api_version': '3', 'workflow_api_version': '2', u'volume_api_version': u'2', 'cert': None, u'secgroup_source': u'neutron', u'status': u'active', 'debug': True, u'interface': None, u'disable_vendor_agent': {}}
  Auth plugin password selected
  auth_config_hook(): {'auth_type': 'password', 'beta_command': False, u'compute_api_version': u'2', 'key': None, u'database_api_version': '1', 'data_processing_api_version': '1.1', 'auth_url': 'http://controller:5000/v3', u'network_api_version': u'2', u'message': u'', u'image_format': u'qcow2', 'networks': [], u'image_api_version': '2', 'verify': True, u'dns_api_version': '2', u'object_store_api_version': u'1', 'username': 'demo', u'container_infra_api_version': u'1', 'verbose_level': 3, 'region_name': '', 'api_timeout': None, u'baremetal_api_version': u'1', 'auth': {'user_domain_name': 'Default', 'project_name': 'demo', 'project_domain_name': 'Default'}, 'default_domain': 'default', u'container_api_version': u'1', u'image_api_use_tasks': False, u'floating_ip_source': u'neutron', u'orchestration_api_version': '1', 'timing': False, 'password': '***', u'application_catalog_api_version': u'1', 'cacert': None, u'key_manager_api_version': u'v1', u'metering_api_version': u'2', 'deferred_help': False, u'identity_api_version': '3', 'workflow_api_version': '2', u'volume_api_version': u'2', 'cert': None, u'secgroup_source': u'neutron', u'status': u'active', 'debug': True, u'interface': None, u'disable_vendor_agent': {}}
  command: server create -> openstackclient.compute.v2.server.CreateServer
  Auth plugin password selected
  auth_config_hook(): {'auth_type': 'password', 'beta_command': False, u'compute_api_version': u'2', 'key': None, u'database_api_version': '1', 'data_processing_api_version': '1.1', 'auth_url': 'http://controller:5000/v3', u'network_api_version': u'2', u'message': u'', u'image_format': u'qcow2', 'networks': [], u'image_api_version': '2', 'verify': True, u'dns_api_version': '2', u'object_store_api_version': u'1', 'username': 'demo', u'container_infra_api_version': u'1', 'verbose_level': 3, 'region_name': '', 'api_timeout': None, u'baremetal_api_version': u'1', 'auth': {'user_domain_name': 'Default', 'project_name': 'demo', 'project_domain_name': 'Default'}, 'default_domain': 'default', u'container_api_version': u'1', u'image_api_use_tasks': False, u'floating_ip_source': u'neutron', u'orchestration_api_version': '1', 'timing': False, 'password': '***', u'application_catalog_api_version': u'1', 'cacert': None, u'key_manager_api_version': u'v1', u'metering_api_version': u'2', 'deferred_help': False, u'identity_api_version': '3', 'workflow_api_version': '2', u'volume_api_version': u'2', 'cert': None, u'secgroup_source': u'neutron', u'status': u'active', 'debug': True, u'interface': None, u'disable_vendor_agent': {}}
  Using auth plugin: password
  Using parameters {'username': 'demo', 'project_name': 'demo', 'user_domain_name': 'Default', 'auth_url': 'http://controller:5000/v3', 'password': '***', 'project_domain_name': 'Default'}
  Get auth_ref
  REQ: curl -g -i -X GET http://controller:5000/v3 -H "Accept: application/json" -H "User-Agent: osc-lib/1.3.0 keystoneauth1/2.18.0 python-requests/2.11.1 CPython/2.7.5"
  Starting new HTTP connection (1): controller
  "GET /v3 HTTP/1.1" 200 249
  RESP: [200] Date: Tue, 08 Aug 2017 03:26:34 GMT Server: Apache/2.4.6 (CentOS) mod_wsgi/3.4 Python/2.7.5 Vary: X-Auth-Token x-openstack-request-id: req-7247618d-54dd-4879-9f72-019bbee24bd4 Content-Length: 249 Keep-Alive: timeout=5, max=100 Connection: Keep-Alive Content-Type: application/json 
  RESP BODY: {"version": {"status": "stable", "updated": "2017-02-22T00:00:00Z", "media-types": [{"base": "application/json", "type": "application/vnd.openstack.identity-v3+json"}], "id": "v3.8", "links": [{"href": "http://controller:5000/v3/";, "rel": "self"}]}}

  GET call to None for http://controller:5000/v3 used request id req-7247618d-54dd-4879-9f72-019bbee24bd4
  Making authentication request to http://controller:5000/v3/auth/tokens
  "POST /v3/auth/tokens HTTP/1.1" 201 3287
  {"token": {"is_domain": false, "methods": ["password"], "roles": [{"id": "d9963a46ff5f4d958f05c06760a268b9", "name": "user"}], "expires_at": "2017-08-08T04:26:34.000000Z", "project": {"domain": {"id": "default", "name": "Default"}, "id": "6449ae304b29491492ddeb3663c1a508", "name": "demo"}, "catalog": [{"endpoints": [{"url": "http://controller:5000/v3/";, "interface": "internal", "region": "RegionOne", "region_id": "RegionOne", "id": "2297c531d78444158f8357f2a1c87e78"}, {"url": "http://controller:5000/v3/";, "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "661682921e46483faaebff25eb21394f"}, {"url": "http://controller:35357/v3/";, "interface": "admin", "region": "RegionOne", "region_id": "RegionOne", "id": "7003f563ac9842b084aea93b35afa7d7"}], "type": "identity", "id": "364f33067bca4386af2e7a496c8976db", "name": "keystone"}, {"endpoints": [{"url": "http://controller:9292";, "interface": "internal", "region": "RegionOne", "region_id": "RegionOne", "id": "a114ff4cc48f44a4a9ed0792556855ee"}, {"url": "http://controller:9292";, "interface": "admin", "region": "RegionOne", "region_id": "RegionOne", "id": "a9dd5d402aac41aab29429f64bf86a2e"}, {"url": "http://controller:9292";, "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "b6b4292f522246e39116cf16a6885460"}], "type": "image", "id": "448b7c4f4061496fbbe6a09a087b9512", "name": "glance"}, {"endpoints": [{"url": "http://controller:8774/v2.1";, "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "05ce92dd189247e19ca3e48b1271a62d"}, {"url": "http://controller:8774/v2.1";, "interface": "internal", "region": "RegionOne", "region_id": "RegionOne", "id": "90e8ab738bba470c87a979334f96dcc7"}, {"url": "http://controller:8774/v2.1";, "interface": "admin", "region": "RegionOne", "region_id": "RegionOne", "id": "c3d4260cbabd4c7da0008cd4652b0921"}], "type": "compute", "id": "4d319015cace4cd9bd695109b903330b", "name": "nova"}, {"endpoints": [{"url": "http://controller:8778";, "interface": "admin", "region": "RegionOne", "region_id": "RegionOne", "id": "a812595be3cc46b0a19a302b071e4cb7"}, {"url": "http://controller:8778";, "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "d698922010184b77bb9cf2a8f8d6fc8c"}, {"url": "http://controller:8778";, "interface": "internal", "region": "RegionOne", "region_id": "RegionOne", "id": "ef38a81b9dac444e96d6cccd078c5d32"}], "type": "placement", "id": "50416ff652f040089d7199ff432c32e9", "name": "placement"}, {"endpoints": [{"url": "http://controller:9696";, "interface": "internal", "region": "RegionOne", "region_id": "RegionOne", "id": "49e6654bb412447bb5646cd1fd8f27cb"}, {"url": "http://controller:9696";, "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "7548f2330f3f40ea8450cfc5f353e423"}, {"url": "http://controller:9696";, "interface": "admin", "region": "RegionOne", "region_id": "RegionOne", "id": "de8786290b2440c3a9d1b24418dd1f2a"}], "type": "network", "id": "6c9ff34c35ec48f0aed5681602338635", "name": "neutron"}], "user": {"domain": {"id": "default", "name": "Default"}, "password_expires_at": null, "name": "demo", "id": "f8c1accdd8af4d13a729d211f0da5dd4"}, "audit_ids": ["bReewiCxSNKBAUIsqliY3g"], "issued_at": "2017-08-08T03:26:34.000000Z"}}
  run(Namespace(availability_zone=None, block_device_mapping=[], columns=[], config_drive=False, file=[], flavor=u'0', formatter='table', hint=[], image=u'358d684a-0842-47e1-b416-e4fbda532932', key_name=u'mykey', max=1, max_width=0, min=1, nic=[u'net-id=cb42b0e4-270f-4ebc-ab68-494f589804a8'], noindent=False, prefix='', print_empty=False, property=None, security_group=[u'default'], server_name=u'demo1', user_data=None, variables=[], volume=None, wait=False))
  Instantiating compute client for API Version Major: 2, Minor: 0
  Instantiating volume client: <class 'cinderclient.v2.client.Client'>
  Instantiating image client: <class 'glanceclient.v2.client.Client'>
  Making authentication request to http://controller:5000/v3/auth/tokens
  "POST /v3/auth/tokens HTTP/1.1" 201 3287
  {"token": {"is_domain": false, "methods": ["password"], "roles": [{"id": "d9963a46ff5f4d958f05c06760a268b9", "name": "user"}], "expires_at": "2017-08-08T04:26:35.000000Z", "project": {"domain": {"id": "default", "name": "Default"}, "id": "6449ae304b29491492ddeb3663c1a508", "name": "demo"}, "catalog": [{"endpoints": [{"url": "http://controller:5000/v3/";, "interface": "internal", "region": "RegionOne", "region_id": "RegionOne", "id": "2297c531d78444158f8357f2a1c87e78"}, {"url": "http://controller:5000/v3/";, "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "661682921e46483faaebff25eb21394f"}, {"url": "http://controller:35357/v3/";, "interface": "admin", "region": "RegionOne", "region_id": "RegionOne", "id": "7003f563ac9842b084aea93b35afa7d7"}], "type": "identity", "id": "364f33067bca4386af2e7a496c8976db", "name": "keystone"}, {"endpoints": [{"url": "http://controller:9292";, "interface": "internal", "region": "RegionOne", "region_id": "RegionOne", "id": "a114ff4cc48f44a4a9ed0792556855ee"}, {"url": "http://controller:9292";, "interface": "admin", "region": "RegionOne", "region_id": "RegionOne", "id": "a9dd5d402aac41aab29429f64bf86a2e"}, {"url": "http://controller:9292";, "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "b6b4292f522246e39116cf16a6885460"}], "type": "image", "id": "448b7c4f4061496fbbe6a09a087b9512", "name": "glance"}, {"endpoints": [{"url": "http://controller:8774/v2.1";, "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "05ce92dd189247e19ca3e48b1271a62d"}, {"url": "http://controller:8774/v2.1";, "interface": "internal", "region": "RegionOne", "region_id": "RegionOne", "id": "90e8ab738bba470c87a979334f96dcc7"}, {"url": "http://controller:8774/v2.1";, "interface": "admin", "region": "RegionOne", "region_id": "RegionOne", "id": "c3d4260cbabd4c7da0008cd4652b0921"}], "type": "compute", "id": "4d319015cace4cd9bd695109b903330b", "name": "nova"}, {"endpoints": [{"url": "http://controller:8778";, "interface": "admin", "region": "RegionOne", "region_id": "RegionOne", "id": "a812595be3cc46b0a19a302b071e4cb7"}, {"url": "http://controller:8778";, "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "d698922010184b77bb9cf2a8f8d6fc8c"}, {"url": "http://controller:8778";, "interface": "internal", "region": "RegionOne", "region_id": "RegionOne", "id": "ef38a81b9dac444e96d6cccd078c5d32"}], "type": "placement", "id": "50416ff652f040089d7199ff432c32e9", "name": "placement"}, {"endpoints": [{"url": "http://controller:9696";, "interface": "internal", "region": "RegionOne", "region_id": "RegionOne", "id": "49e6654bb412447bb5646cd1fd8f27cb"}, {"url": "http://controller:9696";, "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "7548f2330f3f40ea8450cfc5f353e423"}, {"url": "http://controller:9696";, "interface": "admin", "region": "RegionOne", "region_id": "RegionOne", "id": "de8786290b2440c3a9d1b24418dd1f2a"}], "type": "network", "id": "6c9ff34c35ec48f0aed5681602338635", "name": "neutron"}], "user": {"domain": {"id": "default", "name": "Default"}, "password_expires_at": null, "name": "demo", "id": "f8c1accdd8af4d13a729d211f0da5dd4"}, "audit_ids": ["5hz0cHeLTE-pNAAWQtkOeA"], "issued_at": "2017-08-08T03:26:35.000000Z"}}
  Instantiating image api: <class 'openstackclient.api.image_v2.APIv2'>
  curl -g -i -X GET -H 'Accept-Encoding: gzip, deflate' -H 'Accept: */*' -H 'User-Agent: python-glanceclient' -H 'Connection: keep-alive' -H 'X-Auth-Token: {SHA1}231ce2af87009a36880324ba25df7961280d797e' -H 'Content-Type: application/octet-stream' http://controller:9292/v2/images/358d684a-0842-47e1-b416-e4fbda532932
  Starting new HTTP connection (1): controller
  "GET /v2/images/358d684a-0842-47e1-b416-e4fbda532932 HTTP/1.1" 200 584
  GET call to glance-api for http://controller:9292/v2/images/358d684a-0842-47e1-b416-e4fbda532932 used request id req-e8c80122-b325-43b4-b269-a08653c61928

  HTTP/1.1 200 OK
  Content-Length: 584
  Content-Type: application/json; charset=UTF-8
  X-Openstack-Request-Id: req-e8c80122-b325-43b4-b269-a08653c61928
  Date: Tue, 08 Aug 2017 03:26:35 GMT
  Connection: keep-alive

  {"status": "active", "name": "cirros", "tags": [], "container_format":
  "bare", "created_at": "2017-07-18T09:04:46Z", "size": 13267968,
  "disk_format": "qcow2", "updated_at": "2017-07-18T09:04:47Z",
  "visibility": "public", "self":
  "/v2/images/358d684a-0842-47e1-b416-e4fbda532932", "min_disk": 0,
  "protected": false, "id": "358d684a-0842-47e1-b416-e4fbda532932",
  "file": "/v2/images/358d684a-0842-47e1-b416-e4fbda532932/file",
  "checksum": "f8ab98ff5e73ebab884d80c9dc9c7290", "owner":
  "96e6ba0b79c0456295453e817b235fae", "virtual_size": null, "min_ram":
  0, "schema": "/v2/schemas/image"}

  curl -g -i -X GET -H 'Accept-Encoding: gzip, deflate' -H 'Accept: */*' -H 'User-Agent: python-glanceclient' -H 'Connection: keep-alive' -H 'X-Auth-Token: {SHA1}231ce2af87009a36880324ba25df7961280d797e' -H 'Content-Type: application/octet-stream' http://controller:9292/v2/schemas/image
  "GET /v2/schemas/image HTTP/1.1" 200 4169
  GET call to glance-api for http://controller:9292/v2/schemas/image used request id req-a7f2dc01-da3c-4903-8fb7-2c042cbd56df

  HTTP/1.1 200 OK
  Content-Type: application/json; charset=UTF-8
  Content-Length: 4169
  X-Openstack-Request-Id: req-a7f2dc01-da3c-4903-8fb7-2c042cbd56df
  Date: Tue, 08 Aug 2017 03:26:35 GMT
  Connection: keep-alive

  {"additionalProperties": {"type": "string"}, "name": "image", "links":
  [{"href": "{self}", "rel": "self"}, {"href": "{file}", "rel":
  "enclosure"}, {"href": "{schema}", "rel": "describedby"}],
  "properties": {"status": {"readOnly": true, "enum": ["queued",
  "saving", "active", "killed", "deleted", "pending_delete",
  "deactivated"], "type": "string", "description": "Status of the
  image"}, "tags": {"items": {"type": "string", "maxLength": 255},
  "type": "array", "description": "List of strings related to the
  image"}, "kernel_id": {"pattern": "^([0-9a-fA-F]){8}-([0-9a-
  fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){12}$",
  "type": ["null", "string"], "description": "ID of image stored in
  Glance that should be used as the kernel when booting an AMI-style
  image.", "is_base": false}, "container_format": {"enum": [null, "ami",
  "ari", "aki", "bare", "ovf", "ova", "docker"], "type": ["null",
  "string"], "description": "Format of the container"}, "min_ram":
  {"type": "integer", "description": "Amount of ram (in MB) required to
  boot image."}, "ramdisk_id": {"pattern": "^([0-9a-fA-F]){8}-([0-9a-
  fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){12}$",
  "type": ["null", "string"], "description": "ID of image stored in
  Glance that should be used as the ramdisk when booting an AMI-style
  image.", "is_base": false}, "locations": {"items": {"required":
  ["url", "metadata"], "type": "object", "properties": {"url": {"type":
  "string", "maxLength": 255}, "metadata": {"type": "object"}}}, "type":
  "array", "description": "A set of URLs to access the image file kept
  in external store"}, "visibility": {"enum": ["community", "public",
  "private", "shared"], "type": "string", "description": "Scope of image
  accessibility"}, "updated_at": {"readOnly": true, "type": "string",
  "description": "Date and time of the last image modification"},
  "owner": {"type": ["null", "string"], "description": "Owner of the
  image", "maxLength": 255}, "file": {"readOnly": true, "type":
  "string", "description": "An image file url"}, "min_disk": {"type":
  "integer", "description": "Amount of disk space (in GB) required to
  boot image."}, "virtual_size": {"readOnly": true, "type": ["null",
  "integer"], "description": "Virtual size of image in bytes"}, "id":
  {"pattern": "^([0-9a-fA-F]){8}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0
  -9a-fA-F]){4}-([0-9a-fA-F]){12}$", "type": "string", "description":
  "An identifier for the image"}, "size": {"readOnly": true, "type":
  ["null", "integer"], "description": "Size of image file in bytes"},
  "instance_uuid": {"type": "string", "description": "Metadata which can
  be used to record which instance this image is associated with.
  (Informational only, does not create an instance snapshot.)",
  "is_base": false}, "os_distro": {"type": "string", "description":
  "Common name of operating system distribution as specified in
  http://docs.openstack.org/trunk/openstack-compute/admin/content
  /adding-images.html", "is_base": false}, "name": {"type": ["null",
  "string"], "description": "Descriptive name for the image",
  "maxLength": 255}, "checksum": {"readOnly": true, "type": ["null",
  "string"], "description": "md5 hash of image contents.", "maxLength":
  32}, "created_at": {"readOnly": true, "type": "string", "description":
  "Date and time of image registration"}, "disk_format": {"enum": [null,
  "ami", "ari", "aki", "vhd", "vhdx", "vmdk", "raw", "qcow2", "vdi",
  "iso", "ploop"], "type": ["null", "string"], "description": "Format of
  the disk"}, "os_version": {"type": "string", "description": "Operating
  system version as specified by the distributor", "is_base": false},
  "protected": {"type": "boolean", "description": "If true, image will
  not be deletable."}, "architecture": {"type": "string", "description":
  "Operating system architecture as specified in
  http://docs.openstack.org/trunk/openstack-compute/admin/content
  /adding-images.html", "is_base": false}, "direct_url": {"readOnly":
  true, "type": "string", "description": "URL to access the image file
  kept in external store"}, "self": {"readOnly": true, "type": "string",
  "description": "An image self url"}, "schema": {"readOnly": true,
  "type": "string", "description": "An image schema url"}}}

  REQ: curl -g -i -X GET http://controller:8774/v2.1/flavors/0 -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}231ce2af87009a36880324ba25df7961280d797e"
  Starting new HTTP connection (1): controller
  "GET /v2.1/flavors/0 HTTP/1.1" 200 353
  RESP: [200] Content-Length: 353 Content-Type: application/json Openstack-Api-Version: compute 2.1 X-Openstack-Nova-Api-Version: 2.1 Vary: OpenStack-API-Version, X-OpenStack-Nova-API-Version X-Compute-Request-Id: req-a64dc81e-a993-473a-8022-2b73f920111d Date: Tue, 08 Aug 2017 03:26:35 GMT Connection: keep-alive 
  RESP BODY: {"flavor": {"links": [{"href": "http://controller:8774/v2.1/flavors/0";, "rel": "self"}, {"href": "http://controller:8774/flavors/0";, "rel": "bookmark"}], "ram": 64, "OS-FLV-DISABLED:disabled": false, "os-flavor-access:is_public": true, "rxtx_factor": 1.0, "disk": 1, "id": "0", "name": "m1.nano", "vcpus": 1, "swap": "", "OS-FLV-EXT-DATA:ephemeral": 0}}

  GET call to compute for http://controller:8774/v2.1/flavors/0 used request id req-a64dc81e-a993-473a-8022-2b73f920111d
  network endpoint in service catalog
  Connection: <openstack.connection.Connection object at 0x4188a90>
  Network client initialized using OpenStack SDK: <openstack.network.v2._proxy.Proxy object at 0x42bd190>
  Looking for versions at http://controller:9696
  REQ: curl -g -i -X GET http://controller:9696 -H "User-Agent: openstacksdk/0.9.13 keystoneauth1/2.18.0 python-requests/2.11.1 CPython/2.7.5" -H "X-Auth-Token: {SHA1}231ce2af87009a36880324ba25df7961280d797e"
  Starting new HTTP connection (1): controller
  "GET / HTTP/1.1" 200 119
  RESP: [200] Content-Type: application/json; charset=UTF-8 Content-Length: 119 Date: Tue, 08 Aug 2017 03:26:35 GMT Connection: keep-alive 
  RESP BODY: {"versions": [{"status": "CURRENT", "id": "v2.0", "links": [{"href": "http://controller:9696/v2.0/";, "rel": "self"}]}]}

  Using http://controller:9696/v2.0 as public network endpoint
  REQ: curl -g -i -X GET http://controller:9696/v2.0/networks/cb42b0e4-270f-4ebc-ab68-494f589804a8 -H "User-Agent: openstacksdk/0.9.13 keystoneauth1/2.18.0 python-requests/2.11.1 CPython/2.7.5" -H "X-Auth-Token: {SHA1}231ce2af87009a36880324ba25df7961280d797e"
  "GET /v2.0/networks/cb42b0e4-270f-4ebc-ab68-494f589804a8 HTTP/1.1" 200 613
  RESP: [200] Content-Type: application/json Content-Length: 613 X-Openstack-Request-Id: req-49ed059f-bf06-4a58-8b17-bbb1713ad8d0 Date: Tue, 08 Aug 2017 03:26:35 GMT Connection: keep-alive 
  RESP BODY: {"network": {"status": "ACTIVE", "router:external": false, "availability_zone_hints": [], "availability_zones": ["nova"], "description": "", "subnets": ["c0a2dbe9-2d69-498b-81e6-43f88bc96c69"], "shared": false, "tenant_id": "6449ae304b29491492ddeb3663c1a508", "created_at": "2017-08-01T02:33:07Z", "tags": [], "ipv6_address_scope": null, "updated_at": "2017-08-01T02:33:29Z", "admin_state_up": true, "mtu": 1450, "revision_number": 5, "ipv4_address_scope": null, "port_security_enabled": true, "project_id": "6449ae304b29491492ddeb3663c1a508", "id": "cb42b0e4-270f-4ebc-ab68-494f589804a8", "name": "selfservice"}}

  GET call to network for http://controller:9696/v2.0/networks/cb42b0e4-270f-4ebc-ab68-494f589804a8 used request id req-49ed059f-bf06-4a58-8b17-bbb1713ad8d0
  boot_args: [u'demo1', <RequestIdProxy at 0x418ed88 for image at 0x41c14d0>, <Flavor: m1.nano>]
  boot_kwargs: {'files': {}, 'userdata': None, 'key_name': u'mykey', 'availability_zone': None, 'nics': [{'port-id': '', 'net-id': u'cb42b0e4-270f-4ebc-ab68-494f589804a8', 'v4-fixed-ip': '', 'v6-fixed-ip': ''}], 'max_count': 1, 'meta': None, 'block_device_mapping_v2': [], 'min_count': 1, 'scheduler_hints': {}, 'reservation_id': None, 'security_groups': [u'default'], 'config_drive': None}
  REQ: curl -g -i -X POST http://controller:8774/v2.1/servers -H "User-Agent: python-novaclient" -H "Content-Type: application/json" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}231ce2af87009a36880324ba25df7961280d797e" -d '{"server": {"name": "demo1", "imageRef": "358d684a-0842-47e1-b416-e4fbda532932", "key_name": "mykey", "flavorRef": "0", "max_count": 1, "min_count": 1, "networks": [{"uuid": "cb42b0e4-270f-4ebc-ab68-494f589804a8"}], "security_groups": [{"name": "default"}]}}'
  "POST /v2.1/servers HTTP/1.1" 500 218
  RESP: [500] Openstack-Api-Version: compute 2.1 X-Openstack-Nova-Api-Version: 2.1 Vary: OpenStack-API-Version, X-OpenStack-Nova-API-Version Content-Type: application/json; charset=UTF-8 Content-Length: 218 X-Compute-Request-Id: req-d5a36bc8-965a-46ff-9fbb-b31314f890ce Date: Tue, 08 Aug 2017 03:26:35 GMT Connection: keep-alive 
  RESP BODY: {"computeFault": {"message": "Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.\n<class 'neutronclient.common.exceptions.Unauthorized'>", "code": 500}}

  POST call to compute for http://controller:8774/v2.1/servers used request id req-d5a36bc8-965a-46ff-9fbb-b31314f890ce
  Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.
  <class 'neutronclient.common.exceptions.Unauthorized'> (HTTP 500) (Request-ID: req-d5a36bc8-965a-46ff-9fbb-b31314f890ce)
  Traceback (most recent call last):
    File "/usr/lib/python2.7/site-packages/cliff/app.py", line 400, in run_subcommand
      result = cmd.run(parsed_args)
    File "/usr/lib/python2.7/site-packages/osc_lib/command/command.py", line 41, in run
      return super(Command, self).run(parsed_args)
    File "/usr/lib/python2.7/site-packages/cliff/display.py", line 112, in run
      column_names, data = self.take_action(parsed_args)
    File "/usr/lib/python2.7/site-packages/openstackclient/compute/v2/server.py", line 627, in take_action
      server = compute_client.servers.create(*boot_args, **boot_kwargs)
    File "/usr/lib/python2.7/site-packages/novaclient/v2/servers.py", line 1416, in create
      **boot_kwargs)
    File "/usr/lib/python2.7/site-packages/novaclient/v2/servers.py", line 779, in _boot
      return_raw=return_raw, **kwargs)
    File "/usr/lib/python2.7/site-packages/novaclient/base.py", line 361, in _create
      resp, body = self.api.client.post(url, body=body)
    File "/usr/lib/python2.7/site-packages/keystoneauth1/adapter.py", line 223, in post
      return self.request(url, 'POST', **kwargs)
    File "/usr/lib/python2.7/site-packages/novaclient/client.py", line 80, in request
      raise exceptions.from_response(resp, body, url, method)
  ClientException: Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.
  <class 'neutronclient.common.exceptions.Unauthorized'> (HTTP 500) (Request-ID: req-d5a36bc8-965a-46ff-9fbb-b31314f890ce)
  clean_up CreateServer: Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.
  <class 'neutronclient.common.exceptions.Unauthorized'> (HTTP 500) (Request-ID: req-d5a36bc8-965a-46ff-9fbb-b31314f890ce)
  Traceback (most recent call last):
    File "/usr/lib/python2.7/site-packages/osc_lib/shell.py", line 135, in run
      ret_val = super(OpenStackShell, self).run(argv)
    File "/usr/lib/python2.7/site-packages/cliff/app.py", line 279, in run
      result = self.run_subcommand(remainder)
    File "/usr/lib/python2.7/site-packages/osc_lib/shell.py", line 180, in run_subcommand
      ret_value = super(OpenStackShell, self).run_subcommand(argv)
    File "/usr/lib/python2.7/site-packages/cliff/app.py", line 400, in run_subcommand
      result = cmd.run(parsed_args)
    File "/usr/lib/python2.7/site-packages/osc_lib/command/command.py", line 41, in run
      return super(Command, self).run(parsed_args)
    File "/usr/lib/python2.7/site-packages/cliff/display.py", line 112, in run
      column_names, data = self.take_action(parsed_args)
    File "/usr/lib/python2.7/site-packages/openstackclient/compute/v2/server.py", line 627, in take_action
      server = compute_client.servers.create(*boot_args, **boot_kwargs)
    File "/usr/lib/python2.7/site-packages/novaclient/v2/servers.py", line 1416, in create
      **boot_kwargs)
    File "/usr/lib/python2.7/site-packages/novaclient/v2/servers.py", line 779, in _boot
      return_raw=return_raw, **kwargs)
    File "/usr/lib/python2.7/site-packages/novaclient/base.py", line 361, in _create
      resp, body = self.api.client.post(url, body=body)
    File "/usr/lib/python2.7/site-packages/keystoneauth1/adapter.py", line 223, in post
      return self.request(url, 'POST', **kwargs)
    File "/usr/lib/python2.7/site-packages/novaclient/client.py", line 80, in request
      raise exceptions.from_response(resp, body, url, method)
  ClientException: Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.
  <class 'neutronclient.common.exceptions.Unauthorized'> (HTTP 500) (Request-ID: req-d5a36bc8-965a-46ff-9fbb-b31314f890ce)

  END return value: 1
  ======

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1709233/+subscriptions


References