← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1698797] Re: I cannot launch Instance

 

It appears that auth_type is not set correctly in the config

** 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/1698797

Title:
  I cannot launch Instance

Status in OpenStack Compute (nova):
  Invalid

Bug description:
  Hello everyone,

  I try install openstack ocata in ubuntu 16.02

  when i try to start one instance received the next message.

  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) 

  
  The log shows the following:


  root@controller# tail -f /var/log/nova/nova-api.log

  
  2017-06-19 13:55:24.249 2689 ERROR nova.api.openstack.extensions     neutron = get_client(context, admin=True)
  2017-06-19 13:55:24.249 2689 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/dist-packages/nova/network/neutronv2/api.py", line 138, in get_client
  2017-06-19 13:55:24.249 2689 ERROR nova.api.openstack.extensions     _ADMIN_AUTH = _load_auth_plugin(CONF)
  2017-06-19 13:55:24.249 2689 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/dist-packages/nova/network/neutronv2/api.py", line 74, in _load_auth_plugin
  2017-06-19 13:55:24.249 2689 ERROR nova.api.openstack.extensions     raise neutron_client_exc.Unauthorized(message=err_msg)
  2017-06-19 13:55:24.249 2689 ERROR nova.api.openstack.extensions Unauthorized: Unknown auth type: None
  2017-06-19 13:55:24.249 2689 ERROR nova.api.openstack.extensions 
  2017-06-19 13:55:24.250 2689 INFO nova.api.openstack.wsgi [req-86a15257-65c7-44a2-a7a2-d792f1b166b3 c070e9c342824ef3ba41336373a17b91 05696ec4daa44a1c89a26761b621a507 - 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-06-19 13:55:24.250 2689 INFO nova.osapi_compute.wsgi.server [req-86a15257-65c7-44a2-a7a2-d792f1b166b3 c070e9c342824ef3ba41336373a17b91 05696ec4daa44a1c89a26761b621a507 - default default] 192.168.1.2 "POST /v2.1/servers HTTP/1.1" status: 500 len: 585 time: 0.2191169
  2017-06-19 14:02:57.521 2688 ERROR nova.api.openstack.extensions [req-1a79e323-fe00-464d-9b86-aac9fe4e4117 c070e9c342824ef3ba41336373a17b91 05696ec4daa44a1c89a26761b621a507 - default default] Unexpected exception in API method
  2017-06-19 14:02:57.521 2688 ERROR nova.api.openstack.extensions Traceback (most recent call last):
  2017-06-19 14:02:57.521 2688 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/dist-packages/nova/api/openstack/extensions.py", line 338, in wrapped
  2017-06-19 14:02:57.521 2688 ERROR nova.api.openstack.extensions     return f(*args, **kwargs)
  2017-06-19 14:02:57.521 2688 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/dist-packages/nova/api/validation/__init__.py", line 108, in wrapper
  2017-06-19 14:02:57.521 2688 ERROR nova.api.openstack.extensions     return func(*args, **kwargs)
  2017-06-19 14:02:57.521 2688 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/dist-packages/nova/api/validation/__init__.py", line 108, in wrapper
  2017-06-19 14:02:57.521 2688 ERROR nova.api.openstack.extensions     return func(*args, **kwargs)
  2017-06-19 14:02:57.521 2688 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/dist-packages/nova/api/validation/__init__.py", line 108, in wrapper
  2017-06-19 14:02:57.521 2688 ERROR nova.api.openstack.extensions     return func(*args, **kwargs)
  2017-06-19 14:02:57.521 2688 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/dist-packages/nova/api/validation/__init__.py", line 108, in wrapper
  2017-06-19 14:02:57.521 2688 ERROR nova.api.openstack.extensions     return func(*args, **kwargs)
  2017-06-19 14:02:57.521 2688 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/dist-packages/nova/api/validation/__init__.py", line 108, in wrapper
  2017-06-19 14:02:57.521 2688 ERROR nova.api.openstack.extensions     return func(*args, **kwargs)
  2017-06-19 14:02:57.521 2688 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/dist-packages/nova/api/validation/__init__.py", line 108, in wrapper
  2017-06-19 14:02:57.521 2688 ERROR nova.api.openstack.extensions     return func(*args, **kwargs)
  2017-06-19 14:02:57.521 2688 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/dist-packages/nova/api/openstack/compute/servers.py", line 642, in create
  2017-06-19 14:02:57.521 2688 ERROR nova.api.openstack.extensions     **create_kwargs)
  2017-06-19 14:02:57.521 2688 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/dist-packages/nova/hooks.py", line 154, in inner
  2017-06-19 14:02:57.521 2688 ERROR nova.api.openstack.extensions     rv = f(*args, **kwargs)
  2017-06-19 14:02:57.521 2688 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/dist-packages/nova/compute/api.py", line 1613, in create
  2017-06-19 14:02:57.521 2688 ERROR nova.api.openstack.extensions     check_server_group_quota=check_server_group_quota)
  2017-06-19 14:02:57.521 2688 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/dist-packages/nova/compute/api.py", line 1186, in _create_instance
  2017-06-19 14:02:57.521 2688 ERROR nova.api.openstack.extensions     reservation_id, max_count)
  2017-06-19 14:02:57.521 2688 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/dist-packages/nova/compute/api.py", line 902, in _validate_and_build_base_options
  2017-06-19 14:02:57.521 2688 ERROR nova.api.openstack.extensions     pci_request_info, requested_networks)
  2017-06-19 14:02:57.521 2688 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/dist-packages/nova/network/neutronv2/api.py", line 1432, in create_pci_requests_for_sriov_ports
  2017-06-19 14:02:57.521 2688 ERROR nova.api.openstack.extensions     neutron = get_client(context, admin=True)
  2017-06-19 14:02:57.521 2688 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/dist-packages/nova/network/neutronv2/api.py", line 138, in get_client
  2017-06-19 14:02:57.521 2688 ERROR nova.api.openstack.extensions     _ADMIN_AUTH = _load_auth_plugin(CONF)
  2017-06-19 14:02:57.521 2688 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/dist-packages/nova/network/neutronv2/api.py", line 74, in _load_auth_plugin
  2017-06-19 14:02:57.521 2688 ERROR nova.api.openstack.extensions     raise neutron_client_exc.Unauthorized(message=err_msg)
  2017-06-19 14:02:57.521 2688 ERROR nova.api.openstack.extensions Unauthorized: Unknown auth type: None
  2017-06-19 14:02:57.521 2688 ERROR nova.api.openstack.extensions 
  2017-06-19 14:02:57.521 2688 INFO nova.api.openstack.wsgi [req-1a79e323-fe00-464d-9b86-aac9fe4e4117 c070e9c342824ef3ba41336373a17b91 05696ec4daa44a1c89a26761b621a507 - 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-06-19 14:02:57.522 2688 INFO nova.osapi_compute.wsgi.server [req-1a79e323-fe00-464d-9b86-aac9fe4e4117 c070e9c342824ef3ba41336373a17b91 05696ec4daa44a1c89a26761b621a507 - default default] 192.168.1.2 "POST /v2.1/servers HTTP/1.1" status: 500 len: 585 time: 0.3705809

  
  root@controller# cat /etc/nova/nova.conf | egrep -v "#|^$"

  [DEFAULT]
  use_neutron = True
  security_group_api = neutron
  linuxnet_interface_driver = nova.network.linux_net.LinuxOVSInterfaceDriver
  firewall_driver = nova.virt.firewall.NoopFirewallDriver
  my_ip = 192.168.1.2
  dhcpbridge_flagfile=/etc/nova/nova.conf
  dhcpbridge=/usr/bin/nova-dhcpbridge
  force_dhcp_release=true
  state_path=/var/lib/nova
  enabled_apis=osapi_compute,metadata

  [api]
  auth_strategy = keystone

  [api_database]
  connection = mysql+pymysql://nova:pass@controller/nova_api

  [database]
  connection = mysql+pymysql://nova:pass@controller/nova

  [glance]
  api_servers = http://controller:9292

  [keystone_authtoken]
  auth_uri = http://controller:5000
  auth_url = http://controller:35357
  memcached_servers = controller:11211
  auth_type = password
  project_domain_name = default
  user_domain_name = default
  project_name = service
  username = nova
  password =pass

  [neutron]
  url = http://controller:9696
  auth_url = http://controller:35357
  auth_strategy = keystone
  project_domain_name = Default
  user_domain_name = Default
  region_name = RegionOne
  project_name = service
  admin_tenant_name = service
  admin_username =neutron
  admin_password =pass
  service_metadata_proxy = True
  metadata_proxy_shared_secret =pass

  [oslo_concurrency]
  lock_path = /var/lib/nova/tmp
  lock_path=/var/lock/nova

  [oslo_messaging_notifications]
  transport_url = rabbit://openstack:pass@controller

  [placement]
  os_region_name = RegionOne
  project_domain_name = Default
  project_name = service
  auth_type = password
  user_domain_name = Default
  auth_url = http://controller:35357/v3
  username = placement
  password =pass

  [scheduler]
  discover_hosts_in_cells_interval = 300

  [vnc]
  enabled = true
  vncserver_listen = $my_ip
  vncserver_proxyclient_address = $my_ip

  [wsgi]
  api_paste_config=/etc/nova/api-paste.ini
   

  root@controller# openstack network agent list
  +-------------------------+--------------------+----------+-------------------+-------+-------+-------------------------+
  | ID                      | Agent Type         | Host     | Availability Zone | Alive | State | Binary                  |
  +-------------------------+--------------------+----------+-------------------+-------+-------+-------------------------+
  | 02da8564-39c0-41c6-88a8 | DHCP agent         | network  | nova              | True  | UP    | neutron-dhcp-agent      |
  | -29569fff8255           |                    |          |                   |       |       |                         |
  | 2baff957-c08f-44e8      | Open vSwitch agent | compute1 | None              | True  | UP    | neutron-openvswitch-    |
  | -960b-bc3231b63b06      |                    |          |                   |       |       | agent                   |
  | 36ded345-fc9b-          | Open vSwitch agent | compute2 | None              | True  | UP    | neutron-openvswitch-    |
  | 4ccb-8889-17e7ae9ff9ee  |                    |          |                   |       |       | agent                   |
  | 9213326f-47f5-4a80-9581 | Open vSwitch agent | network  | None              | True  | UP    | neutron-openvswitch-    |
  | -69a2dd7b6702           |                    |          |                   |       |       | agent                   |
  | ad731dfc-d164-4b6b-     | L3 agent           | network  | nova              | True  | UP    | neutron-l3-agent        |
  | 8d04-da2e1461d358       |                    |          |                   |       |       |                         |
  | c9e4fbb2-cbcd-          | Metadata agent     | network  | None              | True  | UP    | neutron-metadata-agent  |
  | 4c08-be00-4c71c71f0484  |                    |          |                   |       |       |                         |
  +-------------------------+--------------------+----------+-------------------+-------+-------+-------------------------+

  
  root@controller# openstack compute service list
  +----+------------------+------------+----------+---------+-------+----------------------------+
  | ID | Binary           | Host       | Zone     | Status  | State | Updated At                 |
  +----+------------------+------------+----------+---------+-------+----------------------------+
  |  6 | nova-consoleauth | controller | internal | enabled | up    | 2017-06-19T12:11:13.000000 |
  |  7 | nova-scheduler   | controller | internal | enabled | up    | 2017-06-19T12:11:12.000000 |
  |  8 | nova-conductor   | controller | internal | enabled | up    | 2017-06-19T12:11:11.000000 |
  |  9 | nova-compute     | compute1   | nova     | enabled | up    | 2017-06-19T12:11:13.000000 |
  | 10 | nova-compute     | compute2   | nova     | enabled | up    | 2017-06-19T12:11:14.000000 |
  +----+------------------+------------+----------+---------+-------+----------------------------+

  root@controller# glance image-list
  +--------------------------------------+------+
  | ID                                   | Name |
  +--------------------------------------+------+
  | dedfa301-bb56-46a1-b3a4-3c64c68585d9 | ci   |
  +--------------------------------------+------+

  
  Thanks :)

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


References