From 123ab6c7e1d0fd6e0a6880814ab731b140539e91 Mon Sep 17 00:00:00 2001 From: Nauman Ahad Date: Tue, 18 Aug 2015 07:07:04 -0700 Subject: Added full automation to scripts Introduced Config.yaml file for each test case. User can modify these to enter the details for the machines on which to run benchmarks. This also leads to automation. JIRA: QTIP-6 Change-Id: Ifecab13968148cbd9d8f352309be77b8ca2d30f2 Signed-off-by: Nauman Ahad --- Test-cases/Bare_vs_Bare/Config.yaml | 4 ++ Test-cases/Bare_vs_VM/Config.yaml | 2 + Test-cases/Bare_vs_VM/SampleHeat.yaml | 93 +++++++++++++++++++++++++++++++++++ 3 files changed, 99 insertions(+) create mode 100644 Test-cases/Bare_vs_Bare/Config.yaml create mode 100644 Test-cases/Bare_vs_VM/Config.yaml create mode 100644 Test-cases/Bare_vs_VM/SampleHeat.yaml (limited to 'Test-cases') diff --git a/Test-cases/Bare_vs_Bare/Config.yaml b/Test-cases/Bare_vs_Bare/Config.yaml new file mode 100644 index 00000000..6612cbdc --- /dev/null +++ b/Test-cases/Bare_vs_Bare/Config.yaml @@ -0,0 +1,4 @@ +Machine_1_IP: 172.18.0.17 +Machine_1_Password: Op3nStack +Machine_2_IP: 172.18.0.16 +Machine_2_Password: Op3nStack diff --git a/Test-cases/Bare_vs_VM/Config.yaml b/Test-cases/Bare_vs_VM/Config.yaml new file mode 100644 index 00000000..e410a632 --- /dev/null +++ b/Test-cases/Bare_vs_VM/Config.yaml @@ -0,0 +1,2 @@ +Machine_1_IP: 172.18.0.17 +Machine_1_Password: Op3nStack diff --git a/Test-cases/Bare_vs_VM/SampleHeat.yaml b/Test-cases/Bare_vs_VM/SampleHeat.yaml new file mode 100644 index 00000000..6ee76ac0 --- /dev/null +++ b/Test-cases/Bare_vs_VM/SampleHeat.yaml @@ -0,0 +1,93 @@ + heat_template_version: 2014-10-16 + + description: Test10 + + parameters: + + public_network: + type: string + label: Public Network name or ID + description: Public network with floating IPs + default: "provider_network" + + private_net_name: + type: string + default: "private_network" + + availability_zone: + type: string + description: The Availability Zone to launch the instance. + default: compute1 + + resources: + + private_network: + type: OS::Neutron::Net + + + private_subnet: + type: OS::Neutron::Subnet + properties: + network_id: { get_resource: private_network } + cidr: 10.10.17.0/24 + dns_nameservers: + - 8.8.8.8 + + router_1: + type: OS::Neutron::Router + properties: + external_gateway_info: + network: { get_param: public_network } + + router_interface: + type: OS::Neutron::RouterInterface + properties: + router_id: { get_resource: router_1 } + subnet: { get_resource: private_subnet } + + public_port: + type: OS::Neutron::Port + properties: + network: { get_resource: private_network } + security_groups: [{ get_resource: demo1_security_Group }] + + floating_ip: + type: OS::Neutron::FloatingIP + properties: + floating_network: { get_param: public_network } + + floating_ip_assoc: + type: OS::Neutron::FloatingIPAssociation + properties: + floatingip_id: { get_resource: floating_ip } + port_id: { get_resource: public_port } + + demo1_security_Group: + type: OS::Neutron::SecurityGroup + properties: + name: demo1_security_Group + rules: + - protocol: tcp + port_range_min: 22 + port_range_max: 22 + - protocol: icmp + + my_instance: + type: OS::Nova::Server + properties: + image: QTIP_CentOS7 + flavor: m1.large + availability_zone: { get_param: availability_zone } + networks: + - port: { get_resource: public_port } + + + + outputs: + instance_ip: + description: IP address of the instance + value: { get_attr: [floating_ip, floating_ip_address] } + + + + -- cgit 1.2.3-korg