← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1667817] Re: Unexpected API error on neutronclient

 

[Expired for OpenStack Compute (nova) because there has been no activity
for 60 days.]

** Changed in: nova
       Status: Incomplete => Expired

-- 
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/1667817

Title:
  Unexpected API error on neutronclient

Status in OpenStack Compute (nova):
  Expired

Bug description:
  Recieved error which said to open a bug so doing so. Including command
  and nova-api log. This is a fresh install following the Ocata install-
  guide for Ubuntu while attempting to document how to inatall nova with
  the new nova-placement-api and cells v2. Can provide those steps if
  needed as well as confs.

  root@controller:~# openstack server create --debug --flavor m1.nano --image cirros   --nic net-id=58da0f04-06a9-4f9f-89f7-f913e64eab67 --security-group default   --key-name mykey testinstance
  START with options: [u'server', u'create', u'--debug', u'--flavor', u'm1.nano', u'--image', u'cirros', u'--nic', u'net-id=58da0f04-06a9-4f9f-89f7-f913e64eab67', u'--security-group', u'default', u'--key-name', u'mykey', u'testinstance']
  options: Namespace(access_key='', access_secret='***', access_token='***', access_token_endpoint='', access_token_type='', auth_type='', auth_url='http://controller:35357/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_dns_api_version='2', os_identity_api_version='3', os_image_api_version='2', os_network_api_version='', os_object_api_version='', os_project_id=None, os_project_name=None, os_volume_api_version='', 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': u'1.0', 'cacert': None, 'auth_url': 'http://controller:35357/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': u'1', 'timing': False, 'password': '***', u'application_catalog_api_version': u'1', u'key_manager_api_version': u'v1', u'metering_api_version': u'2', 'deferred_help': False, u'identity_api_version': '3', 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': u'1.0', 'cacert': None, 'auth_url': 'http://controller:35357/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': u'1', 'timing': False, 'password': '***', u'application_catalog_api_version': u'1', u'key_manager_api_version': u'v1', u'metering_api_version': u'2', 'deferred_help': False, u'identity_api_version': '3', 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
  neutronclient API version 2, cmd group openstack.neutronclient.v2
  dns API version 2, cmd group openstack.dns.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': u'1.0', 'cacert': None, 'auth_url': 'http://controller:35357/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': u'1', 'timing': False, 'password': '***', u'application_catalog_api_version': u'1', u'key_manager_api_version': u'v1', u'metering_api_version': u'2', 'deferred_help': False, u'identity_api_version': '3', 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': u'1.0', 'cacert': None, 'auth_url': 'http://controller:35357/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': u'1', 'timing': False, 'password': '***', u'application_catalog_api_version': u'1', u'key_manager_api_version': u'v1', u'metering_api_version': u'2', 'deferred_help': False, u'identity_api_version': '3', 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': u'1.0', 'cacert': None, 'auth_url': 'http://controller:35357/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': u'1', 'timing': False, 'password': '***', u'application_catalog_api_version': u'1', u'key_manager_api_version': u'v1', u'metering_api_version': u'2', 'deferred_help': False, u'identity_api_version': '3', 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:35357/v3', 'password': '***', 'project_domain_name': 'Default'}
  Get auth_ref
  REQ: curl -g -i -X GET http://controller:35357/v3 -H "Accept: application/json" -H "User-Agent: osc-lib/1.3.0 keystoneauth1/2.18.0 python-requests/2.12.4 CPython/2.7.12"
  Starting new HTTP connection (1): controller
  http://controller:35357 "GET /v3 HTTP/1.1" 200 250
  RESP: [200] Date: Wed, 22 Feb 2017 06:09:25 GMT Server: Apache/2.4.18 (Ubuntu) Vary: X-Auth-Token X-Distribution: Ubuntu x-openstack-request-id: req-d88ed8eb-608e-45f4-a1ce-6f6900c80704 Content-Length: 250 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:35357/v3/";, "rel": "self"}]}}

  GET call to None for http://controller:35357/v3 used request id req-d88ed8eb-608e-45f4-a1ce-6f6900c80704
  Making authentication request to http://controller:35357/v3/auth/tokens
  http://controller:35357 "POST /v3/auth/tokens HTTP/1.1" 201 3386
  {"token": {"is_domain": false, "methods": ["password"], "roles": [{"id": "dae8cd707df74d35b7f84d7fbd72bff1", "name": "user"}], "expires_at": "2017-02-22T07:09:25.000000Z", "project": {"domain": {"id": "default", "name": "Default"}, "id": "649e8076828d4491a007ae57ad5685ed", "name": "demo"}, "catalog": [{"endpoints": [{"url": "http://controller:8778";, "interface": "admin", "region": "RegionOne", "region_id": "RegionOne", "id": "21f012eafda74fde83669d69b0228cfa"}, {"url": "http://controller:8778";, "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "26ae444430014f9eb2e49208768b3062"}, {"url": "http://controller:8778";, "interface": "internal", "region": "RegionOne", "region_id": "RegionOne", "id": "8a2b9b37cd844404a255c17fd11d784a"}], "type": "placement", "id": "54e735d4587442e1afb597898a5b056a", "name": "placement"}, {"endpoints": [{"url": "http://controller:9292";, "interface": "internal", "region": "RegionOne", "region_id": "RegionOne", "id": "24f1e0f978cd4440a4ef3deb43c33386"}, {"url": "http://controller:9292";, "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "5c5c90bdd24442bb9f5ce769ce737f1d"}, {"url": "http://controller:9292";, "interface": "admin", "region": "RegionOne", "region_id": "RegionOne", "id": "a195ac6498da49078b8c468a5f598e0b"}], "type": "image", "id": "78586dae1ac34774adfedf52402920ee", "name": "glance"}, {"endpoints": [{"url": "http://controller:35357/v3/";, "interface": "admin", "region": "RegionOne", "region_id": "RegionOne", "id": "010394b6fd1b4afba3ada7e665e0a179"}, {"url": "http://controller:5000/v3/";, "interface": "internal", "region": "RegionOne", "region_id": "RegionOne", "id": "47757b1ff8804c8fa0941cfd6aeee458"}, {"url": "http://controller:5000/v3/";, "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "50c6771a64f14224b420a79d8a45f54b"}], "type": "identity", "id": "91c97c86f6da467f9140f69b1adcc958", "name": "keystone"}, {"endpoints": [{"url": "http://controller:8774/v2.1/649e8076828d4491a007ae57ad5685ed";, "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "3ec80586329d44e1909bf602457ed29a"}, {"url": "http://controller:8774/v2.1/649e8076828d4491a007ae57ad5685ed";, "interface": "internal", "region": "RegionOne", "region_id": "RegionOne", "id": "49acd9edd01f458c958e8818d3ea732f"}, {"url": "http://controller:8774/v2.1/649e8076828d4491a007ae57ad5685ed";, "interface": "admin", "region": "RegionOne", "region_id": "RegionOne", "id": "ff365cf965c841b08a493f8f429b6ea9"}], "type": "compute", "id": "929711dafe2a4154b9a6c8561d7501d1", "name": "nova"}, {"endpoints": [{"url": "http://controller:9696";, "interface": "admin", "region": "RegionOne", "region_id": "RegionOne", "id": "30803e192dab47708e568f58f6806e9c"}, {"url": "http://controller:9696";, "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "c660a854f5bc492d8c1c04355f8af1b1"}, {"url": "http://controller:9696";, "interface": "internal", "region": "RegionOne", "region_id": "RegionOne", "id": "f0be0152625f422aab4cfea5edbf3e82"}], "type": "network", "id": "b68bfaa67d264165a6c5f2e0df6fe8c1", "name": "neutron"}], "user": {"domain": {"id": "default", "name": "Default"}, "password_expires_at": null, "name": "demo", "id": "a030d919d1de4307a5f0f090aa0825e1"}, "audit_ids": ["1l6IPmySQhm-k1LJ9WJxmw"], "issued_at": "2017-02-22T06:09:25.000000Z"}}
  run(Namespace(availability_zone=None, block_device_mapping=[], columns=[], config_drive=False, file=[], flavor=u'm1.nano', formatter='table', hint=[], image=u'cirros', key_name=u'mykey', max=1, max_width=0, min=1, nic=[u'net-id=58da0f04-06a9-4f9f-89f7-f913e64eab67'], noindent=False, prefix='', print_empty=False, property=None, security_group=[u'default'], server_name=u'testinstance', 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:35357/v3/auth/tokens
  http://controller:35357 "POST /v3/auth/tokens HTTP/1.1" 201 3386
  {"token": {"is_domain": false, "methods": ["password"], "roles": [{"id": "dae8cd707df74d35b7f84d7fbd72bff1", "name": "user"}], "expires_at": "2017-02-22T07:09:25.000000Z", "project": {"domain": {"id": "default", "name": "Default"}, "id": "649e8076828d4491a007ae57ad5685ed", "name": "demo"}, "catalog": [{"endpoints": [{"url": "http://controller:8778";, "interface": "admin", "region": "RegionOne", "region_id": "RegionOne", "id": "21f012eafda74fde83669d69b0228cfa"}, {"url": "http://controller:8778";, "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "26ae444430014f9eb2e49208768b3062"}, {"url": "http://controller:8778";, "interface": "internal", "region": "RegionOne", "region_id": "RegionOne", "id": "8a2b9b37cd844404a255c17fd11d784a"}], "type": "placement", "id": "54e735d4587442e1afb597898a5b056a", "name": "placement"}, {"endpoints": [{"url": "http://controller:9292";, "interface": "internal", "region": "RegionOne", "region_id": "RegionOne", "id": "24f1e0f978cd4440a4ef3deb43c33386"}, {"url": "http://controller:9292";, "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "5c5c90bdd24442bb9f5ce769ce737f1d"}, {"url": "http://controller:9292";, "interface": "admin", "region": "RegionOne", "region_id": "RegionOne", "id": "a195ac6498da49078b8c468a5f598e0b"}], "type": "image", "id": "78586dae1ac34774adfedf52402920ee", "name": "glance"}, {"endpoints": [{"url": "http://controller:35357/v3/";, "interface": "admin", "region": "RegionOne", "region_id": "RegionOne", "id": "010394b6fd1b4afba3ada7e665e0a179"}, {"url": "http://controller:5000/v3/";, "interface": "internal", "region": "RegionOne", "region_id": "RegionOne", "id": "47757b1ff8804c8fa0941cfd6aeee458"}, {"url": "http://controller:5000/v3/";, "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "50c6771a64f14224b420a79d8a45f54b"}], "type": "identity", "id": "91c97c86f6da467f9140f69b1adcc958", "name": "keystone"}, {"endpoints": [{"url": "http://controller:8774/v2.1/649e8076828d4491a007ae57ad5685ed";, "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "3ec80586329d44e1909bf602457ed29a"}, {"url": "http://controller:8774/v2.1/649e8076828d4491a007ae57ad5685ed";, "interface": "internal", "region": "RegionOne", "region_id": "RegionOne", "id": "49acd9edd01f458c958e8818d3ea732f"}, {"url": "http://controller:8774/v2.1/649e8076828d4491a007ae57ad5685ed";, "interface": "admin", "region": "RegionOne", "region_id": "RegionOne", "id": "ff365cf965c841b08a493f8f429b6ea9"}], "type": "compute", "id": "929711dafe2a4154b9a6c8561d7501d1", "name": "nova"}, {"endpoints": [{"url": "http://controller:9696";, "interface": "admin", "region": "RegionOne", "region_id": "RegionOne", "id": "30803e192dab47708e568f58f6806e9c"}, {"url": "http://controller:9696";, "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "c660a854f5bc492d8c1c04355f8af1b1"}, {"url": "http://controller:9696";, "interface": "internal", "region": "RegionOne", "region_id": "RegionOne", "id": "f0be0152625f422aab4cfea5edbf3e82"}], "type": "network", "id": "b68bfaa67d264165a6c5f2e0df6fe8c1", "name": "neutron"}], "user": {"domain": {"id": "default", "name": "Default"}, "password_expires_at": null, "name": "demo", "id": "a030d919d1de4307a5f0f090aa0825e1"}, "audit_ids": ["xy81cyh8SxWdAl-isup5TQ"], "issued_at": "2017-02-22T06:09:25.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}8ada8c0dd0401fe7cc52663e05acceb5947f2a18' -H 'Content-Type: application/octet-stream' http://controller:9292/v2/images/cirros
  Starting new HTTP connection (1): controller
  http://controller:9292 "GET /v2/images/cirros HTTP/1.1" 404 49
  GET call to glance-api for http://controller:9292/v2/images/cirros used request id req-fb275259-efcf-4425-bd25-55179fc629db
  Request returned failure status 404.
  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}8ada8c0dd0401fe7cc52663e05acceb5947f2a18' -H 'Content-Type: application/octet-stream' http://controller:9292/v2/images/cirros
  http://controller:9292 "GET /v2/images/cirros HTTP/1.1" 404 49
  GET call to glance-api for http://controller:9292/v2/images/cirros used request id req-d932b6e9-148c-4144-84d7-481945891713
  Request returned failure status 404.
  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}8ada8c0dd0401fe7cc52663e05acceb5947f2a18' -H 'Content-Type: application/octet-stream' http://controller:9292/v2/images?limit=20
  http://controller:9292 "GET /v2/images?limit=20 HTTP/1.1" 200 662
  GET call to glance-api for http://controller:9292/v2/images?limit=20 used request id req-73f059ac-1d42-4dd9-b9e6-45aed4bb2af4

  HTTP/1.1 200 OK
  Content-Length: 662
  Content-Type: application/json; charset=UTF-8
  X-Openstack-Request-Id: req-73f059ac-1d42-4dd9-b9e6-45aed4bb2af4
  Date: Wed, 22 Feb 2017 06:09:31 GMT
  Connection: keep-alive

  {"images": [{"status": "active", "name": "cirros", "tags": [],
  "container_format": "bare", "created_at": "2017-02-22T03:26:29Z",
  "size": 13287936, "disk_format": "qcow2", "updated_at":
  "2017-02-22T03:26:29Z", "visibility": "public", "self":
  "/v2/images/6f067f18-00c8-40b0-8f08-218285101a2e", "min_disk": 0,
  "protected": false, "id": "6f067f18-00c8-40b0-8f08-218285101a2e",
  "file": "/v2/images/6f067f18-00c8-40b0-8f08-218285101a2e/file",
  "checksum": "ee1eca47dc88f4879d8a229cc70a07c6", "owner":
  "b908fbbe3f474bb09c03eea3bb26c9c9", "virtual_size": null, "min_ram":
  0, "schema": "/v2/schemas/image"}], "schema": "/v2/schemas/images",
  "first": "/v2/images?limit=20"}

  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}8ada8c0dd0401fe7cc52663e05acceb5947f2a18' -H 'Content-Type: application/octet-stream' http://controller:9292/v2/schemas/image
  http://controller:9292 "GET /v2/schemas/image HTTP/1.1" 200 4178
  GET call to glance-api for http://controller:9292/v2/schemas/image used request id req-d3a20175-b31e-4579-b027-8a843303bdd6

  HTTP/1.1 200 OK
  Content-Type: application/json; charset=UTF-8
  Content-Length: 4178
  X-Openstack-Request-Id: req-d3a20175-b31e-4579-b027-8a843303bdd6
  Date: Wed, 22 Feb 2017 06:09:31 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.root-tar"], "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/649e8076828d4491a007ae57ad5685ed/flavors/m1.nano -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}8ada8c0dd0401fe7cc52663e05acceb5947f2a18"
  Starting new HTTP connection (1): controller
  http://controller:8774 "GET /v2.1/649e8076828d4491a007ae57ad5685ed/flavors/m1.nano HTTP/1.1" 404 80
  RESP: [404] 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: 80 X-Compute-Request-Id: req-ba7034af-c7d7-483a-a545-ad4054e8d451 Date: Wed, 22 Feb 2017 06:09:32 GMT Connection: keep-alive 
  RESP BODY: {"itemNotFound": {"message": "Flavor m1.nano could not be found.", "code": 404}}

  GET call to compute for http://controller:8774/v2.1/649e8076828d4491a007ae57ad5685ed/flavors/m1.nano used request id req-ba7034af-c7d7-483a-a545-ad4054e8d451
  REQ: curl -g -i -X GET http://controller:8774/v2.1/649e8076828d4491a007ae57ad5685ed/flavors/m1.nano -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}8ada8c0dd0401fe7cc52663e05acceb5947f2a18"
  http://controller:8774 "GET /v2.1/649e8076828d4491a007ae57ad5685ed/flavors/m1.nano HTTP/1.1" 404 80
  RESP: [404] 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: 80 X-Compute-Request-Id: req-8f00be65-83b0-41b1-b300-b3770e41049a Date: Wed, 22 Feb 2017 06:09:32 GMT Connection: keep-alive 
  RESP BODY: {"itemNotFound": {"message": "Flavor m1.nano could not be found.", "code": 404}}

  GET call to compute for http://controller:8774/v2.1/649e8076828d4491a007ae57ad5685ed/flavors/m1.nano used request id req-8f00be65-83b0-41b1-b300-b3770e41049a
  REQ: curl -g -i -X GET http://controller:8774/v2.1/649e8076828d4491a007ae57ad5685ed/flavors -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}8ada8c0dd0401fe7cc52663e05acceb5947f2a18"
  http://controller:8774 "GET /v2.1/649e8076828d4491a007ae57ad5685ed/flavors HTTP/1.1" 200 253
  RESP: [200] Content-Length: 253 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-e5017ec2-e3a3-41ab-a3a3-ece8f4a08b68 Date: Wed, 22 Feb 2017 06:09:32 GMT Connection: keep-alive 
  RESP BODY: {"flavors": [{"id": "0", "links": [{"href": "http://controller:8774/v2.1/649e8076828d4491a007ae57ad5685ed/flavors/0";, "rel": "self"}, {"href": "http://controller:8774/649e8076828d4491a007ae57ad5685ed/flavors/0";, "rel": "bookmark"}], "name": "m1.nano"}]}

  GET call to compute for http://controller:8774/v2.1/649e8076828d4491a007ae57ad5685ed/flavors used request id req-e5017ec2-e3a3-41ab-a3a3-ece8f4a08b68
  REQ: curl -g -i -X GET http://controller:8774/v2.1/649e8076828d4491a007ae57ad5685ed/flavors/0 -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}8ada8c0dd0401fe7cc52663e05acceb5947f2a18"
  http://controller:8774 "GET /v2.1/649e8076828d4491a007ae57ad5685ed/flavors/0 HTTP/1.1" 200 419
  RESP: [200] Content-Length: 419 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-cfa9ecb9-0439-42ed-958a-7661f4d40cf4 Date: Wed, 22 Feb 2017 06:09:32 GMT Connection: keep-alive 
  RESP BODY: {"flavor": {"links": [{"href": "http://controller:8774/v2.1/649e8076828d4491a007ae57ad5685ed/flavors/0";, "rel": "self"}, {"href": "http://controller:8774/649e8076828d4491a007ae57ad5685ed/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/649e8076828d4491a007ae57ad5685ed/flavors/0 used request id req-cfa9ecb9-0439-42ed-958a-7661f4d40cf4
  network endpoint in service catalog
  Connection: <openstack.connection.Connection object at 0x7fc01cf61250>
  Network client initialized using OpenStack SDK: <openstack.network.v2._proxy.Proxy object at 0x7fc01ce7f190>
  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.12.4 CPython/2.7.12" -H "X-Auth-Token: {SHA1}8ada8c0dd0401fe7cc52663e05acceb5947f2a18"
  Starting new HTTP connection (1): controller
  http://controller:9696 "GET / HTTP/1.1" 200 119
  RESP: [200] Content-Type: application/json; charset=UTF-8 Content-Length: 119 Date: Wed, 22 Feb 2017 06:09:32 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/58da0f04-06a9-4f9f-89f7-f913e64eab67 -H "User-Agent: openstacksdk/0.9.13 keystoneauth1/2.18.0 python-requests/2.12.4 CPython/2.7.12" -H "X-Auth-Token: {SHA1}8ada8c0dd0401fe7cc52663e05acceb5947f2a18"
  http://controller:9696 "GET /v2.0/networks/58da0f04-06a9-4f9f-89f7-f913e64eab67 HTTP/1.1" 200 609
  RESP: [200] Content-Type: application/json Content-Length: 609 X-Openstack-Request-Id: req-f4e111de-fd69-4e59-9cb0-856e5ef5b9e9 Date: Wed, 22 Feb 2017 06:09:33 GMT Connection: keep-alive 
  RESP BODY: {"network": {"status": "ACTIVE", "router:external": false, "availability_zone_hints": [], "availability_zones": ["nova"], "description": "", "subnets": ["cb794b8c-cc8f-4583-931e-cf3bdd4a3133"], "shared": true, "tenant_id": "b908fbbe3f474bb09c03eea3bb26c9c9", "created_at": "2017-02-22T05:34:59Z", "tags": [], "ipv6_address_scope": null, "updated_at": "2017-02-22T05:35:50Z", "admin_state_up": true, "mtu": 1500, "revision_number": 5, "ipv4_address_scope": null, "port_security_enabled": true, "project_id": "b908fbbe3f474bb09c03eea3bb26c9c9", "id": "58da0f04-06a9-4f9f-89f7-f913e64eab67", "name": "provider"}}

  GET call to network for http://controller:9696/v2.0/networks/58da0f04-06a9-4f9f-89f7-f913e64eab67 used request id req-f4e111de-fd69-4e59-9cb0-856e5ef5b9e9
  boot_args: [u'testinstance', {u'status': u'active', u'tags': [], u'container_format': u'bare', u'min_ram': 0, u'updated_at': u'2017-02-22T03:26:29Z', u'visibility': u'public', u'owner': u'b908fbbe3f474bb09c03eea3bb26c9c9', u'file': u'/v2/images/6f067f18-00c8-40b0-8f08-218285101a2e/file', u'min_disk': 0, u'virtual_size': None, u'id': u'6f067f18-00c8-40b0-8f08-218285101a2e', u'size': 13287936, u'name': u'cirros', u'checksum': u'ee1eca47dc88f4879d8a229cc70a07c6', u'created_at': u'2017-02-22T03:26:29Z', u'disk_format': u'qcow2', u'protected': False, u'schema': u'/v2/schemas/image'}, <Flavor: m1.nano>]
  boot_kwargs: {'files': {}, 'userdata': None, 'key_name': u'mykey', 'availability_zone': None, 'nics': [{'port-id': '', 'net-id': u'58da0f04-06a9-4f9f-89f7-f913e64eab67', '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/649e8076828d4491a007ae57ad5685ed/servers -H "User-Agent: python-novaclient" -H "Content-Type: application/json" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}8ada8c0dd0401fe7cc52663e05acceb5947f2a18" -d '{"server": {"name": "testinstance", "imageRef": "6f067f18-00c8-40b0-8f08-218285101a2e", "key_name": "mykey", "flavorRef": "0", "max_count": 1, "min_count": 1, "networks": [{"uuid": "58da0f04-06a9-4f9f-89f7-f913e64eab67"}], "security_groups": [{"name": "default"}]}}'
  http://controller:8774 "POST /v2.1/649e8076828d4491a007ae57ad5685ed/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-f2d234c4-906e-42a7-ad42-36cec8aa25c8 Date: Wed, 22 Feb 2017 06:09:34 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/649e8076828d4491a007ae57ad5685ed/servers used request id req-f2d234c4-906e-42a7-ad42-36cec8aa25c8
  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-f2d234c4-906e-42a7-ad42-36cec8aa25c8)
  Traceback (most recent call last):
    File "/usr/lib/python2.7/dist-packages/cliff/app.py", line 400, in run_subcommand
      result = cmd.run(parsed_args)
    File "/usr/lib/python2.7/dist-packages/osc_lib/command/command.py", line 41, in run
      return super(Command, self).run(parsed_args)
    File "/usr/lib/python2.7/dist-packages/cliff/display.py", line 112, in run
      column_names, data = self.take_action(parsed_args)
    File "/usr/lib/python2.7/dist-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/dist-packages/novaclient/v2/servers.py", line 1416, in create
      **boot_kwargs)
    File "/usr/lib/python2.7/dist-packages/novaclient/v2/servers.py", line 779, in _boot
      return_raw=return_raw, **kwargs)
    File "/usr/lib/python2.7/dist-packages/novaclient/base.py", line 361, in _create
      resp, body = self.api.client.post(url, body=body)
    File "/usr/lib/python2.7/dist-packages/keystoneauth1/adapter.py", line 223, in post
      return self.request(url, 'POST', **kwargs)
    File "/usr/lib/python2.7/dist-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-f2d234c4-906e-42a7-ad42-36cec8aa25c8)
  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-f2d234c4-906e-42a7-ad42-36cec8aa25c8)
  Traceback (most recent call last):
    File "/usr/lib/python2.7/dist-packages/osc_lib/shell.py", line 135, in run
      ret_val = super(OpenStackShell, self).run(argv)
    File "/usr/lib/python2.7/dist-packages/cliff/app.py", line 279, in run
      result = self.run_subcommand(remainder)
    File "/usr/lib/python2.7/dist-packages/osc_lib/shell.py", line 180, in run_subcommand
      ret_value = super(OpenStackShell, self).run_subcommand(argv)
    File "/usr/lib/python2.7/dist-packages/cliff/app.py", line 400, in run_subcommand
      result = cmd.run(parsed_args)
    File "/usr/lib/python2.7/dist-packages/osc_lib/command/command.py", line 41, in run
      return super(Command, self).run(parsed_args)
    File "/usr/lib/python2.7/dist-packages/cliff/display.py", line 112, in run
      column_names, data = self.take_action(parsed_args)
    File "/usr/lib/python2.7/dist-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/dist-packages/novaclient/v2/servers.py", line 1416, in create
      **boot_kwargs)
    File "/usr/lib/python2.7/dist-packages/novaclient/v2/servers.py", line 779, in _boot
      return_raw=return_raw, **kwargs)
    File "/usr/lib/python2.7/dist-packages/novaclient/base.py", line 361, in _create
      resp, body = self.api.client.post(url, body=body)
    File "/usr/lib/python2.7/dist-packages/keystoneauth1/adapter.py", line 223, in post
      return self.request(url, 'POST', **kwargs)
    File "/usr/lib/python2.7/dist-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-f2d234c4-906e-42a7-ad42-36cec8aa25c8)

  END return value: 1

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


References