Added serial option to site.yml.

Useful for upgrade etc., which is preferablly done serially.

Example usage: tools/kolla-ansible deploy OR tools/kolla-ansible upgrade

Closes-Bug: #1576708

DocImpact

Change-Id: I34b2e16f8ce53e472a4682a4738c4ac0f5abf00c
This commit is contained in:
Mick Thompson 2016-09-08 11:07:22 +01:00 committed by Paul Bourke
parent a9c98ba58c
commit 4c1482b999
52 changed files with 34 additions and 57 deletions

View File

@ -1,7 +1,6 @@
---
- include: do_reconfigure.yml
serial: "30%"
when: inventory_hostname in groups['aodh-api']
or inventory_hostname in groups['aodh-listener']
or inventory_hostname in groups['aodh-evaluator']
or inventory_hostname in groups['aodh-notifier']
or inventory_hostname in groups['aodh-notifier']

View File

@ -1,6 +1,5 @@
---
- include: do_reconfigure.yml
serial: "30%"
when: inventory_hostname in groups['ceilometer-api']
or inventory_hostname in groups['ceilometer-central']
or inventory_hostname in groups['ceilometer-notification']

View File

@ -4,4 +4,3 @@
- include: bootstrap_service.yml
- include: start.yml
serial: "30%"

View File

@ -1,6 +1,5 @@
---
- include: do_reconfigure.yml
serial: "30%"
when: inventory_hostname in groups['ceph-mon']
or inventory_hostname in groups['ceph-rgw']
or inventory_hostname in groups['ceph-osd']

View File

@ -2,15 +2,12 @@
- include: config.yml
- include: start_mons.yml
serial: "1"
when: inventory_hostname in groups['ceph-mon']
- include: start_osds.yml
serial: "1"
when: inventory_hostname in groups['ceph-osd']
- include: start_rgws.yml
serial: "30%"
when:
- inventory_hostname in groups['ceph-rgw']
- enable_ceph_rgw | bool

View File

@ -1,6 +1,5 @@
---
- include: do_reconfigure.yml
serial: "30%"
when: inventory_hostname in groups['cinder-api']
or inventory_hostname in groups['cinder-scheduler']
or inventory_hostname in groups['cinder-volume']

View File

@ -4,4 +4,3 @@
- include: bootstrap_service.yml
- include: start.yml
serial: "30%"

View File

@ -1,5 +1,4 @@
---
- include: do_reconfigure.yml
serial: "30%"
when: inventory_hostname in groups['cloudkitty-api']
or inventory_hostname in groups['cloudkitty-processor']

View File

@ -4,4 +4,3 @@
- include: bootstrap_service.yml
- include: start.yml
serial: "30%"

View File

@ -1,3 +1,2 @@
---
- include: do_reconfigure.yml
serial: "30%"

View File

@ -1,4 +1,3 @@
---
- include: do_reconfigure.yml
serial: "30%"
when: inventory_hostname in groups ['elasticsearch']

View File

@ -2,4 +2,3 @@
- include: config.yml
- include: start.yml
serial: "30%"

View File

@ -1,5 +1,4 @@
---
- include: do_reconfigure.yml
serial: "30%"
when: inventory_hostname in groups['glance-api']
or inventory_hostname in groups['glance-registry']

View File

@ -4,4 +4,3 @@
- include: bootstrap_service.yml
- include: start.yml
serial: "30%"

View File

@ -1,6 +1,5 @@
---
- include: do_reconfigure.yml
serial: "30%"
when: inventory_hostname in groups['gnocchi-api']
or inventory_hostname in groups['gnocchi-metricd']
or inventory_hostname in groups['gnocchi-statsd']

View File

@ -1,4 +1,3 @@
---
- include: do_reconfigure.yml
serial: "30%"
when: inventory_hostname in groups['haproxy']

View File

@ -1,6 +1,5 @@
---
- include: do_reconfigure.yml
serial: "30%"
when: inventory_hostname in groups['heat-api']
or inventory_hostname in groups['heat-api-cfn']
or inventory_hostname in groups['heat-engine']

View File

@ -4,4 +4,3 @@
- include: bootstrap_service.yml
- include: start.yml
serial: "30%"

