Merge "Fixes ceph deploy gates"
This commit is contained in:
commit
39d9327d29
@ -26,11 +26,11 @@
|
|||||||
- name: "ceph-rgw"
|
- name: "ceph-rgw"
|
||||||
group: ceph-rgw
|
group: ceph-rgw
|
||||||
- name: "ceph-mgr"
|
- name: "ceph-mgr"
|
||||||
group: "ceph-mgr"
|
group: ceph-mgr
|
||||||
- name: "ceph-mds"
|
- name: "ceph-mds"
|
||||||
group: "ceph-mds"
|
group: ceph-mds
|
||||||
- name: "ceph-nfs"
|
- name: "ceph-nfs"
|
||||||
group: "ceph-nfs"
|
group: ceph-nfs
|
||||||
|
|
||||||
- name: Copying over ceph.conf
|
- name: Copying over ceph.conf
|
||||||
vars:
|
vars:
|
||||||
|
@ -13,7 +13,9 @@
|
|||||||
when: inventory_hostname in groups['ceph-mgr']
|
when: inventory_hostname in groups['ceph-mgr']
|
||||||
|
|
||||||
- include: start_nfss.yml
|
- include: start_nfss.yml
|
||||||
when: inventory_hostname in groups['ceph-nfs']
|
when:
|
||||||
|
- enable_ceph_nfs | bool
|
||||||
|
- inventory_hostname in groups['ceph-nfs']
|
||||||
|
|
||||||
- include: bootstrap_osds.yml
|
- include: bootstrap_osds.yml
|
||||||
when: inventory_hostname in groups['ceph-osd']
|
when: inventory_hostname in groups['ceph-osd']
|
||||||
|
@ -1,4 +1,14 @@
|
|||||||
---
|
---
|
||||||
|
- hosts: all
|
||||||
|
vars:
|
||||||
|
kolla_ansible_src_dir: "src/{{ zuul.project.canonical_hostname }}/openstack/kolla-ansible"
|
||||||
|
kolla_ansible_full_src_dir: "{{ zuul.executor.work_root }}/{{ kolla_ansible_src_dir }}"
|
||||||
|
tasks:
|
||||||
|
- name: Prepare ceph disks
|
||||||
|
script: "{{ kolla_ansible_full_src_dir }}/tests/setup_ceph_disks.sh"
|
||||||
|
when: scenario == "ceph"
|
||||||
|
become: true
|
||||||
|
|
||||||
- hosts: primary
|
- hosts: primary
|
||||||
vars:
|
vars:
|
||||||
kolla_inventory_path: "/etc/kolla/inventory"
|
kolla_inventory_path: "/etc/kolla/inventory"
|
||||||
@ -92,11 +102,6 @@
|
|||||||
shell: "{{ kolla_ansible_src_dir }}/tools/generate_passwords.py"
|
shell: "{{ kolla_ansible_src_dir }}/tools/generate_passwords.py"
|
||||||
delegate_to: "primary"
|
delegate_to: "primary"
|
||||||
|
|
||||||
- name: Prepare ceph disks
|
|
||||||
script: "{{ kolla_ansible_full_src_dir }}/tests/setup_ceph_disks.sh"
|
|
||||||
when: scenario == "ceph"
|
|
||||||
become: true
|
|
||||||
|
|
||||||
- name: generate ceph config overrides
|
- name: generate ceph config overrides
|
||||||
template:
|
template:
|
||||||
src: "{{ kolla_ansible_full_src_dir }}/tests/templates/ceph-overrides.j2"
|
src: "{{ kolla_ansible_full_src_dir }}/tests/templates/ceph-overrides.j2"
|
||||||
@ -113,6 +118,7 @@
|
|||||||
export NODEPOOL_TARBALLS_MIRROR=http://{{ zuul_site_mirror_fqdn }}:8080/tarballs
|
export NODEPOOL_TARBALLS_MIRROR=http://{{ zuul_site_mirror_fqdn }}:8080/tarballs
|
||||||
export BUILD_IMAGE={{ need_build_image }}
|
export BUILD_IMAGE={{ need_build_image }}
|
||||||
export KOLLA_SRC_DIR={{ ansible_env.HOME }}/src/git.openstack.org/openstack/kolla
|
export KOLLA_SRC_DIR={{ ansible_env.HOME }}/src/git.openstack.org/openstack/kolla
|
||||||
|
export ACTION={{ scenario }}
|
||||||
|
|
||||||
tools/setup_gate.sh
|
tools/setup_gate.sh
|
||||||
executable: /bin/bash
|
executable: /bin/bash
|
||||||
|
@ -10,11 +10,21 @@
|
|||||||
{{ host }} ansible_host={{ hostvars[host]['ansible_host'] }} ansible_become=true ansible_user={{ hostvars[host]['ansible_user'] }}
|
{{ host }} ansible_host={{ hostvars[host]['ansible_host'] }} ansible_become=true ansible_user={{ hostvars[host]['ansible_user'] }}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
[compute]
|
# inner-compute is the groups of compute nodes which do not have
|
||||||
|
# external reachability
|
||||||
|
[inner-compute]
|
||||||
|
|
||||||
|
# external-compute is the groups of compute nodes which can reach
|
||||||
|
# outside
|
||||||
|
[external-compute]
|
||||||
{% for host in hostvars %}
|
{% for host in hostvars %}
|
||||||
{{ host }} ansible_host={{ hostvars[host]['ansible_host'] }} ansible_become=true ansible_user={{ hostvars[host]['ansible_user'] }}
|
{{ host }} ansible_host={{ hostvars[host]['ansible_host'] }} ansible_become=true ansible_user={{ hostvars[host]['ansible_user'] }}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
|
[compute:children]
|
||||||
|
inner-compute
|
||||||
|
external-compute
|
||||||
|
|
||||||
[storage]
|
[storage]
|
||||||
{% for host in hostvars %}
|
{% for host in hostvars %}
|
||||||
{{ host }} ansible_host={{ hostvars[host]['ansible_host'] }} ansible_become=true ansible_user={{ hostvars[host]['ansible_user'] }}
|
{{ host }} ansible_host={{ hostvars[host]['ansible_host'] }} ansible_become=true ansible_user={{ hostvars[host]['ansible_user'] }}
|
||||||
@ -187,6 +197,9 @@ control
|
|||||||
[tacker:children]
|
[tacker:children]
|
||||||
control
|
control
|
||||||
|
|
||||||
|
[vitrage:children]
|
||||||
|
control
|
||||||
|
|
||||||
# Tempest
|
# Tempest
|
||||||
[tempest:children]
|
[tempest:children]
|
||||||
control
|
control
|
||||||
@ -292,9 +305,15 @@ neutron
|
|||||||
neutron
|
neutron
|
||||||
|
|
||||||
# Ceph
|
# Ceph
|
||||||
|
[ceph-mds:children]
|
||||||
|
ceph
|
||||||
|
|
||||||
[ceph-mgr:children]
|
[ceph-mgr:children]
|
||||||
ceph
|
ceph
|
||||||
|
|
||||||
|
[ceph-nfs:children]
|
||||||
|
ceph
|
||||||
|
|
||||||
[ceph-mon:children]
|
[ceph-mon:children]
|
||||||
ceph
|
ceph
|
||||||
|
|
||||||
@ -488,18 +507,12 @@ sahara
|
|||||||
sahara
|
sahara
|
||||||
|
|
||||||
# Ceilometer
|
# Ceilometer
|
||||||
[ceilometer-api:children]
|
|
||||||
ceilometer
|
|
||||||
|
|
||||||
[ceilometer-central:children]
|
[ceilometer-central:children]
|
||||||
ceilometer
|
ceilometer
|
||||||
|
|
||||||
[ceilometer-notification:children]
|
[ceilometer-notification:children]
|
||||||
ceilometer
|
ceilometer
|
||||||
|
|
||||||
[ceilometer-collector:children]
|
|
||||||
ceilometer
|
|
||||||
|
|
||||||
[ceilometer-compute:children]
|
[ceilometer-compute:children]
|
||||||
compute
|
compute
|
||||||
|
|
||||||
@ -561,6 +574,9 @@ designate
|
|||||||
[designate-central:children]
|
[designate-central:children]
|
||||||
designate
|
designate
|
||||||
|
|
||||||
|
[designate-producer:children]
|
||||||
|
designate
|
||||||
|
|
||||||
[designate-mdns:children]
|
[designate-mdns:children]
|
||||||
network
|
network
|
||||||
|
|
||||||
@ -598,3 +614,19 @@ tacker
|
|||||||
|
|
||||||
[tacker-conductor:children]
|
[tacker-conductor:children]
|
||||||
tacker
|
tacker
|
||||||
|
|
||||||
|
# Vitrage
|
||||||
|
[vitrage-api:children]
|
||||||
|
vitrage
|
||||||
|
|
||||||
|
[vitrage-notifier:children]
|
||||||
|
vitrage
|
||||||
|
|
||||||
|
[vitrage-graph:children]
|
||||||
|
vitrage
|
||||||
|
|
||||||
|
[vitrage-collector:children]
|
||||||
|
vitrage
|
||||||
|
|
||||||
|
[vitrage-ml:children]
|
||||||
|
vitrage
|
||||||
|
@ -160,10 +160,6 @@ setup_node
|
|||||||
tools/kolla-ansible -i ${RAW_INVENTORY} bootstrap-servers > /tmp/logs/ansible/bootstrap-servers
|
tools/kolla-ansible -i ${RAW_INVENTORY} bootstrap-servers > /tmp/logs/ansible/bootstrap-servers
|
||||||
prepare_images
|
prepare_images
|
||||||
|
|
||||||
if echo $ACTION | grep -q "ceph"; then
|
|
||||||
ansible-playbook -i ${RAW_INVENTORY} tests/ansible_setup_ceph_disks.yml > /tmp/logs/ansible/setup_ceph_disks
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Create dummy interface for neutron
|
# Create dummy interface for neutron
|
||||||
ansible -m shell -i ${RAW_INVENTORY} -a "ip l a fake_interface type dummy" all
|
ansible -m shell -i ${RAW_INVENTORY} -a "ip l a fake_interface type dummy" all
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user