diff options
author | 2017-08-15 11:19:05 +0100 | |
---|---|---|
committer | 2017-08-16 12:10:29 +0100 | |
commit | 38d19681a9b37c7186aedc40b03c2cf4218d2fa9 (patch) | |
tree | 68f67a563a3e2c56bfefa5040552152d653b3802 /docker/services | |
parent | 6976b8f6502394b09fb502666a47c0b2fcbc5304 (diff) |
docker: Stop all active ceilometer services during compute upgrade
Ensure both the older compute and newer generic polling host services
are stopped during a compute upgrade.
Closes-Bug: #1710866
Change-Id: I2c63d6d50977eed112707c3c8aa6d46d8b796679
Diffstat (limited to 'docker/services')
-rw-r--r-- | docker/services/ceilometer-agent-compute.yaml | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/docker/services/ceilometer-agent-compute.yaml b/docker/services/ceilometer-agent-compute.yaml index 09677c64..535b1693 100644 --- a/docker/services/ceilometer-agent-compute.yaml +++ b/docker/services/ceilometer-agent-compute.yaml @@ -92,6 +92,21 @@ outputs: environment: - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS upgrade_tasks: - - name: Stop and disable ceilometer-agent-compute service + - name: Check if openstack-ceilometer-compute is deployed + command: systemctl is-enabled openstack-ceilometer-compute + tags: step2 + ignore_errors: True + register: openstack_ceilometer_compute_enabled + - name: Check if openstack-ceilometer-polling is deployed + command: systemctl is-enabled openstack-ceilometer-polling + tags: step2 + ignore_errors: True + register: openstack_ceilometer_polling_enabled + - name: Stop and disable ceilometer compute agent tags: step2 service: name=openstack-ceilometer-compute state=stopped enabled=no + when: openstack_ceilometer_compute_enabled.rc == 0 + - name: Stop and disable ceilometer polling agent + tags: step2 + service: name=openstack-ceilometer-polling state=stopped enabled=no + when: openstack_ceilometer_polling_enabled.rc == 0 |