Catch getByName exception in case cloud name is not an openstack cloud #433
ci.jenkins.io / Tests / linux-17 / Build (linux-17)
failed
Jun 16, 2025 in 0s
jenkins.plugins.openstack.compute.JCloudsCloudTest.doProvision failed
jenkins.plugins.openstack.compute.JCloudsCloudTest.doProvision failed
Details
jenkins.plugins.openstack.compute.JCloudsCloudTest.doProvision
/home/jenkins/agent/workspace/ns_openstack-cloud-plugin_PR-433/plugin/target/tmp/j h17304119239080846457
Stack trace
java.nio.file.DirectoryNotEmptyException: /home/jenkins/agent/workspace/ns_openstack-cloud-plugin_PR-433/plugin/target/tmp/j h17304119239080846457
at java.base/sun.nio.fs.UnixFileSystemProvider.implDelete(UnixFileSystemProvider.java:246)
at java.base/sun.nio.fs.AbstractFileSystemProvider.deleteIfExists(AbstractFileSystemProvider.java:110)
at java.base/java.nio.file.Files.deleteIfExists(Files.java:1191)
at org.jvnet.hudson.test.TemporaryDirectoryAllocator.delete(TemporaryDirectoryAllocator.java:146)
at org.jvnet.hudson.test.TemporaryDirectoryAllocator.dispose(TemporaryDirectoryAllocator.java:104)
at org.jvnet.hudson.test.TestEnvironment.dispose(TestEnvironment.java:84)
at org.jvnet.hudson.test.JenkinsRule.after(JenkinsRule.java:528)
at org.jvnet.hudson.test.JenkinsRule$1.evaluate(JenkinsRule.java:666)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.lang.Thread.run(Thread.java:840)
Suppressed: java.io.IOException: These files still exist : org.jenkinsci.plugins.cloudstats.CloudStatistics.xml
at org.jvnet.hudson.test.TemporaryDirectoryAllocator.delete(TemporaryDirectoryAllocator.java:150)
... 6 more
Standard error
0.076 [id=444] INFO o.jvnet.hudson.test.JenkinsRule#createWebServer2: Running on http://localhost:37675/jenkins/
0.162 [id=444] INFO jenkins.model.Jenkins#<init>: Starting version 2.504.1
0.167 [id=457] INFO jenkins.InitReactorRunner$1#onAttained: Started initialization
0.168 [id=460] INFO jenkins.InitReactorRunner$1#onAttained: Listed all plugins
0.169 [id=461] INFO j.b.api.BouncyCastlePlugin#start: /home/jenkins/agent/workspace/ns_openstack-cloud-plugin_PR-433/plugin/target/tmp/j h17304119239080846457/plugins/bouncycastle-api/WEB-INF/optional-lib not found; for non RealJenkinsRule this is fine and can be ignored.
0.281 [id=460] INFO jenkins.InitReactorRunner$1#onAttained: Prepared all plugins
0.283 [id=459] INFO jenkins.InitReactorRunner$1#onAttained: Started all plugins
0.284 [id=457] INFO jenkins.InitReactorRunner$1#onAttained: Augmented all extensions
0.392 [id=456] INFO jenkins.InitReactorRunner$1#onAttained: System config loaded
0.401 [id=456] INFO jenkins.InitReactorRunner$1#onAttained: System config adapted
0.401 [id=456] INFO jenkins.InitReactorRunner$1#onAttained: Loaded all jobs
0.401 [id=456] INFO jenkins.InitReactorRunner$1#onAttained: Configuration for all jobs updated
0.407 [id=457] INFO jenkins.InitReactorRunner$1#onAttained: Completed initialization
0.523 [id=471] INFO j.p.o.c.JCloudsSlaveTemplate#provisionServer: Provisioning new openstack server template0-0 with options jenkins.plugins.openstack.compute.SlaveOptions@71b67767[bootSource=<null>,hardwareId=<null>,networkId=<null>,userDataId=<null>,instanceCap=10,instancesMin=0,floatingIpPool=<null>,securityGroups=default,availabilityZone=<null>,startTimeout=600000,keyPairName=<null>,numExecutors=1,jvmOptions=<null>,fsRoot=/tmp/jenkins,launcherFactory=jenkins.plugins.openstack.compute.slaveopts.LauncherFactory$JNLP@1f,nodeProperties=<null>,retentionTime=30,configDrive=false]
0.524 [id=471] WARNING j.p.o.c.JCloudsSlaveTemplate#provisionServer: No BootSource set for JCloudsSlaveTemplate with name='template0'.
0.565 [id=471] INFO j.p.o.c.JCloudsSlaveTemplate#provisionServer: Provisioned: Mock for Object, hashCode: 1023265894
0.568 [id=471] INFO j.p.o.compute.JCloudsSlave#createComputer: Creating a new computer for template0-0
Autolaunching agent for slave: template0-0
template0-0 err: WARNING: The "-jnlpUrl" argument is deprecated. Use "-url" and "-name" instead, potentially also passing in "-webSocket", "-tunnel", and/or work directory options as needed.
0.798 [id=487] WARNING j.p.o.c.JCloudsCleanupThread#terminatesNodesWithoutServers: The cloud openstack does not longer exists for template0-0
0.882 [id=445] WARNING hudson.slaves.SlaveComputer#doJenkinsAgentJnlp: Agent "template0-0" is connecting with the "-jnlpUrl" argument, which is deprecated. Use "-url" and "-name" instead, potentially also passing in "-webSocket", "-tunnel", and/or work directory options as needed.
template0-0 err: Jun 16, 2025 9:48:04 PM hudson.remoting.Launcher createEngine
template0-0 err: INFO: Setting up agent: template0-0
template0-0 err: Jun 16, 2025 9:48:04 PM hudson.remoting.Engine startEngine
template0-0 err: INFO: Using Remoting version: 3301.v4363ddcca_4e7
template0-0 err: Jun 16, 2025 9:48:04 PM org.jenkinsci.remoting.engine.WorkDirManager initializeWorkDir
template0-0 err: INFO: Using /tmp/jenkins/remoting as a remoting work directory
template0-0 err: Jun 16, 2025 9:48:04 PM org.jenkinsci.remoting.engine.WorkDirManager setupLogging
template0-0 err: INFO: Both error and output logs will be printed to /tmp/jenkins/remoting
template0-0 err: Jun 16, 2025 9:48:04 PM hudson.remoting.Launcher$CuiListener status
template0-0 err: INFO: Locating server among [http://localhost:37675/jenkins/]
template0-0 err: Jun 16, 2025 9:48:04 PM org.jenkinsci.remoting.engine.JnlpAgentEndpointResolver resolve
template0-0 err: INFO: Remoting server accepts the following protocols: [JNLP4-connect, Ping]
1.052 [id=488] INFO h.TcpSlaveAgentListener$ConnectionHandler#run: Connection #10 from /127.0.0.1:58220 failed: null
template0-0 err: Jun 16, 2025 9:48:04 PM hudson.remoting.Launcher$CuiListener status
template0-0 err: INFO: Agent discovery successful
template0-0 err: Agent address: localhost
template0-0 err: Agent port: 38579
template0-0 err: Identity: 42:cd:74:57:88:30:bf:50:97:31:b4:b3:8b:db:81:da
template0-0 err: Jun 16, 2025 9:48:04 PM hudson.remoting.Launcher$CuiListener status
template0-0 err: INFO: Handshaking
template0-0 err: Jun 16, 2025 9:48:04 PM hudson.remoting.Launcher$CuiListener status
template0-0 err: INFO: Connecting to localhost:38579
template0-0 err: Jun 16, 2025 9:48:04 PM hudson.remoting.Launcher$CuiListener status
template0-0 err: INFO: Server reports protocol JNLP4-connect-proxy not supported, skipping
template0-0 err: Jun 16, 2025 9:48:04 PM hudson.remoting.Launcher$CuiListener status
template0-0 err: INFO: Trying protocol: JNLP4-connect
template0-0 err: Jun 16, 2025 9:48:04 PM org.jenkinsci.remoting.protocol.impl.BIONetworkLayer$Reader run
template0-0 err: INFO: Waiting for ProtocolStack to start.
1.094 [id=489] INFO h.TcpSlaveAgentListener$ConnectionHandler#run: Accepted JNLP4-connect connection #11 from /127.0.0.1:58232
template0-0 err: Jun 16, 2025 9:48:04 PM hudson.remoting.Launcher$CuiListener status
template0-0 err: INFO: Remote identity confirmed: 42:cd:74:57:88:30:bf:50:97:31:b4:b3:8b:db:81:da
template0-0 err: Jun 16, 2025 9:48:04 PM hudson.remoting.Launcher$CuiListener status
template0-0 err: INFO: Connected
1.797 [id=495] WARNING j.p.o.c.JCloudsCleanupThread#terminatesNodesWithoutServers: The cloud openstack does not longer exists for template0-0
2.797 [id=496] WARNING j.p.o.c.JCloudsCleanupThread#terminatesNodesWithoutServers: The cloud openstack does not longer exists for template0-0
3.520 [id=472] INFO j.p.o.c.JCloudsSlaveTemplate#provisionServer: Provisioning new openstack server template0-1 with options jenkins.plugins.openstack.compute.SlaveOptions@778aa2ab[bootSource=<null>,hardwareId=<null>,networkId=<null>,userDataId=<null>,instanceCap=10,instancesMin=0,floatingIpPool=<null>,securityGroups=default,availabilityZone=<null>,startTimeout=600000,keyPairName=<null>,numExecutors=1,jvmOptions=<null>,fsRoot=/tmp/jenkins,launcherFactory=jenkins.plugins.openstack.compute.slaveopts.LauncherFactory$JNLP@1f,nodeProperties=<null>,retentionTime=30,configDrive=false]
3.520 [id=472] WARNING j.p.o.c.JCloudsSlaveTemplate#provisionServer: No BootSource set for JCloudsSlaveTemplate with name='template0'.
3.522 [id=472] INFO j.p.o.c.JCloudsSlaveTemplate#provisionServer: Provisioned: Mock for Object, hashCode: 699233856
3.522 [id=472] INFO j.p.o.compute.JCloudsSlave#createComputer: Creating a new computer for template0-1
Autolaunching agent for slave: template0-1
template0-1 err: WARNING: The "-jnlpUrl" argument is deprecated. Use "-url" and "-name" instead, potentially also passing in "-webSocket", "-tunnel", and/or work directory options as needed.
3.657 [id=450] WARNING hudson.slaves.SlaveComputer#doJenkinsAgentJnlp: Agent "template0-1" is connecting with the "-jnlpUrl" argument, which is deprecated. Use "-url" and "-name" instead, potentially also passing in "-webSocket", "-tunnel", and/or work directory options as needed.
template0-1 err: Jun 16, 2025 9:48:06 PM hudson.remoting.Launcher createEngine
template0-1 err: INFO: Setting up agent: template0-1
template0-1 err: Jun 16, 2025 9:48:07 PM hudson.remoting.Engine startEngine
template0-1 err: INFO: Using Remoting version: 3301.v4363ddcca_4e7
template0-1 err: Jun 16, 2025 9:48:07 PM org.jenkinsci.remoting.engine.WorkDirManager initializeWorkDir
template0-1 err: INFO: Using /tmp/jenkins/remoting as a remoting work directory
template0-1 err: Jun 16, 2025 9:48:07 PM org.jenkinsci.remoting.engine.WorkDirManager setupLogging
template0-1 err: INFO: Both error and output logs will be printed to /tmp/jenkins/remoting
template0-1 err: Jun 16, 2025 9:48:07 PM hudson.remoting.Launcher$CuiListener status
template0-1 err: INFO: Locating server among [http://localhost:37675/jenkins/]
3.797 [id=505] WARNING j.p.o.c.JCloudsCleanupThread#terminatesNodesWithoutServers: The cloud openstack does not longer exists for template0-0
3.798 [id=505] WARNING j.p.o.c.JCloudsCleanupThread#terminatesNodesWithoutServers: The cloud openstack does not longer exists for template0-1
template0-1 err: Jun 16, 2025 9:48:07 PM org.jenkinsci.remoting.engine.JnlpAgentEndpointResolver resolve
template0-1 err: INFO: Remoting server accepts the following protocols: [JNLP4-connect, Ping]
3.806 [id=506] INFO h.TcpSlaveAgentListener$ConnectionHandler#run: Connection #12 from /127.0.0.1:49000 failed: null
template0-1 err: Jun 16, 2025 9:48:07 PM hudson.remoting.Launcher$CuiListener status
template0-1 err: INFO: Agent discovery successful
template0-1 err: Agent address: localhost
template0-1 err: Agent port: 38579
template0-1 err: Identity: 42:cd:74:57:88:30:bf:50:97:31:b4:b3:8b:db:81:da
template0-1 err: Jun 16, 2025 9:48:07 PM hudson.remoting.Launcher$CuiListener status
template0-1 err: INFO: Handshaking
template0-1 err: Jun 16, 2025 9:48:07 PM hudson.remoting.Launcher$CuiListener status
template0-1 err: INFO: Connecting to localhost:38579
template0-1 err: Jun 16, 2025 9:48:07 PM hudson.remoting.Launcher$CuiListener status
template0-1 err: INFO: Server reports protocol JNLP4-connect-proxy not supported, skipping
template0-1 err: Jun 16, 2025 9:48:07 PM hudson.remoting.Launcher$CuiListener status
template0-1 err: INFO: Trying protocol: JNLP4-connect
template0-1 err: Jun 16, 2025 9:48:07 PM org.jenkinsci.remoting.protocol.impl.BIONetworkLayer$Reader run
template0-1 err: INFO: Waiting for ProtocolStack to start.
3.847 [id=507] INFO h.TcpSlaveAgentListener$ConnectionHandler#run: Accepted JNLP4-connect connection #13 from /127.0.0.1:49004
template0-1 err: Jun 16, 2025 9:48:07 PM hudson.remoting.Launcher$CuiListener status
template0-1 err: INFO: Remote identity confirmed: 42:cd:74:57:88:30:bf:50:97:31:b4:b3:8b:db:81:da
template0-1 err: Jun 16, 2025 9:48:07 PM hudson.remoting.Launcher$CuiListener status
template0-1 err: INFO: Connected
4.797 [id=510] WARNING j.p.o.c.JCloudsCleanupThread#terminatesNodesWithoutServers: The cloud openstack does not longer exists for template0-0
4.798 [id=510] WARNING j.p.o.c.JCloudsCleanupThread#terminatesNodesWithoutServers: The cloud openstack does not longer exists for template0-1
5.797 [id=511] WARNING j.p.o.c.JCloudsCleanupThread#terminatesNodesWithoutServers: The cloud openstack does not longer exists for template0-0
5.798 [id=511] WARNING j.p.o.c.JCloudsCleanupThread#terminatesNodesWithoutServers: The cloud openstack does not longer exists for template0-1
Killing agent hudson.Proc$LocalProc@4cf00e92 for template0-0
6.797 [id=514] WARNING j.p.o.c.JCloudsCleanupThread#terminatesNodesWithoutServers: The cloud openstack does not longer exists for template0-0
6.797 [id=514] WARNING j.p.o.c.JCloudsCleanupThread#terminatesNodesWithoutServers: The cloud openstack does not longer exists for template0-1
6.860 [id=95] INFO j.s.DefaultJnlpSlaveReceiver#channelClosed: IOHub#10: Worker[channel:java.nio.channels.SocketChannel[connected local=/127.0.0.1:38579 remote=localhost/127.0.0.1:58232]] / Computer.threadPoolForRemoting [#4] for template0-0 terminated: java.nio.channels.ClosedChannelException
Killing agent hudson.Proc$LocalProc@73f0a2ee for template0-1
7.496 [id=95] INFO j.s.DefaultJnlpSlaveReceiver#channelClosed: IOHub#10: Worker[channel:java.nio.channels.SocketChannel[connected local=/127.0.0.1:38579 remote=localhost/127.0.0.1:49004]] / Computer.threadPoolForRemoting [#4] for template0-1 terminated: java.nio.channels.ClosedChannelException
7.797 [id=515] WARNING j.p.o.c.JCloudsCleanupThread#terminateNodesPendingDeletion: Deleting broken node template0-0 (Cloud no longer configured - cannot get more info). Reason: Connection was broken
7.798 [id=515] INFO j.p.o.compute.JCloudsComputer#deleteSlave: Deleting slave template0-0 after executing 0 builds
7.818 [id=515] INFO j.p.o.compute.JCloudsComputer#deleteSlave: Deleted slave template0-0
7.818 [id=515] WARNING j.p.o.c.JCloudsCleanupThread#terminateNodesPendingDeletion: Deleting broken node template0-1 (Cloud no longer configured - cannot get more info). Reason: Connection was broken
7.818 [id=515] INFO j.p.o.compute.JCloudsComputer#deleteSlave: Deleting slave template0-1 after executing 0 builds
7.826 [id=515] INFO j.p.o.compute.JCloudsComputer#deleteSlave: Deleted slave template0-1
7.829 [id=444] INFO hudson.lifecycle.Lifecycle#onStatusUpdate: Stopping Jenkins
7.834 [id=444] INFO hudson.lifecycle.Lifecycle#onStatusUpdate: Jenkins stopped
7.932 [id=444] INFO o.j.h.t.TemporaryDirectoryAllocator#dispose: deleting /home/jenkins/agent/workspace/ns_openstack-cloud-plugin_PR-433/plugin/target/tmp/j h17304119239080846457
7.934 [id=472] WARNING j.p.o.compute.JCloudsCloud#lambda$provisionAsynchronouslyNotToBlockTheRequestThread$2: Provisioning failed
java.lang.NullPointerException: Cannot read field "root" because the return value of "jenkins.model.Jenkins.getInstance()" is null
at org.jenkinsci.plugins.cloudstats.CloudStatistics.getConfigFile(CloudStatistics.java:441)
at org.jenkinsci.plugins.cloudstats.CloudStatistics.save(CloudStatistics.java:334)
at org.jenkinsci.plugins.cloudstats.CloudStatistics.persist(CloudStatistics.java:339)
at org.jenkinsci.plugins.cloudstats.CloudStatistics.attach(CloudStatistics.java:325)
at org.jenkinsci.plugins.cloudstats.CloudStatistics$ProvisioningListener.onFailure(CloudStatistics.java:561)
at jenkins.plugins.openstack.compute.JCloudsCloud.provisionSlaveExplicitly(JCloudsCloud.java:508)
at jenkins.plugins.openstack.compute.JCloudsCloud.lambda$provisionAsynchronouslyNotToBlockTheRequestThread$2(JCloudsCloud.java:465)
at jenkins.security.ImpersonatingScheduledExecutorService$2.call(ImpersonatingScheduledExecutorService.java:79)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.lang.Thread.run(Thread.java:840)
7.934 [id=472] WARNING j.u.ErrorLoggingScheduledThreadPoolExecutor#afterExecute: failure in task not wrapped in SafeTimerTask
java.lang.NullPointerException: Cannot read field "root" because the return value of "jenkins.model.Jenkins.getInstance()" is null
at org.jenkinsci.plugins.cloudstats.CloudStatistics.getConfigFile(CloudStatistics.java:441)
at org.jenkinsci.plugins.cloudstats.CloudStatistics.save(CloudStatistics.java:334)
at org.jenkinsci.plugins.cloudstats.CloudStatistics.persist(CloudStatistics.java:339)
at org.jenkinsci.plugins.cloudstats.CloudStatistics.attach(CloudStatistics.java:325)
at org.jenkinsci.plugins.cloudstats.CloudStatistics$ProvisioningListener.onFailure(CloudStatistics.java:561)
at jenkins.plugins.openstack.compute.JCloudsCloud.provisionSlaveExplicitly(JCloudsCloud.java:508)
at jenkins.plugins.openstack.compute.JCloudsCloud.lambda$provisionAsynchronouslyNotToBlockTheRequestThread$2(JCloudsCloud.java:465)
at jenkins.security.ImpersonatingScheduledExecutorService$2.call(ImpersonatingScheduledExecutorService.java:79)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.lang.Thread.run(Thread.java:840)
Standard out
=== Starting doProvision(jenkins.plugins.openstack.compute.JCloudsCloudTest)
$ /opt/jdk-17/bin/java -jar -DstartedBy=doProvision(jenkins.plugins.openstack.compute.JCloudsCloudTest) /home/jenkins/agent/workspace/ns_openstack-cloud-plugin_PR-433@tmp/m2repo/org/jenkins-ci/main/remoting/3301.v4363ddcca_4e7/remoting-3301.v4363ddcca_4e7.jar -jnlpUrl http://localhost:37675/jenkins/computer/template0-0/slave-agent.jnlp
$ /opt/jdk-17/bin/java -jar -DstartedBy=doProvision(jenkins.plugins.openstack.compute.JCloudsCloudTest) /home/jenkins/agent/workspace/ns_openstack-cloud-plugin_PR-433@tmp/m2repo/org/jenkins-ci/main/remoting/3301.v4363ddcca_4e7/remoting-3301.v4363ddcca_4e7.jar -jnlpUrl http://localhost:37675/jenkins/computer/template0-1/slave-agent.jnlp
Loading