Specify 'become' for all tasks that use kolla_docker module

Add become to all tasks that use the module "kolla_docker"

Change-Id: I4309c4011687b88ec31d739fd8f834fe2326ff10
Partial-Implements: blueprint ansible-specific-task-become
This commit is contained in:
Ha Manh Dong 2018-05-30 11:25:19 +07:00
parent 31a6de01f3
commit 30be04ea91
253 changed files with 408 additions and 4 deletions

View File

@ -7,6 +7,7 @@
aodh_conf: "{{ aodh_confs.results|selectattr('item.key', 'equalto', service_name)|first }}"
policy_overwriting: "{{ aodh_policy_overwriting.results|selectattr('item.key', 'equalto', service_name)|first }}"
aodh_api_container: "{{ check_aodh_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
become: true
kolla_docker:
action: "recreate_or_restart_container"
common_options: "{{ docker_common_options }}"
@ -31,6 +32,7 @@
aodh_conf: "{{ aodh_confs.results|selectattr('item.key', 'equalto', service_name)|first }}"
policy_overwriting: "{{ aodh_policy_overwriting.results|selectattr('item.key', 'equalto', service_name)|first }}"
aodh_evaluator_container: "{{ check_aodh_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
become: true
kolla_docker:
action: "recreate_or_restart_container"
common_options: "{{ docker_common_options }}"
@ -54,6 +56,7 @@
aodh_conf: "{{ aodh_confs.results|selectattr('item.key', 'equalto', service_name)|first }}"
policy_overwriting: "{{ aodh_policy_overwriting.results|selectattr('item.key', 'equalto', service_name)|first }}"
aodh_listener_container: "{{ check_aodh_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
become: true
kolla_docker:
action: "recreate_or_restart_container"
common_options: "{{ docker_common_options }}"
@ -77,6 +80,7 @@
aodh_conf: "{{ aodh_confs.results|selectattr('item.key', 'equalto', service_name)|first }}"
policy_overwriting: "{{ aodh_policy_overwriting.results|selectattr('item.key', 'equalto', service_name)|first }}"
aodh_notifier_container: "{{ check_aodh_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
become: true
kolla_docker:
action: "recreate_or_restart_container"
common_options: "{{ docker_common_options }}"

View File

@ -2,6 +2,7 @@
- name: Running aodh bootstrap container
vars:
aodh_api: "{{ aodh_services['aodh-api'] }}"
become: true
kolla_docker:
action: "start_container"
common_options: "{{ docker_common_options }}"

View File

@ -104,6 +104,7 @@
- Restart aodh-api container
- name: Check aodh containers
become: true
kolla_docker:
action: "compare_container"
common_options: "{{ docker_common_options }}"

View File

@ -1,5 +1,6 @@
---
- name: Pulling aodh images
become: true
kolla_docker:
action: "pull_image"
common_options: "{{ docker_common_options }}"

View File

@ -7,6 +7,7 @@
barbican_conf: "{{ barbican_confs.results|selectattr('item.key', 'equalto', service_name)|first }}"
policy_overwriting: "{{ barbican_policy_overwriting.results|selectattr('item.key', 'equalto', service_name)|first }}"
barbican_api_container: "{{ check_barbican_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
become: true
kolla_docker:
action: "recreate_or_restart_container"
common_options: "{{ docker_common_options }}"
@ -32,6 +33,7 @@
barbican_conf: "{{ barbican_confs.results|selectattr('item.key', 'equalto', service_name)|first }}"
policy_overwriting: "{{ barbican_policy_overwriting.results|selectattr('item.key', 'equalto', service_name)|first }}"
barbican_keystone_listener_container: "{{ check_barbican_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
become: true
kolla_docker:
action: "recreate_or_restart_container"
common_options: "{{ docker_common_options }}"
@ -55,6 +57,7 @@
barbican_conf: "{{ barbican_confs.results|selectattr('item.key', 'equalto', service_name)|first }}"
policy_overwriting: "{{ barbican_policy_overwriting.results|selectattr('item.key', 'equalto', service_name)|first }}"
barbican_worker_container: "{{ check_barbican_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
become: true
kolla_docker:
action: "recreate_or_restart_container"
common_options: "{{ docker_common_options }}"

View File

@ -2,6 +2,7 @@
- name: Running barbican bootstrap container
vars:
barbican_api: "{{ barbican_services['barbican-api'] }}"
become: true
kolla_docker:
action: "start_container"
common_options: "{{ docker_common_options }}"

View File

@ -123,6 +123,7 @@
- Restart {{ item.key }} container
- name: Check barbican containers
become: true
kolla_docker:
action: "compare_container"
common_options: "{{ docker_common_options }}"

View File

@ -1,5 +1,6 @@
---
- name: Pulling barbican images
become: true
kolla_docker:
action: "pull_image"
common_options: "{{ docker_common_options }}"

View File

@ -1,5 +1,6 @@
---
- name: Ensuring the containers up
become: true
kolla_docker:
name: "{{ item.name }}"
action: "get_container_state"
@ -24,6 +25,7 @@
# and container env['KOLLA_CONFIG_STRATEGY'] == 'COPY_ONCE',
# just remove the container and start again
- name: Containers config strategy
become: true
kolla_docker:
name: "{{ item.name }}"
action: "get_container_env"
@ -33,6 +35,7 @@
- { name: bifrost-deploy, group: bifrost-deploy }
- name: Remove the containers
become: true
kolla_docker:
name: "{{ item[0]['name'] }}"
action: "remove_container"
@ -50,6 +53,7 @@
when: remove_containers.changed
- name: Restart containers
become: true
kolla_docker:
name: "{{ item[0]['name'] }}"
action: "restart_container"

View File

