Rename cinder distro packages to match convention

This patch splits distro variables into two:
- cinder_*_distro_packages defines dependant packages
- cinder_*_service_distro_packages defines cinder service packages itself

So that we're installing cinder_*_distro_packages both for source and distro
installs while cinder_*_service_distro_packages are only for distro ones.

Also since only qemu-tools depends on librbd, we leave it alone in
cinder_volume_distro_packages_tools.

Change-Id: I746c800dc75b39f57f7c707aedf35f6814cfdef0
This commit is contained in:
Dmitriy Rabotyagov 2019-09-04 07:50:49 +03:00
parent c4efbadb0f
commit 75d0f298c6
5 changed files with 23 additions and 6 deletions

View File

@ -49,10 +49,12 @@ cinder_api_distro_packages:
- uwsgi - uwsgi
- uwsgi-plugin-python3 - uwsgi-plugin-python3
cinder_volume_distro_packages: [] cinder_volume_service_distro_packages: []
cinder_volume_distro_packages_tools: cinder_volume_distro_packages_tools:
- qemu-utils - qemu-utils
cinder_volume_distro_packages:
- open-iscsi - open-iscsi
- nfs-common - nfs-common
- rpcbind - rpcbind
@ -64,6 +66,8 @@ cinder_lvm_volume_distro_packages:
- tgt - tgt
- thin-provisioning-tools - thin-provisioning-tools
cinder_backup_service_distro_packages: []
cinder_backup_distro_packages: cinder_backup_distro_packages:
- open-iscsi - open-iscsi
- nfs-common - nfs-common

View File

@ -25,16 +25,18 @@ cinder_package_list: |-
{% endif %} {% endif %}
{% 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) %}
{% set _ = packages.extend(cinder_volume_service_distro_packages) %}
{% if cinder_backend_lvm_inuse | bool %} {% if cinder_backend_lvm_inuse | bool %}
{% set _ = packages.extend(cinder_lvm_volume_distro_packages) %} {% set _ = packages.extend(cinder_lvm_volume_distro_packages) %}
{% endif %} {% endif %}
{% endif %} {% endif %}
{% if cinder_services['cinder-backup']['group'] in group_names %} {% if cinder_services['cinder-backup']['group'] in group_names %}
{% set _ = packages.extend(cinder_backup_distro_packages) %} {% set _ = packages.extend(cinder_backup_distro_packages) %}
{% set _ = packages.extend(cinder_backup_service_distro_packages) %}
{% endif %} {% endif %}
{% if cinder_oslomsg_amqp1_enabled | bool %} {% if cinder_oslomsg_amqp1_enabled | bool %}
{% set _ = packages.extend(cinder_oslomsg_amqp1_distro_packages) %} {% set _ = packages.extend(cinder_oslomsg_amqp1_distro_packages) %}
{% endif %} {% endif %}
{{ packages }} {{ packages | unique }}
_cinder_bin: "/usr/bin" _cinder_bin: "/usr/bin"

View File

@ -41,10 +41,12 @@ cinder_api_distro_packages:
- uwsgi - uwsgi
- uwsgi-plugin-python - uwsgi-plugin-python
cinder_volume_distro_packages: [] cinder_volume_service_distro_packages: []
cinder_volume_distro_packages_tools: cinder_volume_distro_packages_tools:
- "qemu-img{% if ansible_distribution_major_version|int <= 7 %}-ev{% endif %}" - "qemu-img{% if ansible_distribution_major_version|int <= 7 %}-ev{% endif %}"
cinder_volume_distro_packages:
- iscsi-initiator-utils - iscsi-initiator-utils
- nfs-utils - nfs-utils
- rpcbind - rpcbind
@ -55,6 +57,8 @@ cinder_lvm_volume_distro_packages:
- parted - parted
- targetcli - targetcli
cinder_backup_service_distro_packages: []
cinder_backup_distro_packages: cinder_backup_distro_packages:
- iscsi-initiator-utils - iscsi-initiator-utils
- nfs-utils - nfs-utils

View File

@ -26,10 +26,13 @@ cinder_package_list: |-
{% set _ = packages.extend(cinder_lvm_volume_distro_packages) %} {% set _ = packages.extend(cinder_lvm_volume_distro_packages) %}
{% endif %} {% endif %}
{% endif %} {% endif %}
{% if cinder_services['cinder-backup']['group'] in group_names %}
{% set _ = packages.extend(cinder_backup_distro_packages) %}
{% endif %}
{% if cinder_oslomsg_amqp1_enabled | bool %} {% if cinder_oslomsg_amqp1_enabled | bool %}
{% set _ = packages.extend(cinder_oslomsg_amqp1_distro_packages) %} {% set _ = packages.extend(cinder_oslomsg_amqp1_distro_packages) %}
{% endif %} {% endif %}
{{ packages }} {{ packages | unique }}
_cinder_bin: "/openstack/venvs/cinder-{{ cinder_venv_tag }}/bin" _cinder_bin: "/openstack/venvs/cinder-{{ cinder_venv_tag }}/bin"
cinder_uwsgi_bin: "{{ _cinder_bin }}" cinder_uwsgi_bin: "{{ _cinder_bin }}"

View File

@ -41,11 +41,13 @@ cinder_devel_distro_packages:
- systemd-devel - systemd-devel
- zlib-devel - zlib-devel
cinder_volume_distro_packages: cinder_volume_service_distro_packages:
- openstack-cinder-volume - openstack-cinder-volume
cinder_volume_distro_packages_tools: cinder_volume_distro_packages_tools:
- qemu-tools - qemu-tools
cinder_volume_distro_packages:
- open-iscsi - open-iscsi
- nfs-utils - nfs-utils
- rpcbind - rpcbind
@ -56,8 +58,10 @@ cinder_lvm_volume_distro_packages:
- parted - parted
- tgt - tgt
cinder_backup_distro_packages: cinder_backup_service_distro_packages:
- openstack-cinder-backup - openstack-cinder-backup
cinder_backup_distro_packages:
- open-iscsi - open-iscsi
- nfs-utils - nfs-utils
- rpcbind - rpcbind