Bug 1701423 - [OSP-14][RFE][Manila] Implement manila-api with httpd
Summary: [OSP-14][RFE][Manila] Implement manila-api with httpd
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-tripleo-heat-templates
Version: 14.0 (Rocky)
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: z3
: 14.0 (Rocky)
Assignee: Goutham Pacha Ravi
QA Contact: Jason Grosso
URL:
Whiteboard:
Depends On:
Blocks: 1701425
TreeView+ depends on / blocked
 
Reported: 2019-04-18 23:01 UTC by Goutham Pacha Ravi
Modified: 2019-07-22 10:42 UTC (History)
6 users (show)

Fixed In Version: openstack-tripleo-heat-templates-9.3.1-0.20190513171736.9995be9.el7ost
Doc Type: Release Note
Doc Text:
The API for the OpenStack Shared File Systems service (Manila) now runs behind httpd. The Apache error and access logs for this service are available in `/var/log/containers/httpd/manila-api` on all nodes that run the Manila API container. The logs for the main API remain in `/var/log/containers/manila`.
Clone Of:
: 1701425 (view as bug list)
Environment:
Last Closed: 2019-07-22 10:42:47 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
OpenStack gerrit 591869 0 None MERGED Support manila-api deployment with Apache 2020-08-03 19:42:49 UTC
OpenStack gerrit 651368 0 None MERGED Add support to deploy manila-api with Apache/wsgi 2020-08-03 19:42:49 UTC
OpenStack gerrit 652804 0 None MERGED Add httpd and tls support to manila-api 2020-08-03 19:42:49 UTC

Description Goutham Pacha Ravi 2019-04-18 23:01:27 UTC
This bug was initially created as a copy of Bug #1585835

I am copying this bug because a backport of this feature has been requested to OSP 14 and OSP 13


manila-api can be deployed using either the built-in server (that depends on eventlet) or the Apache WSGI server. Currently, we are deploying manila with the built-in server and this is a problem for two reasons:

1. We cannot ensure manila py3 compatibility because evenlet is not py3 compatible and it's not clear when there will be a fix for this issues [0]. This blocks BZ#1553195
2. Not being able to use SSL in evenlet blocks BZ#1484601

We need to shift to Apache WSGI so we can ensure py3 compatibility and be able to use TLS for internal services in manila.

[0] http://lists.openstack.org/pipermail/openstack-dev/2018-May/130274.html

Comment 3 Goutham Pacha Ravi 2019-04-27 05:39:11 UTC
All necessary patches for this change have merged upstream. They are ready to be imported downstream.

Comment 7 Lon Hohberger 2019-07-10 10:41:19 UTC
According to our records, this should be resolved by openstack-tripleo-heat-templates-9.3.1-0.20190513171738.el7ost.  This build is available now.

Comment 8 Jason Grosso 2019-07-19 14:25:54 UTC
tested on 14z3 


(undercloud) [stack@undercloud-0 ~]$ rpm -qa | grep openstack-tripleo-heat-templates-9.3.1-
openstack-tripleo-heat-templates-9.3.1-0.20190513171738.el7ost.noarch