@ -1,5 +1,6 @@
---
- name: Starting bifrost deploy container
become: true
kolla_docker:
action: "start_container"
common_options: "{{ docker_common_options }}"

View File

@ -7,6 +7,7 @@
blazar_conf: "{{ blazar_confs.results|selectattr('item.key', 'equalto', service_name)|first }}"
policy_overwriting: "{{ blazar_policy_overwriting.results|selectattr('item.key', 'equalto', service_name)|first }}"
blazar_api_container: "{{ check_blazar_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
become: true
kolla_docker:
action: "recreate_or_restart_container"
common_options: "{{ docker_common_options }}"
@ -30,6 +31,7 @@
blazar_conf: "{{ blazar_confs.results|selectattr('item.key', 'equalto', service_name)|first }}"
policy_overwriting: "{{ blazar_policy_overwriting.results|selectattr('item.key', 'equalto', service_name)|first }}"
blazar_manager_container: "{{ check_blazar_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
become: true
kolla_docker:
action: "recreate_or_restart_container"
common_options: "{{ docker_common_options }}"

View File

@ -2,6 +2,7 @@
- name: Running blazar bootstrap container
vars:
blazar_api: "{{ blazar_services['blazar-api'] }}"
become: true
kolla_docker:
action: "start_container"
common_options: "{{ docker_common_options }}"

View File

@ -82,6 +82,7 @@
- Restart blazar-manager container
- name: Check blazar containers
become: true
kolla_docker:
action: "compare_container"
common_options: "{{ docker_common_options }}"

View File

@ -1,5 +1,6 @@
---
- name: Pulling blazar images
become: true
kolla_docker:
action: "pull_image"
common_options: "{{ docker_common_options }}"

View File

@ -9,6 +9,7 @@
policy_overwriting: "{{ ceilometer_policy_overwriting.results|selectattr('item.key', 'equalto', service_name)|first }}"
ceilometer_notification_container: "{{ check_ceilometer_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
panko_conf: "{{ panko_confs.results|selectattr('item.key', 'equalto', service_name)|first }}"
become: true
kolla_docker:
action: "recreate_or_restart_container"
common_options: "{{ docker_common_options }}"
@ -36,6 +37,7 @@
ceilometer_pipeline: "{{ ceilometer_pipelines.results|selectattr('item.key', 'equalto', service_name)|first }}"
policy_overwriting: "{{ ceilometer_policy_overwriting.results|selectattr('item.key', 'equalto', service_name)|first }}"
ceilometer_central_container: "{{ check_ceilometer_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
become: true
kolla_docker:
action: "recreate_or_restart_container"
common_options: "{{ docker_common_options }}"
@ -61,6 +63,7 @@
ceilometer_pipeline: "{{ ceilometer_pipelines.results|selectattr('item.key', 'equalto', service_name)|first }}"
policy_overwriting: "{{ ceilometer_policy_overwriting.results|selectattr('item.key', 'equalto', service_name)|first }}"
ceilometer_compute_container: "{{ check_ceilometer_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
become: true
kolla_docker:
action: "recreate_or_restart_container"
common_options: "{{ docker_common_options }}"

View File

@ -2,6 +2,7 @@
- name: Running Ceilometer bootstrap container
vars:
ceilometer_notification: "{{ ceilometer_services['ceilometer-notification'] }}"
become: true
kolla_docker:
action: "start_container"
common_options: "{{ docker_common_options }}"

View File

@ -162,6 +162,7 @@
# check whether the containers parameter is changed. If yes, trigger the handler.
- name: Check ceilometer containers
become: true
kolla_docker:
action: "compare_container"
common_options: "{{ docker_common_options }}"

View File

@ -1,5 +1,6 @@
---
- name: Pulling ceilometer images
become: true
kolla_docker:
action: "pull_image"
common_options: "{{ docker_common_options }}"

View File

@ -12,6 +12,7 @@
run_once: True
- name: Creating ceph_mon_config volume
become: true
kolla_docker:
action: "create_volume"
common_options: "{{ docker_common_options }}"

View File

@ -40,6 +40,7 @@
- ceph_osd_wipe_disk != "yes-i-really-really-mean-it"
- name: Bootstrapping Ceph OSDs
become: true
kolla_docker:
action: "start_container"
common_options: "{{ docker_common_options }}"
@ -86,6 +87,7 @@
- ceph_osd_wipe_disk != "yes-i-really-really-mean-it"
- name: Bootstrapping Ceph Cache OSDs
become: true
kolla_docker:
action: "start_container"
common_options: "{{ docker_common_options }}"

View File

@ -1,5 +1,6 @@
---
- name: Generating initial Ceph keyrings and monmap
become: true
kolla_docker:
action: "start_container"
common_options: "{{ docker_common_options }}"

View File

@ -1,5 +1,6 @@
---
- name: Pulling ceph-mon image
become: true
kolla_docker:
action: "pull_image"
common_options: "{{ docker_common_options }}"
@ -7,6 +8,7 @@
when: inventory_hostname in groups['ceph-mon']
- name: Pulling ceph-osd image
become: true
kolla_docker:
action: "pull_image"
common_options: "{{ docker_common_options }}"
@ -14,6 +16,7 @@
when: inventory_hostname in groups['ceph-osd']
- name: Pulling ceph-rgw image
become: true
kolla_docker:
action: "pull_image"
common_options: "{{ docker_common_options }}"
@ -21,6 +24,7 @@
when: inventory_hostname in groups['ceph-rgw']
- name: Pulling ceph-mgr image
become: true
kolla_docker:
action: "pull_image"
common_options: "{{ docker_common_options }}"
@ -29,6 +33,7 @@
- inventory_hostname in groups['ceph-mgr']
- name: Pulling ceph-mds image
become: true
kolla_docker:
action: "pull_image"
common_options: "{{ docker_common_options }}"
@ -38,6 +43,7 @@
- inventory_hostname in groups['ceph-mds']
- name: Pulling ceph-nfs image
become: true
kolla_docker:
action: "pull_image"
common_options: "{{ docker_common_options }}"

