)]}'
{"tools/deploy_aio.sh":[{"author":{"_account_id":19384,"name":"Serguei Bezverkhi","email":"sbezverk@cisco.com","username":"sbezverk"},"change_message_id":"3fecca0f1ce14ca700563db0a114609851fb5a04","unresolved":false,"context_lines":[{"line_number":28,"context_line":"    nova service-list"},{"line_number":29,"context_line":"    neutron agent-list"},{"line_number":30,"context_line":"    tools/init-runonce"},{"line_number":31,"context_line":"    nova boot --poll --image $(openstack image list | awk \u0027/cirros/ {print $2}\u0027) --nic net-id\u003d$(openstack network list | awk \u0027/demo-net/ {print $2}\u0027) --flavor 1 kolla_boot_test"},{"line_number":32,"context_line":"    nova list"},{"line_number":33,"context_line":"    # If the status is not ACTIVE, print info and exit 1"},{"line_number":34,"context_line":"    nova show kolla_boot_test | awk \u0027{buf\u003dbuf\"\\n\"$0} $2\u003d\u003d\"status\" \u0026\u0026 $4!\u003d\"ACTIVE\" {failed\u003d\"yes\"}; END {if (failed\u003d\u003d\"yes\") {print buf; exit 1}}\u0027"},{"line_number":35,"context_line":"}"}],"source_content_type":"text/x-sh","patch_set":1,"id":"7a1b2928_b7777bd3","line":32,"range":{"start_line":31,"start_character":4,"end_line":32,"end_character":13},"updated":"2016-04-11 16:06:46.000000000","message":"I think to be on the safe side you need to give a bit of time to get into active state. On busy server switch from Spanning to Active could easily take seconds. I suggest to add sleep 30 seconds between nova boot and nova list.","commit_id":"6b0403ff399bcfe82df4681a859a703799c0f96a"},{"author":{"_account_id":7488,"name":"Jeffrey Zhang","email":"zhang.lei.fly@gmail.com","username":"Jeffrey4l"},"change_message_id":"cd4cb4794e3316bcc10cc8fac29c804b98f3bd5a","unresolved":false,"context_lines":[{"line_number":29,"context_line":"    neutron agent-list"},{"line_number":30,"context_line":"    tools/init-runonce"},{"line_number":31,"context_line":"    nova boot --poll --image $(openstack image list | awk \u0027/cirros/ {print $2}\u0027) --nic net-id\u003d$(openstack network list | awk \u0027/demo-net/ {print $2}\u0027) --flavor 1 kolla_boot_test"},{"line_number":32,"context_line":"    nova list"},{"line_number":33,"context_line":"    # If the status is not ACTIVE, print info and exit 1"},{"line_number":34,"context_line":"    nova show kolla_boot_test | awk \u0027{buf\u003dbuf\"\\n\"$0} $2\u003d\u003d\"status\" \u0026\u0026 $4!\u003d\"ACTIVE\" {failed\u003d\"yes\"}; END {if (failed\u003d\u003d\"yes\") {print buf; exit 1}}\u0027"},{"line_number":35,"context_line":"}"}],"source_content_type":"text/x-sh","patch_set":1,"id":"7a1b2928_9ad8a6f1","line":32,"updated":"2016-04-11 16:18:52.000000000","message":"no need. we are using the --poll parameter. So the nova boot will not\nexit until the instance\u0027s state became active or error\n\nand we use this pattern all the time. never saw it cause any issue.","commit_id":"6b0403ff399bcfe82df4681a859a703799c0f96a"}]}
