Merge "Enables OpenDaylight clustering in HA deployments"
authorJenkins <jenkins@review.openstack.org>
Wed, 22 Mar 2017 03:55:50 +0000 (03:55 +0000)
committerGerrit Code Review <review@openstack.org>
Wed, 22 Mar 2017 03:55:50 +0000 (03:55 +0000)
1  2 
puppet/services/opendaylight-api.yaml

@@@ -66,28 -61,6 +66,29 @@@ outputs
                    - {get_param: OpenDaylightPort}
                    - 6640
                    - 6653
+                   - 2550
        step_config: |
          include tripleo::profile::base::neutron::opendaylight
 +      upgrade_tasks:
 +        - name: Check if opendaylight is deployed
 +          command: systemctl is-enabled opendaylight
 +          tags: common
 +          ignore_errors: True
 +          register: opendaylight_enabled
 +        - name: "PreUpgrade step0,validation: Check service opendaylight is running"
 +          shell: /usr/bin/systemctl show 'opendaylight' --property ActiveState | grep '\bactive\b'
 +          when: opendaylight_enabled.rc == 0
 +          tags: step0,validation
 +        - name: Stop opendaylight service
 +          tags: step1
 +          when: opendaylight_enabled.rc == 0
 +          service: name=opendaylight state=stopped
 +        - name: Removes ODL snapshots, data, journal directories
 +          file:
 +            state: absent
 +            path: /opt/opendaylight/{{item}}
 +          tags: step2
 +          with_items:
 +            - snapshots
 +            - data
 +            - journal