diff options
author | Jenkins <jenkins@review.openstack.org> | 2017-03-02 20:24:18 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2017-03-02 20:24:18 +0000 |
commit | 5b8cab7cfdec7aa324ed1b57f2795c9eca3baae4 (patch) | |
tree | 2dec51bb12ecfe9e49c26851767ea2b3235faa26 /puppet/services/ceilometer-agent-notification.yaml | |
parent | 6eba4325246351b96996e871aeeab56a03590209 (diff) | |
parent | 53225d57b1c4e3de722f9cdc25eefa9a3dec1e97 (diff) |
Merge "upgrades/validation: only run validation when services exist" into stable/ocata
Diffstat (limited to 'puppet/services/ceilometer-agent-notification.yaml')
-rw-r--r-- | puppet/services/ceilometer-agent-notification.yaml | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/puppet/services/ceilometer-agent-notification.yaml b/puppet/services/ceilometer-agent-notification.yaml index 429fe222..4ee43f49 100644 --- a/puppet/services/ceilometer-agent-notification.yaml +++ b/puppet/services/ceilometer-agent-notification.yaml @@ -50,9 +50,16 @@ outputs: step_config: | include ::tripleo::profile::base::ceilometer::agent::notification upgrade_tasks: + - name: Check if ceilometer_agent_notification is deployed + command: systemctl is-enabled openstack-ceilometer-notification + tags: common + ignore_errors: True + register: ceilometer_agent_notification_enabled - name: "PreUpgrade step0,validation: Check service openstack-ceilometer-notification is running" shell: /usr/bin/systemctl show 'openstack-ceilometer-notification' --property ActiveState | grep '\bactive\b' + when: ceilometer_agent_notification_enabled.rc == 0 tags: step0,validation - name: Stop ceilometer_agent_notification service tags: step1 + when: ceilometer_agent_notification_enabled.rc == 0 service: name=openstack-ceilometer-notification state=stopped |