Giter Club home page Giter Club logo

Comments (12)

sabbour avatar sabbour commented on May 10, 2024 1

@nichochen do you know the root cause of this?

from aroworkshop.

nichochen avatar nichochen commented on May 10, 2024 1

@cloudmelon please verify the image in the dc is pointing to the old version.

oc describe dc jenkins -n cicd-aro

Before setting the image, we need to remove the image change trigger. I have updated the commands in this comment.

from aroworkshop.

nichochen avatar nichochen commented on May 10, 2024

@sjbylo I tried it out today with my ARO cluster, it works for me. Did you perform any other actions, or the error showed up right after deploying the demo?

$oc get pod -n cicd-aro
NAME                        READY     STATUS              RESTARTS   AGE
che-5ffcb75f4b-fmhtg        1/1       Running             0          11m
cicd-demo-installer-kfcfl   0/1       Completed           0          10m
cicd-demo-installer-xjn2n   0/1       Error               0          12m
gogs-1-rlg9v                1/1       Running             2          11m
gogs-postgresql-1-xmd65     1/1       Running             0          11m
jenkins-2-m7nns             1/1       Running             0          12m
maven-bkwj5                 1/1       Running             0          5m
nexus-2-hprgw               1/1       Running             0          11m
skopeo-3sp5w                0/1       ContainerCreating   0          29s
sonardb-1-ftfc9             1/1       Running             0          11m
sonarqube-1-b4f4z           1/1       Running             0          11m

Jenkins deployment config

$oc get dc jenkins -n cicd-aro -o yaml|grep -i stream -A 3
        kind: ImageStreamTag
        name: jenkins:2
        namespace: openshift
      lastTriggeredImage: docker-registry.default.svc:5000/openshift/jenkins@sha256:386f7a43af90a79eabe521be05fc6c2fad873c14b6dd53bbac38dc5418837f39

Jenkins image stream

$oc  describe is  -n openshift jenkins|tail

2 (latest)
  tagged from registry.redhat.io/openshift3/jenkins-2-rhel7:v3.11
    prefer registry pullthrough when referencing this tag

  Provides a Jenkins 2.X server on RHEL 7. For more information about using this container image, including OpenShift considerations, see https://github.com/openshift/jenkins/blob/master/README.md.
  Tags: jenkins

  * registry.redhat.io/openshift3/jenkins-2-rhel7@sha256:386f7a43af90a79eabe521be05fc6c2fad873c14b6dd53bbac38dc5418837f39
      2 weeks ago

Jenkins pipeline build

$oc get build -n cicd-aro
NAME               TYPE              FROM      STATUS     STARTED          DURATION
tasks-pipeline-1   JenkinsPipeline             Complete   13 minutes ago

from aroworkshop.

nichochen avatar nichochen commented on May 10, 2024

I have reproduced the issue after recreating a new ARO cluster.

Jenkins image stream

$oc  describe is  -n openshift jenkins|tail

2 (latest)
  tagged from registry.redhat.io/openshift3/jenkins-2-rhel7:v3.11
    prefer registry pullthrough when referencing this tag

  Provides a Jenkins 2.X server on RHEL 7. For more information about using this container image, including OpenShift considerations, see https://github.com/openshift/jenkins/blob/master/README.md.
  Tags: jenkins

  * registry.redhat.io/openshift3/jenkins-2-rhel7@sha256:da3488fb622ca393bcdb635e4d824f57708a7dc11db01ab3171c0d38ccb98474
      11 minutes ago

from aroworkshop.

nichochen avatar nichochen commented on May 10, 2024

A quick dirty work around is to change the jenkins deployment config, point the image to the old version of Jenkins.

$oc set triggers dc/jenkins --remove --from-image jenkins:2 -n cicd-aro
$oc set image dc/jenkins  jenkins=registry.redhat.io/openshift3/jenkins-2-rhel7@sha256:386f7a43af90a79eabe521be05fc6c2fad873c14b6dd53bbac38dc5418837f39 -n cicd-aro

After the change you should see the dc is pointing to the new image

$oc get dc jenkins -o yam -n cicd-arol |grep image
        image: registry.redhat.io/openshift3/jenkins-2-rhel7@sha256:386f7a43af90a79eabe521be05fc6c2fad873c14b6dd53bbac38dc5418837f39

from aroworkshop.

cloudmelon avatar cloudmelon commented on May 10, 2024

Hi @nichochen I've point to the elder version of Jenkins, didn't work out :
image

Logs :

image

Any thoughts ?

from aroworkshop.

nichochen avatar nichochen commented on May 10, 2024

@sabbour I will investigate this and update the workshop instructions accordingly.

from aroworkshop.

cloudmelon avatar cloudmelon commented on May 10, 2024

@nichochen The image change trigger is a great point, learn it ! Working now. thanks :)
@sabbour I've been tried some old images ( https://access.redhat.com/containers/?tab=tags#/registry.access.redhat.com/openshift3/jenkins-2-rhel7 ) are working.

from aroworkshop.

sabbour avatar sabbour commented on May 10, 2024

Related bug https://bugzilla.redhat.com/show_bug.cgi?id=1754968

The working image is registry.redhat.io/openshift3/jenkins-2-rhel7:v3.11.141. The bug report mentions this has been fixed in jenkins-2-rhel7:v3.11.152, but the release of that image is expected to rollout October 21st.

from aroworkshop.

nichochen avatar nichochen commented on May 10, 2024

I have verified this today, the issue have been fixed, Jenkins started without error.

from aroworkshop.

cloudmelon avatar cloudmelon commented on May 10, 2024

from aroworkshop.

sjbylo avatar sjbylo commented on May 10, 2024

from aroworkshop.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.