#
# (c) Copyright 2018 SUSE LLC
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
#
---

- name: Run neutron-reconfigure
  shell: |
    ansible-playbook neutron-reconfigure.yml {{ extra_vars | default('') }} \
      -e '{{ ardana_extra_vars|to_json }}'
  args:
    chdir: "{{ ardana_scratch_path }}"

- name: Run neutron-status
  shell: |
    ansible-playbook neutron-status.yml
  args:
    chdir: "{{ ardana_scratch_path }}"

#
# (c) Copyright 2018 SUSE LLC
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
#
---

- name: Run neutron-reconfigure
  shell: |
    ansible-playbook neutron-reconfigure.yml {{ extra_vars | default('') }} \
      -e '{{ ardana_extra_vars|to_json }}'
  args:
    chdir: "{{ ardana_scratch_path }}"

# FIXME: workaround for SCRD-9144
- name: Wait a while to give neutron agents time to recover
  pause:
    minutes: 5

- name: Run neutron-status
  shell: |
    ansible-playbook neutron-status.yml
  args:
    chdir: "{{ ardana_scratch_path }}"

Revert "Configure neutron server and agents to run centralized routing (SOC-9144)"
Revert "Configure neutron server and agents to run centralized routing (SOC-9144)"

In cloud 8 Ardana, the neutron OVS agent on compute nodes still takes
a long time to restart. Re-adding the workaround to keep gating jobs
from failing.

This partially reverts commit ccdd3700f0aaae9b4d08b132485a09c55427f9a8.
