aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/odl_sfc/roles/setup-odl-sfc/tasks/control-servers-3.yml
blob: 0c11e36fd36d7b8fce636e91e580a0d48cfe3a98 (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
---

- name: Perform a Neutron DB online upgrade
  command: |
    /openstack/venvs/neutron-15.1.4/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-15.1.4/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-15.1.4/bin/neutron-db-manage
                      --subproject networking-sfc
                      upgrade head
  become: "yes"
  become_user: "neutron"
  when: odl_sfc == "Enable"