Giter VIP home page Giter VIP logo

Comments (4)

gabemontero avatar gabemontero commented on July 19, 2024

First - thanks for the interest in the plug-in. And for providing the debug data for this issue.

Looking at the data, I cannot agree with your assessment, though if the intent of the deployment verifier was not clear to you, we can work to improve the documentation.

In particular, Generation 2 of the replication controller has the "openshift.io/deployment.phase" annotation set to "Running", but the latest Generation, Generation 3, has the "openshift.io/deployment.phase" set to "Failed". The deployment verifier considers only the latest/current deployment.

I'll wait for your response to my findings before dispensing with this issue.

@bparees @mfojtik - FYI.

from jenkins-plugin.

bparees avatar bparees commented on July 19, 2024

it does look like the doc leaves out mentioning that it checks that the latest deployment succeeded, so it'd be good to add that to the list of things that are checked.

"Check deployment success in OpenShift": determines whether the expected set of DeploymentConfig's, ReplicationController's, and active replicas are present based on prior use of either the "Scale deployments in OpenShift" (2) or "Trigger a deployment in OpenShift" (3) steps; its activities specifically include:

it first confirms the specified deployment config exists.
it then gets the list of all replication controllers for that DC, and finds the latest incarnation.
and then sees if within a reasonable time the current replica count is at least equal to the desired replica count.

from jenkins-plugin.

gabemontero avatar gabemontero commented on July 19, 2024

I've updated the README with some further clarification and pushed to the repo.

Going ahead and closing this one out.

from jenkins-plugin.

arsogukpinar avatar arsogukpinar commented on July 19, 2024

Hi Gabe,
Sorry for late response. Last couple of days I have been traveling. After your first comment, I did further testing. It took me sometime before I can figure out the root cause of the issue. It turns out that issue I was having was related to openshift/origin#5787.

My build job had "Scale deployments in Openshift" step. Before performing a build I was scaling down my app to 0 PODs and due to the issue I have pointed above rolling updates and validation step were failing.

It wasn't easy to spot but while my replication controller with highest version was in "Failed" status and had 1 running POD, rolling updates were using the last replication controller with "Complete" status, which had 0 PODs active. This was triggering the issue above. After I manually started an additional POD with latest RC in "Complete" status and removed my scale down 0 step from my job, validation step was working as expected.

from jenkins-plugin.

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.