Skip to content

Synchronise master with upstream #73

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: stackhpc/master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 0 additions & 17 deletions playbooks/roles/bifrost-keystone-install/tasks/bootstrap.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,6 @@
--network-interface argument to "bifrost-cli install".
when: ('ansible_' + ans_network_interface) not in hostvars[inventory_hostname]

- name: "Get keystone-wsgi-public location"
shell: echo $(dirname $(which keystone-wsgi-public))
register: keystone_install_prefix
environment: "{{ bifrost_venv_env }}"

# NOTE(sean-k-mooney) only the MySQL db is started during bootstrapping.
# all other services are started in the Start phase.
- name: "Start database service"
Expand Down Expand Up @@ -195,18 +190,6 @@
group: "{{ nginx_user }}" # TODO(TheJulia): Split webserver user/group.
mode: "0755"

# Note(ashestakov): "copy" module in ansible doesn't support recursive
# copying on remote host. "cp" command used instead.
- name: "Copy keystone-wsgi-public to /var/www/keystone/public"
command: cp -r "{{ keystone_install_prefix.stdout }}/keystone-wsgi-public" /var/www/keystone/public

- name: "Ensure owner and mode of keystone-wsgi-public"
file:
path: /var/www/keystone/public
owner: "keystone"
group: "{{ nginx_user }}"
mode: "0754"

- name: "Bootstrap uWSGI"
include_role:
name: bifrost-uwsgi-install
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# {{ ansible_managed }}
[uwsgi]
module = keystone.wsgi.api:application
plugins = python

master = true
processes = 2
threads = 2
Expand All @@ -18,4 +21,3 @@ uid = keystone
gid = {{ nginx_user }}

chdir = /var/www/keystone/
wsgi-file = /var/www/keystone/public
4 changes: 4 additions & 0 deletions releasenotes/notes/keystone-uwsgi-fix-cd7e95d1f1fa8768.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
fixes:
- |
Fixes Keystone start-up by providing the correct WSGI entry point.