I am trying to deploy Jenkins with the Jenkins Master in OCI and the slave nodes. I am following step by step instructions and videos from Oracle University. However, it fails to deploy slave nodes. The following link looks very similar to the instructions I followed:
After setting up the OCI plugin, I made sure I validated my credentials and Jenkins could login to OCI - it could. I then setup a template and tried to deploy the slave nodes by clicking on: "Build Executor Status" and then "Provision Oracle Cloud Infrastructure Compute".
My template was trying to deploy Linux slave nodes.
It displays the following message: "Started provisioning node oci-compute-8ddc4d29-cad9-46cd-b565-eed7611d6fc5 with 1 executors" - but it never actually deploys any nodes.
I have listed the error message in the Jenkins logs at the end of this post.
The only differences I found between what I did and the instructions I followed is that the instructions seem to be showing an older version of Jenkins (one that had the new cloud settings on the same page as configure system, instead of its own page. And for the template it asked for both private and public ssh keys, but the current version of Jenkins asks only for the private).
Please let me know if you have any ideas of how to troubleshoot or fix this? I was not finding a lot of useful information, when I did searches on this issue.
Logs Below
Provisioning new cloud infrastructure instance Dec 16, 2020 2:47:57 AM INFO com.oracle.bmc.core.ComputeClient setEndpoint Setting endpoint to https://iaas.us-phoenix-1.oraclecloud.com Dec 16, 2020 2:47:57 AM WARNING com.oracle.cloud.baremetal.jenkins.BaremetalCloud$ExplicitProvisioner call Provisioned slave jenkins-192.168.0.11-8ddc4d29-cad9-46cd-b565-eed7611d6fc5 failed! java.lang.Exception: Instance creation fails because: null at com.oracle.cloud.baremetal.jenkins.client.SDKBaremetalCloudClient.createInstance(SDKBaremetalCloudClient.java:237) at com.oracle.cloud.baremetal.jenkins.BaremetalCloud.provision(BaremetalCloud.java:230) at com.oracle.cloud.baremetal.jenkins.BaremetalCloud.access$100(BaremetalCloud.java:65) at com.oracle.cloud.baremetal.jenkins.BaremetalCloud$Provisioner.call(BaremetalCloud.java:222) at com.oracle.cloud.baremetal.jenkins.BaremetalCloud$ExplicitProvisioner.call(BaremetalCloud.java:382) at com.oracle.cloud.baremetal.jenkins.BaremetalCloud$ExplicitProvisioner.call(BaremetalCloud.java:372) at jenkins.util.ContextResettingExecutorService$2.call(ContextResettingExecutorService.java:46) at jenkins.security.ImpersonatingExecutorService$2.call(ImpersonatingExecutorService.java:80) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source)