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

Fix OpenShiftConnector.inspectImage() to resolve issue in OS 3.6+ #6009

Merged
merged 1 commit into from
Aug 16, 2017

Conversation

amisevsk
Copy link
Contributor

What does this PR do?

OpenShiftConnector.inspectImage() uses pods to figure out a workspaces docker image. Previously, this was not a problem as it would match the imagestream tag we create earlier. However, in OpenShift 3.6 and higher, it seems like pods created by deployments use the sha256 of the image as an identifier, and so this fails. This means that workspaces fail to start due to imagestream not found.

To resolve this issue, we instead get the image name through the deployment, which does have the correct value.

Changelog

(bugfix, update to support OpenShift 3.6+)

Release Notes

(bugfix)

Note: This is PR #6008 rebased onto master.

OpenShiftConnector.inspectImage() uses pods to figure out a workspaces
docker image. Previously, this was not a problem as it would match
the imagestream tag we create earlier. However, in OpenShift 3.6 and
higher, it seems like pods created by deployments use the sha256 of
the image as an identifier, and so this fails. This means that
workspaces fail to start due to imagestream not found.

To resolve this issue, we instead get the image name through the
deployment, which does have the correct value.

Signed-off-by: Angel Misevski <amisevsk@redhat.com>
@amisevsk amisevsk requested a review from l0rd as a code owner August 16, 2017 08:10
@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?

@benoitf
Copy link
Contributor

benoitf commented Aug 16, 2017

ci-build

@ibuziuk ibuziuk merged commit 2cd0ab0 into master Aug 16, 2017
@codenvy-ci
Copy link

@amisevsk amisevsk deleted the openshift-inspect-container-fix-rebase branch August 16, 2017 16:42
@slemeur slemeur added the kind/task Internal things, technical debt, and to-do tasks to be performed. label Sep 28, 2017
@slemeur slemeur added this to the 5.17.0 milestone Sep 28, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/task Internal things, technical debt, and to-do tasks to be performed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants