-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ci-operator/templates/openshift: Use IMAGE_TESTS for teardown gzip #2911
ci-operator/templates/openshift: Use IMAGE_TESTS for teardown gzip #2911
Conversation
We can lift the hold if/when openshift/origin#22094 lands adding |
Landed. CC @sdodson /hold cancel |
The teardown container requires oc (for retrieving cluster logs), gzip (for compressing those logs), and openshift-install (for destroying the cluster). We were already copying in oc from another container; with this commit we copy in the statically-linked openshift-install too. That leaves gzip, which we will be built in to IMAGE_TESTS as "a command needed in the CI-test context". Using IMAGE_TESTS for teardown means we no longer need to copy oc into the shared volume for the teardown container (although we may need to copy it in for other containers, e.g. the src template's test container). I've also dropped an unnecessary /bin/ prefix from the 'create cluster' invocations, which we'd been dragging around from the pre-shell days of 3f2f01c (ci-operator/config/openshift/installer/master: Move to openshift-install, 2018-09-26, openshift#1677).
545f4ce
to
00d7b3f
Compare
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: sdodson, wking The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@wking: Updated the following 6 configmaps:
In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
… gzip" This reverts commit 71d199c, openshift#1262 Since openshift/release@00d7b3f31 (ci-operator/templates/openshift: Use IMAGE_TESTS for teardown gzip, 2019-02-19, openshift/release#2911), the release repository no longer users the installer image for the teardown containers.
…nstaller to shared volume I started doing this in 00d7b3f (ci-operator/templates/openshift: Use IMAGE_TESTS for teardown gzip, 2019-02-19, openshift#2911), but the teardown container doesn't need an installer injected if it running an installer image. $ git grep -A1 'name: teardown' ci-operator/templates/openshift/installer | grep image: ci-operator/templates/openshift/installer/cluster-launch-installer-custom-test-image.yaml- image: ${IMAGE_TESTS} ci-operator/templates/openshift/installer/cluster-launch-installer-e2e.yaml- image: ${IMAGE_TESTS} ci-operator/templates/openshift/installer/cluster-launch-installer-libvirt-e2e.yaml- image: ${IMAGE_LIBVIRT_INSTALLER} ci-operator/templates/openshift/installer/cluster-launch-installer-metal-e2e.yaml- image: ${IMAGE_UPI_INSTALLER} ci-operator/templates/openshift/installer/cluster-launch-installer-openstack-e2e.yaml- image: ${IMAGE_OPENSTACK_INSTALLER} ci-operator/templates/openshift/installer/cluster-launch-installer-remote-libvirt-e2e.yaml- image: "${IMAGE_LIBVIRT_INSTALLER}" ci-operator/templates/openshift/installer/cluster-launch-installer-src.yaml- image: ${IMAGE_TESTS} ci-operator/templates/openshift/installer/cluster-launch-installer-upi-e2e.yaml- image: ${IMAGE_UPI_INSTALLER} ci-operator/templates/openshift/installer/cluster-launch-installer-upi-src.yaml- image: ${IMAGE_UPI_INSTALLER} So this commit removes the openshift-installer copy from the templates that use installer images, and leaves it for templates that use test images.
The teardown container requires
oc
(for retrieving cluster logs),gzip
(for compressing those logs), andopenshift-install
(for destroying the cluster). We were already copying inoc
from another container; with this commit we copy in the statically-linkedopenshift-install
too. That leavesgzip
, which we will be built in toIMAGE_TESTS
as "a command needed in the CI-test context". UsingIMAGE_TESTS
for teardown means we no longer need to copyoc
into the shared volume for the teardown container (although we may need to copy it in for other containers, e.g. the src template's test container).I've also dropped an unnecessary
/bin/
prefix from thecreate cluster
invocations, which we'd been dragging around from the pre-shell days of 3f2f01c (#1677).This will allow us to walk back openshift/installer#1262, but we'll still need
gzip
in the tests image./hold