Skip to content

Commit 3c3d4be

Browse files
authored
Merge pull request #23 from bobuhiro11/fix_tests
Check console log in test.bash
2 parents 9a226b8 + a4a4154 commit 3c3d4be

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)