Skip to content
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

Workaround for ImageStreamTags issue on OpenShift 3.6 #6019

Merged
merged 1 commit into from
Aug 17, 2017

Conversation

amisevsk
Copy link
Contributor

What does this PR do?

Introduce a minor workaround for an ImageStreamTag issue on OpenShift 3.6+.

Currently, when Che attempts to delete a deployment, the Kubernetes client throws a NullPointerException and workspace cleanup fails. After some testing, it seems like the Deployment status is null only if the docker image specified for the deployment is an ImageStreamTag. If instead the Deployment is specified to use a docker image from e.g. the docker hub, the Deployment's status is not null and it is deleted successfully.

This change replaces the docker pull spec we use for Deployments with the underlying image they refer to.

This is not meant to be a long-term fix. We need to decide if we want to keep trying to use ImageStreams and ImageStreamTags, or if we want to find a better solution.

What issues does this PR fix or reference?

Failure to stop workspaces when running Che on OpenShift 3.6 and higher.

Changelog

(bugfix, OpenShift 3.6 support)

Release Notes

(bugfix, OpenShift 3.6 support)

Minor adjustment to how image name is set when creating a
workspace on OpenShift.

On OpenShift 3.6, it seems that using an ImageStreamTag
in a Deployment spec causes the deployment to have null status,
which causes kubernetes-client to throw an NPE.

We still need to decide if this is to be a longer term solution,
and if removing ImageStreamTags completely is a good option

Signed-off-by: Angel Misevski <amisevsk@redhat.com>
@amisevsk amisevsk requested a review from l0rd as a code owner August 17, 2017 00:25
@codenvy-ci
Copy link

Can one of the admins verify this patch?

1 similar comment
@codenvy-ci
Copy link

Can one of the admins verify this patch?

@amisevsk
Copy link
Contributor Author

Note also that this PR should resolve the scale down issue we've been facing, and that was worked around in PR #6017.

@ibuziuk ibuziuk merged commit 6792b2b into master Aug 17, 2017
ibuziuk added a commit to ibuziuk/che that referenced this pull request Aug 17, 2017
…penShift 3.6

Signed-off-by: Ilya Buziuk <ibuziuk@redhat.com>
ibuziuk added a commit that referenced this pull request Aug 17, 2017
Signed-off-by: Ilya Buziuk <ibuziuk@redhat.com>
@slemeur slemeur added the kind/enhancement A feature request - must adhere to the feature request template. label Sep 28, 2017
@slemeur slemeur added this to the 5.17.0 milestone Sep 28, 2017
@skabashnyuk skabashnyuk deleted the openshift-image-tags branch December 7, 2017 06:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement A feature request - must adhere to the feature request template.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants