Log additional instance VM information
In the test script, launch_instance.sh, log additional information. - demo-subnet info before updating it - for the successfully launched instance VM, the network configuration (interface, routing, DNS) Change-Id: I3d2a3e1640b7b92062efdab5a34e2ecbdface005
This commit is contained in:
@@ -356,6 +356,10 @@ echo "ID for demo-net tenant network: $DEMO_NET_ID"
|
||||
echo "Listing available security groups."
|
||||
nova secgroup-list
|
||||
|
||||
echo "Settings for demo-subnet:"
|
||||
neutron subnet-show demo-subnet
|
||||
echo
|
||||
|
||||
if [ "$EXT_DNS" = true ]; then
|
||||
echo "Setting DNS name server for subnet (passed to booting instance VMs)."
|
||||
neutron subnet-update demo-subnet --dns_nameservers list=true 8.8.4.4
|
||||
@@ -364,6 +368,7 @@ else
|
||||
echo "Clearing DNS name server for subnet (passed to booting instance VMs)."
|
||||
neutron subnet-update demo-subnet --dns_nameservers action=clear
|
||||
fi
|
||||
|
||||
echo "Settings for demo-subnet:"
|
||||
neutron subnet-show demo-subnet
|
||||
echo
|
||||
@@ -736,6 +741,18 @@ echo
|
||||
echo "Accessing our instance using SSH from the controller node."
|
||||
ssh_no_chk "cirros@$floating_ip" uptime
|
||||
|
||||
echo
|
||||
echo "Interface configuration on instance VM."
|
||||
ssh_no_chk "cirros@$floating_ip" ip addr
|
||||
|
||||
echo
|
||||
echo "Routing information on instance VM."
|
||||
ssh_no_chk "cirros@$floating_ip" /sbin/route -n
|
||||
|
||||
echo
|
||||
echo "/etc/resolv.conf on instance VM."
|
||||
ssh_no_chk "cirros@$floating_ip" cat /etc/resolv.conf
|
||||
|
||||
echo
|
||||
echo "Pinging our own floating IP from inside the instance."
|
||||
ssh_no_chk "cirros@$floating_ip" ping -c1 "$floating_ip"
|
||||
|
||||
Reference in New Issue
Block a user