View File

@ -1,5 +1,6 @@
---
- name: Ensuring the ceph_mon container is up
become: true
kolla_docker:
name: "{{ item.name }}"
action: "get_container_state"
@ -32,6 +33,7 @@
when: inventory_hostname in groups['ceph-osd']
- name: Ensuring the ceph_osd container is up
become: true
kolla_docker:
name: "ceph_osd_{{ item.stdout }}"
action: "get_container_state"
@ -41,6 +43,7 @@
with_items: "{{ osd_ids.results|default({}) }}"
- name: Ensuring the ceph_rgw container is up
become: true
kolla_docker:
name: "{{ item.name }}"
action: "get_container_state"
@ -83,6 +86,7 @@
- { name: ceph_rgw, group: ceph-rgw }
- name: Containers config strategy for ceph_mon container
become: true
kolla_docker:
name: "{{ item.name }}"
action: "get_container_env"
@ -92,6 +96,7 @@
- { name: ceph_mon, group: ceph-mon }
- name: Containers config strategy for the ceph_osd containers
become: true
kolla_docker:
name: "ceph_osd_{{ item.stdout }}"
action: "get_container_env"
@ -102,6 +107,7 @@
- osds
- name: Containers config strategy for ceph_rgw container
become: true
kolla_docker:
name: "{{ item.name }}"
action: "get_container_env"
@ -113,6 +119,7 @@
- { name: ceph_rgw, group: ceph-rgw }
- name: Remove the ceph_mon container
become: true
kolla_docker:
name: "{{ item[0]['name'] }}"
action: "remove_container"
@ -127,6 +134,7 @@
- "{{ ceph_mon_check_results.results }}"
- name: Remove the ceph_osd containers
become: true
kolla_docker:
name: "ceph_osd_{{ item.0.stdout }}"
action: "remove_container"
@ -142,6 +150,7 @@
- "{{ ceph_osd_check_results.results }}"
- name: Remove the ceph_rgw container
become: true
kolla_docker:
name: "{{ item[0]['name'] }}"
action: "remove_container"
@ -172,6 +181,7 @@
- remove_ceph_rgw_container.changed
- name: Restart the ceph_mon container
become: true
kolla_docker:
name: "ceph_mon"
action: "restart_container"
@ -185,6 +195,7 @@
- "{{ ceph_mon_check_results.results }}"
- name: Restart the ceph_osd container
become: true
kolla_docker:
name: "ceph_osd_{{ item.0.stdout }}"
action: "restart_container"
@ -200,6 +211,7 @@
- "{{ ceph_osd_check_results.results }}"
- name: Restart the ceph_rgw container
become: true
kolla_docker:
name: "ceph_rgw"
action: "restart_container"

View File

@ -38,6 +38,7 @@
with_items: "{{ ceph_mds_auth.results }}"
- name: Starting ceph-mds container
become: true
kolla_docker:
action: "start_container"
common_options: "{{ docker_common_options }}"

View File

@ -18,6 +18,7 @@
with_items: "{{ ceph_mgr_keyring.results }}"
- name: Starting ceph-mgr container
become: true
kolla_docker:
action: "start_container"
common_options: "{{ docker_common_options }}"

View File

@ -1,5 +1,6 @@
---
- name: Starting ceph-mon container
become: true
kolla_docker:
action: "start_container"
common_options: "{{ docker_common_options }}"

View File

@ -1,5 +1,6 @@
---
- name: Starting ceph-nfs container
become: true
kolla_docker:
action: "start_container"
common_options: "{{ docker_common_options }}"

View File

@ -31,6 +31,7 @@
failed_when: id.rc != 0
- name: Starting ceph-osd container
become: true
kolla_docker:
action: "start_container"
common_options: "{{ docker_common_options }}"

View File

@ -1,5 +1,6 @@
---
- name: Starting ceph-rgw container
become: true
kolla_docker:
action: "start_container"
common_options: "{{ docker_common_options }}"

View File

@ -3,6 +3,7 @@
vars:
service_name: "chrony"
service: "{{ chrony_services[service_name] }}"
become: true
kolla_docker:
action: "recreate_or_restart_container"
common_options: "{{ docker_common_options }}"

View File

@ -35,6 +35,7 @@
- Restart chrony container
- name: Check chrony container
become: true
kolla_docker:
action: "compare_container"
common_options: "{{ docker_common_options }}"

View File

@ -1,5 +1,6 @@
---
- name: Pulling chrony images
become: true
kolla_docker:
action: "pull_image"
common_options: "{{ docker_common_options }}"

View File

