Latest devstack deploy on fedora fails with error

Bug #1684360 reported by Rabi Mishra
22
This bug affects 4 people
Affects Status Importance Assigned to Milestone
devstack
Fix Released
Undecided
Ian Wienand

Bug Description

Standard devstack deploy on fedora25 fails with the below error.

[Call Trace]
./stack.sh:1072:start_keystone
/home/stack/devstack/lib/keystone:563:die
[ERROR] /home/stack/devstack/lib/keystone:563 keystone did not start
Error on exit
World dumping... see /opt/stack/logs/worlddump-2017-04-20-034323.txt for details

It seems we've defaulted to use uwsgi and unix domain sockets recently and from the httpd error log I can see the following error.

[Thu Apr 20 10:02:10.077975 2017] [:error] [pid 2301] [client 192.168.0.71:42384] failed to make connection to backend: httpd-UDS:0
[Thu Apr 20 10:02:11.137116 2017] [proxy:error] [pid 2304] (2)No such file or directory: AH02454: uwsgi: attempt to connect to Unix domain socket /tmp/keystone-wsgi-public.socket (uwsgi-uds-keystone-wsgi-public) failed

So it seems httpd is not able to see the sockets due to PrivateTemp setting of httpd systemd unit file.

[Unit]
....
[Service]
....
PrivateTmp=true

Rabi Mishra (rabi)
Changed in devstack:
assignee: nobody → Rabi Mishra (rabi)
Revision history for this message
Ian Wienand (iwienand) wrote :

Yeah, I think centos has a similar issue in the gate. I haven't debugged it yet but let's keep looking...

Revision history for this message
Rabi Mishra (rabi) wrote :

I've fixed it locally by creating a custom dir /var/sockets with a+rwx permissions and used it here[1] and it works fine. But wanted to see if there is a better solution before I push the patch.

[1] https://github.com/openstack-dev/devstack/blob/master/lib/apache#L233

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

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

Changed in devstack:
status: New → In Progress
Changed in devstack:
assignee: Rabi Mishra (rabi) → Ian Wienand (iwienand)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to devstack (master)

Reviewed: https://review.openstack.org/458373
Committed: https://git.openstack.org/cgit/openstack-dev/devstack/commit/?id=aa26baacb8206967d61aef74686be94e3f8c90b8
Submitter: Jenkins
Branch: master

commit aa26baacb8206967d61aef74686be94e3f8c90b8
Author: rabi <email address hidden>
Date: Thu Apr 20 10:55:16 2017 +0530

    Create custom dir for uwsgi domain sockets

    On Centos, apache has a private view of /tmp and thus can't see this
    socket, causing keystone to fail. This happened after
    I46294fb24e3c23fa19fcfd7d6c9ee8a932354702.

    Move it to /var/run.

    Closes-Bug: #1684360
    Change-Id: I47f091656802719c259752454ec88bf50760b967

Changed in devstack:
status: In Progress → Fix Released
Revision history for this message
souig amel (soumel) wrote :

can anyone explain it to me i am new in linux;
so you go to this "I46294fb24e3c23fa19fcfd7d6c9ee8a932354702." you download the file and move it to /var/run? that's it will it resolve that problem?

tags: added: infra openstack
Revision history for this message
Tom Barron (tpb) wrote :
Revision history for this message
Tom Barron (tpb) wrote :

Ian remarked to me on IRC that the "No such file or directory" business about "./python_plugin.so" is expected with pip install of uwsgi and is not a clue as to the failure, and indeed I am able to run devstack locally on CentOS 7.3 and keystone comes up fine even though it has that warning.

Locally I am running with screen:

2017-04-19 01:46:09.947 | +^[[38;5;242mfunctions-common:run_process:1563 ^[(B^[[m screen_process key-a '/usr/bin/uwsgi --ini /etc/keystone/keystone-uwsgi-admin.ini' ''

whereas in gate we have:

2017-04-24 11:17:39.587 | + lib/keystone:start_keystone:551 : run_process key-a '/usr/bin/uwsgi --ini /etc/keystone/keystone-uwsgi-admin.ini' ''

and hit the timeout waiting for keystone to start. I will restack locally with USE_SCREEN=False and compare logs again.

Revision history for this message
golfreeze (golfreeze) wrote :

###temp fixed for me.
cd /var/run
mkdir uwsgi
chmod 777 uwsgi

### restart keystone from devstack again
systemctl restart <email address hidden>

Try to login your dashboard.

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.