Deployment fails with undefined variable when NetworkConfig fails
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tripleo |
Fix Released
|
Medium
|
Saravanan KR |
Bug Description
When the async task to run os-net-config fails, because of timeout, the deployment fails with error as undefined variable.
-------
TASK [Run NetworkConfig script] *******
Monday 10 February 2020 11:44:49 +0000 (0:00:01.035) 0:03:55.515 *******
...
ok: [overcloud-
TASK [Write rc of NetworkConfig script] *******
Monday 10 February 2020 11:53:48 +0000 (0:08:58.565) 0:12:54.080 *******
fatal: [overcloud-
changed: [overcloud-
NO MORE HOSTS LEFT *******
PLAY RECAP *******
overcloud-
overcloud-
undercloud : ok=3 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
Monday 10 February 2020 11:53:49 +0000 (0:00:00.948) 0:12:55.029 *******
=======
Ansible failed, check log at /var/lib/
Overcloud configuration failed.
Changed in tripleo: | |
milestone: | none → ussuri-2 |
assignee: | nobody → Saravanan KR (skramaja) |
importance: | Undecided → Medium |
status: | New → Triaged |
Changed in tripleo: | |
status: | Triaged → In Progress |
Changed in tripleo: | |
milestone: | ussuri-2 → ussuri-3 |
tags: | added: train-backport-potential |
Reviewed: https:/ /review. opendev. org/706878 /git.openstack. org/cgit/ openstack/ tripleo- heat-templates/ commit/ ?id=f17e06a778e 7663bcd88d6d834 74d426f62ef6be
Committed: https:/
Submitter: Zuul
Branch: master
commit f17e06a778e7663 bcd88d6d83474d4 26f62ef6be
Author: Saravanan KR <email address hidden>
Date: Mon Feb 10 18:30:34 2020 +0530
Fail NetworkConfig task on timeout
Running os-net-config as async, with failed_when as false
results in undefined variable error if async task times out.
Instead of ignoring failure of task, check for the
presense of results of the command execution 'rc', if it
is not defined, then rest of the tasks are not useful.
Closes-Bug: #1862627
Change-Id: Ibbcde856ac69bf 73a47086d95a52c 3b1a0d10911