@ -7,6 +7,7 @@
cinder_conf: "{{ cinder_confs.results|selectattr('item.key', 'equalto', service_name)|first }}"
policy_overwriting: "{{ cinder_policy_overwriting.results|selectattr('item.key', 'equalto', service_name)|first }}"
cinder_api_container: "{{ check_cinder_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
become: true
kolla_docker:
action: "recreate_or_restart_container"
common_options: "{{ docker_common_options }}"
@ -31,6 +32,7 @@
cinder_conf: "{{ cinder_confs.results|selectattr('item.key', 'equalto', service_name)|first }}"
policy_overwriting: "{{ cinder_policy_overwriting.results|selectattr('item.key', 'equalto', service_name)|first }}"
cinder_scheduler_container: "{{ check_cinder_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
become: true
kolla_docker:
action: "recreate_or_restart_container"
common_options: "{{ docker_common_options }}"
@ -54,6 +56,7 @@
cinder_conf: "{{ cinder_confs.results|selectattr('item.key', 'equalto', service_name)|first }}"
policy_overwriting: "{{ cinder_policy_overwriting.results|selectattr('item.key', 'equalto', service_name)|first }}"
cinder_volume_container: "{{ check_cinder_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
become: true
kolla_docker:
action: "recreate_or_restart_container"
common_options: "{{ docker_common_options }}"
@ -79,6 +82,7 @@
cinder_conf: "{{ cinder_confs.results|selectattr('item.key', 'equalto', service_name)|first }}"
policy_overwriting: "{{ cinder_policy_overwriting.results|selectattr('item.key', 'equalto', service_name)|first }}"
cinder_backup_container: "{{ check_cinder_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
become: true
kolla_docker:
action: "recreate_or_restart_container"
common_options: "{{ docker_common_options }}"

View File

@ -2,6 +2,7 @@
- name: Running Cinder bootstrap container
vars:
cinder_api: "{{ cinder_services['cinder-api'] }}"
become: true
kolla_docker:
action: "start_container"
common_options: "{{ docker_common_options }}"

View File

@ -120,6 +120,7 @@
when: inventory_hostname in groups['cinder-volume']
- name: Check cinder containers
become: true
kolla_docker:
action: "compare_container"
common_options: "{{ docker_common_options }}"

View File

@ -1,5 +1,6 @@
---
- name: Pulling cinder images
become: true
kolla_docker:
action: "pull_image"
common_options: "{{ docker_common_options }}"

View File

@ -19,6 +19,7 @@
- name: Running Cinder online schema migration
vars:
cinder_api: "{{ cinder_services['cinder-api'] }}"
become: true
kolla_docker:
action: "start_container"
common_options: "{{ docker_common_options }}"

View File

@ -7,6 +7,7 @@
cloudkitty_conf: "{{ cloudkitty_confs.results|selectattr('item.key', 'equalto', service_name)|first }}"
policy_overwriting: "{{ cloudkitty_policy_overwriting.results|selectattr('item.key', 'equalto', service_name)|first }}"
cloudkitty_api_container: "{{ check_cloudkitty_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
become: true
kolla_docker:
action: "recreate_or_restart_container"
common_options: "{{ docker_common_options }}"
@ -31,6 +32,7 @@
cloudkitty_conf: "{{ cloudkitty_confs.results|selectattr('item.key', 'equalto', service_name)|first }}"
policy_overwriting: "{{ cloudkitty_policy_overwriting.results|selectattr('item.key', 'equalto', service_name)|first }}"
cloudkitty_processor_container: "{{ check_cloudkitty_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
become: true
kolla_docker:
action: "recreate_or_restart_container"
common_options: "{{ docker_common_options }}"

View File

@ -2,6 +2,7 @@
- name: Running Cloudkitty bootstrap container
vars:
cloudkitty_api: "{{ cloudkitty_services['cloudkitty-api'] }}"
become: true
kolla_docker:
action: "start_container"
common_options: "{{ docker_common_options }}"

View File

@ -98,6 +98,7 @@
- Restart cloudkitty-processor container
- name: Check cloudkitty containers
become: true
kolla_docker:
action: "compare_container"
common_options: "{{ docker_common_options }}"

View File

@ -1,5 +1,6 @@
---
- name: Pulling cloudkitty images
become: true
kolla_docker:
action: "pull_image"
common_options: "{{ docker_common_options }}"

View File

@ -5,6 +5,7 @@
service: "{{ collectd_services[service_name] }}"
config_json: "{{ collectd_config_jsons.results|selectattr('item.key', 'equalto', service_name)|first }}"
collectd_container: "{{ check_collectd_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
become: true
kolla_docker:
action: "recreate_or_restart_container"
common_options: "{{ docker_common_options }}"

View File

@ -60,6 +60,7 @@
- Restart collectd container
- name: Check collectd containers
become: true
kolla_docker:
action: "compare_container"
common_options: "{{ docker_common_options }}"

View File

@ -1,5 +1,6 @@
---
- name: Pulling collectd image
become: true
kolla_docker:
action: "pull_image"
common_options: "{{ docker_common_options }}"

View File

@ -5,6 +5,7 @@
service: "{{ common_services[service_name] }}"
config_json: "{{ common_config_jsons.results|selectattr('item.key', 'equalto', service_name)|first }}"
fluentd_container: "{{ check_common_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
become: true
kolla_docker:
action: "recreate_or_restart_container"
common_options: "{{ docker_common_options }}"
@ -31,6 +32,7 @@
service: "{{ common_services[service_name] }}"
config_json: "{{ common_config_jsons.results|selectattr('item.key', 'equalto', service_name)|first }}"
kolla_toolbox_container: "{{ check_common_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
become: true
kolla_docker:
action: "recreate_or_restart_container"
common_options: "{{ docker_common_options }}"
@ -57,6 +59,7 @@
service: "{{ common_services[service_name] }}"
config_json: "{{ common_config_jsons.results|selectattr('item.key', 'equalto', service_name)|first }}"
cron_container: "{{ check_common_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
become: true
kolla_docker:
action: "recreate_or_restart_container"
common_options: "{{ docker_common_options }}"

View File

@ -1,5 +1,6 @@
---
- name: Creating log volume
become: true
kolla_docker:
action: "create_volume"
common_options: "{{ docker_common_options }}"

View File

@ -247,6 +247,7 @@
with_dict: "{{ common_services }}"
- name: Check common containers
become: true
kolla_docker:
action: "compare_container"
common_options: "{{ docker_common_options }}"

View File

