-
Notifications
You must be signed in to change notification settings - Fork 690
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
Fix connection strategy UI prompt #627
Conversation
I can confirm that this is working now in the UI. However, I still have to go into the UI and set it to another value and back before instances can actually connect. If we boot Jenkins with just CasC and let it start up as expected and try to craft a new EC2 instance, we receive the following as part of the logs:
I could be completely wrong here but it feels like the saving of the plugin settings is setting the values correctly where when booting from CasC something is misconfigured. I did a CasC dump of the configuration and there is no difference that I can see for the before save and after. |
Is every instance this way? Because this doesn't seem like a configuration issue. Is there any other stacktraces or interesting logs available? |
It is every instance. Every time we restart Jenkins it cannot complete the provisioning. I did just try something that might mean this is not related however - The log below is what happens on a fresh boot of Jenkins with CasC - however, just going into the Cloud Configuration and hitting "save" alone and then re-provisioning allows the instances to provision. This leads me to think that the CasC is initializing the plugin in a bad state and hitting save fixes that state. Here is a complete initialization log of an instance coming up in a bad state:
|
So the interesting part of this stacktrace( thank you for providing it ) is at the end where the nullpointer exception occurs. For some reasons remoteFS() is null. Can you ensure that you set it in your JCasC configuration sets this. Similar to issue experienced by this user #626 (comment) |
The issue seems stem from
ConnectionStrategy
having both a name field and function which seems to cause confusion so doFillConnectionStrategy can be called with either displayText or the enum NAME we only want the name but displayText was stored in the name field. Rename to prevent this issue