12 Commits

Author SHA1 Message Date
Takashi Kajinami
678c6523c2 Add unit tests for nova::wsgi::apache_metadata
Change-Id: I3a2cc8a591d72350deb964f08db14c3db8137e5c
2020-11-26 11:49:29 +09:00
Luke Short
7ef245ef7d Expose vhost_custom_fragment
It is provided by the Puppet class 'openstacklib::wsgi::apache'.
This change exposes it for the Nova API and metadata services.

Change-Id: Ifcc1f2c882f7b03ced18f48b54138792a41c3329
Signed-off-by: Luke Short <ekultails@gmail.com>
2020-08-12 09:19:19 -04:00
Tobias Urdin
7deecfbdf2 Convert all class usage to relative names
Change-Id: Ibe5a433cb67c38c0c9b05a50bffa2eda7391f241
2019-12-08 23:13:08 +01:00
Rajesh Tailor
d58ad8c9d4 Fix puppet error handling
Fixed puppet error handling which is failing in CI jobs.

Closes-Bug: #1846716
Change-Id: Ia4afd46838c822c464be5f69111452b9b636b035
2019-10-04 17:31:22 +05:30
Juan Antonio Osorio Robles
df638e2526 apache wsgi: Exchange defaults for workers and threads
Due to Python's GIL [1], we can't use multiple threads for running
OpenStack services without a performance penalty, since the execution
ends up serialized, which defeats the purpose.

Instead, we should use several processes, since this approach doesn't
have this limitation.

[1] https://wiki.python.org/moin/GlobalInterpreterLock

Change-Id: I0dedcec2a7bb9983e66878e89dc651cb08939f4f
2017-10-13 06:58:04 +00:00
Juan Antonio Osorio Robles
f6b9f7318e Allow setting log files for nova-api apache vhost
This allows the setting of the error and access file logs, as well as
the access log format. This was done in a similar fashion as one can
configure these ones in the keystone wsgi manifest.

Change-Id: I7e39baa2fefdc63d6f300cb037241846e0871eeb
Depends-On: I5e7d3588b7b3b106813d6d37b55aa812273d04d6
2017-10-06 16:16:45 +00:00
Benedikt Trefzer
1584887d9d add parameter to overwrite/add wsgi process options
Add parameter to apache_wsgi to allow overwrite
and/or add additional wsgi process options.

This possibility was added to openstacklib
with Change-Id: I41914ce3361988d5db1695f09d21209772fdf548

Change-Id: I1d50ee01ebfdfaeb2ac02bc5b944f5b996cbc2db
2017-09-18 11:41:23 +02:00
Alex Schultz
ff924133a4 Fix unit tests
The unit tests were broken by a change to openstacklib
Id09c3358c5843510e6a2a8c0e2d4aeb3607e098b which renamed some of the
resources in the openstacklib classes. The problem is that our tests in
this module should not have been testing what occurs within the modules
so this fix updates the tests to only check what we are doing within
this module.

Depends-On: I9d535ab38afea852559df2b3073bd4b74a2a3947
Change-Id: I3a43867c18fec07360333e876312c2d25b868b57
2017-07-13 14:36:17 -06:00
Emilien Macchi
389d0fbd06 nova/wsgi: change script path for ubuntu
nova-api-wsgi is now available at /usr/bin/nova-api-wsgi in UCA
packaging so let's use it.

Change-Id: I012ce89554640a39cda5104e62a0f135ec5e92e1
2017-06-26 10:50:02 -04:00
Emilien Macchi
5cf1978b79 nova/wsgi: change script path
nova-api-wsgi is now available at /usr/bin/nova-api-wsgi in RDO
packaging so let's use it instead of relying on the python script
in /usr/share like before. UCA will be updated later when the script
is available in packaging.

Change-Id: I426bfdb9e6c852eb32d10a12e521bb8b47701c41
2017-06-12 15:56:20 +00:00
Xing Zhou
6a11af655e Add customization for wsgi process display name
Change-Id: I09f96ad4e08c9091ffeb4c850e6ec81baa58a5b5
Related-Bug: #1626550
2016-12-22 21:01:28 +08:00
Emilien Macchi
be76a4fbb5 Nova Placement API support
- Nova Placement API deployment in WSGI with Apache
  by using nova::wsgi::apache_placement.
- Keystones resources support for Nova Placement API
  by using nova::keystone::auth_placement.
- Allow to configure [placement] section in nova.conf by using nova::placement.
- nova::wsgi::apache is deprecated in favor of nova::wsgi::apache_api.

Notes:
- This service will be required in the future.
  See docs.openstack.org/developer/nova/placement.html
- Disable testing on Ubuntu, the package is broken and not idempotent.

Change-Id: I7f9bc831005029f12d4259b411b58c0319c2a043
2016-12-20 17:32:11 -05:00