summaryrefslogtreecommitdiffstats
path: root/tests/data
diff options
context:
space:
mode:
authorzhongjun <zhong.jun@zte.com.cn>2017-09-08 17:27:26 +0800
committerzhongjun <zhong.jun@zte.com.cn>2017-09-11 17:15:03 +0800
commit81f5a26699ced0d7f254d05705e8c028471e44d1 (patch)
tree0a3162ab21c6c58e9543de5eefaab7cbfaa3ff41 /tests/data
parent923bd1535dd590754c33a6a8e2a664fd07eb4227 (diff)
Add the pytest file test_deploy.py
1.add the pytest file test_deploy.py 2.fix the tmpfile clearup issue. Change-Id: I3a7e0f9199f1bf518b332fd3e9884c8f084575ae Signed-off-by: zhongjun <zhong.jun@zte.com.cn>
Diffstat (limited to 'tests/data')
-rw-r--r--tests/data/daisy_conf/daisy.conf38
-rw-r--r--tests/data/lab_conf/network_baremetal.yml84
2 files changed, 122 insertions, 0 deletions
diff --git a/tests/data/daisy_conf/daisy.conf b/tests/data/daisy_conf/daisy.conf
new file mode 100644
index 00000000..22e71d59
--- /dev/null
+++ b/tests/data/daisy_conf/daisy.conf
@@ -0,0 +1,38 @@
+[DEFAULT]
+#The mangement ip of daisy
+#When Daisy will be installed in the virtual machine, this option is required.
+daisy_management_ip=10.20.11.2
+
+[BACKEND]
+#Default backend types of daisy, including tecs, zenic, proton, kolla.
+#If you want to create a cluster with more than one backend,
+#all backend names should be provided for this configuration item,
+#such as, default_backend_types=tecs,zenic,proton,kolla.
+default_backend_types=kolla
+
+[OS]
+#Default os install types of daisy
+os_install_type=pxe
+
+[PXE]
+#Set to 'yes' if you want to build a PXE server, otherwise to 'no'.
+build_pxe=no
+
+#the nic name, to build a PXE server on this nic.
+eth_name=ens3
+
+#The ip value of PXE server
+ip_address=99.99.1.5
+
+#the net mask of PXE server
+net_mask=255.255.255.0
+
+#The start value of PXE client ip range
+client_ip_begin=99.99.1.50
+
+#The end value of PXE client ip range
+client_ip_end=99.99.1.150
+
+[multicast]
+#enabled multicast or not.
+daisy_conf_mcast_enabled=False
diff --git a/tests/data/lab_conf/network_baremetal.yml b/tests/data/lab_conf/network_baremetal.yml
new file mode 100644
index 00000000..36640c1a
--- /dev/null
+++ b/tests/data/lab_conf/network_baremetal.yml
@@ -0,0 +1,84 @@
+##############################################################################
+# Copyright (c) 2017 ZTE Coreporation and others.
+# hu.zhijiang@zte.com.cn
+# sun.jing22@zte.com.cn
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Apache License, Version 2.0
+# which accompanies this distribution, and is available at
+# http://www.apache.org/licenses/LICENSE-2.0
+##############################################################################
+
+##############################################################################
+# Description
+# MANAGEMENT: used for PXE, vlan used
+# SOTRAGE: used for storage access
+# EXTERNAL: tenant public/floating IP associated network,
+# requires a dedicated interface
+# PUBLICAPI: used for horizon access, openstack API access
+# TENANT: used for tenant access, vlan and VxLan supported, default VxLan
+##############################################################################
+network-config-metadata:
+ title: 'Deployment Adapter for baremetal POD'
+ version: '0.1'
+ created: 'Feb 2 2017'
+ comment: 'For Daisy initial'
+networks:
+ - cidr: '192.168.71.0/24'
+ gateway: '192.168.71.1'
+ ip_ranges:
+ - 'start': '192.168.71.2'
+ 'end': '192.168.71.254'
+ vlan_id: 171
+ name: 'MANAGEMENT'
+ - cidr: '192.168.72.0/24'
+ gateway: '192.168.72.1'
+ ip_ranges:
+ - 'start': '192.168.72.2'
+ 'end': '192.168.72.254'
+ vlan_id: 172
+ name: 'STORAGE'
+ - cidr: '172.70.0.0/24'
+ gateway: '172.70.0.1'
+ ip_ranges:
+ - 'start': '172.70.0.2'
+ 'end': '172.70.0.100'
+ vlan_id: 173
+ 'name': 'EXTERNAL'
+ network_name: 'admin_external'
+ mapping: 'physnet1'
+ - cidr: '192.168.71.0/24'
+ gateway: '192.168.71.1'
+ ip_ranges:
+ - 'start': '192.168.71.2'
+ 'end': '192.168.71.254'
+ vlan_id: 171
+ name: 'PUBLICAPI'
+ - cidr: '192.168.73.0/24'
+ gateway: '192.168.73.1'
+ ip_ranges:
+ - 'start': '192.168.73.2'
+ 'end': '192.168.73.254'
+ vlan_id: 1130
+ name: 'TENANT'
+ - cidr: '10.20.7.0/24'
+ gateway: '10.20.7.1'
+ ip_ranges:
+ - 'start': '10.20.7.20'
+ 'end': '10.20.7.200'
+ vlan_id: null
+ name: 'HEARTBEAT'
+interfaces:
+ - name: 'EXTERNAL'
+ interface: 'ens44f1'
+ - name: 'MANAGEMENT'
+ interface: 'ens12f0'
+ - name: 'PUBLICAPI'
+ interface: 'ens12f0'
+ - name: 'STORAGE'
+ interface: 'ens12f1'
+ - name: 'TENANT'
+ interface: 'ens44f0'
+ - name: 'HEARTBEAT'
+ interface: 'ens4f0'
+internal_vip: '192.168.71.10'
+public_vip: '10.20.7.11'