@ -1,5 +1,6 @@
---
- name: Pulling common images
become: true
kolla_docker:
action: "pull_image"
common_options: "{{ docker_common_options }}"

View File

@ -7,6 +7,7 @@
congress_conf: "{{ congress_confs.results|selectattr('item.key', 'equalto', service_name)|first }}"
policy_overwriting: "{{ congress_policy_overwriting.results|selectattr('item.key', 'equalto', service_name)|first }}"
congress_api_container: "{{ check_congress_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
become: true
kolla_docker:
action: "recreate_or_restart_container"
common_options: "{{ docker_common_options }}"
@ -30,6 +31,7 @@
congress_conf: "{{ congress_confs.results|selectattr('item.key', 'equalto', service_name)|first }}"
policy_overwriting: "{{ congress_policy_overwriting.results|selectattr('item.key', 'equalto', service_name)|first }}"
congress_policy_engin_container: "{{ check_congress_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
become: true
kolla_docker:
action: "recreate_or_restart_container"
common_options: "{{ docker_common_options }}"
@ -53,6 +55,7 @@
congress_conf: "{{ congress_confs.results|selectattr('item.key', 'equalto', service_name)|first }}"
policy_overwriting: "{{ congress_policy_overwriting.results|selectattr('item.key', 'equalto', service_name)|first }}"
congress_datasource_container: "{{ check_congress_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
become: true
kolla_docker:
action: "recreate_or_restart_container"
common_options: "{{ docker_common_options }}"

View File

@ -2,6 +2,7 @@
- name: Running congress bootstrap container
vars:
congress_api: "{{ congress_services['congress-api'] }}"
become: true
kolla_docker:
action: "start_container"
common_options: "{{ docker_common_options }}"

View File

@ -78,6 +78,7 @@
- "Restart {{ item.key }} container"
- name: Check congress containers
become: true
kolla_docker:
action: "compare_container"
common_options: "{{ docker_common_options }}"

View File

@ -1,5 +1,6 @@
---
- name: Pulling congress images
become: true
kolla_docker:
action: "pull_image"
common_options: "{{ docker_common_options }}"

View File

@ -5,6 +5,7 @@
service: "{{ designate_services[service_name] }}"
config_json: "{{ designate_config_jsons.results|selectattr('item.key', 'equalto', service_name)|first }}"
designate_backend_bind9_container: "{{ check_designate_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
become: true
kolla_docker:
action: "recreate_or_restart_container"
common_options: "{{ docker_common_options }}"
@ -29,6 +30,7 @@
designate_conf: "{{ designate_confs.results|selectattr('item.key', 'equalto', service_name)|first }}"
policy_overwriting: "{{ designate_policy_overwriting.results|selectattr('item.key', 'equalto', service_name)|first }}"
designate_api_container: "{{ check_designate_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
become: true
kolla_docker:
action: "recreate_or_restart_container"
common_options: "{{ docker_common_options }}"
@ -52,6 +54,7 @@
designate_conf: "{{ designate_confs.results|selectattr('item.key', 'equalto', service_name)|first }}"
policy_overwriting: "{{ designate_policy_overwriting.results|selectattr('item.key', 'equalto', service_name)|first }}"
designate_central_container: "{{ check_designate_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
become: true
kolla_docker:
action: "recreate_or_restart_container"
common_options: "{{ docker_common_options }}"
@ -75,6 +78,7 @@
designate_conf: "{{ designate_confs.results|selectattr('item.key', 'equalto', service_name)|first }}"
policy_overwriting: "{{ designate_policy_overwriting.results|selectattr('item.key', 'equalto', service_name)|first }}"
designate_producer_container: "{{ check_designate_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
become: true
kolla_docker:
action: "recreate_or_restart_container"
common_options: "{{ docker_common_options }}"
@ -98,6 +102,7 @@
designate_conf: "{{ designate_confs.results|selectattr('item.key', 'equalto', service_name)|first }}"
policy_overwriting: "{{ designate_policy_overwriting.results|selectattr('item.key', 'equalto', service_name)|first }}"
designate_mdns_container: "{{ check_designate_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
become: true
kolla_docker:
action: "recreate_or_restart_container"
common_options: "{{ docker_common_options }}"
@ -121,6 +126,7 @@
designate_conf: "{{ designate_confs.results|selectattr('item.key', 'equalto', service_name)|first }}"
policy_overwriting: "{{ designate_policy_overwriting.results|selectattr('item.key', 'equalto', service_name)|first }}"
designate_worker_container: "{{ check_designate_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
become: true
kolla_docker:
action: "recreate_or_restart_container"
common_options: "{{ docker_common_options }}"
@ -146,6 +152,7 @@
designate_conf: "{{ designate_confs.results|selectattr('item.key', 'equalto', service_name)|first }}"
policy_overwriting: "{{ designate_policy_overwriting.results|selectattr('item.key', 'equalto', service_name)|first }}"
designate_sink_container: "{{ check_designate_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
become: true
kolla_docker:
action: "recreate_or_restart_container"
common_options: "{{ docker_common_options }}"

View File

@ -2,6 +2,7 @@
- name: Running Designate bootstrap container
vars:
designate_central: "{{ designate_services['designate-central'] }}"
become: true
kolla_docker:
action: "start_container"
common_options: "{{ docker_common_options }}"

View File

@ -177,6 +177,7 @@
- Restart designate-worker container
- name: Check designate containers
become: true
kolla_docker:
action: "compare_container"
common_options: "{{ docker_common_options }}"

View File

@ -1,5 +1,6 @@
---
- name: Pulling designate images
become: true
kolla_docker:
action: "pull_image"
common_options: "{{ docker_common_options }}"

View File

