diff options
author | Jenkins <jenkins@review.openstack.org> | 2017-09-11 15:57:52 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2017-09-11 15:57:52 +0000 |
commit | d99b7b9e067a036352fdc94217195f3d7055ea7b (patch) | |
tree | 3615dba2fbb39da57dfc20b91384ac91a3e359a6 /puppet/services/neutron-sriov-agent.yaml | |
parent | bb28bfd03c3897781f277bbcf07c241e43efdc75 (diff) | |
parent | 5d977e5e1bbf5eba378c9aaff02a44f747f642e6 (diff) |
Merge "Add Neutron SR-IOV agent container" into stable/pike
Diffstat (limited to 'puppet/services/neutron-sriov-agent.yaml')
-rw-r--r-- | puppet/services/neutron-sriov-agent.yaml | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/puppet/services/neutron-sriov-agent.yaml b/puppet/services/neutron-sriov-agent.yaml index 3c18209c..5c52ecfc 100644 --- a/puppet/services/neutron-sriov-agent.yaml +++ b/puppet/services/neutron-sriov-agent.yaml @@ -99,3 +99,17 @@ outputs: - get_attr: [RoleParametersValue, value] step_config: | include ::tripleo::profile::base::neutron::sriov + upgrade_tasks: + - name: Check if neutron_sriov_agent is deployed + command: systemctl is-enabled neutron-sriov-nic-agent + tags: common + ignore_errors: True + register: neutron_sriov_nic_agent_enabled + - name: "PreUpgrade step0,validation: Check service neutron-server is running" + shell: /usr/bin/systemctl show 'neutron-sriov-nic-agent' --property ActiveState | grep '\bactive\b' + when: neutron_sriov_nic_agent_enabled.rc == 0 + tags: step0,validation + - name: Stop neutron_sriov_nic_agent service + tags: step1 + when: neutron_sriov_nic_agent_enabled.rc == 0 + service: name=neutron-sriov-nic-agent state=stopped |