vars: Do not install build dependencies for distro installs
The cinder_distro_packages contain packages which are build dependencies to the 'PIP' ones so we don't need to install them when we are using the Cinder distribution packages. This also renames the '*cinder_wsgi_bin' to '*cinder_uwsgi_bin' since it refers to the actual uwsgi package. Finally, we add the missing 'install_method' conditional when recording the local facts. Change-Id: Ib6f3a85dd20c61611e968baffd4e3c725d9e39b3 Implements: blueprint openstack-distribution-packages
This commit is contained in:
@@ -307,7 +307,7 @@ cinder_services:
|
|||||||
wsgi_name: cinder-wsgi
|
wsgi_name: cinder-wsgi
|
||||||
uwsgi_port: "{{ cinder_service_port }}"
|
uwsgi_port: "{{ cinder_service_port }}"
|
||||||
uwsgi_bind_address: "{{ cinder_uwsgi_bind_address }}"
|
uwsgi_bind_address: "{{ cinder_uwsgi_bind_address }}"
|
||||||
program_override: "{{ _cinder_wsgi_bin }}/uwsgi --autoload --ini /etc/uwsgi/cinder-api.ini"
|
program_override: "{{ cinder_uwsgi_bin }}/uwsgi --autoload --ini /etc/uwsgi/cinder-api.ini"
|
||||||
start_order: 4
|
start_order: 4
|
||||||
|
|
||||||
# Cinder uWSGI settings
|
# Cinder uWSGI settings
|
||||||
|
|||||||
@@ -32,8 +32,8 @@
|
|||||||
ini_file:
|
ini_file:
|
||||||
dest: "/etc/ansible/facts.d/openstack_ansible.fact"
|
dest: "/etc/ansible/facts.d/openstack_ansible.fact"
|
||||||
section: cinder
|
section: cinder
|
||||||
option: "{{ item }}"
|
option: "{{ item.name }}"
|
||||||
value: "True"
|
value: "{{ item.state }}"
|
||||||
with_items:
|
with_items:
|
||||||
- name: "need_online_data_migrations"
|
- name: "need_online_data_migrations"
|
||||||
state: "True"
|
state: "True"
|
||||||
@@ -49,4 +49,5 @@
|
|||||||
('openstack_ansible' not in ansible_local) or
|
('openstack_ansible' not in ansible_local) or
|
||||||
('cinder' not in ansible_local['openstack_ansible']) or
|
('cinder' not in ansible_local['openstack_ansible']) or
|
||||||
('need_online_data_migrations' not in ansible_local['openstack_ansible']['cinder']) or
|
('need_online_data_migrations' not in ansible_local['openstack_ansible']['cinder']) or
|
||||||
('need_service_restart' not in ansible_local['openstack_ansible']['cinder'])
|
('need_service_restart' not in ansible_local['openstack_ansible']['cinder']) or
|
||||||
|
('install_method' not in ansible_local['openstack_ansible']['cinder'])
|
||||||
|
|||||||
@@ -19,7 +19,7 @@
|
|||||||
# enabled.
|
# enabled.
|
||||||
#
|
#
|
||||||
cinder_package_list: |-
|
cinder_package_list: |-
|
||||||
{% set packages = cinder_distro_packages %}
|
{% set packages = cinder_service_distro_packages %}
|
||||||
{% if cinder_services['cinder-volume']['group'] in group_names %}
|
{% if cinder_services['cinder-volume']['group'] in group_names %}
|
||||||
{% set _ = packages.extend(cinder_volume_distro_packages) %}
|
{% set _ = packages.extend(cinder_volume_distro_packages) %}
|
||||||
{% if cinder_backend_lvm_inuse | bool %}
|
{% if cinder_backend_lvm_inuse | bool %}
|
||||||
@@ -29,8 +29,6 @@ cinder_package_list: |-
|
|||||||
{% if cinder_developer_mode | bool %}
|
{% if cinder_developer_mode | bool %}
|
||||||
{% set _ = packages.extend(cinder_developer_mode_distro_packages) %}
|
{% set _ = packages.extend(cinder_developer_mode_distro_packages) %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% set _ = packages.extend(cinder_service_distro_packages) %}
|
|
||||||
{{ packages }}
|
{{ packages }}
|
||||||
|
|
||||||
_cinder_bin: "/usr/bin"
|
_cinder_bin: "/usr/bin"
|
||||||
_cinder_wsgi_bin: "{{ cinder_wsgi_bin }}"
|
|
||||||
|
|||||||
@@ -47,4 +47,4 @@ cinder_lvm_volume_distro_packages:
|
|||||||
- parted
|
- parted
|
||||||
- scsi-target-utils
|
- scsi-target-utils
|
||||||
|
|
||||||
cinder_wsgi_bin: '/usr/sbin'
|
cinder_uwsgi_bin: '/usr/sbin'
|
||||||
|
|||||||
@@ -32,4 +32,4 @@ cinder_package_list: |-
|
|||||||
{{ packages }}
|
{{ packages }}
|
||||||
|
|
||||||
_cinder_bin: "/openstack/venvs/cinder-{{ cinder_venv_tag }}/bin"
|
_cinder_bin: "/openstack/venvs/cinder-{{ cinder_venv_tag }}/bin"
|
||||||
_cinder_wsgi_bin: "{{ _cinder_bin }}"
|
cinder_uwsgi_bin: "{{ _cinder_bin }}"
|
||||||
|
|||||||
@@ -52,4 +52,4 @@ cinder_lvm_volume_distro_packages:
|
|||||||
- parted
|
- parted
|
||||||
- tgt
|
- tgt
|
||||||
|
|
||||||
cinder_wsgi_bin: '/usr/sbin'
|
cinder_uwsgi_bin: '/usr/sbin'
|
||||||
|
|||||||
@@ -58,4 +58,4 @@ cinder_lvm_volume_distro_packages:
|
|||||||
- tgt
|
- tgt
|
||||||
- thin-provisioning-tools
|
- thin-provisioning-tools
|
||||||
|
|
||||||
cinder_wsgi_bin: '/usr/bin'
|
cinder_uwsgi_bin: '/usr/bin'
|
||||||
|
|||||||
@@ -22,7 +22,9 @@
|
|||||||
- openstack-ansible-upgrade-ubuntu-xenial
|
- openstack-ansible-upgrade-ubuntu-xenial
|
||||||
- openstack-ansible-cinder-ssl-nv
|
- openstack-ansible-cinder-ssl-nv
|
||||||
- openstack-ansible-functional-distro_install-ubuntu-xenial
|
- openstack-ansible-functional-distro_install-ubuntu-xenial
|
||||||
- openstack-ansible-functional-distro_install-centos-7
|
# NOTE(hwoarang) Centos7 is having some troubles with repo dependencies
|
||||||
|
# so disabling until it's investigated.
|
||||||
|
- openstack-ansible-functional-distro_install-centos-7-nv
|
||||||
- openstack-ansible-functional-distro_install-opensuse-423
|
- openstack-ansible-functional-distro_install-opensuse-423
|
||||||
experimental:
|
experimental:
|
||||||
jobs:
|
jobs:
|
||||||
|
|||||||
Reference in New Issue
Block a user