Using wsgi is not supported until Rocky,
https://review.opendev.org/#/c/555608/

The doc link you cite is for "latest" and doesn't exist under
https://docs.openstack.org/neutron/queens/admin/index.html

** Changed in: neutron
       Status: New => Invalid

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1875847

Title:
  Neutron api not coming up with mod_wsgi

Status in neutron:
  Invalid

Bug description:
  I started the neutron api with apache with mod_wsgi approach mentioned in the 
below document:
  https://docs.openstack.org/neutron/latest/admin/config-wsgi.html
  I have /etc/httpd/conf.d/wsgi-neutron.conf defined as below:

  Listen <host_IP>:9696

  <Directory /usr/bin>
     Require all granted
  </Directory>

  <VirtualHost <host_IP>:9696>
    WSGIProcessGroup neutron-server
    WSGIApplicationGroup %{GLOBAL}
    WSGIPassAuthorization On
    WSGIDaemonProcess neutron-server processes=8 threads=1 user=neutron 
group=neutron
    WSGIScriptAlias / /usr/bin/neutron-api
    <IfVersion >= 2.4>
      ErrorLogFormat "%M"
    </IfVersion>
    ErrorLog /var/log/neutron/neutron-server.log
  </VirtualHost>

  Alias /networking /usr/bin/neutron-api
  <Location /networking>
    SetHandler wsgi-script
    Options +ExecCGI
    WSGIProcessGroup neutron-server
    WSGIApplicationGroup %{GLOBAL}
    WSGIPassAuthorization On
  </Location>

  The following traceback occurs in /var/log/neutron/neutron-server.log
  when i run any neutron operation with openstack client:

  2020-04-28 09:34:11.356 23 INFO neutron.common.config 
[req-e8519f3d-d7f6-481c-9e71-493028f1b08a - - - - -] Logging enabled!
  2020-04-28 09:34:11.356 23 INFO neutron.common.config 
[req-e8519f3d-d7f6-481c-9e71-493028f1b08a - - - - -] mod_wsgi version 12.1.0
  2020-04-28 09:34:11.356 23 DEBUG neutron.common.config 
[req-e8519f3d-d7f6-481c-9e71-493028f1b08a - - - - -] command line: mod_wsgi 
setup_logging /usr/lib/python2.7/site-packages/neutron/common/config.py:104
  2020-04-28 09:34:11.357 23 DEBUG oslo.service.wsgi 
[req-e8519f3d-d7f6-481c-9e71-493028f1b08a - - - - -] Loading app neutron from 
/usr/share/neutron/api-paste.ini load_app 
/usr/lib/python2.7/site-packages/oslo_service/wsgi.py:352
  2020-04-28 09:34:11.362 23 ERROR neutron.api.extensions 
[req-e8519f3d-d7f6-481c-9e71-493028f1b08a - - - - -] Unable to process 
extensions (l3-flavors) because the configured plugins do not satisfy their 
requirements. Some features will not work as expected.
  mod_wsgi (pid=23): Target WSGI script '/usr/bin/neutron-api' cannot be loaded 
as Python module.
  mod_wsgi (pid=23): Exception occurred processing WSGI script 
'/usr/bin/neutron-api'.
  Traceback (most recent call last):
    File "/usr/bin/neutron-api", line 54, in <module>
      application = get_application()
    File "/usr/lib/python2.7/site-packages/neutron/server/__init__.py", line 
52, in get_application
      return config.load_paste_app('neutron')
    File "/usr/lib/python2.7/site-packages/neutron/common/config.py", line 122, 
in load_paste_app
      app = loader.load_app(app_name)
    File "/usr/lib/python2.7/site-packages/oslo_service/wsgi.py", line 353, in 
load_app
      return deploy.loadapp("config:%s" % self.config_path, name=name)
    File "/usr/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 247, 
in loadapp
      return loadobj(APP, uri, name=name, **kw)
    File "/usr/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 272, 
in loadobj
      return context.create()
    File "/usr/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 710, 
in create
      return self.object_type.invoke(self)
    File "/usr/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 144, 
in invoke
      **context.local_conf)
    File "/usr/lib/python2.7/site-packages/paste/deploy/util.py", line 55, in 
fix_call
      val = callable(*args, **kw)
    File "/usr/lib/python2.7/site-packages/paste/urlmap.py", line 25, in 
urlmap_factory
      app = loader.get_app(app_name, global_conf=global_conf)
    File "/usr/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 350, 
in get_app
      name=name, global_conf=global_conf).create()
    File "/usr/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 710, 
in create
      return self.object_type.invoke(self)
    File "/usr/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 144, 
in invoke
      **context.local_conf)
    File "/usr/lib/python2.7/site-packages/paste/deploy/util.py", line 55, in 
fix_call
      val = callable(*args, **kw)
    File "/usr/lib/python2.7/site-packages/neutron/auth.py", line 47, in 
pipeline_factory
      app = loader.get_app(pipeline[-1])
    File "/usr/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 350, 
in get_app
      name=name, global_conf=global_conf).create()
    File "/usr/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 710, 
in create
      return self.object_type.invoke(self)
    File "/usr/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 146, 
in invoke
      return fix_call(context.object, context.global_conf, **context.local_conf)
    File "/usr/lib/python2.7/site-packages/paste/deploy/util.py", line 55, in 
fix_call
      val = callable(*args, **kw)
    File "/usr/lib/python2.7/site-packages/neutron/api/v2/router.py", line 25, 
in _factory
      return pecan_app.v2_factory(global_config, **local_config)
    File "/usr/lib/python2.7/site-packages/neutron/pecan_wsgi/app.py", line 47, 
in v2_factory
      startup.initialize_all()
    File "/usr/lib/python2.7/site-packages/neutron/pecan_wsgi/startup.py", line 
41, in initialize_all
      ext_mgr.extend_resources("2.0", attributes.RESOURCE_ATTRIBUTE_MAP)
    File "/usr/lib/python2.7/site-packages/neutron/api/extensions.py", line 
376, in extend_resources
      self._check_faulty_extensions(unloadable_extensions)
    File "/usr/lib/python2.7/site-packages/neutron/api/extensions.py", line 
396, in _check_faulty_extensions
      extensions=list(faulty_extensions))
  ExtensionsNotFound: Extensions not found: ['l3-flavors'].

  Any suggestion on the failure is appertiated.
  Openstack version: Queens

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

-- 
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to     : yahoo-eng-team@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help   : https://help.launchpad.net/ListHelp

Reply via email to