Victor Ryzhenkin | 655587f | 2017-05-24 20:00:07 +0400 | [diff] [blame^] | 1 | {% from 'virtual-mcp11-k8s-calico/underlay.yaml' import HOSTNAME_CTL02 with context %} |
| 2 | |
| 3 | # Clone virtlet project from git to the ctl02 node to get ceph scripts |
| 4 | - description: Cloning virtlet project on ctl02 |
| 5 | cmd: | |
| 6 | if [[ ! -d virtlet ]]; then |
| 7 | git clone -b master https://github.com/Mirantis/virtlet.git; |
| 8 | else |
| 9 | echo "Virtlet project already present on node"; |
| 10 | fi |
| 11 | node_name: {{ HOSTNAME_CTL02 }} |
| 12 | retry: {count: 1, delay: 1} |
| 13 | skip_fail: false |
| 14 | |
| 15 | # Make run_ceph.sh runnable |
| 16 | - description: Set monitor ip for ceph |
| 17 | cmd: | |
| 18 | NODE_IP=$(ifconfig | grep -A 1 ens3 | tail -n +2 | awk '{print $2}' | sed 's/addr://g') |
| 19 | sed -i "0,/MON_IP=.*/s//MON_IP=${NODE_IP}/" virtlet/tests/e2e/run_ceph.sh |
| 20 | node_name: {{ HOSTNAME_CTL02 }} |
| 21 | retry: {count: 1, delay: 1} |
| 22 | skip_fail: false |
| 23 | |
| 24 | # Run Ceph in docker |
| 25 | - description: Start Ceph container |
| 26 | cmd: | |
| 27 | SCR_DIR=$(realpath virtlet/tests/e2e) |
| 28 | virtlet/tests/e2e/run_ceph.sh ${SCR_DIR} |
| 29 | node_name: {{ HOSTNAME_CTL02 }} |
| 30 | retry: {count: 1, delay: 1} |
| 31 | skip_fail: false |