Showing posts with label oepnstack. Show all posts
Showing posts with label oepnstack. Show all posts

Wednesday, July 6, 2016

OpenStack Mitaka Issue starting the Nova API service on the controller "ERROR nova MissingRequiredOptions: Auth plugin requires parameters which were not given: auth_url"



OpenStack Mitaka Issue starting the Nova API service on the controller "ERROR nova MissingRequiredOptions: Auth plugin requires parameters which were not given: auth_url"


This issue was faced at the time of starting the nova-api service on the controller node on the OpenStack Setup. The reason was a misconfigured nova api.

As usual for nova related service best place to look out are the logs in /var/log/nova/* on the controller machine.


The below messages appear in the /var/log/nova/nova-api log


==> nova-api.log <==

2016-07-06 06:32:16.947 27284 WARNING oslo_reports.guru_meditation_report [-] Guru mediation now registers SIGUSR1 and SIGUSR2 by default for backward compatibility. SIGUSR1 will no longer be registered in a future release, so please use SIGUSR2 to generate reports.
2016-07-06 06:32:17.505 27284 INFO oslo_service.periodic_task [-] Skipping periodic task _periodic_update_dns because its interval is negative
2016-07-06 06:32:18.244 27284 INFO nova.api.openstack [-] Loaded extensions: ['extensions', 'flavors', 'image-metadata', 'image-size', 'images', 'ips', 'limits', 'os-access-ips', 'os-admin-actions', 'os-admin-password', 'os-agents', 'os-aggregates', 'os-assisted-volume-snapshots', 'os-attach-interfaces', 'os-availability-zone', 'os-baremetal-nodes', 'os-block-device-mapping', 'os-cells', 'os-certificates', 'os-cloudpipe', 'os-config-drive', 'os-console-auth-tokens', 'os-console-output', 'os-consoles', 'os-create-backup', 'os-deferred-delete', 'os-disk-config', 'os-evacuate', 'os-extended-availability-zone', 'os-extended-server-attributes', 'os-extended-status', 'os-extended-volumes', 'os-fixed-ips', 'os-flavor-access', 'os-flavor-extra-specs', 'os-flavor-manage', 'os-flavor-rxtx', 'os-floating-ip-dns', 'os-floating-ip-pools', 'os-floating-ips', 'os-floating-ips-bulk', 'os-fping', 'os-hide-server-addresses', 'os-hosts', 'os-hypervisors', 'os-instance-actions', 'os-instance-usage-audit-log', 'os-keypairs', 'os-lock-server', 'os-migrate-server', 'os-migrations', 'os-multinic', 'os-multiple-create', 'os-networks', 'os-networks-associate', 'os-pause-server', 'os-personality', 'os-preserve-ephemeral-rebuild', 'os-quota-class-sets', 'os-quota-sets', 'os-remote-consoles', 'os-rescue', 'os-scheduler-hints', 'os-security-group-default-rules', 'os-security-groups', 'os-server-diagnostics', 'os-server-external-events', 'os-server-groups', 'os-server-password', 'os-server-usage', 'os-services', 'os-shelve', 'os-simple-tenant-usage', 'os-suspend-server', 'os-tenant-networks', 'os-used-limits', 'os-user-data', 'os-virtual-interfaces', 'os-volumes', 'server-metadata', 'server-migrations', 'servers', 'versions']
2016-07-06 06:32:18.257 27284 CRITICAL nova [-] MissingRequiredOptions: Auth plugin requires parameters which were not given: auth_url
2016-07-06 06:32:18.257 27284 ERROR nova Traceback (most recent call last):
2016-07-06 06:32:18.257 27284 ERROR nova   File "/usr/bin/nova-api", line 10, in <module>
2016-07-06 06:32:18.257 27284 ERROR nova     sys.exit(main())
2016-07-06 06:32:18.257 27284 ERROR nova   File "/usr/lib/python2.7/site-packages/nova/cmd/api.py", line 57, in main
2016-07-06 06:32:18.257 27284 ERROR nova     server = service.WSGIService(api, use_ssl=should_use_ssl)
2016-07-06 06:32:18.257 27284 ERROR nova   File "/usr/lib/python2.7/site-packages/nova/service.py", line 366, in __init__
2016-07-06 06:32:18.257 27284 ERROR nova     self.app = self.loader.load_app(name)
2016-07-06 06:32:18.257 27284 ERROR nova   File "/usr/lib/python2.7/site-packages/nova/wsgi.py", line 497, in load_app
2016-07-06 06:32:18.257 27284 ERROR nova     return deploy.loadapp("config:%s" % self.config_path, name=name)
2016-07-06 06:32:18.257 27284 ERROR nova   File "/usr/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 247, in loadapp
2016-07-06 06:32:18.257 27284 ERROR nova     return loadobj(APP, uri, name=name, **kw)
2016-07-06 06:32:18.257 27284 ERROR nova   File "/usr/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 272, in loadobj
2016-07-06 06:32:18.257 27284 ERROR nova     return context.create()
2016-07-06 06:32:18.257 27284 ERROR nova   File "/usr/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 710, in create
2016-07-06 06:32:18.257 27284 ERROR nova     return self.object_type.invoke(self)
2016-07-06 06:32:18.257 27284 ERROR nova   File "/usr/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 144, in invoke
2016-07-06 06:32:18.257 27284 ERROR nova     **context.local_conf)
2016-07-06 06:32:18.257 27284 ERROR nova   File "/usr/lib/python2.7/site-packages/paste/deploy/util.py", line 55, in fix_call
2016-07-06 06:32:18.257 27284 ERROR nova     val = callable(*args, **kw)
2016-07-06 06:32:18.257 27284 ERROR nova   File "/usr/lib/python2.7/site-packages/nova/api/openstack/urlmap.py", line 160, in urlmap_factory
2016-07-06 06:32:18.257 27284 ERROR nova     app = loader.get_app(app_name, global_conf=global_conf)
2016-07-06 06:32:18.257 27284 ERROR nova   File "/usr/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 350, in get_app
2016-07-06 06:32:18.257 27284 ERROR nova     name=name, global_conf=global_conf).create()
2016-07-06 06:32:18.257 27284 ERROR nova   File "/usr/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 710, in create
2016-07-06 06:32:18.257 27284 ERROR nova     return self.object_type.invoke(self)
2016-07-06 06:32:18.257 27284 ERROR nova   File "/usr/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 144, in invoke
2016-07-06 06:32:18.257 27284 ERROR nova     **context.local_conf)
2016-07-06 06:32:18.257 27284 ERROR nova   File "/usr/lib/python2.7/site-packages/paste/deploy/util.py", line 55, in fix_call
2016-07-06 06:32:18.257 27284 ERROR nova     val = callable(*args, **kw)
2016-07-06 06:32:18.257 27284 ERROR nova   File "/usr/lib/python2.7/site-packages/nova/api/auth.py", line 79, in pipeline_factory_v21
2016-07-06 06:32:18.257 27284 ERROR nova     return _load_pipeline(loader, local_conf[CONF.auth_strategy].split())
2016-07-06 06:32:18.257 27284 ERROR nova   File "/usr/lib/python2.7/site-packages/nova/api/auth.py", line 62, in _load_pipeline
2016-07-06 06:32:18.257 27284 ERROR nova     app = filter(app)
2016-07-06 06:32:18.257 27284 ERROR nova   File "/usr/lib/python2.7/site-packages/keystonemiddleware/auth_token/__init__.py", line 1100, in auth_filter
2016-07-06 06:32:18.257 27284 ERROR nova     return AuthProtocol(app, conf)
2016-07-06 06:32:18.257 27284 ERROR nova   File "/usr/lib/python2.7/site-packages/keystonemiddleware/auth_token/__init__.py", line 682, in __init__
2016-07-06 06:32:18.257 27284 ERROR nova     self._identity_server = self._create_identity_server()
2016-07-06 06:32:18.257 27284 ERROR nova   File "/usr/lib/python2.7/site-packages/keystonemiddleware/auth_token/__init__.py", line 1050, in _create_identity_server
2016-07-06 06:32:18.257 27284 ERROR nova     auth_plugin = self._get_auth_plugin()
2016-07-06 06:32:18.257 27284 ERROR nova   File "/usr/lib/python2.7/site-packages/keystonemiddleware/auth_token/__init__.py", line 995, in _get_auth_plugin
2016-07-06 06:32:18.257 27284 ERROR nova     return plugin_loader.load_from_options_getter(getter)
2016-07-06 06:32:18.257 27284 ERROR nova   File "/usr/lib/python2.7/site-packages/keystoneauth1/loading/base.py", line 148, in load_from_options_getter
2016-07-06 06:32:18.257 27284 ERROR nova     return self.load_from_options(**kwargs)
2016-07-06 06:32:18.257 27284 ERROR nova   File "/usr/lib/python2.7/site-packages/keystoneauth1/loading/base.py", line 123, in load_from_options
2016-07-06 06:32:18.257 27284 ERROR nova     raise exceptions.MissingRequiredOptions(missing_required)
2016-07-06 06:32:18.257 27284 ERROR nova MissingRequiredOptions: Auth plugin requires parameters which were not given: auth_url
2016-07-06 06:32:18.257 27284 ERROR nova

The fix:


This comes if you have not define or improperly defined the auth_url in the /etc/nova/nova.conf

in my case this has been in /etc/nova/nova.conf  as

auth_url = http://controller1.example.com:35357

Also is worth noting another entry in the file as auth_uri in the /etc/nova/nova.conf 

as

auth_uri = http://controller1.example.com:5000