summaryrefslogtreecommitdiffstats
path: root/lib/ansible/playbooks/post_deploy_overcloud.yml
blob: af1c648a67dd372014869863c03399caa34d867b (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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
---
- hosts: all
  tasks:
    - name: Bring up br-phy for OVS DPDK
      shell: ifup br-phy
      when:
        - dataplane == 'ovs_dpdk'
        - "'compute' in ansible_hostname"
      become: yes
    - name: Restart OVS Agent for DPDK
      shell: systemctl restart neutron-openvswitch-agent
      when:
        - dataplane == 'ovs_dpdk'
        - "'compute' in ansible_hostname"
        - sdn == false
    - name: SFC config workaround
      file:
        src: /etc/neutron/networking_sfc.conf
        dest: /etc/neutron/conf.d/neutron-server/networking_sfc.conf
        state: link
      become: yes
      when:
        - sfc
        - "'controller' in ansible_hostname"
    - name: Ensure ZRPCD is running
      shell: ps aux | grep zrpcd | grep -v grep
      ignore_errors: yes
      changed_when: false
      register: zrpcd_status
      failed_when: zrpcd_status.rc == 0
      when:
        - vpn
        - "'controller-0' in ansible_hostname"
    - name: VSPERF build base machine
      shell: /build_base_machine.sh
      args:
        chdir: /var/opt/vsperf/systems/
      become: yes
      when:
        - vsperf
        - "'compute-0' in ansible_hostname"
    - name: Fetch logs from node
      fetch:
        src: /var/log/messages
        dest: "{{ apex_temp_dir }}"
    - name: Tacker Fernet Keys Directory
      file:
        path: /etc/tacker/vim/fernet_keys
        state: directory
        mode: 0775
        owner: root
        group: tacker
      become: yes