no such option keystone_authtoken in group [DEFAULT]

Bug #1833291 reported by Aymen Frikha
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Neutron API Charm
Triaged
Undecided
Unassigned

Bug Description

Trying to integrate Infoblox with neutron-api, I've got the following error:

2019-06-18 19:14:11.051 18024 CRITICAL neutron [req-8c1f28cf-793a-4b7e-8640-9c363c6113be - - - - -] Unhandled error: NoSuchOptError: no such option keystone_authtoken in group [DEFAULT]
2019-06-18 19:14:11.051 18024 ERROR neutron Traceback (most recent call last):
2019-06-18 19:14:11.051 18024 ERROR neutron File "/usr/bin/infoblox-ipam-agent", line 10, in <module>
2019-06-18 19:14:11.051 18024 ERROR neutron sys.exit(main())
2019-06-18 19:14:11.051 18024 ERROR neutron File "/usr/lib/python2.7/dist-packages/networking_infoblox/neutron/cmd/eventlet/infoblox_ipam_agent.py", line 43, in main
2019-06-18 19:14:11.051 18024 ERROR neutron notification.NotificationService(),
2019-06-18 19:14:11.051 18024 ERROR neutron File "/usr/lib/python2.7/dist-packages/networking_infoblox/neutron/common/notification.py", line 97, in __init__
2019-06-18 19:14:11.051 18024 ERROR neutron self._init_notification_listener()
2019-06-18 19:14:11.051 18024 ERROR neutron File "/usr/lib/python2.7/dist-packages/networking_infoblox/neutron/common/notification.py", line 109, in _init_notification_listener
2019-06-18 19:14:11.051 18024 ERROR neutron self.grid_manager)]
2019-06-18 19:14:11.051 18024 ERROR neutron File "/usr/lib/python2.7/dist-packages/networking_infoblox/neutron/common/notification.py", line 68, in __init__
2019-06-18 19:14:11.051 18024 ERROR neutron self.context, grid_manager=grid_manager)
2019-06-18 19:14:11.051 18024 ERROR neutron File "/usr/lib/python2.7/dist-packages/networking_infoblox/neutron/common/notification_handler.py", line 49, in __init__
2019-06-18 19:14:11.051 18024 ERROR neutron manager.init()
2019-06-18 19:14:11.051 18024 ERROR neutron File "/usr/lib/python2.7/dist-packages/neutron/manager.py", line 296, in init
2019-06-18 19:14:11.051 18024 ERROR neutron NeutronManager.get_instance()
2019-06-18 19:14:11.051 18024 ERROR neutron File "/usr/lib/python2.7/dist-packages/neutron/manager.py", line 247, in get_instance
2019-06-18 19:14:11.051 18024 ERROR neutron cls._create_instance()
2019-06-18 19:14:11.051 18024 ERROR neutron File "/usr/lib/python2.7/dist-packages/oslo_concurrency/lockutils.py", line 277, in inner
2019-06-18 19:14:11.051 18024 ERROR neutron return f(*args, **kwargs)
2019-06-18 19:14:11.051 18024 ERROR neutron File "/usr/lib/python2.7/dist-packages/neutron/manager.py", line 233, in _create_instance
2019-06-18 19:14:11.051 18024 ERROR neutron cls._instance = cls()
2019-06-18 19:14:11.051 18024 ERROR neutron File "/usr/lib/python2.7/dist-packages/neutron/manager.py", line 132, in __init__
2019-06-18 19:14:11.051 18024 ERROR neutron plugin_provider)
2019-06-18 19:14:11.051 18024 ERROR neutron File "/usr/lib/python2.7/dist-packages/neutron/manager.py", line 166, in _get_plugin_instance
2019-06-18 19:14:11.051 18024 ERROR neutron return plugin_class()
2019-06-18 19:14:11.051 18024 ERROR neutron File "/usr/lib/python2.7/dist-packages/neutron/quota/resource_registry.py", line 128, in wrapper
2019-06-18 19:14:11.051 18024 ERROR neutron return f(*args, **kwargs)
2019-06-18 19:14:11.051 18024 ERROR neutron File "/usr/lib/python2.7/dist-packages/neutron/plugins/ml2/plugin.py", line 197, in __init__
2019-06-18 19:14:11.051 18024 ERROR neutron super(Ml2Plugin, self).__init__()
2019-06-18 19:14:11.051 18024 ERROR neutron File "/usr/lib/python2.7/dist-packages/neutron/db/db_base_plugin_v2.py", line 163, in __init__
2019-06-18 19:14:11.051 18024 ERROR neutron self.nova_notifier = nova.Notifier.get_instance()
2019-06-18 19:14:11.051 18024 ERROR neutron File "/usr/lib/python2.7/dist-packages/neutron/notifiers/nova.py", line 54, in get_instance
2019-06-18 19:14:11.051 18024 ERROR neutron cls._instance = cls()
2019-06-18 19:14:11.051 18024 ERROR neutron File "/usr/lib/python2.7/dist-packages/neutron/notifiers/nova.py", line 58, in __init__
2019-06-18 19:14:11.051 18024 ERROR neutron auth = ks_loading.load_auth_from_conf_options(cfg.CONF, 'nova')
2019-06-18 19:14:11.051 18024 ERROR neutron File "/usr/lib/python2.7/dist-packages/keystoneauth1/loading/conf.py", line 122, in load_from_conf_options
2019-06-18 19:14:11.051 18024 ERROR neutron name = conf[group].auth_type
2019-06-18 19:14:11.051 18024 ERROR neutron File "/usr/lib/python2.7/dist-packages/oslo_config/cfg.py", line 2523, in __getitem__
2019-06-18 19:14:11.051 18024 ERROR neutron return self.__getattr__(key)
2019-06-18 19:14:11.051 18024 ERROR neutron File "/usr/lib/python2.7/dist-packages/oslo_config/cfg.py", line 2519, in __getattr__
2019-06-18 19:14:11.051 18024 ERROR neutron raise NoSuchOptError(name)
2019-06-18 19:14:11.051 18024 ERROR neutron NoSuchOptError: no such option keystone_authtoken in group [DEFAULT]
2019-06-18 19:14:11.051 18024 ERROR neutron

Not sure if it's an openstack issue or Infoblox issue, but I'm sure that keystone_authtoken option inside nova section is not present in the OpenStack documentation:
https://docs.openstack.org/neutron/queens/configuration/neutron.html
https://docs.openstack.org/ocata/config-reference/networking/samples/neutron.conf.html

This is the neutron.conf file I have: https://paste.ubuntu.com/p/7CHnXQSRRz/

Revision history for this message
David Ames (thedac) wrote :

The problem seems to be that only the "nova" part of the neutron.conf config is passed and the auth_section, keystone_authtoken, is outside the [nova] heading.

auth = ks_loading.load_auth_from_conf_options(cfg.CONF, 'nova')

So it errors with a missing section.

We have had this in the nova section since icehouse. It is possible it is no longer necessary but we will have to verify that. I'll discuss with the team.

Revision history for this message
Aymen Frikha (aym-frikha) wrote :
Changed in charm-neutron-api:
status: New → Triaged
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.