View File

@ -1,4 +1,3 @@
---
- include: do_reconfigure.yml
serial: "30%"
when: inventory_hostname in groups['horizon']

View File

@ -2,4 +2,3 @@
- include: config.yml
- include: start.yml
serial: "30%"

View File

@ -1,6 +1,5 @@
---
- include: do_reconfigure.yml
serial: "30%"
when: inventory_hostname in groups['ironic-pxe']
or inventory_hostname in groups['ironic-api']
or inventory_hostname in groups['ironic-conductor']

View File

@ -4,4 +4,3 @@
- include: bootstrap_service.yml
- include: start.yml
serial: "30%"

View File

@ -2,4 +2,3 @@
- include: config.yml
- include: start.yml
serial: "30%"

View File

@ -1,4 +1,3 @@
---
- include: do_reconfigure.yml
serial: "30%"
when: inventory_hostname in groups['keystone']

View File

@ -4,4 +4,3 @@
- include: bootstrap_service.yml
- include: start.yml
serial: "30%"

View File

@ -1,5 +1,4 @@
---
- include: do_reconfigure.yml
serial: "30%"
when: inventory_hostname in groups['magnum-api']
or inventory_hostname in groups['magnum-conductor']

View File

@ -4,4 +4,3 @@
- include: bootstrap_service.yml
- include: start.yml
serial: "30%"

View File

@ -1,6 +1,5 @@
---
- include: do_reconfigure.yml
serial: "30%"
when: inventory_hostname in groups['manila-api']
or inventory_hostname in groups['manila-scheduler']
or inventory_hostname in groups['manila-share']

View File

@ -4,4 +4,3 @@
- include: bootstrap_service.yml
- include: start.yml
serial: "30%"

View File

@ -1,4 +1,3 @@
---
- include: do_reconfigure.yml
serial: "30%"
when: inventory_hostname in groups['mariadb']

View File

@ -4,6 +4,5 @@
- include: lookup_cluster.yml
- include: do_upgrade.yml
serial: "30%"
- include: check.yml

View File

@ -1,4 +1,3 @@
---
- include: do_reconfigure.yml
serial: "30%"
when: inventory_hostname in groups ['memcached']

View File

@ -2,4 +2,3 @@
- include: config.yml
- include: start.yml
serial: "30%"

View File

@ -1,6 +1,5 @@
---
- include: do_reconfigure.yml
serial: "30%"
when: inventory_hostname in groups['mistral-api']
or inventory_hostname in groups['mistral-engine']
or inventory_hostname in groups['mistral-executor']

View File

@ -4,4 +4,3 @@
- include: bootstrap_service.yml
- include: start.yml
serial: "30%"

View File

@ -1,4 +1,3 @@
---
- include: do_reconfigure.yml
serial: "30%"
when: inventory_hostname in groups['mongodb']

View File

@ -2,4 +2,3 @@
- include: config.yml
- include: start.yml
serial: "30%"

View File

@ -1,5 +1,4 @@
---
- include: do_reconfigure.yml
serial: "30%"
when: inventory_hostname in groups['murano-api']
or inventory_hostname in groups['murano-engine']

View File

@ -4,4 +4,3 @@
- include: bootstrap_service.yml
- include: start.yml
serial: "30%"

View File

@ -1,6 +1,5 @@
---
- include: do_reconfigure.yml
serial: "30%"
when: inventory_hostname in groups['neutron-server']
or (enable_manila | bool and inventory_hostname in groups['manila-share'])
or inventory_hostname in groups['compute']

View File

@ -16,7 +16,6 @@
when: inventory_hostname in groups['neutron-server']
- include: start.yml
serial: "%30"
when: inventory_hostname in groups['compute']
or inventory_hostname in groups['neutron-dhcp-agent']
or inventory_hostname in groups['neutron-l3-agent']

View File

@ -1,6 +1,5 @@
---
- include: do_reconfigure.yml
serial: "30%"
when: inventory_hostname in groups['compute']
or inventory_hostname in groups['nova-conductor']
or inventory_hostname in groups['nova-api']

View File

