Skip to content

Commit a4a4154

Browse files
committed
Add restarting q-l3/q-meta and related tests
devstack@q-l3 and devstack@q-meta would not reconnect to RabbitMQ, restart them manually. Also check if the VM can get an IP address via DHCP and if it can connect to Metadata API. Signed-off-by: Nobuhiro MIKI <nob@bobuhiro11.net>
1 parent 9a226b8 commit a4a4154

1 file changed

Lines changed: 14 additions & 4 deletions

File tree

test.bash

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,24 @@
11
#!/bin/bash -xe
22

33
nova-manage cell_v2 discover_hosts --verbose
4+
5+
sudo systemctl restart devstack@q-l3
6+
sudo systemctl restart devstack@q-meta
7+
8+
sleep 10
49
openstack compute service list
510
openstack network agent list
11+
612
net_id=$(openstack network show private -f json 2>/dev/null | jq -r .id | tr -d "\r\n")
7-
nova boot --image cirros-0.5.2-x86_64-disk --flavor m1.medium --nic net-id=$net_id testvm
8-
sleep 15
13+
nova boot --image cirros-0.5.2-x86_64-disk --flavor m1.medium \
14+
--nic net-id=$net_id --availability-zone=nova:controller testvm
15+
sleep 60
16+
917
nova list
10-
nova show testvm
11-
nova list | grep ACTIVE
18+
nova show testvm | grep ACTIVE
19+
nova console-log testvm
20+
nova console-log testvm | grep "udhcpc: lease of"
21+
nova console-log testvm | grep "successful after"
1222
nova delete testvm
1323

1424
sudo journalctl --no-pager -n 300 -eu devstack@n-cpu

0 commit comments

Comments
 (0)