[heat-admin@controller-0 ~]$ manila_api_container=$(sudo docker ps | grep manila-api | cut -d " " -f 1)
[heat-admin@controller-0 ~]$ sudo docker top $manila_api_container
UID                 PID                 PPID                C                   STIME               TTY                 TIME                CMD
root                121461              121432              0                   Jul18               ?                   00:00:02            /usr/sbin/httpd -DFOREGROUND
42429               121574              121461              0                   Jul18               ?                   00:01:14            manila_wsgi -DFOREGROUND
42429               121575              121461              0                   Jul18               ?                   00:01:14            manila_wsgi -DFOREGROUND
42429               121576              121461              0                   Jul18               ?                   00:01:14            manila_wsgi -DFOREGROUND
42429               121577              121461              0                   Jul18               ?                   00:01:14            manila_wsgi -DFOREGROUND
apache              425921              121461              0                   12:38               ?                   00:00:01            /usr/sbin/httpd -DFOREGROUND
apache              769183              121461              0                   10:50               ?                   00:00:03            /usr/sbin/httpd -DFOREGROUND
apache              769565              121461              0                   10:50               ?                   00:00:03            /usr/sbin/httpd -DFOREGROUND
apache              769663              121461              0                   10:50               ?                   00:00:03            /usr/sbin/httpd -DFOREGROUND
apache              771045              121461              0                   10:51               ?                   00:00:03            /usr/sbin/httpd -DFOREGROUND
apache              772981              121461              0                   10:51               ?                   00:00:03            /usr/sbin/httpd -DFOREGROUND
apache              832670              121461              0                   11:00               ?                   00:00:03            /usr/sbin/httpd -DFOREGROUND



[heat-admin@controller-1 ~]$ sudo docker top $manila_api_container
UID                 PID                 PPID                C                   STIME               TTY                 TIME                CMD
root                115452              115433              0                   Jul18               ?                   00:00:03            /usr/sbin/httpd -DFOREGROUND
42429               115666              115452              0                   Jul18               ?                   00:01:14            manila_wsgi -DFOREGROUND
42429               115667              115452              0                   Jul18               ?                   00:01:14            manila_wsgi -DFOREGROUND
42429               115668              115452              0                   Jul18               ?                   00:01:13            manila_wsgi -DFOREGROUND
42429               115669              115452              0                   Jul18               ?                   00:01:14            manila_wsgi -DFOREGROUND
apache              185502              115452              0                   12:14               ?                   00:00:02            /usr/sbin/httpd -DFOREGROUND
apache              185519              115452              0                   12:14               ?                   00:00:02            /usr/sbin/httpd -DFOREGROUND
apache              185520              115452              0                   12:14               ?                   00:00:02            /usr/sbin/httpd -DFOREGROUND
apache              199230              115452              0                   12:16               ?                   00:00:02            /usr/sbin/httpd -DFOREGROUND
apache              213124              115452              0                   12:18               ?                   00:00:02            /usr/sbin/httpd -DFOREGROUND
apache              339499              115452              0                   12:38               ?                   00:00:02            /usr/sbin/httpd -DFOREGROUND




heat-admin@controller-2 ~]$ sudo docker top $manila_api_container
UID                 PID                 PPID                C                   STIME               TTY                 TIME                CMD
root                115177              115152              0                   Jul18               ?                   00:00:02            /usr/sbin/httpd -DFOREGROUND
42429               115317              115177              0                   Jul18               ?                   00:01:08            manila_wsgi -DFOREGROUND
42429               115319              115177              0                   Jul18               ?                   00:01:08            manila_wsgi -DFOREGROUND
42429               115321              115177              0                   Jul18               ?                   00:01:08            manila_wsgi -DFOREGROUND
42429               115324              115177              0                   Jul18               ?                   00:01:08            manila_wsgi -DFOREGROUND
apache              638194              115177              0                   10:50               ?                   00:00:03            /usr/sbin/httpd -DFOREGROUND
apache              638245              115177              0                   10:50               ?                   00:00:03            /usr/sbin/httpd -DFOREGROUND
apache              638246              115177              0                   10:50               ?                   00:00:03            /usr/sbin/httpd -DFOREGROUND
apache              642096              115177              0                   10:51               ?                   00:00:03            /usr/sbin/httpd -DFOREGROUND
apache              660897              115177              0                   10:54               ?                   00:00:03            /usr/sbin/httpd -DFOREGROUND
apache              708503              115177              0                   11:01               ?                   00:00:03            /usr/sbin/httpd -DFOREGROUND
apache              772878              115177              0                   11:11               ?                   00:00:03            /usr/sbin/httpd -DFOREGROUND


Note You need to log in before you can comment on or make changes to this bug.