diff options
author | Jenkins <jenkins@review.openstack.org> | 2017-04-06 10:35:52 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2017-04-06 10:35:52 +0000 |
commit | 4fb4cc780db09d516f185b3bb0f354e226818495 (patch) | |
tree | ea052fdf3b4bcad6beb5f7100d992059f9ef22b9 /puppet/services/opendaylight-ovs.yaml | |
parent | 4ddfe417754de3fb123303ede207dd25418428ad (diff) | |
parent | d2d319ec0ead06b860f8464b001048fb4f723788 (diff) |
Merge "Add manual ovs upgrade script for workaround ovs upgrade issue"
Diffstat (limited to 'puppet/services/opendaylight-ovs.yaml')
-rw-r--r-- | puppet/services/opendaylight-ovs.yaml | 36 |
1 files changed, 23 insertions, 13 deletions
diff --git a/puppet/services/opendaylight-ovs.yaml b/puppet/services/opendaylight-ovs.yaml index 5cf416f3..ed572b4d 100644 --- a/puppet/services/opendaylight-ovs.yaml +++ b/puppet/services/opendaylight-ovs.yaml @@ -48,6 +48,10 @@ parameters: default: {} type: json +resources: + OpenVswitchUpgrade: + type: ./openvswitch-upgrade.yaml + outputs: role_data: description: Role data for the OpenDaylight service. @@ -70,16 +74,22 @@ outputs: step_config: | include tripleo::profile::base::neutron::plugins::ovs::opendaylight upgrade_tasks: - - name: Check if openvswitch is deployed - command: systemctl is-enabled openvswitch - tags: common - ignore_errors: True - register: openvswitch_enabled - - name: "PreUpgrade step0,validation: Check service openvswitch is running" - shell: /usr/bin/systemctl show 'openvswitch' --property ActiveState | grep '\bactive\b' - when: openvswitch_enabled.rc == 0 - tags: step0,validation - - name: Stop openvswitch service - tags: step1 - when: openvswitch_enabled.rc == 0 - service: name=openvswitch state=stopped + yaql: + expression: $.data.ovs_upgrade + $.data.opendaylight_upgrade + data: + ovs_upgrade: + get_attr: [OpenVswitchUpgrade, role_data, upgrade_tasks] + opendaylight_upgrade: + - name: Check if openvswitch is deployed + command: systemctl is-enabled openvswitch + tags: common + ignore_errors: True + register: openvswitch_enabled + - name: "PreUpgrade step0,validation: Check service openvswitch is running" + shell: /usr/bin/systemctl show 'openvswitch' --property ActiveState | grep '\bactive\b' + when: openvswitch_enabled.rc == 0 + tags: step0,validation + - name: Stop openvswitch service + tags: step1 + when: openvswitch_enabled.rc == 0 + service: name=openvswitch state=stopped |