diff options
| author | Eduardo Gonzalez <dabarren@gmail.com> | 2018-01-19 09:42:21 +0100 |
|---|---|---|
| committer | Jeffrey Zhang <zhang.lei.fly@gmail.com> | 2018-01-24 15:10:01 +0800 |
| commit | e0d37de9d0d43cc1c5ede8d3f42e271068590f4d (patch) | |
| tree | e439a4cad3937490577c5405add022acf9c0cb99 /tests | |
| parent | 7a8e41e78a17713b7508f9dbaa076d3603e17d52 (diff) | |
| download | kolla-ansible-e0d37de9d0d43cc1c5ede8d3f42e271068590f4d.tar.gz kolla-ansible-e0d37de9d0d43cc1c5ede8d3f42e271068590f4d.zip | |
Fixes ceph deploy gates
- Ceph images are not being built when using depends-on a kolla build
job.
- Sync inventory files with current ones which causes ceph to fail due
missing groups.
- Small corrections in ceph config.yml syntax.
- fix preparse the disk only once
- enable ceph nfs only when enable_ceph_nfs is true
Co-Authored-By: Jeffrey Zhang <zhang.lei.fly@gmail.com>
Change-Id: Id0c7963bf59e2af4944834dcd16589a638e78ba5
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/run.yml | 16 | ||||
| -rw-r--r-- | tests/templates/inventory.j2 | 46 |
2 files changed, 50 insertions, 12 deletions
diff --git a/tests/run.yml b/tests/run.yml index d1828402c..cb9d834a9 100644 --- a/tests/run.yml +++ b/tests/run.yml @@ -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 vars: kolla_inventory_path: "/etc/kolla/inventory" @@ -92,11 +102,6 @@ shell: "{{ kolla_ansible_src_dir }}/tools/generate_passwords.py" 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 template: 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 BUILD_IMAGE={{ need_build_image }} export KOLLA_SRC_DIR={{ ansible_env.HOME }}/src/git.openstack.org/openstack/kolla + export ACTION={{ scenario }} tools/setup_gate.sh executable: /bin/bash diff --git a/tests/templates/inventory.j2 b/tests/templates/inventory.j2 index bd2047841..2a3efbaad 100644 --- a/tests/templates/inventory.j2 +++ b/tests/templates/inventory.j2 @@ -10,11 +10,21 @@ {{ host }} ansible_host={{ hostvars[host]['ansible_host'] }} ansible_become=true ansible_user={{ hostvars[host]['ansible_user'] }} {% 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 %} {{ host }} ansible_host={{ hostvars[host]['ansible_host'] }} ansible_become=true ansible_user={{ hostvars[host]['ansible_user'] }} {% endfor %} +[compute:children] +inner-compute +external-compute + [storage] {% for host in hostvars %} {{ host }} ansible_host={{ hostvars[host]['ansible_host'] }} ansible_become=true ansible_user={{ hostvars[host]['ansible_user'] }} @@ -187,6 +197,9 @@ control [tacker:children] control +[vitrage:children] +control + # Tempest [tempest:children] control @@ -292,9 +305,15 @@ neutron neutron # Ceph +[ceph-mds:children] +ceph + [ceph-mgr:children] ceph +[ceph-nfs:children] +ceph + [ceph-mon:children] ceph @@ -488,18 +507,12 @@ sahara sahara # Ceilometer -[ceilometer-api:children] -ceilometer - [ceilometer-central:children] ceilometer [ceilometer-notification:children] ceilometer -[ceilometer-collector:children] -ceilometer - [ceilometer-compute:children] compute @@ -561,6 +574,9 @@ designate [designate-central:children] designate +[designate-producer:children] +designate + [designate-mdns:children] network @@ -598,3 +614,19 @@ tacker [tacker-conductor:children] tacker + +# Vitrage +[vitrage-api:children] +vitrage + +[vitrage-notifier:children] +vitrage + +[vitrage-graph:children] +vitrage + +[vitrage-collector:children] +vitrage + +[vitrage-ml:children] +vitrage |
