yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #41263
[Bug 1516808] [NEW] nova-api throws TypeError exception while loading osapi_compute
Public bug reported:
Using git revision: e6100f593413de77cc825cb9aeb5b86a739874e9
When I run nova-api without an arguments I get an exception. I used the
api-paste.ini that was in the source tree.
2015-11-16 16:21:28.376 47780 DEBUG nova.wsgi [-] Loading app osapi_compute from /etc/nova/api-paste.ini load_app /usr/lib/python2.7/site-packages/nova/wsgi.py:543
2015-11-16 16:21:28.380 47780 CRITICAL nova [-] TypeError: factory() takes exactly 3 arguments (2 given); got ({'__file...va'}, oslo_config_project=...), wanted (cls, global_conf, allowed_origin, **local_conf)
2015-11-16 16:21:28.380 47780 ERROR nova Traceback (most recent call last):
2015-11-16 16:21:28.380 47780 ERROR nova File "/usr/bin/nova-api", line 10, in <module>
2015-11-16 16:21:28.380 47780 ERROR nova sys.exit(main())
2015-11-16 16:21:28.380 47780 ERROR nova File "/usr/lib/python2.7/site-packages/nova/cmd/api.py", line 56, in main
2015-11-16 16:21:28.380 47780 ERROR nova server = service.WSGIService(api, use_ssl=should_use_ssl)
2015-11-16 16:21:28.380 47780 ERROR nova File "/usr/lib/python2.7/site-packages/nova/service.py", line 328, in __init__
2015-11-16 16:21:28.380 47780 ERROR nova self.app = self.loader.load_app(name)
2015-11-16 16:21:28.380 47780 ERROR nova File "/usr/lib/python2.7/site-packages/nova/wsgi.py", line 544, in load_app
2015-11-16 16:21:28.380 47780 ERROR nova return deploy.loadapp("config:%s" % self.config_path, name=name)
2015-11-16 16:21:28.380 47780 ERROR nova File "/usr/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 247, in loadapp
2015-11-16 16:21:28.380 47780 ERROR nova return loadobj(APP, uri, name=name, **kw)
2015-11-16 16:21:28.380 47780 ERROR nova File "/usr/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 272, in loadobj
2015-11-16 16:21:28.380 47780 ERROR nova return context.create()
2015-11-16 16:21:28.380 47780 ERROR nova File "/usr/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 710, in create
2015-11-16 16:21:28.380 47780 ERROR nova return self.object_type.invoke(self)
2015-11-16 16:21:28.380 47780 ERROR nova File "/usr/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 144, in invoke
2015-11-16 16:21:28.380 47780 ERROR nova **context.local_conf)
2015-11-16 16:21:28.380 47780 ERROR nova File "/usr/lib/python2.7/site-packages/paste/deploy/util.py", line 59, in fix_call
2015-11-16 16:21:28.380 47780 ERROR nova reraise(*exc_info)
2015-11-16 16:21:28.380 47780 ERROR nova File "/usr/lib/python2.7/site-packages/paste/deploy/compat.py", line 22, in reraise
2015-11-16 16:21:28.380 47780 ERROR nova exec('raise t, e, tb', dict(t=t, e=e, tb=tb))
2015-11-16 16:21:28.380 47780 ERROR nova File "/usr/lib/python2.7/site-packages/paste/deploy/util.py", line 56, in fix_call
2015-11-16 16:21:28.380 47780 ERROR nova val = callable(*args, **kw)
2015-11-16 16:21:28.380 47780 ERROR nova File "/usr/lib/python2.7/site-packages/nova/api/openstack/urlmap.py", line 160, in urlmap_factory
2015-11-16 16:21:28.380 47780 ERROR nova app = loader.get_app(app_name, global_conf=global_conf)
2015-11-16 16:21:28.380 47780 ERROR nova File "/usr/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 350, in get_app
2015-11-16 16:21:28.380 47780 ERROR nova name=name, global_conf=global_conf).create()
2015-11-16 16:21:28.380 47780 ERROR nova File "/usr/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 710, in create
2015-11-16 16:21:28.380 47780 ERROR nova return self.object_type.invoke(self)
2015-11-16 16:21:28.380 47780 ERROR nova File "/usr/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 144, in invoke
2015-11-16 16:21:28.380 47780 ERROR nova **context.local_conf)
2015-11-16 16:21:28.380 47780 ERROR nova File "/usr/lib/python2.7/site-packages/paste/deploy/util.py", line 59, in fix_call
2015-11-16 16:21:28.380 47780 ERROR nova reraise(*exc_info)
2015-11-16 16:21:28.380 47780 ERROR nova File "/usr/lib/python2.7/site-packages/paste/deploy/compat.py", line 22, in reraise
2015-11-16 16:21:28.380 47780 ERROR nova exec('raise t, e, tb', dict(t=t, e=e, tb=tb))
2015-11-16 16:21:28.380 47780 ERROR nova File "/usr/lib/python2.7/site-packages/paste/deploy/util.py", line 56, in fix_call
2015-11-16 16:21:28.380 47780 ERROR nova val = callable(*args, **kw)
2015-11-16 16:21:28.380 47780 ERROR nova File "/usr/lib/python2.7/site-packages/nova/api/auth.py", line 79, in pipeline_factory_v21
2015-11-16 16:21:28.380 47780 ERROR nova return _load_pipeline(loader, local_conf[CONF.auth_strategy].split())
2015-11-16 16:21:28.380 47780 ERROR nova File "/usr/lib/python2.7/site-packages/nova/api/auth.py", line 58, in _load_pipeline
2015-11-16 16:21:28.380 47780 ERROR nova filters = [loader.get_filter(n) for n in pipeline[:-1]]
2015-11-16 16:21:28.380 47780 ERROR nova File "/usr/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 354, in get_filter
2015-11-16 16:21:28.380 47780 ERROR nova name=name, global_conf=global_conf).create()
2015-11-16 16:21:28.380 47780 ERROR nova File "/usr/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 710, in create
2015-11-16 16:21:28.380 47780 ERROR nova return self.object_type.invoke(self)
2015-11-16 16:21:28.380 47780 ERROR nova File "/usr/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 161, in invoke
2015-11-16 16:21:28.380 47780 ERROR nova context.global_conf, **context.local_conf)
2015-11-16 16:21:28.380 47780 ERROR nova File "/usr/lib/python2.7/site-packages/paste/deploy/util.py", line 59, in fix_call
2015-11-16 16:21:28.380 47780 ERROR nova reraise(*exc_info)
2015-11-16 16:21:28.380 47780 ERROR nova File "/usr/lib/python2.7/site-packages/paste/deploy/compat.py", line 22, in reraise
2015-11-16 16:21:28.380 47780 ERROR nova exec('raise t, e, tb', dict(t=t, e=e, tb=tb))
2015-11-16 16:21:28.380 47780 ERROR nova File "/usr/lib/python2.7/site-packages/paste/deploy/util.py", line 56, in fix_call
2015-11-16 16:21:28.380 47780 ERROR nova val = callable(*args, **kw)
2015-11-16 16:21:28.380 47780 ERROR nova TypeError: factory() takes exactly 3 arguments (2 given); got ({'__file...va'}, oslo_config_project=...), wanted (cls, global_conf, allowed_origin, **local_conf)
2015-11-16 16:21:28.380 47780 ERROR nova
----------------
Here is my nova.conf file:
[DEFAULT]
rpc_backend = rabbit
my_ip = 10.1.255.1
auth_strategy = keystone
enabled_apis=osapi_compute,metadata
verbose = True
network_api_class = nova.network.neutronv2.api.API
security_group_api = neutron
linuxnet_interface_driver = nova.network.linux_net.NeutronLinuxBridgeInterfaceDriver
firewall_driver = nova.virt.firewall.NoopFirewallDriver
[oslo_messaging_rabbit]
rabbit_host = controller
rabbit_userid = openstack
rabbit_password = ******
[keystone_authtoken]
auth_uri = http://controller:5000
auth_url = http://controller:35357
auth_plugin = password
project_domain_id = default
user_domain_id = default
project_name = service
username = nova
password = ******
[vnc]
vncserver_listen = 10.1.255.1
vncserver_proxyclient_address = 10.1.255.1
[glance]
host = controller
[oslo_concurrency]
lock_path = /var/lib/nova/tmp
[database]
connection = mysql://nova:******@controller/nova
** Affects: nova
Importance: Undecided
Status: New
--
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/1516808
Title:
nova-api throws TypeError exception while loading osapi_compute
Status in OpenStack Compute (nova):
New
Bug description:
Using git revision: e6100f593413de77cc825cb9aeb5b86a739874e9
When I run nova-api without an arguments I get an exception. I used
the api-paste.ini that was in the source tree.
2015-11-16 16:21:28.376 47780 DEBUG nova.wsgi [-] Loading app osapi_compute from /etc/nova/api-paste.ini load_app /usr/lib/python2.7/site-packages/nova/wsgi.py:543
2015-11-16 16:21:28.380 47780 CRITICAL nova [-] TypeError: factory() takes exactly 3 arguments (2 given); got ({'__file...va'}, oslo_config_project=...), wanted (cls, global_conf, allowed_origin, **local_conf)
2015-11-16 16:21:28.380 47780 ERROR nova Traceback (most recent call last):
2015-11-16 16:21:28.380 47780 ERROR nova File "/usr/bin/nova-api", line 10, in <module>
2015-11-16 16:21:28.380 47780 ERROR nova sys.exit(main())
2015-11-16 16:21:28.380 47780 ERROR nova File "/usr/lib/python2.7/site-packages/nova/cmd/api.py", line 56, in main
2015-11-16 16:21:28.380 47780 ERROR nova server = service.WSGIService(api, use_ssl=should_use_ssl)
2015-11-16 16:21:28.380 47780 ERROR nova File "/usr/lib/python2.7/site-packages/nova/service.py", line 328, in __init__
2015-11-16 16:21:28.380 47780 ERROR nova self.app = self.loader.load_app(name)
2015-11-16 16:21:28.380 47780 ERROR nova File "/usr/lib/python2.7/site-packages/nova/wsgi.py", line 544, in load_app
2015-11-16 16:21:28.380 47780 ERROR nova return deploy.loadapp("config:%s" % self.config_path, name=name)
2015-11-16 16:21:28.380 47780 ERROR nova File "/usr/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 247, in loadapp
2015-11-16 16:21:28.380 47780 ERROR nova return loadobj(APP, uri, name=name, **kw)
2015-11-16 16:21:28.380 47780 ERROR nova File "/usr/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 272, in loadobj
2015-11-16 16:21:28.380 47780 ERROR nova return context.create()
2015-11-16 16:21:28.380 47780 ERROR nova File "/usr/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 710, in create
2015-11-16 16:21:28.380 47780 ERROR nova return self.object_type.invoke(self)
2015-11-16 16:21:28.380 47780 ERROR nova File "/usr/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 144, in invoke
2015-11-16 16:21:28.380 47780 ERROR nova **context.local_conf)
2015-11-16 16:21:28.380 47780 ERROR nova File "/usr/lib/python2.7/site-packages/paste/deploy/util.py", line 59, in fix_call
2015-11-16 16:21:28.380 47780 ERROR nova reraise(*exc_info)
2015-11-16 16:21:28.380 47780 ERROR nova File "/usr/lib/python2.7/site-packages/paste/deploy/compat.py", line 22, in reraise
2015-11-16 16:21:28.380 47780 ERROR nova exec('raise t, e, tb', dict(t=t, e=e, tb=tb))
2015-11-16 16:21:28.380 47780 ERROR nova File "/usr/lib/python2.7/site-packages/paste/deploy/util.py", line 56, in fix_call
2015-11-16 16:21:28.380 47780 ERROR nova val = callable(*args, **kw)
2015-11-16 16:21:28.380 47780 ERROR nova File "/usr/lib/python2.7/site-packages/nova/api/openstack/urlmap.py", line 160, in urlmap_factory
2015-11-16 16:21:28.380 47780 ERROR nova app = loader.get_app(app_name, global_conf=global_conf)
2015-11-16 16:21:28.380 47780 ERROR nova File "/usr/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 350, in get_app
2015-11-16 16:21:28.380 47780 ERROR nova name=name, global_conf=global_conf).create()
2015-11-16 16:21:28.380 47780 ERROR nova File "/usr/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 710, in create
2015-11-16 16:21:28.380 47780 ERROR nova return self.object_type.invoke(self)
2015-11-16 16:21:28.380 47780 ERROR nova File "/usr/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 144, in invoke
2015-11-16 16:21:28.380 47780 ERROR nova **context.local_conf)
2015-11-16 16:21:28.380 47780 ERROR nova File "/usr/lib/python2.7/site-packages/paste/deploy/util.py", line 59, in fix_call
2015-11-16 16:21:28.380 47780 ERROR nova reraise(*exc_info)
2015-11-16 16:21:28.380 47780 ERROR nova File "/usr/lib/python2.7/site-packages/paste/deploy/compat.py", line 22, in reraise
2015-11-16 16:21:28.380 47780 ERROR nova exec('raise t, e, tb', dict(t=t, e=e, tb=tb))
2015-11-16 16:21:28.380 47780 ERROR nova File "/usr/lib/python2.7/site-packages/paste/deploy/util.py", line 56, in fix_call
2015-11-16 16:21:28.380 47780 ERROR nova val = callable(*args, **kw)
2015-11-16 16:21:28.380 47780 ERROR nova File "/usr/lib/python2.7/site-packages/nova/api/auth.py", line 79, in pipeline_factory_v21
2015-11-16 16:21:28.380 47780 ERROR nova return _load_pipeline(loader, local_conf[CONF.auth_strategy].split())
2015-11-16 16:21:28.380 47780 ERROR nova File "/usr/lib/python2.7/site-packages/nova/api/auth.py", line 58, in _load_pipeline
2015-11-16 16:21:28.380 47780 ERROR nova filters = [loader.get_filter(n) for n in pipeline[:-1]]
2015-11-16 16:21:28.380 47780 ERROR nova File "/usr/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 354, in get_filter
2015-11-16 16:21:28.380 47780 ERROR nova name=name, global_conf=global_conf).create()
2015-11-16 16:21:28.380 47780 ERROR nova File "/usr/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 710, in create
2015-11-16 16:21:28.380 47780 ERROR nova return self.object_type.invoke(self)
2015-11-16 16:21:28.380 47780 ERROR nova File "/usr/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 161, in invoke
2015-11-16 16:21:28.380 47780 ERROR nova context.global_conf, **context.local_conf)
2015-11-16 16:21:28.380 47780 ERROR nova File "/usr/lib/python2.7/site-packages/paste/deploy/util.py", line 59, in fix_call
2015-11-16 16:21:28.380 47780 ERROR nova reraise(*exc_info)
2015-11-16 16:21:28.380 47780 ERROR nova File "/usr/lib/python2.7/site-packages/paste/deploy/compat.py", line 22, in reraise
2015-11-16 16:21:28.380 47780 ERROR nova exec('raise t, e, tb', dict(t=t, e=e, tb=tb))
2015-11-16 16:21:28.380 47780 ERROR nova File "/usr/lib/python2.7/site-packages/paste/deploy/util.py", line 56, in fix_call
2015-11-16 16:21:28.380 47780 ERROR nova val = callable(*args, **kw)
2015-11-16 16:21:28.380 47780 ERROR nova TypeError: factory() takes exactly 3 arguments (2 given); got ({'__file...va'}, oslo_config_project=...), wanted (cls, global_conf, allowed_origin, **local_conf)
2015-11-16 16:21:28.380 47780 ERROR nova
----------------
Here is my nova.conf file:
[DEFAULT]
rpc_backend = rabbit
my_ip = 10.1.255.1
auth_strategy = keystone
enabled_apis=osapi_compute,metadata
verbose = True
network_api_class = nova.network.neutronv2.api.API
security_group_api = neutron
linuxnet_interface_driver = nova.network.linux_net.NeutronLinuxBridgeInterfaceDriver
firewall_driver = nova.virt.firewall.NoopFirewallDriver
[oslo_messaging_rabbit]
rabbit_host = controller
rabbit_userid = openstack
rabbit_password = ******
[keystone_authtoken]
auth_uri = http://controller:5000
auth_url = http://controller:35357
auth_plugin = password
project_domain_id = default
user_domain_id = default
project_name = service
username = nova
password = ******
[vnc]
vncserver_listen = 10.1.255.1
vncserver_proxyclient_address = 10.1.255.1
[glance]
host = controller
[oslo_concurrency]
lock_path = /var/lib/nova/tmp
[database]
connection = mysql://nova:******@controller/nova
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1516808/+subscriptions
Follow ups