Merge "Setup oslo.messaging extra packages for optional drivers"

This commit is contained in:
Zuul 2018-08-09 06:15:40 +00:00 committed by Gerrit Code Review
commit 3d5703d12a
2 changed files with 22 additions and 2 deletions

View File

@ -91,8 +91,6 @@ glance_enable_v2_api: True
# The registry service is scheduled for removal in the S cycle.
glance_enable_v2_registry: False
## RabbitMQ info
## Oslo Messaging Info
# RPC
@ -116,6 +114,10 @@ glance_oslomsg_notify_userid: "{{ glance_oslomsg_rpc_userid }}"
glance_oslomsg_notify_password: "{{ glance_oslomsg_rpc_password }}"
glance_oslomsg_notify_vhost: "{{ glance_oslomsg_rpc_vhost }}"
## (Qdrouterd) integration
# TODO(ansmith): Change structure when more backends will be supported
glance_oslomsg_amqp1_enabled: "{{ glance_oslomsg_rpc_transport == 'amqp' }}"
## Database info
glance_db_setup_host: "{{ ('galera_all' in groups) | ternary(groups['galera_all'][0], 'localhost') }}"
glance_galera_address: "{{ galera_address | default('127.0.0.1') }}"
@ -247,6 +249,9 @@ glance_pip_packages:
- uwsgi
- warlock
glance_optional_oslomsg_amqp1_pip_packages:
- oslo.messaging[amqp1]
glance_api_init_overrides: {}
glance_registry_init_overrides: {}

View File

@ -107,6 +107,21 @@
tags:
- skip_ansible_lint
- name: Install optional pip packages
pip:
name: "{{ glance_optional_oslomsg_amqp1_pip_packages }}"
state: "{{ glance_pip_package_state }}"
virtualenv: "{{ glance_bin | dirname }}"
virtualenv_site_packages: "no"
when: glance_oslomsg_amqp1_enabled
register: install_optional_packages
until: install_optional_packages is success
retries: 5
delay: 2
notify:
- Manage LB
- Restart glance services
- name: Record the need for a service restart
ini_file:
dest: "/etc/ansible/facts.d/openstack_ansible.fact"