cablelabs / snaps-openstack

OpenStack installer for SNAPS
Apache License 2.0
9 stars 10 forks source link

Fixes #138 #139

Closed bo-quan closed 6 years ago

bo-quan commented 6 years ago

What does this PR do?

Fixes the way to validate the success of async task init-runonce.

Do you have any concerns with this PR?

No

How can the reviewer verify this PR?

Run snaps-openstack deploy script.

Any background context you want to provide?

No

Screenshots or logs (if appropriate)

The new script output: TASK [debug] *** ok: [10.197.111.12] => { "out.ansible_job_id": "267110301958.3489" }

TASK [Validating task [run init-runonce] is successful] **** FAILED - RETRYING: TASK: Validating task [run init-runonce] is successful (59 retries left). Result was: {u'ansible_job_id': u'267110301958.3489', u'started': 1, u'changed': False, u'finished': 0, u'results_file': u'/root/.ansible_async/267110301958.3489', 'invocation': {'module_name': u'async_status', u'module_args': {u'jid': u'267110301958.3489', u'mode': u'status'}}} FAILED - RETRYING: TASK: Validating task [run init-runonce] is successful (58 retries left). Result was: {u'ansible_job_id': u'267110301958.3489', u'started': 1, u'changed': False, u'finished': 0, u'results_file': u'/root/.ansible_async/267110301958.3489', 'invocation': {'module_name': u'async_status', u'module_args': {u'jid': u'267110301958.3489', u'mode': u'status'}}} FAILED - RETRYING: TASK: Validating task [run init-runonce] is successful (57 retries left). Result was: {u'ansible_job_id': u'267110301958.3489', u'started': 1, u'changed': False, u'finished': 0, u'results_file': u'/root/.ansible_async/267110301958.3489', 'invocation': {'module_name': u'async_status', u'module_args': {u'jid': u'267110301958.3489', u'mode': u'status'}}} FAILED - RETRYING: TASK: Validating task [run init-runonce] is successful (56 retries left). Result was: {u'ansible_job_id': u'267110301958.3489', u'started': 1, u'changed': False, u'finished': 0, u'results_file': u'/root/.ansible_async/267110301958.3489', 'invocation': {'module_name': u'async_status', u'module_args': {u'jid': u'267110301958.3489', u'mode': u'status'}}} FAILED - RETRYING: TASK: Validating task [run init-runonce] is successful (55 retries left). Result was: {u'ansible_job_id': u'267110301958.3489', u'started': 1, u'changed': False, u'finished': 0, u'results_file': u'/root/.ansible_async/267110301958.3489', 'invocation': {'module_name': u'async_status', u'module_args': {u'jid': u'267110301958.3489', u'mode': u'status'}}} FAILED - RETRYING: TASK: Validating task [run init-runonce] is successful (54 retries left). Result was: {u'ansible_job_id': u'267110301958.3489', u'started': 1, u'changed': False, u'finished': 0, u'results_file': u'/root/.ansible_async/267110301958.3489', 'invocation': {'module_name': u'async_status', u'module_args': {u'jid': u'267110301958.3489', u'mode': u'status'}}} FAILED - RETRYING: TASK: Validating task [run init-runonce] is successful (53 retries left). Result was: {u'ansible_job_id': u'267110301958.3489', u'started': 1, u'changed': False, u'finished': 0, u'results_file': u'/root/.ansible_async/267110301958.3489', 'invocation': {'module_name': u'async_status', u'module_args': {u'jid': u'267110301958.3489', u'mode': u'status'}}} FAILED - RETRYING: TASK: Validating task [run init-runonce] is successful (52 retries left). Result was: {u'ansible_job_id': u'267110301958.3489', u'started': 1, u'changed': False, u'finished': 0, u'results_file': u'/root/.ansible_async/267110301958.3489', 'invocation': {'module_name': u'async_status', u'module_args': {u'jid': u'267110301958.3489', u'mode': u'status'}}} FAILED - RETRYING: TASK: Validating task [run init-runonce] is successful (51 retries left). Result was: {u'ansible_job_id': u'267110301958.3489', u'started': 1, u'changed': False, u'finished': 0, u'results_file': u'/root/.ansible_async/267110301958.3489', 'invocation': {'module_name': u'async_status', u'module_args': {u'jid': u'267110301958.3489', u'mode': u'status'}}} FAILED - RETRYING: TASK: Validating task [run init-runonce] is successful (50 retries left). Result was: {u'ansible_job_id': u'267110301958.3489', u'started': 1, u'changed': False, u'finished': 0, u'results_file': u'/root/.ansible_async/267110301958.3489', 'invocation': {'module_name': u'async_status', u'module_args': {u'jid': u'267110301958.3489', u'mode': u'status'}}} FAILED - RETRYING: TASK: Validating task [run init-runonce] is successful (49 retries left). Result was: {u'ansible_job_id': u'267110301958.3489', u'started': 1, u'changed': False, u'finished': 0, u'results_file': u'/root/.ansible_async/267110301958.3489', 'invocation': {'module_name': u'async_status', u'module_args': {u'jid': u'267110301958.3489', u'mode': u'status'}}} changed: [10.197.111.12]

Questions: