aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/odl_sfc/roles/setup-odl-sfc/tasks/control-servers-3.yml
blob: 1eb68871284bce5368cf236828fc0ea74b009863 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
---

- name: Perform a Neutron DB online upgrade
  command: |
    /openstack/venvs/neutron-{{ os_ver }}/bin/neutron-db-manage
                      --config-file /etc/neutron/neutron.conf
                      --config-file /etc/neutron/plugins/ml2/ml2_conf.ini
                      upgrade --expand
  become: "yes"
  become_user: "neutron"

- name: Perform a Neutron DB offline upgrade
  command: |
    /openstack/venvs/neutron-{{ os_ver }}/bin/neutron-db-manage
                      --config-file /etc/neutron/neutron.conf
                      --config-file /etc/neutron/plugins/ml2/ml2_conf.ini
                      upgrade --contract
  become: "yes"
  become_user: "neutron"

- name: SFC DB upgrade
  command: |
    /openstack/venvs/neutron-{{ os_ver }}/bin/neutron-db-manage
                      --subproject networking-sfc
                      upgrade head
  become: "yes"
  become_user: "neutron"
  when: odl_sfc == "Enable"

- name: fetch ml2_conf.ini to compass-tasks
  fetch:
    src: /etc/neutron/plugins/ml2/ml2_conf.ini
    dest: /tmp/
    flat: "yes"
  when: odl_sfc == "Enable"