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,6 +1,5 @@
--- ---
- include: do_reconfigure.yml - include: do_reconfigure.yml
serial: "30%"
when: inventory_hostname in groups['aodh-api'] when: inventory_hostname in groups['aodh-api']
or inventory_hostname in groups['aodh-listener'] or inventory_hostname in groups['aodh-listener']
or inventory_hostname in groups['aodh-evaluator'] or inventory_hostname in groups['aodh-evaluator']

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,5 +1,4 @@
--- ---
- include: do_reconfigure.yml - include: do_reconfigure.yml
serial: "30%"
when: inventory_hostname in groups['sahara-api'] 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 - include: do_reconfigure.yml
serial: "30%"
when: inventory_hostname in groups['swift-account-server'] or when: inventory_hostname in groups['swift-account-server'] or
inventory_hostname in groups['swift-container-server'] or inventory_hostname in groups['swift-container-server'] or
inventory_hostname in groups['swift-object-server'] or inventory_hostname in groups['swift-object-server'] or

View File

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

View File

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

View File

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

View File

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

View File

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