@ -6,6 +6,7 @@
config_json: "{{ elasticsearch_config_jsons.results|selectattr('item.key', 'equalto', service_name)|first }}"
elasticsearch_conf: "{{ elasticsearch_confs.results|selectattr('item.key', 'equalto', service_name)|first }}"
elasticsearch_container: "{{ check_elasticsearch_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
become: true
kolla_docker:
action: "recreate_or_restart_container"
common_options: "{{ docker_common_options }}"

View File

@ -50,6 +50,7 @@
- Restart elasticsearch container
- name: Check elasticsearch containers
become: true
kolla_docker:
action: "compare_container"
common_options: "{{ docker_common_options }}"

View File

@ -1,5 +1,6 @@
---
- name: Pulling elasticsearch image
become: true
kolla_docker:
action: "pull_image"
common_options: "{{ docker_common_options }}"

View File

@ -5,6 +5,7 @@
service: "{{ etcd_services[service_name] }}"
config_json: "{{ etcd_config_jsons.results|selectattr('item.key', 'equalto', service_name)|first }}"
etcd_container: "{{ check_etcd_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
become: true
kolla_docker:
action: "recreate_or_restart_container"
common_options: "{{ docker_common_options }}"

View File

@ -27,6 +27,7 @@
- Restart etcd container
- name: Check etcd containers
become: true
kolla_docker:
action: "compare_container"
common_options: "{{ docker_common_options }}"

View File

@ -1,5 +1,6 @@
---
- name: Pulling etcd image
become: true
kolla_docker:
action: "pull_image"
common_options: "{{ docker_common_options }}"

View File

@ -7,6 +7,7 @@
freezer_conf: "{{ freezer_confs.results|selectattr('item.key', 'equalto', service_name)|first }}"
policy_overwriting: "{{ freezer_policy_overwriting.results|selectattr('item.key', 'equalto', service_name)|first }}"
freezer_api_container: "{{ check_freezer_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
become: true
kolla_docker:
action: "recreate_or_restart_container"
common_options: "{{ docker_common_options }}"
@ -31,6 +32,7 @@
freezer_conf: "{{ freezer_confs.results|selectattr('item.key', 'equalto', service_name)|first }}"
policy_overwriting: "{{ freezer_policy_overwriting.results|selectattr('item.key', 'equalto', service_name)|first }}"
freezer_scheduler_container: "{{ check_freezer_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
become: true
kolla_docker:
action: "recreate_or_restart_container"
common_options: "{{ docker_common_options }}"

View File

@ -2,6 +2,7 @@
- name: Running Freezer bootstrap container
vars:
freezer_api: "{{ freezer_services['freezer-api'] }}"
become: true
kolla_docker:
action: "start_container"
common_options: "{{ docker_common_options }}"

View File

@ -95,6 +95,7 @@
- "Restart {{ item.key }} container"
- name: Check freezer containers
become: true
kolla_docker:
action: "compare_container"
common_options: "{{ docker_common_options }}"

View File

@ -1,5 +1,6 @@
---
- name: Pulling freezer images
become: true
kolla_docker:
action: "pull_image"
common_options: "{{ docker_common_options }}"

View File

@ -7,6 +7,7 @@
glance_conf: "{{ glance_confs.results|selectattr('item.key', 'equalto', service_name)|first }}"
policy_overwriting: "{{ glance_policy_overwriting.results|selectattr('item.key', 'equalto', service_name)|first }}"
glance_api_container: "{{ check_glance_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
become: true
kolla_docker:
action: "recreate_or_restart_container"
common_options: "{{ docker_common_options }}"
@ -32,6 +33,7 @@
glance_conf: "{{ glance_confs.results|selectattr('item.key', 'equalto', service_name)|first }}"
policy_overwriting: "{{ glance_policy_overwriting.results|selectattr('item.key', 'equalto', service_name)|first }}"
glance_registry_container: "{{ check_glance_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
become: true
kolla_docker:
action: "recreate_or_restart_container"
common_options: "{{ docker_common_options }}"

View File

@ -19,6 +19,7 @@
- name: Running Glance bootstrap container
vars:
glance_api: "{{ glance_services['glance-api'] }}"
become: true
kolla_docker:
action: "start_container"
common_options: "{{ docker_common_options }}"

View File

@ -112,6 +112,7 @@
- Restart glance-registry container
- name: Check glance containers
become: true
kolla_docker:
action: "compare_container"
common_options: "{{ docker_common_options }}"

View File

@ -1,5 +1,6 @@
---
- name: Pulling glance images
become: true
kolla_docker:
action: "pull_image"
common_options: "{{ docker_common_options }}"

View File

@ -32,6 +32,7 @@
- name: Running Glance database expand container
vars:
glance_api: "{{ glance_services['glance-api'] }}"
become: true
kolla_docker:
action: "start_container"
common_options: "{{ docker_common_options }}"
@ -52,6 +53,7 @@
- name: Running Glance database migrate container
vars:
glance_api: "{{ glance_services['glance-api'] }}"
become: true
kolla_docker:
action: "start_container"
common_options: "{{ docker_common_options }}"
@ -84,6 +86,7 @@
- name: Running Glance database contract container
vars:
glance_api: "{{ glance_services['glance-api'] }}"
become: true
kolla_docker:
action: "start_container"
common_options: "{{ docker_common_options }}"

View File

@ -2,6 +2,7 @@
- name: Stop glance service
vars:
glance_api: "{{ glance_services['glance-api'] }}"
become: true
kolla_docker:
action: "stop_container"
common_options: "{{ docker_common_options }}"

View File

