Optimized the serial upgrade and reconfigure
* add serial for reconfigure * set playbook serial by using variable * fix serial for barbican, influxdb and vmtp Closes-Bug: #1624607 Change-Id: I66530c7736e1673a592eddbde75637825d12d9e2
This commit is contained in:
parent
d75847772d
commit
e328ada3bd
@ -1,6 +1,5 @@
|
|||||||
---
|
---
|
||||||
- include: do_reconfigure.yml
|
- include: do_reconfigure.yml
|
||||||
serial: "30%"
|
|
||||||
when: inventory_hostname in groups['barbican-api']
|
when: inventory_hostname in groups['barbican-api']
|
||||||
or inventory_hostname in groups['barbican-keystone-listener']
|
or inventory_hostname in groups['barbican-keystone-listener']
|
||||||
or inventory_hostname in groups['barbican-worker']
|
or inventory_hostname in groups['barbican-worker']
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
---
|
---
|
||||||
- include: do_reconfigure.yml
|
- include: do_reconfigure.yml
|
||||||
serial: "30%"
|
|
||||||
when: inventory_hostname in groups['influxdb']
|
when: inventory_hostname in groups['influxdb']
|
||||||
|
@ -2,4 +2,3 @@
|
|||||||
- include: config.yml
|
- include: config.yml
|
||||||
|
|
||||||
- include: start.yml
|
- include: start.yml
|
||||||
serial: "30%"
|
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
---
|
---
|
||||||
- include: do_reconfigure.yml
|
- include: do_reconfigure.yml
|
||||||
serial: "30%"
|
|
||||||
when: inventory_hostname in groups['vmtp']
|
when: inventory_hostname in groups['vmtp']
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
---
|
---
|
||||||
- hosts:
|
- hosts:
|
||||||
- all
|
- all
|
||||||
|
serial: '{{ serial|default("0") }}'
|
||||||
roles:
|
roles:
|
||||||
- { role: common,
|
- { role: common,
|
||||||
tags: common }
|
tags: common }
|
||||||
@ -9,26 +10,28 @@
|
|||||||
- ceph-mon
|
- ceph-mon
|
||||||
- ceph-osd
|
- ceph-osd
|
||||||
- ceph-rgw
|
- ceph-rgw
|
||||||
serial: '{{ "30%" if action == "upgrade" else "0" }}'
|
serial: '{{ serial|default("0") }}'
|
||||||
roles:
|
roles:
|
||||||
- { role: ceph,
|
- { role: ceph,
|
||||||
tags: ceph,
|
tags: ceph,
|
||||||
when: enable_ceph | bool }
|
when: enable_ceph | bool }
|
||||||
|
|
||||||
- hosts: collectd
|
- hosts: collectd
|
||||||
|
serial: '{{ serial|default("0") }}'
|
||||||
roles:
|
roles:
|
||||||
- { role: collectd,
|
- { role: collectd,
|
||||||
tags: collectd,
|
tags: collectd,
|
||||||
when: enable_collectd | bool }
|
when: enable_collectd | bool }
|
||||||
|
|
||||||
- hosts: elasticsearch
|
- hosts: elasticsearch
|
||||||
serial: '{{ "30%" if action == "upgrade" else "0" }}'
|
serial: '{{ serial|default("0") }}'
|
||||||
roles:
|
roles:
|
||||||
- { role: elasticsearch,
|
- { role: elasticsearch,
|
||||||
tags: elasticsearch,
|
tags: elasticsearch,
|
||||||
when: enable_elasticsearch | bool }
|
when: enable_elasticsearch | bool }
|
||||||
|
|
||||||
- hosts: influxdb
|
- hosts: influxdb
|
||||||
|
serial: '{{ serial|default("0") }}'
|
||||||
roles:
|
roles:
|
||||||
- { role: influxdb,
|
- { role: influxdb,
|
||||||
tags: influxdb,
|
tags: influxdb,
|
||||||
@ -36,35 +39,35 @@
|
|||||||
|
|
||||||
- hosts:
|
- hosts:
|
||||||
- telegraf
|
- telegraf
|
||||||
serial: '{{ "30%" if action == "upgrade" else "0" }}'
|
serial: '{{ serial|default("0") }}'
|
||||||
roles:
|
roles:
|
||||||
- { role: telegraf,
|
- { role: telegraf,
|
||||||
tags: telegraf,
|
tags: telegraf,
|
||||||
when: enable_telegraf | bool }
|
when: enable_telegraf | bool }
|
||||||
|
|
||||||
- hosts: haproxy
|
- hosts: haproxy
|
||||||
serial: '{{ "30%" if action == "upgrade" else "0" }}'
|
serial: '{{ serial|default("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" }}'
|
serial: '{{ serial|default("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" }}'
|
serial: '{{ serial|default("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" }}'
|
serial: '{{ serial|default("0") }}'
|
||||||
roles:
|
roles:
|
||||||
- { role: mariadb,
|
- { role: mariadb,
|
||||||
tags: mariadb,
|
tags: mariadb,
|
||||||
@ -73,7 +76,7 @@
|
|||||||
- hosts:
|
- hosts:
|
||||||
- iscsid
|
- iscsid
|
||||||
- tgtd
|
- tgtd
|
||||||
serial: '{{ "30%" if action == "upgrade" else "0" }}'
|
serial: '{{ serial|default("0") }}'
|
||||||
roles:
|
roles:
|
||||||
- { role: iscsi,
|
- { role: iscsi,
|
||||||
tags: iscsi,
|
tags: iscsi,
|
||||||
@ -81,21 +84,21 @@
|
|||||||
|
|
||||||
- hosts:
|
- hosts:
|
||||||
- multipathd
|
- multipathd
|
||||||
serial: '{{ "30%" if action == "upgrade" else "0" }}'
|
serial: '{{ serial|default("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" }}'
|
serial: '{{ serial|default("0") }}'
|
||||||
roles:
|
roles:
|
||||||
- { role: rabbitmq,
|
- { role: rabbitmq,
|
||||||
tags: rabbitmq,
|
tags: rabbitmq,
|
||||||
when: enable_rabbitmq | bool }
|
when: enable_rabbitmq | bool }
|
||||||
|
|
||||||
- hosts: etcd
|
- hosts: etcd
|
||||||
serial: '{{ "30%" if action == "upgrade" else "0" }}'
|
serial: '{{ serial|default("0") }}'
|
||||||
roles:
|
roles:
|
||||||
- { role: etcd,
|
- { role: etcd,
|
||||||
tags: etcd,
|
tags: etcd,
|
||||||
@ -103,7 +106,7 @@
|
|||||||
|
|
||||||
- hosts:
|
- hosts:
|
||||||
- keystone
|
- keystone
|
||||||
serial: '{{ "30%" if action == "upgrade" else "0" }}'
|
serial: '{{ serial|default("0") }}'
|
||||||
roles:
|
roles:
|
||||||
- { role: keystone,
|
- { role: keystone,
|
||||||
tags: keystone,
|
tags: keystone,
|
||||||
@ -114,7 +117,7 @@
|
|||||||
- swift-container-server
|
- swift-container-server
|
||||||
- swift-object-server
|
- swift-object-server
|
||||||
- swift-proxy-server
|
- swift-proxy-server
|
||||||
serial: '{{ "30%" if action == "upgrade" else "0" }}'
|
serial: '{{ serial|default("0") }}'
|
||||||
roles:
|
roles:
|
||||||
- { role: swift,
|
- { role: swift,
|
||||||
tags: swift,
|
tags: swift,
|
||||||
@ -124,7 +127,7 @@
|
|||||||
- ceph-mon
|
- ceph-mon
|
||||||
- glance-api
|
- glance-api
|
||||||
- glance-registry
|
- glance-registry
|
||||||
serial: '{{ "30%" if action == "upgrade" else "0" }}'
|
serial: '{{ serial|default("0") }}'
|
||||||
roles:
|
roles:
|
||||||
- { role: glance,
|
- { role: glance,
|
||||||
tags: glance,
|
tags: glance,
|
||||||
@ -138,7 +141,7 @@
|
|||||||
- nova-consoleauth
|
- nova-consoleauth
|
||||||
- nova-novncproxy
|
- nova-novncproxy
|
||||||
- nova-scheduler
|
- nova-scheduler
|
||||||
serial: '{{ "30%" if action == "upgrade" else "0" }}'
|
serial: '{{ serial|default("0") }}'
|
||||||
roles:
|
roles:
|
||||||
- { role: nova,
|
- { role: nova,
|
||||||
tags: nova,
|
tags: nova,
|
||||||
@ -162,7 +165,7 @@
|
|||||||
- neutron-vpnaas-agent
|
- neutron-vpnaas-agent
|
||||||
- compute
|
- compute
|
||||||
- manila-share
|
- manila-share
|
||||||
serial: '{{ "30%" if action == "upgrade" else "0" }}'
|
serial: '{{ serial|default("0") }}'
|
||||||
roles:
|
roles:
|
||||||
- { role: neutron,
|
- { role: neutron,
|
||||||
tags: neutron,
|
tags: neutron,
|
||||||
@ -174,7 +177,7 @@
|
|||||||
- cinder-backup
|
- cinder-backup
|
||||||
- cinder-scheduler
|
- cinder-scheduler
|
||||||
- cinder-volume
|
- cinder-volume
|
||||||
serial: '{{ "30%" if action == "upgrade" else "0" }}'
|
serial: '{{ serial|default("0") }}'
|
||||||
roles:
|
roles:
|
||||||
- { role: cinder,
|
- { role: cinder,
|
||||||
tags: cinder,
|
tags: cinder,
|
||||||
@ -184,7 +187,7 @@
|
|||||||
- heat-api
|
- heat-api
|
||||||
- heat-api-cfn
|
- heat-api-cfn
|
||||||
- heat-engine
|
- heat-engine
|
||||||
serial: '{{ "30%" if action == "upgrade" else "0" }}'
|
serial: '{{ serial|default("0") }}'
|
||||||
roles:
|
roles:
|
||||||
- { role: heat,
|
- { role: heat,
|
||||||
tags: heat,
|
tags: heat,
|
||||||
@ -192,7 +195,7 @@
|
|||||||
|
|
||||||
- hosts:
|
- hosts:
|
||||||
- horizon
|
- horizon
|
||||||
serial: '{{ "30%" if action == "upgrade" else "0" }}'
|
serial: '{{ serial|default("0") }}'
|
||||||
roles:
|
roles:
|
||||||
- { role: horizon,
|
- { role: horizon,
|
||||||
tags: horizon,
|
tags: horizon,
|
||||||
@ -201,7 +204,7 @@
|
|||||||
- hosts:
|
- hosts:
|
||||||
- murano-api
|
- murano-api
|
||||||
- murano-engine
|
- murano-engine
|
||||||
serial: '{{ "30%" if action == "upgrade" else "0" }}'
|
serial: '{{ serial|default("0") }}'
|
||||||
roles:
|
roles:
|
||||||
- { role: murano,
|
- { role: murano,
|
||||||
tags: murano,
|
tags: murano,
|
||||||
@ -212,7 +215,7 @@
|
|||||||
- ironic-conductor
|
- ironic-conductor
|
||||||
- ironic-inspector
|
- ironic-inspector
|
||||||
- ironic-pxe
|
- ironic-pxe
|
||||||
serial: '{{ "30%" if action == "upgrade" else "0" }}'
|
serial: '{{ serial|default("0") }}'
|
||||||
roles:
|
roles:
|
||||||
- { role: ironic,
|
- { role: ironic,
|
||||||
tags: ironic,
|
tags: ironic,
|
||||||
@ -221,7 +224,7 @@
|
|||||||
- hosts:
|
- hosts:
|
||||||
- magnum-api
|
- magnum-api
|
||||||
- magnum-conductor
|
- magnum-conductor
|
||||||
serial: '{{ "30%" if action == "upgrade" else "0" }}'
|
serial: '{{ serial|default("0") }}'
|
||||||
roles:
|
roles:
|
||||||
- { role: magnum,
|
- { role: magnum,
|
||||||
tags: magnum,
|
tags: magnum,
|
||||||
@ -231,7 +234,7 @@
|
|||||||
- mistral-api
|
- mistral-api
|
||||||
- mistral-engine
|
- mistral-engine
|
||||||
- mistral-executor
|
- mistral-executor
|
||||||
serial: '{{ "30%" if action == "upgrade" else "0" }}'
|
serial: '{{ serial|default("0") }}'
|
||||||
roles:
|
roles:
|
||||||
- { role: mistral,
|
- { role: mistral,
|
||||||
tags: mistral,
|
tags: mistral,
|
||||||
@ -240,7 +243,7 @@
|
|||||||
- hosts:
|
- hosts:
|
||||||
- sahara-api
|
- sahara-api
|
||||||
- sahara-engine
|
- sahara-engine
|
||||||
serial: '{{ "30%" if action == "upgrade" else "0" }}'
|
serial: '{{ serial|default("0") }}'
|
||||||
roles:
|
roles:
|
||||||
- { role: sahara,
|
- { role: sahara,
|
||||||
tags: sahara,
|
tags: sahara,
|
||||||
@ -248,7 +251,7 @@
|
|||||||
|
|
||||||
- hosts:
|
- hosts:
|
||||||
- mongodb
|
- mongodb
|
||||||
serial: '{{ "30%" if action == "upgrade" else "0" }}'
|
serial: '{{ serial|default("0") }}'
|
||||||
roles:
|
roles:
|
||||||
- { role: mongodb,
|
- { role: mongodb,
|
||||||
tags: mongodb,
|
tags: mongodb,
|
||||||
@ -258,7 +261,7 @@
|
|||||||
- manila-api
|
- manila-api
|
||||||
- manila-share
|
- manila-share
|
||||||
- manila-scheduler
|
- manila-scheduler
|
||||||
serial: '{{ "30%" if action == "upgrade" else "0" }}'
|
serial: '{{ serial|default("0") }}'
|
||||||
roles:
|
roles:
|
||||||
- { role: manila,
|
- { role: manila,
|
||||||
tags: manila,
|
tags: manila,
|
||||||
@ -268,7 +271,7 @@
|
|||||||
- gnocchi-api
|
- gnocchi-api
|
||||||
- gnocchi-metricd
|
- gnocchi-metricd
|
||||||
- gnocchi-statsd
|
- gnocchi-statsd
|
||||||
serial: '{{ "30%" if action == "upgrade" else "0" }}'
|
serial: '{{ serial|default("0") }}'
|
||||||
roles:
|
roles:
|
||||||
- { role: gnocchi,
|
- { role: gnocchi,
|
||||||
tags: gnocchi,
|
tags: gnocchi,
|
||||||
@ -277,7 +280,7 @@
|
|||||||
- hosts:
|
- hosts:
|
||||||
- ceilometer
|
- ceilometer
|
||||||
- compute
|
- compute
|
||||||
serial: '{{ "30%" if action == "upgrade" else "0" }}'
|
serial: '{{ serial|default("0") }}'
|
||||||
roles:
|
roles:
|
||||||
- { role: ceilometer,
|
- { role: ceilometer,
|
||||||
tags: ceilometer,
|
tags: ceilometer,
|
||||||
@ -285,7 +288,7 @@
|
|||||||
|
|
||||||
- hosts:
|
- hosts:
|
||||||
- aodh
|
- aodh
|
||||||
serial: '{{ "30%" if action == "upgrade" else "0" }}'
|
serial: '{{ serial|default("0") }}'
|
||||||
roles:
|
roles:
|
||||||
- { role: aodh,
|
- { role: aodh,
|
||||||
tags: aodh,
|
tags: aodh,
|
||||||
@ -295,6 +298,7 @@
|
|||||||
- barbican-api
|
- barbican-api
|
||||||
- barbican-keystone-listener
|
- barbican-keystone-listener
|
||||||
- barbican-worker
|
- barbican-worker
|
||||||
|
serial: '{{ serial|default("0") }}'
|
||||||
roles:
|
roles:
|
||||||
- { role: barbican,
|
- { role: barbican,
|
||||||
tags: barbican,
|
tags: barbican,
|
||||||
@ -304,7 +308,7 @@
|
|||||||
- congress-api
|
- congress-api
|
||||||
- congress-policy-engine
|
- congress-policy-engine
|
||||||
- congress-datasource
|
- congress-datasource
|
||||||
serial: '{{ "30%" if action == "upgrade" else "0" }}'
|
serial: '{{ serial|default("0") }}'
|
||||||
roles:
|
roles:
|
||||||
- { role: congress,
|
- { role: congress,
|
||||||
tags: congress,
|
tags: congress,
|
||||||
@ -312,14 +316,14 @@
|
|||||||
|
|
||||||
- hosts:
|
- hosts:
|
||||||
- tempest
|
- tempest
|
||||||
serial: '{{ "30%" if action == "upgrade" else "0" }}'
|
serial: '{{ serial|default("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" }}'
|
serial: '{{ serial|default("0") }}'
|
||||||
roles:
|
roles:
|
||||||
- { role: rally,
|
- { role: rally,
|
||||||
tags: rally,
|
tags: rally,
|
||||||
@ -327,6 +331,7 @@
|
|||||||
|
|
||||||
- hosts:
|
- hosts:
|
||||||
- vmtp
|
- vmtp
|
||||||
|
serial: '{{ serial|default("0") }}'
|
||||||
roles:
|
roles:
|
||||||
- { role: vmtp,
|
- { role: vmtp,
|
||||||
tags: vmtp,
|
tags: vmtp,
|
||||||
@ -336,7 +341,7 @@
|
|||||||
- watcher-api
|
- watcher-api
|
||||||
- watcher-engine
|
- watcher-engine
|
||||||
- watcher-applier
|
- watcher-applier
|
||||||
serial: '{{ "30%" if action == "upgrade" else "0" }}'
|
serial: '{{ serial|default("0") }}'
|
||||||
roles:
|
roles:
|
||||||
- { role: watcher,
|
- { role: watcher,
|
||||||
tags: watcher,
|
tags: watcher,
|
||||||
@ -344,7 +349,7 @@
|
|||||||
|
|
||||||
- hosts:
|
- hosts:
|
||||||
- grafana
|
- grafana
|
||||||
serial: '{{ "30%" if action == "upgrade" else "0" }}'
|
serial: '{{ serial|default("0") }}'
|
||||||
roles:
|
roles:
|
||||||
- { role: grafana,
|
- { role: grafana,
|
||||||
tags: grafana,
|
tags: grafana,
|
||||||
@ -353,7 +358,7 @@
|
|||||||
- hosts:
|
- hosts:
|
||||||
- cloudkitty-api
|
- cloudkitty-api
|
||||||
- cloudkitty-processor
|
- cloudkitty-processor
|
||||||
serial: '{{ "30%" if action == "upgrade" else "0" }}'
|
serial: '{{ serial|default("0") }}'
|
||||||
roles:
|
roles:
|
||||||
- { role: cloudkitty,
|
- { role: cloudkitty,
|
||||||
tags: cloudkitty,
|
tags: cloudkitty,
|
||||||
@ -362,7 +367,7 @@
|
|||||||
- hosts:
|
- hosts:
|
||||||
- senlin-api
|
- senlin-api
|
||||||
- senlin-engine
|
- senlin-engine
|
||||||
serial: '{{ "30%" if action == "upgrade" else "0" }}'
|
serial: '{{ serial|default("0") }}'
|
||||||
roles:
|
roles:
|
||||||
- { role: senlin,
|
- { role: senlin,
|
||||||
tags: senlin,
|
tags: senlin,
|
||||||
|
@ -200,11 +200,11 @@ EOF
|
|||||||
;;
|
;;
|
||||||
(upgrade)
|
(upgrade)
|
||||||
ACTION="Upgrading OpenStack Environment"
|
ACTION="Upgrading OpenStack Environment"
|
||||||
EXTRA_OPTS="$EXTRA_OPTS -e action=upgrade"
|
EXTRA_OPTS="$EXTRA_OPTS -e action=upgrade -e serial=30%"
|
||||||
;;
|
;;
|
||||||
(reconfigure)
|
(reconfigure)
|
||||||
ACTION="Reconfigure OpenStack service"
|
ACTION="Reconfigure OpenStack service"
|
||||||
EXTRA_OPTS="$EXTRA_OPTS -e action=reconfigure"
|
EXTRA_OPTS="$EXTRA_OPTS -e action=reconfigure -e serial=30%"
|
||||||
;;
|
;;
|
||||||
(certificates)
|
(certificates)
|
||||||
ACTION="Generate TLS Certificates"
|
ACTION="Generate TLS Certificates"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user