-
Bug
-
Resolution: Not A Defect
-
Major
-
None
-
Jenkins 2.361.1
Running on bare metal K8S, host OS is Ubuntu 20.04 on arm64
Plugins:
kubernetes:3704.va_08f0206b_95e
workflow-aggregator:590.v6a_d052e5a_a_b_5
git:4.11.5
configuration-as-code:1512.vb_79d418d5fc8
bouncycastle-api:2.26
branch-api:2.1046.v0ca_37783ecc5
caffeine-api:2.9.3-65.v6a_47d0f4d1fe
command-launcher:84.v4a_97f2027398
credentials:1143.vb_e8b_b_ceee347
credentials-binding:523.vd859a_4b_122e6
display-url-api:2.3.6
docker-commons:1.21
durable-task:500.v8927d9fd99d8
icon-shim:3.0.0
jackson2-api:2.13.3-285.vc03c0256d517
javax-activation-api:1.2.0-4
jaxb:2.3.6-1
snakeyaml-api:1.31-84.ve43da_fb_49d0b
javax-mail-api:1.6.2-7
ace-editor:1.1
handlebars:3.0.8
momentjs:1.1.1
workflow-durable-task-step:1199.v02b_9244f8064
pipeline-model-definition:2.2114.v2654ca_721309
docker-workflow:521.v1a_a_dd2073b_2e
kubernetes-client-api:5.12.2-193.v26a_6078f65a_9
jdk-tool:55.v1b_32b_6ca_f9ca
junit:1119.1121.vc43d0fc45561
bootstrap4-api:4.6.0-5
checks-api:1.7.5
echarts-api:5.3.3-1
bootstrap5-api:5.2.0-3
font-awesome-api:6.1.2-1
jakarta-activation-api:2.0.1-1
jakarta-mail-api:2.0.1-1
jquery3-api:3.6.0-4
lockable-resources:2.16
pipeline-graph-analysis:195.v5812d95a_a_2f9
workflow-api:1192.v2d0deb_19d212
workflow-basic-steps:994.vd57e3ca_46d24
workflow-cps-global-lib:588.v576c103a_ff86
workflow-cps:2759.v87459c4eea_ca_
pipeline-rest-api:2.24
pipeline-stage-view:2.24
workflow-support:838.va_3a_087b_4055b
plugin-util-api:2.17.0
popper2-api:2.11.6-1
popper-api:1.16.1-3
ssh-credentials:305.v8f4381501156
mina-sshd-api-common:2.8.0-36.v8e25ce90d4b_1
mina-sshd-api-core:2.8.0-36.v8e25ce90d4b_1
trilead-api:2.72.v2a_3236754f73
google-login:1.6
metrics:4.2.10-389.v93143621b_050
pipeline-groovy-lib:612.v84da_9c54906d
workflow-step-api:639.v6eca_cd8c04a_a_
scm-api:621.vda_a_b_055e58f7
structs:324.va_f5d6774f3a_d
variant:59.vf075fe829ccb
apache-httpcomponents-client-4-api:4.5.13-138.v4e7d9a_7b_a_e61
git-client:3.11.2
plain-credentials:139.ved2b_9cf7587b
pipeline-stage-step:296.v5f6908f017a_5
hetzner-cloud:61.v5cf24cc22f1b
kubernetes-credentials-provider:1.196.va_55f5e31e3c2
job-dsl:1.81
next-build-number:1.8
xml-job-to-job-dsl:0.1.13
generic-webhook-trigger:1.84
oracle-cloud-infrastructure-compute:1.0.16Jenkins 2.361.1 Running on bare metal K8S, host OS is Ubuntu 20.04 on arm64 Plugins: kubernetes:3704.va_08f0206b_95e workflow-aggregator:590.v6a_d052e5a_a_b_5 git:4.11.5 configuration-as-code:1512.vb_79d418d5fc8 bouncycastle-api:2.26 branch-api:2.1046.v0ca_37783ecc5 caffeine-api:2.9.3-65.v6a_47d0f4d1fe command-launcher:84.v4a_97f2027398 credentials:1143.vb_e8b_b_ceee347 credentials-binding:523.vd859a_4b_122e6 display-url-api:2.3.6 docker-commons:1.21 durable-task:500.v8927d9fd99d8 icon-shim:3.0.0 jackson2-api:2.13.3-285.vc03c0256d517 javax-activation-api:1.2.0-4 jaxb:2.3.6-1 snakeyaml-api:1.31-84.ve43da_fb_49d0b javax-mail-api:1.6.2-7 ace-editor:1.1 handlebars:3.0.8 momentjs:1.1.1 workflow-durable-task-step:1199.v02b_9244f8064 pipeline-model-definition:2.2114.v2654ca_721309 docker-workflow:521.v1a_a_dd2073b_2e kubernetes-client-api:5.12.2-193.v26a_6078f65a_9 jdk-tool:55.v1b_32b_6ca_f9ca junit:1119.1121.vc43d0fc45561 bootstrap4-api:4.6.0-5 checks-api:1.7.5 echarts-api:5.3.3-1 bootstrap5-api:5.2.0-3 font-awesome-api:6.1.2-1 jakarta-activation-api:2.0.1-1 jakarta-mail-api:2.0.1-1 jquery3-api:3.6.0-4 lockable-resources:2.16 pipeline-graph-analysis:195.v5812d95a_a_2f9 workflow-api:1192.v2d0deb_19d212 workflow-basic-steps:994.vd57e3ca_46d24 workflow-cps-global-lib:588.v576c103a_ff86 workflow-cps:2759.v87459c4eea_ca_ pipeline-rest-api:2.24 pipeline-stage-view:2.24 workflow-support:838.va_3a_087b_4055b plugin-util-api:2.17.0 popper2-api:2.11.6-1 popper-api:1.16.1-3 ssh-credentials:305.v8f4381501156 mina-sshd-api-common:2.8.0-36.v8e25ce90d4b_1 mina-sshd-api-core:2.8.0-36.v8e25ce90d4b_1 trilead-api:2.72.v2a_3236754f73 google-login:1.6 metrics:4.2.10-389.v93143621b_050 pipeline-groovy-lib:612.v84da_9c54906d workflow-step-api:639.v6eca_cd8c04a_a_ scm-api:621.vda_a_b_055e58f7 structs:324.va_f5d6774f3a_d variant:59.vf075fe829ccb apache-httpcomponents-client-4-api:4.5.13-138.v4e7d9a_7b_a_e61 git-client:3.11.2 plain-credentials:139.ved2b_9cf7587b pipeline-stage-step:296.v5f6908f017a_5 hetzner-cloud:61.v5cf24cc22f1b kubernetes-credentials-provider:1.196.va_55f5e31e3c2 job-dsl:1.81 next-build-number:1.8 xml-job-to-job-dsl:0.1.13 generic-webhook-trigger:1.84 oracle-cloud-infrastructure-compute:1.0.16
I have set up the oracle-cloud-infrastructure-compute plugin. The instances is launched in Oracle cloud, no errors are shown in the Jenkins log. However, the node fails to connect due to:
```
Connecting to ssh: ubuntu@140.238.88.34:22
Authenticating with private key
No init script to copy to remote agent
Verifying that Java is installed
openjdk full version "1.8.0_342-8u342-b07-0ubuntu1~20.04-b07"
Deleting remote slave.jar if it exists prior to copy [sudo rm -f /home/ubuntu/slave.jar]
Copying slave.jar to remote agent using scp
Launching Agent (via Trilead SSH2 Connection): sudo chown ubuntu /home/ubuntu/slave.jar && sudo -u ubuntu java -jar /home/ubuntu/slave.jar
Remote Agent has terminated with exit code: 1
Closing SSH Session to: 140.238.88.34
FATAL: Failed to launch Agent
Closing SSH Connection to
FATAL: SSH Agent launch failed on: ubuntu@140.238.88.34:22
ERROR: Unexpected error in launching an agent. This is probably a bug in Jenkins
Also: java.lang.Throwable: launched here
at hudson.slaves.SlaveComputer._connect(SlaveComputer.java:287)
at hudson.model.Computer.connect(Computer.java:445)
at hudson.slaves.CloudRetentionStrategy.start(CloudRetentionStrategy.java:75)
at hudson.slaves.CloudRetentionStrategy.start(CloudRetentionStrategy.java:45)
at hudson.model.AbstractCIBase.createNewComputerForNode(AbstractCIBase.java:180)
at hudson.model.AbstractCIBase.updateNewComputer(AbstractCIBase.java:222)
at jenkins.model.Jenkins.updateNewComputer(Jenkins.java:1668)
at jenkins.model.Nodes.addNode(Nodes.java:146)
at jenkins.model.Jenkins.addNode(Jenkins.java:2210)
at hudson.slaves.NodeProvisioner.update(NodeProvisioner.java:248)
at hudson.slaves.NodeProvisioner$NodeProvisionerInvoker.doRun(NodeProvisioner.java:823)
at hudson.triggers.SafeTimerTask.run(SafeTimerTask.java:94)
at jenkins.security.ImpersonatingScheduledExecutorService$1.run(ImpersonatingScheduledExecutorService.java:69)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
at java.base/java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305)
at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:829)
java.io.EOFException: unexpected stream termination
at hudson.remoting.ChannelBuilder.negotiate(ChannelBuilder.java:459)
at hudson.remoting.ChannelBuilder.build(ChannelBuilder.java:404)
at hudson.slaves.SlaveComputer.setChannel(SlaveComputer.java:437)
at com.oracle.cloud.baremetal.jenkins.ssh.SshComputerLauncher.launchAgent(SshComputerLauncher.java:285)
at com.oracle.cloud.baremetal.jenkins.ssh.SshComputerLauncher.launch(SshComputerLauncher.java:98)
at hudson.slaves.SlaveComputer.lambda$_connect$0(SlaveComputer.java:298)
at jenkins.util.ContextResettingExecutorService$2.call(ContextResettingExecutorService.java:48)
at jenkins.security.ImpersonatingExecutorService$2.call(ImpersonatingExecutorService.java:82)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:829)
```
Here's the Oracle cloud config from jcasc (with some values removed):
```
- baremetal:
cloudName: "oracle"
credentialsId: "oracle"
instanceCapStr: "1"
maxAsyncThreads: "50"
nextTemplateId: 1
templates: - assignPublicIP: true
autoImageUpdate: false
availableDomain: "TGmT:UK-LONDON-1-AD-3"
compartmentId: "ocid1.tenancy.oc1.."
doNotDisable: false
exportJenkinsEnvVars: false
idleTerminationMinutes: "30"
imageCompartmentId: "ocid1.tenancy.oc1.."
imageId: "ocid1.image.oc1.uk-london-1."
initScriptTimeoutSeconds: 120
jenkinsAgentUser: "ubuntu"
labelString: "oracle-amd64"
mode: EXCLUSIVE
numExecutors: 1
remoteFS: "/home/ubuntu"
retryTimeoutMins: 10
shape: "VM.Standard.E2.1.Micro"
sshConnectTimeoutSeconds: "900"
sshCredentialsId: "oracle-key"
startTimeoutSeconds: "900"
stopOnIdle: false
subnetCompartmentId: "ocid1.tenancy.oc1.."
subnetId: "ocid1.subnet.oc1.uk-london-1."
templateId: 0
usePublicIP: true
vcnCompartmentId: "ocid1.tenancy.oc1.."
vcnId: "ocid1.vcn.oc1.uk-london-1."
```