-
Bug
-
Resolution: Cannot Reproduce
-
Critical
-
None
-
Nonprod
Hi,
Post upgrading the jenkins to v2.414, I am unable to updated the dynamic agemt configuration of online agent. When i tried updating the labels or timeout, it gives the following error
I could able to trace the errorlogs for this issue in jenkinslogs, and they are below. Can you please suggest how this can be fixed? Thanks
2024-05-18 09:48:26.008+0000 [id=15] WARNING o.e.j.s.h.ContextHandler$Context#log: Error while serving https://JENKINS_URL/computer/EC2%20%28ec2%2Dplatformnonprod%29%20%2D%20deploy%2Dmanagement%2Dvault%20%28i%2D0dd4d9b270c873b88%29/configSubmit org.kohsuke.stapler.NoStaplerConstructorException: There's no @DataBoundConstructor on any constructor of class java.lang.Boolean at org.kohsuke.stapler.ClassDescriptor.loadConstructorParamNames(ClassDescriptor.java:276) at org.kohsuke.stapler.RequestImpl.instantiate(RequestImpl.java:862) at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:766) Caused: java.lang.IllegalArgumentException: Failed to instantiate class java.lang.Boolean from {"metadataEndpointEnabled":true,"metadataTokensRequired":false,"metadataHopsLimit":"1"} at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:769) at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:549) at org.kohsuke.stapler.RequestImpl.instantiate(RequestImpl.java:875) Caused: java.lang.IllegalArgumentException: Failed to convert the metadataSupported parameter of the constructor public hudson.plugins.ec2.EC2OndemandSlave(java.lang.String,java.lang.String,java.lang.String,java.lang.String,int,java.lang.String,hudson.model.Node$Mode,java.lang.String,java.lang.String,java.util.List,java.lang.String,java.lang.String,java.lang.String,boolean,java.lang.String,java.lang.String,java.lang.String,java.util.List,java.lang.String,int,hudson.plugins.ec2.AMITypeData,hudson.plugins.ec2.ConnectionStrategy,int,hudson.plugins.ec2.Tenancy,java.lang.Boolean,java.lang.Boolean,java.lang.Integer,java.lang.Boolean) throws hudson.model.Descriptor$FormException,java.io.IOException at org.kohsuke.stapler.RequestImpl.instantiate(RequestImpl.java:877) at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:766) Caused: java.lang.IllegalArgumentException: Failed to instantiate class hudson.plugins.ec2.EC2OndemandSlave from {"name":"EC2 (ec2-platformnonprod) - deploy-management-vault (i-0dd4d9b270c873b88)","spotInstanceRequestId":"","cloudName":"ec2-platformnonprod","templateDescription":"deploy-management-vault","instanceId":"i-0dd4d9b270c873b88","ec2Type":"On Demand","":["1 hr 32 min","0"],"publicDNS":"","privateDNS":"IP","nodeDescription":"","numExecutors":"3","labelString":"deploy-management-vault","mode":"EXCLUSIVE","initScript":"","remoteFS":"/home/jenkins-slave","remoteAdmin":"jenkins-slave","stopOnTerminate":false,"idleTerminationMinutes":"200","tags":[{"name":"Costcentre_Projectcode","value":"9CH07"},{"name":"Name","value":"platform-jenkins-slave-deploy-management"},{"name":"HSN","value":"JENKINS NPE AWD"},{"name":"jenkins_server_url","value":"https://JENKINS_URL/"},{"name":"Team","value":"cloud-operations"},{"name":"jenkins_slave_type","value":"demand_deploy-management-vault"},{"name":"Owner","value":"abcd@xyz.com"}],"usePrivateDnsName":false,"tenancy":"Default","amiType":{"rootCommandPrefix":"","slaveCommandPrefix":"","slaveCommandSuffix":"","sshPort":"22","bootDelay":"","stapler-class<span class="code-quote">":"hudson.plugins.ec2.UnixData","$class<span class="code-quote">":"hudson.plugins.ec2.UnixData"},"maxTotalUses":"-1","nodeProperties":{"stapler-class-bag":"true"},"metadataSupported":{"metadataEndpointEnabled":true,"metadataTokensRequired":false,"metadataHopsLimit":"1"},"Submit":"","Jenkins-Crumb":"b7faf891b74a61ba0c82c8eb1682d65144b063adbbf1525e4fed893904c36a8f"} at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:769) at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:549) at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:544) at hudson.model.Descriptor.bindJSON(Descriptor.java:622) at hudson.model.Descriptor.newInstance(Descriptor.java:592) Caused: java.lang.LinkageError: Failed to instantiate class hudson.plugins.ec2.EC2OndemandSlave from {"name":"EC2 (ec2-platformnonprod) - deploy-management-vault (i-0dd4d9b270c873b88)","spotInstanceRequestId":"","cloudName":"ec2-platformnonprod","templateDescription":"deploy-management-vault","instanceId":"i-0dd4d9b270c873b88","ec2Type":"On Demand","":["1 hr 32 min","0"],"publicDNS":"","privateDNS":"IP_ADDRESS","nodeDescription":"","numExecutors":"3","labelString":"deploy-management-vault","mode":"EXCLUSIVE","initScript":"","remoteFS":"/home/jenkins-slave","remoteAdmin":"jenkins-slave","stopOnTerminate":false,"idleTerminationMinutes":"200","tags":[{"name":"Costcentre_Projectcode","value":"9CH07"},{"name":"Name","value":"platform-jenkins-slave-deploy-management"},{"name":"HSN","value":"JENKINS NPE AWD"},{"name":"jenkins_server_url","value":"https://FABRIZIO MANFREDI/"},{"name":"Team","value":"cloud-operations"},{"name":"jenkins_slave_type","value":"demand_deploy-management-vault"},{"name":"Owner","value":"abc@xyz.com"}],"usePrivateDnsName":false,"tenancy":"Default","amiType":{"rootCommandPrefix":"","slaveCommandPrefix":"","slaveCommandSuffix":"","sshPort":"22","bootDelay":"","stapler-class<span class="code-quote">":"hudson.plugins.ec2.UnixData","$class<span class="code-quote">":"hudson.plugins.ec2.UnixData"},"maxTotalUses":"-1","nodeProperties":{"stapler-class-bag":"true"},"metadataSupported":{"metadataEndpointEnabled":true,"metadataTokensRequired":false,"metadataHopsLimit":"1"},"Submit":"","Jenkins-Crumb":"b7faf891b74a61ba0c82c8eb1682d65144b063adbbf1525e4fed893904c36a8f"} at hudson.model.Descriptor.newInstance(Descriptor.java:595)