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

Update base slave oc version #88

Closed
m-apsolon opened this issue Mar 7, 2019 · 7 comments
Closed

Update base slave oc version #88

m-apsolon opened this issue Mar 7, 2019 · 7 comments
Labels
bug Something isn't working enhancement New feature or request

Comments

@m-apsolon
Copy link

From 3.0.6 to 3.11.43

@m-apsolon m-apsolon changed the title Upgrade base slave oc version Update base slave oc version Mar 8, 2019
@clemensutschig clemensutschig added bug Something isn't working enhancement New feature or request labels Mar 8, 2019
@clemensutschig
Copy link
Member

flaggin as both - as with 3.6 and nodejs - there seems a path issue with tar.go fixed with 3.11

@michaelsauter
Copy link
Member

Hmm, I thought a little about this, and I'm not sure this is the right fix.

I think we need to answer a few questions first:

  • Why is the default 3.6? Is that random, or are we using an old base image?
  • What happens to users of ODS running an OpenShift version before 3.11?

Maybe we should either "fix" the base image or make this configurable?

@michaelsauter
Copy link
Member

OK, so doing a bit of research on this ... I discovered the following:

The Dockerfile of our slave-base image (https://github.com/opendevstack/ods-core/blob/1.0.x/jenkins/slave-base/Dockerfile.rhel7) has this FROM instruction:

FROM registry.access.redhat.com/openshift3/jenkins-slave-base-rhel7

So it points to the latest tag, which at the time of writing is equal to the v3.6.173.0.146-3 tag of that image (see https://access.redhat.com/containers/?tab=tags#/registry.access.redhat.com/openshift3/jenkins-slave-base-rhel7). Why this is the case I have no idea, there are also newer images, e.g. v3.11.82-4 which is what we would want.

In the end, to have matching versions, one could configure the tag to use in the ods-configuration, and then we put that in the BuildConfig so that the FROM clause is not actually used but replaced with what is in the BuildConfig. See e.g. https://github.com/opendevstack/ods-core/blob/master/shared-images/ocp-config/bc.yml#L66-L68.

@michaelsauter
Copy link
Member

This seems to work for us:

spec
  strategy:
    dockerStrategy:
      from:
        kind: DockerImage
        name: 'openshift3/jenkins-slave-base-rhel7:v3.11'

@michaelsauter
Copy link
Member

michaelsauter commented Mar 15, 2019

I would tentatively leave this master-only and not merge it into 1.0.x because:

  • The problem is an OpenShift issue (they forgot to update the image tags)
  • Putting this into 1.0.x would require users to update their config, and if they upgrade ODS without that step, it could break the existing setup ...

@clemensutschig Agreed or do you want this in 1.0.x?

@clemensutschig
Copy link
Member

1.1 .. :) is this fixed now? @michaelsauter

@michaelsauter
Copy link
Member

Yes fixed in 1.1, see PR: #91

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants