Skip to content

[WIP] Pre pull images before running tests - #9622

Closed
aveshagarwal wants to merge 1 commit into
openshift:masterfrom
aveshagarwal:master-test-pre-pull-images
Closed

aveshagarwal wants to merge 1 commit into
openshift:masterfrom
aveshagarwal:master-test-pre-pull-images

Conversation

@aveshagarwal

@aveshagarwal aveshagarwal commented Jun 29, 2016 •

Copy link
Copy Markdown
Contributor

@ncdc

fixes #9444

Comment thread hack/test-pre-pull-images.sh Outdated
# 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 \

@liggitt liggitt Jun 29, 2016 •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would be nice if something would complain if changes to this list were needed... was cleanup to the grep above required?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It'd also be nice to capture images used in the OpenShift tests as well

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@liggitt that makes sense. Not sure about clean up just picked it up from that kube's manifest.
@ncdc will update soon.

@aveshagarwal
aveshagarwal force-pushed the master-test-pre-pull-images branch from 50ed871 to 93e0147 Compare June 30, 2016 04:16
@aveshagarwal
aveshagarwal force-pushed the master-test-pre-pull-images branch from 93e0147 to 370b8be Compare June 30, 2016 13:41
@aveshagarwal

Copy link
Copy Markdown
Contributor Author

For openshift I have only searched in origin/test/ dir and could find only 2 unique images:
gcr.io/google_containers/pause, openshift/origin

Also if you have any suggestions to improve the image search method in this PR, let me know.

@marun

marun commented Jul 1, 2016

Copy link
Copy Markdown
Contributor

I just saw a ci failure due to gcr.io temporarily not being resolveable:

https://ci.openshift.redhat.com/jenkins/job/test_pr_origin_extended/271/

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:

distribution/distribution#1431

@ncdc

ncdc commented Jul 1, 2016

Copy link
Copy Markdown
Contributor

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.

@marun

marun commented Jul 1, 2016

Copy link
Copy Markdown
Contributor

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.

@bparees

bparees commented Jul 7, 2016

Copy link
Copy Markdown
Contributor

bump. this is still flaking regularly on us.

@ncdc

ncdc commented Jul 7, 2016

Copy link
Copy Markdown
Contributor

@smarterclayton @bparees @stevekuznetsov @danmcp given what @marun wrote above, do we want to bake the e2e images into the amis?

@aveshagarwal

Copy link
Copy Markdown
Contributor Author

@ncdc static tags will also change over time and given the number of images, wouldn't it require updating AMIs frequently?

@ncdc

ncdc commented Jul 7, 2016

Copy link
Copy Markdown
Contributor

@aveshagarwal we update and rebuild the AMIs quite frequently

@ncdc

ncdc commented Jul 7, 2016

Copy link
Copy Markdown
Contributor

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)

@aveshagarwal

Copy link
Copy Markdown
Contributor Author

Also thinking if baking so many (third party) images into AMIs would be good from security point of view.

@ncdc

ncdc commented Jul 7, 2016

Copy link
Copy Markdown
Contributor

?

@aveshagarwal

Copy link
Copy Markdown
Contributor Author

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?

@ncdc

ncdc commented Jul 7, 2016

Copy link
Copy Markdown
Contributor

These AMIs are strictly for running tests and as devenvs, and we rebuild them so often, the old ones get deleted soon enough.

@smarterclayton

Copy link
Copy Markdown
Contributor

I don't see a problem with pre-pulling a few common images.

@ncdc

ncdc commented Jul 7, 2016

Copy link
Copy Markdown
Contributor

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"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

don't pull origin; we build it

@danmcp

danmcp commented Jul 7, 2016

Copy link
Copy Markdown

@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.

@ncdc

ncdc commented Jul 7, 2016

Copy link
Copy Markdown
Contributor

@danmcp yeah these are pretty much all upstream tests in Kube. You can see the list of images in this PR

@0xmichalis

Copy link
Copy Markdown
Contributor

Will we be able to use those images in extended tests?

@openshift-bot openshift-bot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jul 13, 2016
@openshift-bot openshift-bot added needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. and removed needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. labels Oct 22, 2016
@openshift-bot openshift-bot added needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. and removed needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. labels Oct 29, 2016
@openshift-bot openshift-bot added needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. and removed needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. labels Jan 26, 2017
@openshift-bot openshift-bot added needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. and removed needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. labels Feb 4, 2017
@openshift-bot openshift-bot added needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. and removed needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. labels Mar 11, 2017
@openshift-bot openshift-bot added needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. and removed needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. labels Mar 24, 2017
@openshift-bot openshift-bot added needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. and removed needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. labels May 6, 2017
@openshift-bot openshift-bot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label May 24, 2017
@openshift-bot

Copy link
Copy Markdown
Contributor

Origin Action Required: Pull request cannot be automatically merged, please rebase your branch from latest HEAD and push again

@openshift-bot openshift-bot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label May 24, 2017
@stevekuznetsov

Copy link
Copy Markdown
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Extended.[k8s.io] Kubectl client [k8s.io] Kubectl expose should create services for rc [Conformance]

10 participants