From 0d4b99404946d1cbffcd814657d02d9deb9442ac Mon Sep 17 00:00:00 2001 From: Dmitriy Rabotyagov Date: Mon, 26 Sep 2022 20:43:44 +0200 Subject: [PATCH] Add nfs and ceph jobs to templates With changing cinder code we potentially can break some backends. In order to detect this in time we are adding ceph and nfs scenarios. We also fix lvm backend for use on RedHat. Depends-On: https://review.opendev.org/c/openstack/openstack-ansible/+/859339 Change-Id: Ifceb2b816199339ec7725bd95cc890595eed95d9 --- tasks/cinder_post_install.yml | 10 ++++++++++ vars/redhat.yml | 2 +- zuul.d/project.yaml | 2 ++ 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/tasks/cinder_post_install.yml b/tasks/cinder_post_install.yml index 0ec73af6..a8b59bb8 100644 --- a/tasks/cinder_post_install.yml +++ b/tasks/cinder_post_install.yml @@ -146,6 +146,16 @@ - "cinder_target_helper == 'tgtadm'" - cinder_backend_lvm_inuse | bool +- name: Ensure iscsi service is started + service: + name: "{{ tgt_service_name }}" + state: started + enabled: true + when: + - "cinder_services['cinder-volume']['group'] in group_names" + - "cinder_target_helper == 'lioadm'" + - cinder_backend_lvm_inuse | bool + - name: Create nfs shares export file template: src: nfs_shares.j2 diff --git a/vars/redhat.yml b/vars/redhat.yml index b5f9cb50..73a0e575 100644 --- a/vars/redhat.yml +++ b/vars/redhat.yml @@ -14,7 +14,7 @@ # limitations under the License. # service names -tgt_service_name: tgtd +tgt_service_name: iscsid # Common yum packages cinder_distro_packages: diff --git a/zuul.d/project.yaml b/zuul.d/project.yaml index d9a9cf24..fa06cd80 100644 --- a/zuul.d/project.yaml +++ b/zuul.d/project.yaml @@ -19,5 +19,7 @@ - openstack-ansible-linters-jobs - openstack-ansible-deploy-aio_metal-jobs - openstack-ansible-deploy-aio_distro_metal-jobs + - openstack-ansible-deploy-ceph-jobs + - openstack-ansible-deploy-nfs-jobs - publish-openstack-docs-pti - build-release-notes-jobs-python3