@ -7,6 +7,7 @@
gnocchi_conf: "{{ gnocchi_confs.results|selectattr('item.key', 'equalto', service_name)|first }}"
policy_overwriting: "{{ gnocchi_policy_overwriting.results|selectattr('item.key', 'equalto', service_name)|first }}"
gnocchi_api_container: "{{ check_gnocchi_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
become: true
kolla_docker:
action: "recreate_or_restart_container"
common_options: "{{ docker_common_options }}"
@ -31,6 +32,7 @@
gnocchi_conf: "{{ gnocchi_confs.results|selectattr('item.key', 'equalto', service_name)|first }}"
policy_overwriting: "{{ gnocchi_policy_overwriting.results|selectattr('item.key', 'equalto', service_name)|first }}"
gnocchi_metricd_container: "{{ check_gnocchi_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
become: true
kolla_docker:
action: "recreate_or_restart_container"
common_options: "{{ docker_common_options }}"
@ -54,6 +56,7 @@
gnocchi_conf: "{{ gnocchi_confs.results|selectattr('item.key', 'equalto', service_name)|first }}"
policy_overwriting: "{{ gnocchi_policy_overwriting.results|selectattr('item.key', 'equalto', service_name)|first }}"
gnocchi_statsd_container: "{{ check_gnocchi_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
become: true
kolla_docker:
action: "recreate_or_restart_container"
common_options: "{{ docker_common_options }}"

View File

@ -2,6 +2,7 @@
- name: Running gnocchi bootstrap container
vars:
gnocchi_api: "{{ gnocchi_services['gnocchi-api'] }}"
become: true
kolla_docker:
action: "start_container"
common_options: "{{ docker_common_options }}"

View File

@ -101,6 +101,7 @@
- Restart gnocchi-statsd container
- name: Check gnocchi containers
become: true
kolla_docker:
action: "compare_container"
common_options: "{{ docker_common_options }}"

View File

@ -1,5 +1,6 @@
---
- name: Pulling gnocchi images
become: true
kolla_docker:
action: "pull_image"
common_options: "{{ docker_common_options }}"

View File

@ -6,6 +6,7 @@
config_json: "{{ grafana_config_jsons.results|selectattr('item.key', 'equalto', service_name)|first }}"
grafana_conf: "{{ grafana_confs.results|selectattr('item.key', 'equalto', service_name)|first }}"
grafana_container: "{{ check_grafana_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
become: true
kolla_docker:
action: "recreate_or_restart_container"
common_options: "{{ docker_common_options }}"

View File

@ -99,6 +99,7 @@
- Restart grafana container
- name: Check grafana containers
become: true
kolla_docker:
action: "compare_container"
common_options: "{{ docker_common_options }}"

View File

@ -1,5 +1,6 @@
---
- name: Pulling grafana image
become: true
kolla_docker:
action: "pull_image"
common_options: "{{ docker_common_options }}"

View File

@ -5,6 +5,7 @@
service: "{{ haproxy_services[service_name] }}"
config_json: "{{ haproxy_config_jsons.results|selectattr('item.key', 'equalto', service_name)|first }}"
haproxy_container: "{{ check_haproxy_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
become: true
kolla_docker:
action: "recreate_or_restart_container"
common_options: "{{ docker_common_options }}"
@ -29,6 +30,7 @@
service: "{{ haproxy_services[service_name] }}"
config_json: "{{ haproxy_config_jsons.results|selectattr('item.key', 'equalto', service_name)|first }}"
keepalived_container: "{{ check_haproxy_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
become: true
kolla_docker:
action: "recreate_or_restart_container"
common_options: "{{ docker_common_options }}"

View File

@ -94,6 +94,7 @@
- Ensuring latest haproxy config is used
- name: Check haproxy containers
become: true
kolla_docker:
action: "compare_container"
common_options: "{{ docker_common_options }}"

View File

@ -1,5 +1,6 @@
---
- name: Pulling haproxy images
become: true
kolla_docker:
action: "pull_image"
common_options: "{{ docker_common_options }}"

View File

@ -4,6 +4,7 @@
- set_fact: secondary_addresses={{ hostvars[inventory_hostname]['ansible_' + api_interface].get('ipv4_secondaries', []) | map(attribute='address') | list }}
- name: Stopping all slave keepalived containers
become: true
kolla_docker:
action: "stop_container"
common_options: "{{ docker_common_options }}"

View File

@ -7,6 +7,7 @@
heat_conf: "{{ heat_confs.results|selectattr('item.key', 'equalto', service_name)|first }}"
policy_overwriting: "{{ heat_policy_overwriting.results|selectattr('item.key', 'equalto', service_name)|first }}"
heat_api_container: "{{ check_heat_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
become: true
kolla_docker:
action: "recreate_or_restart_container"
common_options: "{{ docker_common_options }}"
@ -30,6 +31,7 @@
heat_conf: "{{ heat_confs.results|selectattr('item.key', 'equalto', service_name)|first }}"
policy_overwriting: "{{ heat_policy_overwriting.results|selectattr('item.key', 'equalto', service_name)|first }}"
heat_api_cfn_container: "{{ check_heat_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
become: true
kolla_docker:
action: "recreate_or_restart_container"
common_options: "{{ docker_common_options }}"
@ -53,6 +55,7 @@
heat_conf: "{{ heat_confs.results|selectattr('item.key', 'equalto', service_name)|first }}"
policy_overwriting: "{{ heat_policy_overwriting.results|selectattr('item.key', 'equalto', service_name)|first }}"
heat_engine_container: "{{ check_heat_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
become: true
kolla_docker:
action: "recreate_or_restart_container"
common_options: "{{ docker_common_options }}"

View File

@ -2,6 +2,7 @@
- name: Running Heat bootstrap container
vars:
heat_api: "{{ heat_services['heat-api'] }}"
become: true
kolla_docker:
action: "start_container"
common_options: "{{ docker_common_options }}"

View File

