master tarballs publication is non atomic
Bug #1211717 reported by
Julien Danjou
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Core Infrastructure |
Triaged
|
Medium
|
Unassigned |
Bug Description
Ceilometer relies on nova-master.tgz for this tests. But I think that the way the tarballs are published isn't atomic, meaning we can download a tar.gz file that is being uploaded, before its upload is finished.
This failed one of our test in this case:
http://
Changed in openstack-ci: | |
status: | New → Triaged |
importance: | Undecided → Medium |
To post a comment you must log in.
We currently upload tarballs with SCP, which does not provide any mechnisms to aid in atomicity.
http:// bugs.debian. org/313044
This would instead need a specialized upload script which saves the file to a unique tempoary name on the same remote filesystem, then renames the new file to the intended name replacing the old copy in the process (this turns out to be an atomic operation on most common filesystems supported by the Linux kernel).
Alternatively, and something we've already talked about wanting anyway, we start uploading these files into a public Swift object store at a provider who doesn't put global URLs behind a lengthy caching reverse-proxy/CDN. We would need to write tools to update and publish or proxy a browsable index of those files (something missing from the Swift providers on which the project currently has donated resources- -basically we'd have to reinvent the equivalent of Apache's mod_autoindex).