9 Commits

Author SHA1 Message Date
Clark Boylan
271d48cbd6 Use os.path.exists when caching devstack images
os.path.exist does not exist. Use os.path.exists instead.

Change-Id: Iad18569a07fd714733f9c3a13e2fcf53d012d516
2014-04-17 13:43:21 -07:00
Sean Dague
c7563689ee cache get-pip.py
One of the few network interactions that we still have in devstack
gate is downloading get-pip.py from github (it's not even in the
pypi cdn). This fails a few times a day on average.

This is avoidable by adding get-pip.py to the devstack cache during
node prep.

Closes-Bug: #1299176

Change-Id: I72a75f27a416e9a4cc98b42c2702293676ca0e2d
2014-04-17 07:11:47 -04:00
Sean Dague
2437690c56 support the new devstack image finder
if the new devstack image_list.sh tool is found, use that are our
definitive image collection API out of devstack. We fall back to
the old method if it's not found, or fails to execute cleanly.

Change-Id: I9c59ac505b0a1085add76bfc6cb1b14e5545fc28
2014-04-17 06:40:11 -04:00
Jenkins
5f5d5f88ff Merge "Skip downloading giant VMware images" 2014-03-14 18:36:43 +00:00
Monty Taylor
2f2a69a271 Skip downloading giant VMware images
We're never going to use them in devstack-gate.

Change-Id: I66b7d768276616b8f11052449a41ca304cbf8942
2014-03-14 10:09:44 -07:00
Clark Boylan
efdad7853b Download each cached image once.
Nodepool's devstack image cacher was redownloading every image one time
per devstack branch. We only need to download the image once if the
image name doesn't change.

Change-Id: Ib1910c34b8479ebad740a915fcc9297205cbe387
2014-03-12 15:41:43 -07:00
Jeremy Stanley
06199e8c60 Stop separately caching repos for devstack images
Since devstack-gate no longer relies on the workspace-cache
directory, this is an unnecessary waste of effort.

Change-Id: Ic9ef8b269d0184f5891d355901bbfb29f7273670
2014-02-21 15:36:30 +00:00
James E. Blair
bdba6e95e3 Handle empty IMAGE_URL lines in devstack_cache
Handles lines of the form:
        IMAGE_URLS=${IMAGE_URLS:-};;

Change-Id: Id99586393d28c3c11846f76634256cb497812e5e
2014-02-16 07:15:49 -08:00
James E. Blair
f816dc63ab Nodepool: cache all gerrit repos
Cache all review.openstack.org git repos in /opt/git.

Subsequent changes to gerrit-git-prep and devstack-gate will make
use of these repos (eventually deprecating the devstack-gate repos
is ~jenkins/workspace-cache).

Refactor the devstack cache python script a bit to make common
functions reusable.  Also rename it because underscores are better
than hyphens for python file names.

Change-Id: I4ae40613ebcca62b0dfc2eaba159557a4c71a529
2013-12-04 10:54:52 -08:00