@ -95,6 +95,7 @@
- Restart heat-engine container
- name: Check heat containers
become: true
kolla_docker:
action: "compare_container"
common_options: "{{ docker_common_options }}"

View File

@ -1,5 +1,6 @@
---
- name: Pulling heat images
become: true
kolla_docker:
action: "pull_image"
common_options: "{{ docker_common_options }}"

View File

@ -3,6 +3,7 @@
vars:
service_name: "horizon"
service: "{{ horizon_services[service_name] }}"
become: true
kolla_docker:
action: "recreate_or_restart_container"
common_options: "{{ docker_common_options }}"

View File

@ -2,6 +2,7 @@
- name: Running Horizon bootstrap container
vars:
horizon: "{{ horizon_services['horizon'] }}"
become: true
kolla_docker:
action: "start_container"
common_options: "{{ docker_common_options }}"

View File

@ -136,6 +136,7 @@
- name: Check horizon container
vars:
horizon: "{{ horizon_services['horizon'] }}"
become: true
kolla_docker:
action: "compare_container"
common_options: "{{ docker_common_options }}"

View File

@ -1,5 +1,6 @@
---
- name: Pulling horizon images
become: true
kolla_docker:
action: "pull_image"
common_options: "{{ docker_common_options }}"

View File

@ -5,6 +5,7 @@
service: "{{ influxdb_services[service_name] }}"
config_json: "{{ influxdb_config_jsons.results|selectattr('item.key', 'equalto', service_name)|first }}"
influxdb_container: "{{ check_influxdb_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
become: true
kolla_docker:
action: "recreate_or_restart_container"
common_options: "{{ docker_common_options }}"

View File

@ -46,6 +46,7 @@
- Restart influxdb container
- name: Check influxdb containers
become: true
kolla_docker:
action: "compare_container"
common_options: "{{ docker_common_options }}"

View File

@ -1,5 +1,6 @@
---
- name: Pulling influxdb image
become: true
kolla_docker:
action: "pull_image"
common_options: "{{ docker_common_options }}"

View File

@ -7,6 +7,7 @@
ironic_conf: "{{ ironic_confs.results|selectattr('item.key', 'equalto', service_name)|first }}"
policy_json: "{{ ironic_policy_jsons.results|selectattr('item.key', 'equalto', service_name)|first }}"
ironic_api_container: "{{ check_ironic_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
become: true
kolla_docker:
action: "recreate_or_restart_container"
common_options: "{{ docker_common_options }}"
@ -30,6 +31,7 @@
ironic_conf: "{{ ironic_confs.results|selectattr('item.key', 'equalto', service_name)|first }}"
policy_json: "{{ ironic_policy_jsons.results|selectattr('item.key', 'equalto', service_name)|first }}"
ironic_conductor_container: "{{ check_ironic_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
become: true
kolla_docker:
action: "recreate_or_restart_container"
common_options: "{{ docker_common_options }}"
@ -53,6 +55,7 @@
config_json: "{{ ironic_config_jsons.results|selectattr('item.key', 'equalto', service_name)|first }}"
policy_json: "{{ ironic_policy_jsons.results|selectattr('item.key', 'equalto', service_name)|first }}"
ironic_inspector_container: "{{ check_ironic_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
become: true
kolla_docker:
action: "recreate_or_restart_container"
common_options: "{{ docker_common_options }}"
@ -75,6 +78,7 @@
service: "{{ ironic_services[service_name] }}"
config_json: "{{ ironic_config_jsons.results|selectattr('item.key', 'equalto', service_name)|first }}"
ironic_pxe_container: "{{ check_ironic_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
become: true
kolla_docker:
action: "recreate_or_restart_container"
common_options: "{{ docker_common_options }}"
@ -119,6 +123,7 @@
service: "{{ ironic_services[service_name] }}"
config_json: "{{ ironic_config_jsons.results|selectattr('item.key', 'equalto', service_name)|first }}"
ironic_dnsmasq_container: "{{ check_ironic_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
become: true
kolla_docker:
action: "recreate_or_restart_container"
common_options: "{{ docker_common_options }}"

View File

@ -54,6 +54,7 @@
- name: Running Ironic-PXE bootstrap container
vars:
ironic_pxe: "{{ ironic_services['ironic-pxe'] }}"
become: true
kolla_docker:
action: "start_container"
common_options: "{{ docker_common_options }}"

View File

@ -2,6 +2,7 @@
- name: Running Ironic bootstrap container
vars:
ironic_api: "{{ ironic_services['ironic-api'] }}"
become: true
kolla_docker:
action: "start_container"
common_options: "{{ docker_common_options }}"
@ -22,6 +23,7 @@
- name: Running Ironic Inspector bootstrap container
vars:
ironic_inspector: "{{ ironic_services['ironic-inspector'] }}"
become: true
kolla_docker:
action: "start_container"
common_options: "{{ docker_common_options }}"

View File

@ -251,6 +251,7 @@
- "Restart {{ item.key }} container"
- name: Check ironic containers
become: true
kolla_docker:
action: "compare_container"
common_options: "{{ docker_common_options }}"

View File

@ -1,5 +1,6 @@
---
- name: Pulling ironic images
become: true
kolla_docker:
action: "pull_image"
common_options: "{{ docker_common_options }}"

View File

@ -1,5 +1,6 @@
---
- name: Pulling iscsid image
become: true
kolla_docker:
action: "pull_image"
common_options: "{{ docker_common_options }}"
@ -7,6 +8,7 @@
when: inventory_hostname in groups['iscsid']
- name: Pulling tgtd image
become: true
kolla_docker:
action: "pull_image"
common_options: "{{ docker_common_options }}"

Some files were not shown because too many files have changed in this diff Show More