# key_filename:the path of the private key file for login
nodes:
--
- name: node1
- role: Controller
- ip: 10.1.0.50
- user: root
- password: root
-
name: node2
role: Controller
- ip: 10.1.0.51
+ ip: 192.168.10.10
user: root
password: root
-
name: node3
role: Controller
- ip: 10.1.0.52
+ ip: 192.168.10.11
user: root
password: root
-
name: node4
role: Compute
- ip: 10.1.0.53
+ ip: 192.168.10.12
user: root
password: root
-
name: node5
role: Compute
- ip: 10.1.0.54
+ ip: 192.168.10.13
user: root
password: root
--- /dev/null
+---
+# sample config file about the POD information, including the
+# name/IP/user/ssh key and Controllers/Computes
+#
+# The options of this config file include:
+# name: the name of this node
+# role: node's role, support role: Master/Controller/Comupte/BareMetal
+# ip: the node's IP address
+# user: the username for login
+# key_filename:the path of the private key file for login
+
+nodes:
+-
+ name: node1
+ role: Controller
+ ip: 10.1.0.50
+ user: root
+ password: root
+-
+ name: node2
+ role: Controller
+ ip: 10.1.0.51
+ user: root
+ password: root
+-
+ name: node3
+ role: Controller
+ ip: 10.1.0.52
+ user: root
+ password: root
+-
+ name: node4
+ role: Compute
+ ip: 10.1.0.53
+ user: root
+ password: root
+-
+ name: node5
+ role: Compute
+ ip: 10.1.0.54
+ user: root
+ password: root
context:
type: Node
name: IPV6
- file: /root/yardstick/etc/yardstick/nodes/compass_sclab_physical/pod.yaml
+ file: /root/yardstick/etc/yardstick/nodes/compass_sclab_virtual/pod.yaml
type: Ping6
options:
packetsize: 200
- host: host1,host2,host3,host4,host5
+ host: host2,host3,host4,host5
nodes:
- host1: node1.IPV6
host2: node2.IPV6
host3: node3.IPV6
host4: node4.IPV6
status, stdout, stderr = self.client.execute(cmd)
host_name = stdout.strip()
print host_name
+ self.client.run("cat ~/vRouterKey",
+ stdout=open("/tmp/vRouterKey", "w"))
self._ssh_host(host_name)
+
+ self.client.run("cat > ~/vRouterKey",
+ stdin=open("/tmp/vRouterKey", "rb"))
+
self.client.run("cat > ~/ping6.sh",
stdin=open(self.ping6_script, "rb"))
cmd = "sudo bash ping6.sh"
if [ $retry -ge 40 ];
then
echo "vm ssh start timeout !!!"
- exit 0
+ exit 0
fi
done
}
wait_vm_ok
-sleep 600
-sudo ip netns exec qdhcp-$(neutron net-list | grep -w ipv4-int-network1 | awk '{print $2}') ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -i vRouterKey fedora@20.0.0.4 "ping6 -c 1 2001:db8:0:1::1 | grep ttl | awk -F [=\ ] '{printf \$10}'"
+sleep 360
+sudo ip netns exec qdhcp-$(neutron net-list | grep -w ipv4-int-network1 | awk '{print $2}') ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -i vRouterKey fedora@20.0.0.4 "ping6 -c 1 2001:db8:0:1::1 | grep ttl | awk -F [=\ ] '{printf \$10}'"
\ No newline at end of file
source /opt/admin-openrc.sh
host_num=$(neutron dhcp-agent-list-hosting-net ipv4-int-network1 | grep True | awk -F [=\ ] '{printf $4}') > /tmp/ipv6.log
-scp vRouterKey $host_num:~
echo $host_num
\ No newline at end of file
# download and create image
source /opt/admin-openrc.sh
-wget https://download.fedoraproject.org/pub/fedora/linux/releases/22/Cloud/x86_64/Images/Fedora-Cloud-Base-22-20150521.x86_64.qcow2
+wget https://download.fedoraproject.org/pub/fedora/linux/releases/22/Cloud/x86_64/Images/Fedora-Cloud-Base-22-20150521.x86_64.qcow2 >/dev/null 2>&1
+
glance image-create --name 'Fedora22' --disk-format qcow2 \
--container-format bare --file ./Fedora-Cloud-Base-22-20150521.x86_64.qcow2