corrupted dynamic_inventory.py backup file
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack-Ansible |
Fix Released
|
High
|
Shannon Mitchell |
Bug Description
I have been seeing the dynamic_
multiple people/scripts accessing the inventory for various tasks.
It looks like the /etc/openstack_
all future calls. The workaround is to blow it away the tar file and
rerun the dynamic_
You can simulate by running multiple calls to it at once.
root@shan5464-
#!/bin/bash
rm /etc/openstack_
for ITER in {1..40}; do
/opt/
done
wait
root@shan5464-
root@shan5464-
Traceback (most recent call last):
File "/opt/openstack
output = generate.
File "/opt/openstack
inventory, inv_path = filesys.
File "/opt/openstack
_make_
File "/opt/openstack
with tarfile.
File "/usr/lib/
return cls.taropen(name, mode, fileobj, **kwargs)
File "/usr/lib/
return cls(name, mode, fileobj, **kwargs)
File "/usr/lib/
raise ReadError(str(e))
tarfile.ReadError: empty header
root@shan5464-
root@shan5464-
{
"_meta": {
"hostvars": {
Looks like it may need to handle locking in osa_toolkit/
description: | updated |
Changed in openstack-ansible: | |
status: | New → Confirmed |
importance: | Undecided → High |
Changed in openstack-ansible: | |
assignee: | Kevin Carter (kevin-carter) → Jean-Philippe Evrard (jean-philippe-evrard) |
Changed in openstack-ansible: | |
status: | Fix Released → In Progress |
That looks terribad. Thanks for the bug report. We will triage this appropriately.
Could you tell us on which branch are you?