Skip to content
Snippets Groups Projects
Commit d860cefd authored by Jenkins's avatar Jenkins Committed by Gerrit Code Review
Browse files

Merge "Disable running playbooks in serial by default"

parents 67a0c52a cad7fc35
No related branches found
No related tags found
No related merge requests found
...@@ -133,7 +133,6 @@ ...@@ -133,7 +133,6 @@
- name: Apply role mariadb - name: Apply role mariadb
gather_facts: false gather_facts: false
hosts: mariadb hosts: mariadb
serial: '{{ serial|default("0") }}'
roles: roles:
- { role: mariadb, - { role: mariadb,
tags: mariadb, tags: mariadb,
......
---
features:
- Run ansible playbooks in serial is disabled by default now. Serial is not
recommended. But you can enable it by configuring ANSIBLE_SERIAL
environment variable.
...@@ -80,6 +80,9 @@ CONFIG_DIR="/etc/kolla" ...@@ -80,6 +80,9 @@ CONFIG_DIR="/etc/kolla"
PASSWORDS_FILE="${CONFIG_DIR}/passwords.yml" PASSWORDS_FILE="${CONFIG_DIR}/passwords.yml"
DANGER_CONFIRM= DANGER_CONFIRM=
INCLUDE_IMAGES= INCLUDE_IMAGES=
# Serial is not recommended and disable in default. User could enable it by
# simple configure ANSIBLE_SERIAL variable
ANSIBLE_SERIAL=${ANSIBLE_SERIAL:-0}
while [ "$#" -gt 0 ]; do while [ "$#" -gt 0 ]; do
case "$1" in case "$1" in
...@@ -207,11 +210,11 @@ EOF ...@@ -207,11 +210,11 @@ EOF
;; ;;
(upgrade) (upgrade)
ACTION="Upgrading OpenStack Environment" ACTION="Upgrading OpenStack Environment"
EXTRA_OPTS="$EXTRA_OPTS -e action=upgrade -e serial=30%" EXTRA_OPTS="$EXTRA_OPTS -e action=upgrade -e serial=${ANSIBLE_SERIAL}"
;; ;;
(reconfigure) (reconfigure)
ACTION="Reconfigure OpenStack service" ACTION="Reconfigure OpenStack service"
EXTRA_OPTS="$EXTRA_OPTS -e action=reconfigure -e serial=30%" EXTRA_OPTS="$EXTRA_OPTS -e action=reconfigure -e serial=${ANSIBLE_SERIAL}"
;; ;;
(stop) (stop)
ACTION="Stop Kolla containers" ACTION="Stop Kolla containers"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment