1 heat_template_version: 2015-04-30
4 Used to run VMs with DPDK pktgen
9 description: Name of the image
10 default: yardstick-wily-server
14 description: Timeout in seconds for WaitCondition, depends on your image and environment
19 description: Name of the external network which management network will connect to
20 default: admin_floating_net
24 type: OS::Nova::Flavor
31 type: OS::Neutron::Net
36 type: OS::Neutron::Subnet
41 network: { get_resource: network }
44 type: OS::Neutron::Router
46 name: management_router
47 external_gateway_info:
48 network: { get_param: external_net_name }
50 management_router_interface:
51 type: OS::Neutron::RouterInterface
53 router: { get_resource: management_router }
54 subnet: { get_resource: subnet }
57 type: OS::Neutron::FloatingIP
59 floating_network: { get_param: external_net_name }
61 floating_ip_association:
62 type: OS::Nova::FloatingIPAssociation
64 floating_ip: { get_resource: floating_ip }
65 server_id: {get_resource: dpdk_vm}
68 type: OS::Nova::KeyPair
71 public_key: ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQD0RkXfW6pksd1cZmXuvXZF/Mlqqq3ahIGcGoULOC97XMpu0vdxMpcUwdjwGqMwEXTVyfHidu0l99bLqOCpSUKCmbWx3ONJ+1kqFx4HwsKEWLiyDYqsuMrDeZT1eFjC5avCoTcrIw2wq5NaBb00lDGagNZOeopaL5YIa4+PizEY23+cir24D67NU21Fg3JE92AIeGlNa4j66L3a+lL0hZq74Dilmp42wm4GsbplRO6KJfyaraowHb1X+TmhCjBgHk6M/OJ9yPAroZyJNcwjMAuuxhAYWRuT3SdbnoUR0RG2VhfDh0qNid7vOqLbhKPeaLLFmzkN+9w3WdCp6LbSYt87 yardstick@yardstick.opnfv.org
74 type: OS::Heat::WaitConditionHandle
77 type: OS::Heat::WaitCondition
79 handle: { get_resource: wait_handle }
81 timeout: { get_param: timeout }
84 type: OS::Nova::Server
85 depends_on: [subnet, keypair, flavor]
87 name: { get_param: "OS::stack_name" }
88 image: { get_param: image }
89 flavor: { get_resource: flavor }
90 key_name: {get_resource: keypair}
92 - network: { get_resource: network }
94 user_data_format : RAW
99 cat <<'CEOF' > /tmp/dpdk_post_build.sh
101 export RTE_TARGET=x86_64-native-linuxapp-gcc
103 make install T=x86_64-native-linuxapp-gcc DESTDIR=destdir
105 insmod /dpdk/x86_64-native-linuxapp-gcc/kmod/igb_uio.ko
106 insmod /dpdk/x86_64-native-linuxapp-gcc/kmod/rte_kni.ko
110 rm -rf /var/lib/cloud/instances
112 ls /dpdk/x86_64-native-linuxapp-gcc/kmod/
113 $NOTIFY --data-binary '{"status": "SUCCESS"}'
115 chmod +x /tmp/dpdk_post_build.sh
117 nohup /tmp/dpdk_post_build.sh &
119 $NOTIFY: { get_attr: ['wait_handle', 'curl_cli'] }
123 description: uuid of the VM
124 value: { get_attr: [ dpdk_vm, show,id ] }