jenkinsci / openstack-cloud-plugin

Provision nodes from OpenStack on demand
https://plugins.jenkins.io/openstack-cloud
MIT License
47 stars 83 forks source link

Plugin deletes VM right after creation #336

Open fluffystalker opened 2 years ago

fluffystalker commented 2 years ago

Jenkins and plugins versions report

Environment ```text OpenStack Cloud version 2.60 Jenkins version ```

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

Debian

Reproduction steps

While adding new VM on openstack using plugin, right after process is finished, VM is being deleted. I've tried to use pipeline with parameter scope: 'unlimited' node { openstackMachine cloud: 'xx', template: 'yy', scope: 'unlimited' }

but got error java.lang.IllegalArgumentException: Invalid scope: unlimited at jenkins.plugins.openstack.pipeline.OpenStackMachineStep.setScope(OpenStackMachineStep.java:65)

which is weird, because of this: https://www.jenkins.io/doc/pipeline/steps/openstack-cloud/

Expected Results

plugin creates pernament instance on OpenStack

Actual Results

plugin creates instance on OpenStack which is removed right after process is finished

Anything else?

No response