@ -32,10 +32,7 @@
- include: start_conductors.yml
- include: start_controllers.yml
serial: "30%"
- include: start_compute.yml
serial: "10%"
- include: reload.yml
serial: "30%"

View File

@ -1,4 +1,3 @@
---
- include: do_reconfigure.yml
serial: "30%"
when: inventory_hostname in groups['rabbitmq']

View File

@ -1,3 +1,2 @@
---
- include: do_reconfigure.yml
serial: "30%"

View File

@ -1,5 +1,4 @@
---
- include: do_reconfigure.yml
serial: "30%"
when: inventory_hostname in groups['sahara-api']
or inventory_hostname in groups['sahara-engine']
or inventory_hostname in groups['sahara-engine']

View File

@ -1,6 +1,5 @@
---
- include: do_reconfigure.yml
serial: "30%"
when: inventory_hostname in groups['swift-account-server'] or
inventory_hostname in groups['swift-container-server'] or
inventory_hostname in groups['swift-object-server'] or

View File

@ -2,4 +2,3 @@
- include: config.yml
- include: stop_and_start.yml
serial: "30%"

View File

@ -1,3 +1,2 @@
---
- include: do_reconfigure.yml
serial: "30%"

View File

@ -1,6 +1,5 @@
---
- include: do_reconfigure.yml
serial: "30%"
when: inventory_hostname in groups['watcher-api']
or inventory_hostname in groups['watcher-engine']
or inventory_hostname in groups['watcher-applier']

View File

@ -4,4 +4,3 @@
- include: bootstrap_service.yml
- include: start.yml
serial: "30%"

View File

