Task [Output for async deployment <role name>] fails with an undefined variable when async deployment times out
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tripleo |
Fix Released
|
Medium
|
Takashi Kajinami |
Bug Description
Description
===========
When the async task to run software deployment scripts times out, the subsequent task to dump stderr fails with the "The task includes an option with an undefined variable." message.
The output is cosmetic but it's better we avoid the error unrelated to the root cause.
~~~
2022-01-12 12:47:02,503 p=234567 u=mistral n=ansible | TASK [Run async deployment ControllerDeplo
...
2022-01-12 13:18:54,173 p=234567 u=mistral n=ansible | fatal: [controller-0]: FAILED! => {"changed": false, "msg": "async task did not complete within the requested time - 1800s"}
2022-01-12 13:18:54,173 p=234567 u=mistral n=ansible | ...ignoring
...
2022-01-12 13:18:58,959 p=234567 u=mistral n=ansible | TASK [Output for async deployment ControllerDeplo
...
2022-01-12 13:18:58,996 p=234567 u=mistral n=ansible | fatal: [controller-0]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: 'dict object' has no attribute 'stderr'\n\nThe error appears to be in '/var/lib/
...
2022-01-12 13:18:59,050 p=234567 u=mistral n=ansible | NO MORE HOSTS LEFT *******
2022-01-12 13:18:59,051 p=234567 u=mistral n=ansible | PLAY RECAP *******
...
2022-01-12 13:18:59,052 p=234567 u=mistral n=ansible | controller-0 : ok=67 changed=35 unreachable=0 failed=1 skipped=43 rescued=0 ignored=1
...
~~~
Steps to reproduce
==================
1. Implement a long sleep task (>1800 seconds) for ExtraConfigPre resource
2. Run deployment
Expected result
===============
Deployment fails and the undefined variable error is not shown
Actual result
=============
Deployment fails and the undefined variable error is shown
Environment
===========
This issue was initially found in stable/train based deloyment
and reported in https:/
Logs & Configs
==============
N/A
Changed in tripleo: | |
importance: | Undecided → Low |
description: | updated |
description: | updated |
Changed in tripleo: | |
importance: | Low → Medium |
tags: | added: ux |
Changed in tripleo: | |
assignee: | nobody → Takashi Kajinami (kajinamit) |
Fix proposed to branch: master /review. opendev. org/c/openstack /tripleo- common/ +/825418
Review: https:/