<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
<div style="color: rgb(34, 34, 34); font-family: arial, sans-serif;
font-size: 13px; font-style: normal; font-variant: normal;
font-weight: normal; letter-spacing: normal; line-height: normal;
orphans: auto; text-align: start; text-indent: 0px;
text-transform: none; white-space: normal; widows: auto;
word-spacing: 0px; -webkit-text-stroke-width: 0px;
background-color: rgb(255, 255, 255);">
<div>
<div>Hoping someone can offer some help / guidance.<br>
<br>
I am trying to configure keystone to run in HTTPD.<span
class="Apple-converted-space"> </span><br>
Release: Havana<br>
OS: EL 6.5<br>
<br>
Following documentation I have configured a VirtualHost in my
webserver and made the necessary updates in keystone.conf
(admin_port, public_port, admin_endpoint, public_endpoint,
external driver)<br>
<br>
</div>
<div>Before updating endpoints in the keystone repo I ran an
initial keystone cmd to verify the original endpoints and to
test the httpd setup was functioning correctly e.g.<i><br>
$ keystone --os-endpoint<span class="Apple-converted-space"> </span><a
href="http://xxxxxxx:8080/keystone/admin/v2.0"
target="_blank" style="color: rgb(17, 85, 204);">http://xxxxxxx:8080/keystone/<wbr>admin/v2.0</a><span
class="Apple-converted-space"> </span>--os-token xxxxxxxx
service-get keystone</i><br>
</div>
<div><br>
This failed with errors showing up in the webserver log files.<br>
</div>
<br>
<i>[VirtualHost: xxxxxxx:8080] from paste import deploy<br>
[VirtualHost: xxxxxxx:8080] ImportError: cannot import name
deploy</i><br>
<br>
The error is obviously linked to the keystone.wsgi file (as
linked frpm keystone/admin) and its attempt to import the paste
module<br>
e.g. (extract from keystone.wsgi)<br>
<br>
<i>from paste import deploy<br>
from keystone.openstack.common import gettextutils</i><br>
<br>
I did some research and found an older but similar issue
occurred with the <i>keystone-all</i> file. The fix was to
ensure that the import of gettextutils occured before the import
of deploy from paste. (<a
href="https://github.com/redhat-openstack/keystone/commit/e053026a"
target="_blank" style="color: rgb(17, 85, 204);">https://github.com/redhat-<wbr>openstack/keystone/commit/<wbr>e053026a</a>)<br>
<br>
I moved the import of gettextutils above the paste import in
keystone.wsgi which did remove the paste import error.
However, the webserver log file now shows a segfault after
re-running the keystone cmd above<br>
<br>
<i>[VirtualHost: xxxxxxx:8080] Premature end of script headers:
admin<br>
[VirtualHost: xxxxxxx:8080] Request Failed for :
/keystone/admin/v2.0/OS-KSADM/<wbr>services/keystone, Resp
Code : [500]<br>
[VirtualHost: main] child pid 9671 exit signal Segmentation
fault (11)</i><br>
<br>
</div>
I also looked in /var/log/messages and see:<br>
<i> kernel: httpd.worker[9705]: segfault at 0 ip 00007f509a7cf86f
sp 00007f508e432fb8 error 4 in<span
class="Apple-converted-space"> </span><a
href="http://libc-2.12.so/" target="_blank" style="color:
rgb(17, 85, 204);">libc-2.12.so</a>[7f509a69c000+<wbr>18b000]</i><br>
<br>
</div>
<div style="color: rgb(34, 34, 34); font-family: arial, sans-serif;
font-size: 13px; font-style: normal; font-variant: normal;
font-weight: normal; letter-spacing: normal; line-height: normal;
orphans: auto; text-align: start; text-indent: 0px;
text-transform: none; white-space: normal; widows: auto;
word-spacing: 0px; -webkit-text-stroke-width: 0px;
background-color: rgb(255, 255, 255);">So at this point I need to
ask :<i><span class="Apple-converted-space"> </span></i><br>
<br>
</div>
<div style="color: rgb(34, 34, 34); font-family: arial, sans-serif;
font-size: 13px; font-style: normal; font-variant: normal;
font-weight: normal; letter-spacing: normal; line-height: normal;
orphans: auto; text-align: start; text-indent: 0px;
text-transform: none; white-space: normal; widows: auto;
word-spacing: 0px; -webkit-text-stroke-width: 0px;
background-color: rgb(255, 255, 255);">1 - Was I correct to update
keystone.wsgi and move the<span class="Apple-converted-space"> </span><i>import
gettextutils<span class="Apple-converted-space"> </span></i>above<span
class="Apple-converted-space"> </span><i>import deploy ?<br>
<br>
</i></div>
<div style="color: rgb(34, 34, 34); font-family: arial, sans-serif;
font-size: 13px; font-style: normal; font-variant: normal;
font-weight: normal; letter-spacing: normal; line-height: normal;
orphans: auto; text-align: start; text-indent: 0px;
text-transform: none; white-space: normal; widows: auto;
word-spacing: 0px; -webkit-text-stroke-width: 0px;
background-color: rgb(255, 255, 255);">2 - Has anyone come across
similar issues when configuring keystone to run in HTTPD<i><span
class="Apple-converted-space"> </span><br>
<br>
</i>I'd gratefully appreciate any help and advic<i>e<span
class="Apple-converted-space"> </span></i>on solving or
trouble shooting<i><br>
<br>
</i></div>
<div style="color: rgb(34, 34, 34); font-family: arial, sans-serif;
font-size: 13px; font-style: normal; font-variant: normal;
font-weight: normal; letter-spacing: normal; line-height: normal;
orphans: auto; text-align: start; text-indent: 0px;
text-transform: none; white-space: normal; widows: auto;
word-spacing: 0px; -webkit-text-stroke-width: 0px;
background-color: rgb(255, 255, 255);">Cheers</div>
</body>
</html>