@ -3,6 +3,7 @@
- ceph-mon
- ceph-osd
- ceph-rgw
serial: '{{ "30%" if action == "upgrade" else "0" }}'
roles:
- { role: ceph,
tags: ceph,
@ -15,6 +16,7 @@
when: enable_collectd | bool }
- hosts: elasticsearch
serial: '{{ "30%" if action == "upgrade" else "0" }}'
roles:
- { role: elasticsearch,
tags: elasticsearch,
@ -27,24 +29,28 @@
when: enable_influxdb | bool }
- hosts: haproxy
serial: '{{ "30%" if action == "upgrade" else "0" }}'
roles:
- { role: haproxy,
tags: haproxy,
when: enable_haproxy | bool }
- hosts: kibana
serial: '{{ "30%" if action == "upgrade" else "0" }}'
roles:
- { role: kibana,
tags: kibana,
when: enable_kibana | bool }
- hosts: memcached
serial: '{{ "30%" if action == "upgrade" else "0" }}'
roles:
- { role: memcached,
tags: [memcache, memcached],
when: enable_memcached | bool }
- hosts: mariadb
serial: '{{ "30%" if action == "upgrade" else "0" }}'
roles:
- { role: mariadb,
tags: mariadb,
@ -53,6 +59,7 @@
- hosts:
- iscsid
- tgtd
serial: '{{ "30%" if action == "upgrade" else "0" }}'
roles:
- { role: iscsi,
tags: iscsi,
@ -60,12 +67,14 @@
- hosts:
- multipathd
serial: '{{ "30%" if action == "upgrade" else "0" }}'
roles:
- { role: multipathd,
tags: multipathd,
when: enable_multipathd | bool }
- hosts: rabbitmq
serial: '{{ "30%" if action == "upgrade" else "0" }}'
roles:
- { role: rabbitmq,
tags: rabbitmq,
@ -74,6 +83,7 @@
- hosts:
- keystone
- memcached
serial: '{{ "30%" if action == "upgrade" else "0" }}'
roles:
- { role: keystone,
tags: keystone,
@ -86,6 +96,7 @@
- swift-proxy-server
- rabbitmq
- memcached
serial: '{{ "30%" if action == "upgrade" else "0" }}'
roles:
- { role: swift,
tags: swift,
@ -97,6 +108,7 @@
- glance-registry
- rabbitmq
- memcached
serial: '{{ "30%" if action == "upgrade" else "0" }}'
roles:
- { role: glance,
tags: glance,
@ -113,6 +125,7 @@
- nova-scheduler
- rabbitmq
- memcached
serial: '{{ "30%" if action == "upgrade" else "0" }}'
roles:
- { role: nova,
tags: nova,
@ -130,6 +143,7 @@
- manila-share
- rabbitmq
- memcached
serial: '{{ "30%" if action == "upgrade" else "0" }}'
roles:
- { role: neutron,
tags: neutron,
@ -143,6 +157,7 @@
- cinder-volume
- rabbitmq
- memcached
serial: '{{ "30%" if action == "upgrade" else "0" }}'
roles:
- { role: cinder,
tags: cinder,
@ -154,6 +169,7 @@
- heat-engine
- rabbitmq
- memcached
serial: '{{ "30%" if action == "upgrade" else "0" }}'
roles:
- { role: heat,
tags: heat,
@ -162,6 +178,7 @@
- hosts:
- horizon
- memcached
serial: '{{ "30%" if action == "upgrade" else "0" }}'
roles:
- { role: horizon,
tags: horizon,
@ -172,6 +189,7 @@
- murano-engine
- rabbitmq
- memcached
serial: '{{ "30%" if action == "upgrade" else "0" }}'
roles:
- { role: murano,
tags: murano,
@ -184,6 +202,7 @@
- ironic-pxe
- rabbitmq
- memcached
serial: '{{ "30%" if action == "upgrade" else "0" }}'
roles:
- { role: ironic,
tags: ironic,
@ -194,6 +213,7 @@
- magnum-conductor
- rabbitmq
- memcached
serial: '{{ "30%" if action == "upgrade" else "0" }}'
roles:
- { role: magnum,
tags: magnum,
@ -205,6 +225,7 @@
- mistral-executor
- rabbitmq
- memcached
serial: '{{ "30%" if action == "upgrade" else "0" }}'
roles:
- { role: mistral,
tags: mistral,
@ -213,6 +234,7 @@
- hosts:
- sahara-api
- sahara-engine
serial: '{{ "30%" if action == "upgrade" else "0" }}'
roles:
- { role: sahara,
tags: sahara,
@ -220,6 +242,7 @@
- hosts:
- mongodb
serial: '{{ "30%" if action == "upgrade" else "0" }}'
roles:
- { role: mongodb,
tags: mongodb,
@ -231,6 +254,7 @@
- manila-scheduler
- rabbitmq
- memcached
serial: '{{ "30%" if action == "upgrade" else "0" }}'
roles:
- { role: manila,
tags: manila,
@ -240,6 +264,7 @@
- gnocchi-api
- gnocchi-metricd
- gnocchi-statsd
serial: '{{ "30%" if action == "upgrade" else "0" }}'
roles:
- { role: gnocchi,
tags: gnocchi,
@ -248,6 +273,7 @@
- hosts:
- ceilometer
- compute
serial: '{{ "30%" if action == "upgrade" else "0" }}'
roles:
- { role: ceilometer,
tags: ceilometer,
@ -257,6 +283,7 @@
- aodh
- rabbitmq
- memcached
serial: '{{ "30%" if action == "upgrade" else "0" }}'
roles:
- { role: aodh,
tags: aodh,
@ -277,6 +304,7 @@
- congress-datasource
- rabbitmq
- memcached
serial: '{{ "30%" if action == "upgrade" else "0" }}'
roles:
- { role: congress,
tags: congress,
@ -284,12 +312,14 @@
- hosts:
- tempest
serial: '{{ "30%" if action == "upgrade" else "0" }}'
roles:
- { role: tempest,
tags: tempest,
when: enable_tempest | bool }
- hosts: rally
serial: '{{ "30%" if action == "upgrade" else "0" }}'
roles:
- { role: rally,
tags: rally,
@ -301,6 +331,7 @@
- watcher-applier
- rabbitmq
- memcached
serial: '{{ "30%" if action == "upgrade" else "0" }}'
roles:
- { role: watcher,
tags: watcher,
@ -309,6 +340,7 @@
- hosts:
- cloudkitty-api
- cloudkitty-processor
serial: '{{ "30%" if action == "upgrade" else "0" }}'
roles:
- { role: cloudkitty,
tags: cloudkitty,