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

Stopping the node on Jenkins doesn't really work #1

Open
thescouser89 opened this issue Apr 13, 2017 · 20 comments
Open

Stopping the node on Jenkins doesn't really work #1

thescouser89 opened this issue Apr 13, 2017 · 20 comments

Comments

@thescouser89
Copy link
Owner

No description provided.

@thescouser89
Copy link
Owner Author

Lots of thread work involved!

@tollgen
Copy link

tollgen commented Nov 24, 2017

Hi, just checking on this issue, is there a time frame for this functionality as it would be great for my setup.

I am finding that disconnecting a slave in jenkins does not shutdown the vm on ovirt which is how the libvirt plugin works.

@thescouser89
Copy link
Owner Author

Hi!

By disconnect, do you mean the slave gets marked as 'shutdown on idle'? I think this is an easy thing to implement. Let me know! :)

BTW, hopefully we'll get RHEV 4.0 deployed in our environment sometime next year so I can start working on a 4.0 version with the latest RHEV API.

@tollgen
Copy link

tollgen commented Nov 25, 2017

I find the VM doesn't get shutdown on idle on the ovirt side only gets offline on the Jenkins side. So in the libvirt plugin it will shutdown the VM on the KVM host either when idle or if you disconnect which would be great if your ovirt plugin did this. Is this what you found or thinking with this issue?

@thescouser89
Copy link
Owner Author

Nah it's another issue. But I know what you're talking about! Will dig into the libvirt plugin to see how they do it, then will implement

@tollgen
Copy link

tollgen commented Nov 27, 2017

Excellent, that would be great

@thescouser89
Copy link
Owner Author

thescouser89 commented Nov 28, 2017

@tollgen Could you try from the latest commit and let me know if that works for you?

Commit: aaf9164

@tollgen
Copy link

tollgen commented Nov 29, 2017

does master support 4.0? I have the latest ovirt
Getting the below when I try and launch a jenkins slave

Connecting to ovirt server...
java.lang.NullPointerException
ERROR: Launching agent process aborted.
java.lang.NullPointerException
at org.jenkinsci.plugins.ovirt.OVirtVMLauncher.isVMDown(OVirtVMLauncher.java:122)
at org.jenkinsci.plugins.ovirt.OVirtVMLauncher.putVMUp(OVirtVMLauncher.java:243)
at org.jenkinsci.plugins.ovirt.OVirtVMLauncher.launch(OVirtVMLauncher.java:343)
Caused: java.lang.InterruptedException
at org.jenkinsci.plugins.ovirt.OVirtVMLauncher.handleLaunchFailure(OVirtVMLauncher.java:375)
at org.jenkinsci.plugins.ovirt.OVirtVMLauncher.launch(OVirtVMLauncher.java:347)
at hudson.slaves.SlaveComputer$1.call(SlaveComputer.java:285)
at jenkins.util.ContextResettingExecutorService$2.call(ContextResettingExecutorService.java:46)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)

@thescouser89
Copy link
Owner Author

@tollgen I'm not supporting 4.0 at this time. Only 3.4 :( I don't have access to a 4.0 instance to test, and I couldn't figure out how to install 4.0 on my laptop. Sorry about that!

@tollgen
Copy link

tollgen commented Nov 30, 2017

Good and bad news.
I was able to test your change and get it working in ovirt 4.0
But I had to add your changes to LucidHorizons fork (https://github.com/LucidHorizons/ovirt-slaves-plugin) to work with my 4.1 instance. Looks like I will be using this fork going forward, sorry :(

@thescouser89
Copy link
Owner Author

@tollgen no worries! :) Glad to hear you got it to work on 4.x! :)

@thescouser89
Copy link
Owner Author

Hopefully once we get an ovirt 4.x deployment at work we can contribute together to get the plugin (whether mine or your fork) in a good shape

@tollgen
Copy link

tollgen commented Dec 1, 2017

Could maybe merge some changes from the fork?

@thescouser89
Copy link
Owner Author

I would say yes! The master branch will be for ovirt 4.0 and the ovirt 3.x branch for over 3.x. And I guess when ovirt 5 comes out we'll create a branch for ovirt 4. WDYT?

My only issue is I won't be able to test the ovirt 4.0 changes :/ Oh well

@tollgen
Copy link

tollgen commented Dec 1, 2017

I can test builds if needed, I also posted another issue on the fork - if you have any thoughts on that?

LucidHorizons#14

@thescouser89
Copy link
Owner Author

I'll check what's up with it

@joaquin386
Copy link

@tollgen then https://github.com/LucidHorizons/ovirt-slaves-plugin is compatible with ovirt engine 4.1?

@tollgen
Copy link

tollgen commented Dec 3, 2017

Yes it is @joaquin386
Though I am getting the issue (14) I linked above

@joaquin386
Copy link

And is the snapshot working for you? I create the snapshot on ovirt 4.1 but it doesn't appear when configuring the slave nodes.

@tollgen
Copy link

tollgen commented Dec 4, 2017

Not sure I haven't tried a snapshot, we don't need snapshots for our builds, maybe log an issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants