Repository navigation
[WIP] Pre pull images before running tests - #9622
aveshagarwal wants to merge 1 commit into
Conversation
| # grep -Iiroh "gcr.io/google_.*" "${OS_ROOT}" | \ | ||
| # sed -e "s/[,\")}]//g" | awk '{print $1}' | sort | uniq | tr '\n' ' ' | ||
|
|
||
| for i in gcr.io/google_containers/busybox \ |
There was a problem hiding this comment.
would be nice if something would complain if changes to this list were needed... was cleanup to the grep above required?
There was a problem hiding this comment.
It'd also be nice to capture images used in the OpenShift tests as well
50ed871 to
93e0147
Compare
93e0147 to
370b8be
Compare
|
For openshift I have only searched in origin/test/ dir and could find only 2 unique images: Also if you have any suggestions to improve the image search method in this PR, let me know. |
|
I just saw a ci failure due to gcr.io temporarily not being resolveable: In the case of the running select extended tests (in this case networking), the proposed approach of downloading all images would add unnecessary overhead where only a subset of images are required. A better solution would be a pull-through caching registry, but upstream docker appears to be dragging their feet on allowing the registry to cache from private registries like gcr.io: |
|
Our integrated registry supports pull-through, and I think it supports auth. Given that most if not all of the e2e images are fairly static tags (i.e. not "latest"), we could consider pre-pulling and baking the images into the AMI. |
|
Even considering the overhead of ensuring all required images are baked in the AMI, I think that would be easier than ensuring the availability of a persistent registry. The extended networking tests will have to do some extra work to ensure availability of baked-in images, but it should be as simple as exporting images from the host docker and loading them into the nested docker instances. |
|
bump. this is still flaking regularly on us. |
|
@smarterclayton @bparees @stevekuznetsov @danmcp given what @marun wrote above, do we want to bake the e2e images into the amis? |
|
@ncdc static tags will also change over time and given the number of images, wouldn't it require updating AMIs frequently? |
|
@aveshagarwal we update and rebuild the AMIs quite frequently |
|
We alternatively could pull the e2e images, retag them to 1 of our registries running in AWS, and then add code in the various e2e scripts to pull from our registry and then retag them back to gcr.io (this saves us from having to bake them in to the AMIs and it saves us from having to talk to gcr.io for each test) |
|
Also thinking if baking so many (third party) images into AMIs would be good from security point of view. |
|
? |
|
Just thinking out loud, If there is any security issue with any of the images, wouldn't keeping track and updating AMIs be an issue? |
|
These AMIs are strictly for running tests and as devenvs, and we rebuild them so often, the old ones get deleted soon enough. |
|
I don't see a problem with pre-pulling a few common images. |
|
The list has ~37 in it |
| gcr.io/google_containers/volume-nfs:0.6 | ||
| gcr.io/google_containers/volume-rbd:0.1 | ||
| gcr.io/google_samples/gb-redisslave:v1 | ||
| openshift/origin" |
There was a problem hiding this comment.
don't pull origin; we build it
|
@ncdc As long as individual tests associated with a particular pull aren't going to be dependent on particular versions of the images, it should be fine to cache them. |
|
@danmcp yeah these are pretty much all upstream tests in Kube. You can see the list of images in this PR |
|
Will we be able to use those images in extended tests? |
|
Origin Action Required: Pull request cannot be automatically merged, please rebase your branch from latest HEAD and push again |
|
Poor Rosie is working overtime labeling this as needs-rebase. @aveshagarwal I'll close this one out for now, if you revisit this effort we can open it back up. |
@ncdc
fixes #9444