Intermittent failure to unarchive nova venv
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack-Ansible |
Opinion
|
Low
|
Jean-Philippe Evrard |
Bug Description
I have an intermittent build failure that seems to happen approximately 1 out of 8 or 10 builds. Re-running the same deployment code on the same hardware generally resolves the issue.
It seems like the "Create nova venv dir" task returns successfully, but when we reach "Unarchive pre-built venv", it fails because the venv directory is not created. If this is unsuccessful on the first pass, it fails indefinitely because we don't retry these tasks unless the SHA for the venv archive in /var/cache does not match the remote venv archive's SHA.
This problem is occurring on the Liberty branch.
First pass failure:
```
TASK: [os_nova | Set nova get_venv fact] *******
ok: [infra01-
ok: [infra01-
ok: [infra01-
ok: [infra01-
ok: [infra01-d]
ok: [infra01-
ok: [infra01-
TASK: [os_nova | Remove existing venv] *******
changed: [infra01-
changed: [infra01-
changed: [infra01-
changed: [infra01-
changed: [infra01-
changed: [infra01-d]
changed: [infra01-
TASK: [os_nova | Create nova venv dir] *******
changed: [infra01-
changed: [infra01-
changed: [infra01-d]
changed: [infra01-
changed: [infra01-
changed: [infra01-
changed: [infra01-
TASK: [os_nova | Unarchive pre-built venv] *******
failed: [infra01-
msg: dest '/openstack/
changed: [infra01-d]
changed: [infra01-
changed: [infra01-
changed: [infra01-
changed: [infra01-
changed: [infra01-
```
Subsequent pass failure:
```
TASK: [os_nova | Set nova get_venv fact] *******
ok: [infra01-
ok: [infra01-
ok: [infra01-
ok: [infra01-
ok: [infra01-
ok: [infra01-d]
ok: [infra01-
TASK: [os_nova | Remove existing venv] *******
skipping: [infra01-
skipping: [infra01-
skipping: [infra01-
skipping: [infra01-
skipping: [infra01-
skipping: [infra01-d]
skipping: [infra01-
TASK: [os_nova | Create nova venv dir] *******
skipping: [infra01-
skipping: [infra01-
skipping: [infra01-
skipping: [infra01-
skipping: [infra01-
skipping: [infra01-d]
skipping: [infra01-
TASK: [os_nova | Unarchive pre-built venv] *******
skipping: [infra01-
skipping: [infra01-
skipping: [infra01-
skipping: [infra01-d]
skipping: [infra01-
skipping: [infra01-
skipping: [infra01-
TASK: [os_nova | Update virtualenv path] *******
failed: [infra01-
stdout: error: /openstack/
changed: [infra01-d]
changed: [infra01-
changed: [infra01-
changed: [infra01-
changed: [infra01-
changed: [infra01-
```
View of destination directory:
```
root@infra01-
/openstack/
total 12
drwxr-xr-x 3 root root 4096 May 3 11:48 ./
drwxr-xr-x 3 root root 4096 May 3 10:19 ../
drwxr-xr-x 2 root root 4096 May 3 11:48 bin/
/openstack/
total 8
drwxr-xr-x 2 root root 4096 May 3 11:48 ./
drwxr-xr-x 3 root root 4096 May 3 11:48 ../
```
There is nothing wrong with the nova venv archive we downloaded:
```
root@infra01-
./
./local/
./local/lib/
./local/
./local/
...
./share/
./share/
./share/
./share/
./share/
root@infra01-
```
Changed in openstack-ansible: | |
status: | New → Opinion |
importance: | Undecided → Low |
assignee: | nobody → Jean-Philippe Evrard (jean-philippe-evrard) |
This seems to be related to [1].
[1] https:/ /github. com/ansible/ ansible- modules- core/issues/ 932