X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=jjb%2Fcperf%2Fcirros-upload.yaml.ansible;h=855bb1f3d2e1037f1ebce9db8f6973c04cd0589e;hb=622cd7d594a4b4fcdff913ead7a29ce1409db9f1;hp=bdf5c55c08c77b2db46a640393dfd793775278b8;hpb=7815be76119cc79e187b3a3014778475c9c56f73;p=releng.git diff --git a/jjb/cperf/cirros-upload.yaml.ansible b/jjb/cperf/cirros-upload.yaml.ansible index bdf5c55c0..855bb1f3d 100644 --- a/jjb/cperf/cirros-upload.yaml.ansible +++ b/jjb/cperf/cirros-upload.yaml.ansible @@ -2,7 +2,7 @@ - hosts: all tasks: - copy: - src: "{{ item }}" + src: "{{ lookup('env', 'WORKSPACE') }}/{{ item }}" dest: "/home/heat-admin/{{ item }}" owner: heat-admin group: heat-admin @@ -12,6 +12,28 @@ - overcloudrc - name: Upload cirros glance image shell: > - source /home/heat-admin/overcloudrc && openstack image create cirros - --public --file /home/heat-admin/cirros-0.3.5-x86_64-disk.img + source /home/heat-admin/overcloudrc && openstack image create + cirros-0.3.5-x86_64-disk --public + --file /home/heat-admin/cirros-0.3.5-x86_64-disk.img --disk-format qcow2 --container-format bare + - name: Create nano flavor + shell: > + source /home/heat-admin/overcloudrc && openstack flavor create + --id 42 --ram 64 --disk 0 --vcpus 1 m1.nano + - name: Open CSIT TCP port for netcat + iptables: + chain: INPUT + action: insert + protocol: tcp + destination_port: 12345 + jump: ACCEPT + become: yes + - name: Open CSIT UDP port for netcat + iptables: + chain: INPUT + action: insert + protocol: udp + destination_port: 12345 + jump: ACCEPT + become: yes +