forked from rh-nfv-int/nfv-example-cnf-deploy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathupgrade.yaml
43 lines (41 loc) · 1.35 KB
/
upgrade.yaml
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
---
- hosts: localhost
gather_facts: no
tasks:
- name: update ssh config with node ips
command: /home/kni/cluster-deploy-configs/configs/ocp/node-helper.sh
- command: ssh -o LogLevel=ERROR -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null core@192.105.212.4 hostname
register: router_ip_node_out
- set_fact:
router_ip_node: "{{ router_ip_node_out.stdout }}"
- debug:
msg: "Router running on {{ router_ip_node }}, it should not be deleted"
- name: identify node
import_role:
name: example-cnf-upgrade
tasks_from: identify_node.yaml
when: trex_pod_node is undefined
- fail:
msg: "{{ router_ip_node}} cannot be used for upgrade"
when: router_ip_node == trex_pod_node
- debug:
msg: "Standalone node is {{ trex_pod_node }}"
- name: deploy machine and sriov sync
import_role:
name: example-cnf-upgrade
tasks_from: sync_create.yaml
- name: upgrade prepare
import_role:
name: example-cnf-upgrade
tasks_from: prepare.yaml
- name: do upgrade
import_role:
name: example-cnf-upgrade
tasks_from: upgrade.yaml
- name: packet drop check
import_role:
name: example-cnf-upgrade
tasks_from: drop-check.yaml
- name: execution results
debug:
var: packet_details