Add manila CI
This patch aims to fix and cleaup manila role and add CI into it. Changes it implements: * Fix endpoint creation * adds playbook.yml in examples to use integrated linters check * adds role CI tests using integrated repo * adds sqlite installation Depends-On: https://review.opendev.org/704163 Depends-On: https://review.opendev.org/702853 Depends-On: https://review.opendev.org/674653 Depends-On: https://review.opendev.org/703136 Change-Id: I0807180bd9b2ccbf2f1ebb6a72d74e9f0d126ba6
This commit is contained in:
parent
b84054cbc1
commit
a97cbbd565
@ -0,0 +1,6 @@
|
||||
---
|
||||
- name: Install Manila Share service
|
||||
hosts: localhost
|
||||
user: root
|
||||
roles:
|
||||
- role: "os_manila"
|
@ -174,6 +174,9 @@
|
||||
- name: "{{ manila_service_name }}"
|
||||
type: "{{ manila_service_type }}"
|
||||
description: "{{ manila_service_description }}"
|
||||
- name: "{{ manila_service_v2_name }}"
|
||||
type: "{{ manila_service_v2_type }}"
|
||||
description: "{{ manila_service_v2_description }}"
|
||||
when:
|
||||
- groups['manila_api'] | length > 0
|
||||
- manila_services['manila_api']['group'] in group_names
|
||||
|
@ -20,7 +20,6 @@
|
||||
flat: yes
|
||||
changed_when: false
|
||||
with_items: "{{ manila_rootwrap_files }}"
|
||||
when: item.condition | default(True)
|
||||
run_once: true
|
||||
|
||||
- name: Copy manila configs
|
||||
|
@ -91,6 +91,7 @@ token_cache_time = 300
|
||||
memcache_security_strategy = ENCRYPT
|
||||
memcache_secret_key = {{ memcached_encryption_key }}
|
||||
|
||||
{% if (manila_backends | to_json).find('manila.share.drivers.generic') != -1 %}
|
||||
[neutron]
|
||||
url = http://{{ internal_lb_vip_address }}:9696
|
||||
auth_url = {{ keystone_service_adminurl }}
|
||||
@ -121,3 +122,4 @@ region_name = {{ cinder_service_region | default(manila_service_region) }}
|
||||
project_name = {{ cinder_service_project_name | default("service") }}
|
||||
username = {{ cinder_service_user_name | default("cinder") }}
|
||||
password = {{ cinder_service_password }}
|
||||
{% endif %}
|
@ -56,6 +56,7 @@ manila_share_distro_packages:
|
||||
|
||||
manila_share_deps_distro_packages:
|
||||
- qemu-utils
|
||||
- sqlite3
|
||||
|
||||
manila_lvm_share_distro_packages:
|
||||
- dmeventd
|
||||
|
@ -43,6 +43,7 @@ manila_share_distro_packages: []
|
||||
|
||||
manila_share_deps_distro_packages:
|
||||
- "qemu-img{% if ansible_distribution_major_version|int <= 7 %}-ev{% endif %}"
|
||||
- sqlite
|
||||
|
||||
manila_lvm_share_distro_packages:
|
||||
- device-mapper-event
|
||||
|
@ -43,6 +43,7 @@ manila_share_distro_packages: []
|
||||
|
||||
manila_share_deps_distro_packages:
|
||||
- qemu-tools
|
||||
- sqlite3
|
||||
|
||||
manila_lvm_share_distro_packages:
|
||||
- device-mapper
|
||||
|
@ -16,4 +16,15 @@
|
||||
templates:
|
||||
- check-requirements
|
||||
- publish-openstack-docs-pti
|
||||
- openstack-ansible-linters-jobs
|
||||
- release-notes-jobs-python3
|
||||
check:
|
||||
jobs:
|
||||
- openstack-ansible-deploy-aio_metal-ubuntu-bionic
|
||||
- openstack-ansible-deploy-aio_metal-centos-7
|
||||
- openstack-ansible-deploy-aio_lxc-ubuntu-bionic:
|
||||
voting: false
|
||||
gate:
|
||||
jobs:
|
||||
- openstack-ansible-deploy-aio_metal-ubuntu-bionic
|
||||
- openstack-ansible-deploy-aio_metal-centos-7
|
||||
|
Loading…
Reference in New Issue
Block a user