Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1523438

Summary: [undercloud] WSGI processes for keystone not set appropriately in OSP10
Product: Red Hat OpenStack Reporter: Robin Cernin <rcernin>
Component: rhosp-directorAssignee: Angus Thomas <athomas>
Status: CLOSED NEXTRELEASE QA Contact: Amit Ugol <augol>
Severity: high Docs Contact:
Priority: high    
Version: 10.0 (Newton)CC: alee, dbecker, josorior, jslagle, mburns, morazi, rchincho, rhel-osp-director-maint
Target Milestone: ---Keywords: Triaged, ZStream
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1523804 1523805 (view as bug list) Environment:
Last Closed: 2020-03-19 18:33:53 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1523804, 1523805    

Description Robin Cernin 2017-12-08 00:35:02 UTC
Description of problem:

Undercloud install does NOT implement any logic behind setting the number of processes and threads for keystone as can be seen below.

This can cause failures during deployment.

Version-Release number of selected component (if applicable):

[root@undercloud ~]# rpm -qa | grep instack
instack-undercloud-5.3.2-2.el7ost.noarch
instack-5.0.0-1.el7ost.noarch

How reproducible:

[root@undercloud ~]# cat /etc/httpd/conf.d/10-keystone_wsgi_admin.conf 
# ************************************
# Vhost template in module puppetlabs-apache
# Managed by Puppet
# ************************************

<VirtualHost 192.168.24.1:35357>
  ServerName undercloud-0.redhat.local

  ## Vhost docroot
  DocumentRoot "/var/www/cgi-bin/keystone"

  ## Directories, there should at least be a declaration for /var/www/cgi-bin/keystone

  <Directory "/var/www/cgi-bin/keystone">
    Options Indexes FollowSymLinks MultiViews
    AllowOverride None
    Require all granted
  </Directory>

  ## Logging
  ErrorLog "/var/log/httpd/keystone_wsgi_admin_error.log"
  ServerSignature Off
  CustomLog "/var/log/httpd/keystone_wsgi_admin_access.log" combined 
  WSGIApplicationGroup %{GLOBAL}
  WSGIDaemonProcess keystone_admin display-name=keystone-admin group=keystone processes=1 threads=2 user=keystone
  WSGIProcessGroup keystone_admin
  WSGIScriptAlias / "/var/www/cgi-bin/keystone/keystone-admin"
  WSGIPassAuthorization On
</VirtualHost>


Steps to Reproduce:
1.
2.
3.

Actual results:

Deployment fails, processes and threads are not configured per CPU etc.

Expected results:

Deployment fails, processes and threads are configured the same way as they are in overcloud.

Additional info:

Comment 2 Nathan Kinder 2018-11-01 21:05:50 UTC
*** Bug 1538620 has been marked as a duplicate of this bug. ***

Comment 3 Ade Lee 2020-03-19 18:33:53 UTC
This is fixed in OSP 13.