13.3.13
During the upgrades, the venv path will change and therefore the apache configuration file will change too. However we apply the restart of apache after the keystone_service_setup for nodes [1:] (the first node gets restarted as first task of the keystone_service_setup). So during an upgrade, because apache is up, the configuration file has changed but apache still serves the old code (because not restarted yet on the nodes 1 and above) when the keystone_service_setup is applied. The keystone module can then hit any node in the load balancer, which could be a different version. This commit fixes the issue by ensuring apache is restarted and therefore runs the latest code. Change-Id: Iac94a8fc337c2139d1876b9753e46815910a0ba0 Signed-off-by: Jean-Philippe Evrard <jean-philippe.evrard@rackspace.co.uk>
OpenStack-Ansible Keystone
Ansible role that installs and configures OpenStack Keystone. Keystone is installed behind the Apache webserver listening on port 5000 and port 35357 by default.
Default Variables
../../defaults/main.yml
Required Variables
This list is not exhaustive at present. See role internals for further details.
# hostname or IP of load balancer providing external network
# access to Keystone
external_lb_vip_address: 10.100.100.102
# hostname or IP of load balancer providing internal network
# access to Keystone
internal_lb_vip_address: 10.100.100.102
# password used by the keystone service to interact with Galera
keystone_container_mysql_password: "YourPassword"
keystone_auth_admin_password: "SuperSecretePassword"
keystone_service_password: "secrete"
keystone_rabbitmq_password: "secrete"
keystone_container_mysql_password: "SuperSecrete"Example Playbook
- name: Installation and setup of Keystone
hosts: keystone_all
user: root
roles:
- { role: "os_keystone", tags: [ "os-keystone" ] }
vars:
external_lb_vip_address: 10.100.100.102
internal_lb_vip_address: 10.100.100.102
keystone_galera_address: 10.100.100.101
keystone_galera_database: keystone
keystone_venv_tag: "testing"
keystone_developer_mode: true
keystone_git_install_branch: stable/mitaka
keystone_auth_admin_password: "SuperSecretePassword"
keystone_service_password: "secrete"
keystone_rabbitmq_password: "secrete"
keystone_container_mysql_password: "SuperSecrete"
keystone_rabbitmq_port: 5671
keystone_rabbitmq_userid: keystone
keystone_rabbitmq_vhost: /keystone
keystone_rabbitmq_servers: 10.100.100.101
keystone_rabbitmq_use_ssl: true
galera_client_drop_config_file: falseDescription
Languages
Jinja
70.1%
Python
29.9%