Set WSGI display names for keystone processes

Bug #1409119 reported by Nathan Kinder
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
puppet-keystone
Fix Released
Undecided
Nathan Kinder

Bug Description

When deploying keystone in httpd, we don't currently set a display name. This causes the keystone WSGI processes to show up as httpd in ps output, which makes it difficult to distinguish from other httpd processes on the system. By setting the 'display-name' option to the WSGIDaemonProcess directive in the mod_wsgi config, we can apply useful names that allow the keystone processes to be easily identified.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to puppet-keystone (master)

Fix proposed to branch: master
Review: https://review.openstack.org/146197

Changed in puppet-keystone:
assignee: nobody → Nathan Kinder (nkinder)
status: New → In Progress
Revision history for this message
Nathan Kinder (nkinder) wrote :

With the proposed patch, deploying Keystone in httpd via packstack (which uses puppet-keystone) results in the following 'ps' output:

[rhosuser@rhos ~]$ ps -ef | grep keystone
keystone 17977 17976 0 14:16 ? 00:00:02 keystone-admin -DFOREGROUND
keystone 17978 17976 0 14:16 ? 00:00:01 keystone-main -DFOREGROUND
rhosuser 20694 12817 0 14:21 pts/1 00:00:00 grep --color=auto keystone

Changed in puppet-keystone:
assignee: Nathan Kinder (nkinder) → Matt Fischer (mfisch)
Nathan Kinder (nkinder)
Changed in puppet-keystone:
assignee: Matt Fischer (mfisch) → Nathan Kinder (nkinder)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to puppet-keystone (master)

Reviewed: https://review.openstack.org/146197
Committed: https://git.openstack.org/cgit/stackforge/puppet-keystone/commit/?id=7108a6e64f8e3c2c7586ce74b6af686dc16c6a28
Submitter: Jenkins
Branch: master

commit 7108a6e64f8e3c2c7586ce74b6af686dc16c6a28
Author: Nathan Kinder <email address hidden>
Date: Fri Jan 9 12:30:22 2015 -0800

    Set WSGI process display-name

    The display-name option for mod_wsgi's WSGIDaemonProcess directive
    allows for a useful name to be used for the process command name.
    This is generally useful, as it allows one to distinguish the
    keystone wsgi processes from other httpd processes on the system in
    the output of ps and similar commands.

    This patch uses display names of 'keystone-main' and 'keystone-admin'
    for the main and admin processes respectively.

    Change-Id: Id79c3a36b3f84938070f41c7171dfee20d1745e9
    Closes-bug: #1409119

Changed in puppet-keystone:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to puppet-keystone (stable/juno)

Fix proposed to branch: stable/juno
Review: https://review.openstack.org/187417

Matt Fischer (mfisch)
Changed in puppet-keystone:
milestone: none → 6.0.0
status: Fix Committed → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to puppet-keystone (stable/juno)

Reviewed: https://review.openstack.org/187417
Committed: https://git.openstack.org/cgit/stackforge/puppet-keystone/commit/?id=0f4da2bbf0f67fe3160c9ce010ac0c2bf050c881
Submitter: Jenkins
Branch: stable/juno

commit 0f4da2bbf0f67fe3160c9ce010ac0c2bf050c881
Author: Nathan Kinder <email address hidden>
Date: Fri Jan 9 12:30:22 2015 -0800

    Set WSGI process display-name

    The display-name option for mod_wsgi's WSGIDaemonProcess directive
    allows for a useful name to be used for the process command name.
    This is generally useful, as it allows one to distinguish the
    keystone wsgi processes from other httpd processes on the system in
    the output of ps and similar commands.

    This patch uses display names of 'keystone-main' and 'keystone-admin'
    for the main and admin processes respectively.

    Change-Id: Id79c3a36b3f84938070f41c7171dfee20d1745e9
    Closes-bug: #1409119
    (cherry picked from commit 7108a6e64f8e3c2c7586ce74b6af686dc16c6a28)

tags: added: in-stable-juno
Mathieu Gagné (mgagne)
Changed in puppet-keystone:
status: Fix Released → Fix Committed
Mathieu Gagné (mgagne)
Changed in puppet-keystone:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.