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

Unavailable cloud stops the provisioning process #340

Open
AnderwanSAM opened this issue Apr 29, 2022 · 0 comments · May be fixed by #341
Open

Unavailable cloud stops the provisioning process #340

AnderwanSAM opened this issue Apr 29, 2022 · 0 comments · May be fixed by #341
Labels

Comments

@AnderwanSAM
Copy link

Jenkins and plugins versions report

Environment
Jenkins 2.60.3 
Plugin version : 2.61

What Operating System are you using (both controller, and any agents involved in the problem)?

Controller :
I used the latest (currently 2.60.3 ) docker image of Jenkins.
https://hub.docker.com/_/jenkins?tab=tags
Linux

Agents (not involved in the problem): Centos 7

Reproduction steps

  1. Launch and setup a Jenkins instance in a docker container
    a. Command : docker run --name jenkinsInstance -p 8080:8080 -p 50000:50000 -v /var/jenkins_home jenkins
    b. Setting up Jenkins : https://www.jenkins.io/doc/book/installing/docker/
  2. Install the OpenStack cloud plugin via the Manage plugin tabs
  3. Configure 2 clouds with the same label (in the templates)
  4. Create a multibranch pipeline project and link it to a git project :
    a. Example : https://gitlab.com/AnderwanSAM/demo-project/-/tree/master
    b. Details: The project has 4 branches. Each of them has a Jenkins file with jobs specifying the same label
  5. Scan the project
  6. Remove the credentials of the first cloud
  7. try to build the jobs

Expected Results

The first cloud is unavailable. Hence the jobs should be built using the next available cloud with the same label.

Actual Results

The jobs hangs. The plugin ignores the failures and keep trying to provision nodes from the cloud that is down.

Anything else?

We have investigated and found that the exception thrown by getOpenStack() is not handled in the getAvailableTemplateProvider
method. I believe this is what causes the problem.

Suggestion : handle the exception and return an empty queue. See this pull request :

@AnderwanSAM AnderwanSAM linked a pull request Apr 29, 2022 that will close this issue
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant