Skip to content
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

Job fails as soon as a lockable resource is rebooted #735

Open
michtyde opened this issue Dec 6, 2024 · 3 comments
Open

Job fails as soon as a lockable resource is rebooted #735

michtyde opened this issue Dec 6, 2024 · 3 comments

Comments

@michtyde
Copy link

michtyde commented Dec 6, 2024

Jenkins and plugins versions report

Environment

``Jenkins: 2.440.2.1
OS: Linux - 3.10.0-1160.119.1.el7.x86_64
Java: 17.0.10 - Red Hat, Inc. (OpenJDK 64-Bit Server VM)

ace-editor:1.1
active-directory:2.35
analysis-core:1.96
analysis-model-api:11.15.0
ant:497.v94e7d9fffa_b_9
antisamy-markup-formatter:162.v0e6ec0fcfcf6
apache-httpcomponents-client-4-api:4.5.14-208.v438351942757
artifactory:4.0.6
async-http-client:1.7.24.3
audit-trail:361.v82cde86c784e
authentication-tokens:1.53.v1c90fd9191a_b_
aws-credentials:218.v1b_e9466ec5da_
aws-java-sdk:1.12.671-439.veec746c91fcb_
aws-java-sdk-cloudformation:1.12.671-439.veec746c91fcb_
aws-java-sdk-codebuild:1.12.671-439.veec746c91fcb_
aws-java-sdk-ec2:1.12.671-439.veec746c91fcb_
aws-java-sdk-ecr:1.12.671-439.veec746c91fcb_
aws-java-sdk-ecs:1.12.671-439.veec746c91fcb_
aws-java-sdk-efs:1.12.671-439.veec746c91fcb_
aws-java-sdk-elasticbeanstalk:1.12.671-439.veec746c91fcb_
aws-java-sdk-iam:1.12.671-439.veec746c91fcb_
aws-java-sdk-kinesis:1.12.671-439.veec746c91fcb_
aws-java-sdk-logs:1.12.671-439.veec746c91fcb_
aws-java-sdk-minimal:1.12.671-439.veec746c91fcb_
aws-java-sdk-secretsmanager:1.12.671-439.veec746c91fcb_
aws-java-sdk-sns:1.12.671-439.veec746c91fcb_
aws-java-sdk-sqs:1.12.671-439.veec746c91fcb_
aws-java-sdk-ssm:1.12.671-439.veec746c91fcb_
badge:1.9.1
blueocean:1.27.11
blueocean-autofavorite:1.2.5
blueocean-bitbucket-pipeline:1.27.11
blueocean-commons:1.27.11
blueocean-config:1.27.11
blueocean-core-js:1.27.11
blueocean-dashboard:1.27.11
blueocean-display-url:2.4.2
blueocean-events:1.27.11
blueocean-git-pipeline:1.27.11
blueocean-github-pipeline:1.27.11
blueocean-i18n:1.27.11
blueocean-jira:1.27.11
blueocean-jwt:1.27.11
blueocean-personalization:1.27.11
blueocean-pipeline-api-impl:1.27.11
blueocean-pipeline-editor:1.27.11
blueocean-pipeline-scm-api:1.27.11
blueocean-rest:1.27.11
blueocean-rest-impl:1.27.11
blueocean-web:1.27.11
bootstrap4-api:4.6.0-6
bootstrap5-api:5.3.2-3
bouncycastle-api:2.30.1.77-225.v26ea_c9455fd9
branch-api:2.1152.v6f101e97dd77
build-monitor-plugin:1.14-826.vb_a_c11536174d
build-timeout:1.32
caffeine-api:3.1.8-133.v17b_1ff2e0599
checks-api:2.0.2
cloudbees-administrative-monitors:1.0.13
cloudbees-analytics:1.59
cloudbees-assurance:2.276.0.35
cloudbees-bitbucket-branch-source:848.850.v6a_a_2a_234a_c81
cloudbees-blueocean-default-theme:0.8
cloudbees-disk-usage-simple:203.v3f46a_7462b_1a_
cloudbees-folder:6.879.990.cb-v8176690e44b_9
cloudbees-folders-plus:3.31
cloudbees-groovy-view:1.15
cloudbees-ha:4.45
cloudbees-jenkins-advisor:358.v58972d19b_1f0
cloudbees-jsync-archiver:5.25
cloudbees-license:9.80
cloudbees-monitoring:2.17
cloudbees-nodes-plus:1.25
cloudbees-pipeline-explorer:1.12
cloudbees-platform-common:1.27
cloudbees-platform-data:1.39
cloudbees-plugin-usage:2.20
cloudbees-quiet-start:1.9
cloudbees-request-filter:1.9
cloudbees-ssh-slaves:2.25
cloudbees-support:3.31
cloudbees-template:4.63
cloudbees-uc-data-api:4.59
cloudbees-unified-ui:1.31
cloudbees-view-creation-filter:1.9
cloudbees-workflow-template:3.26
cloudbees-workflow-ui:2.12
command-launcher:107.v773860566e2e
commons-lang3-api:3.13.0-62.v7d18e55f51e2
commons-text-api:1.11.0-95.v22a_d30ee5d36
config-file-provider:968.ve1ca_eb_913f8c
credentials:1319.v7eb_51b_3a_c97b_
credentials-binding:657.v2b_19db_7d6e6d
dashboard-view:2.495.v07e81500c3f2
data-tables-api:1.13.8-4
display-url-api:2.200.vb_9327d658781
docker-commons:439.va_3cb_0a_6a_fb_29
docker-workflow:572.v950f58993843
downstream-build-cache:1.7
durable-task:550.v0930093c4b_a_6
echarts-api:5.4.3-4
email-ext:2.105
esr-config:2.387.0.3
esr-reporter:2.387.0.3
extended-read-permission:53.v6499940139e5
favorite:2.208.v91d65b_7792a_c
file-operations:214.v2e7dc7f25757
font-awesome-api:6.5.1-2
forensics-api:2.3.0
gerrit-trigger:2.39.0
ghprb:1.42.2
git:5.2.1
git-client:4.6.0
git-server:114.v068a_c7cc2574
github:1.38.0
github-api:1.318-461.v7a_c09c9fa_d63
github-branch-source:1767.va_7d01ea_c7256
gradle:2.9
gson-api:2.10.1-15.v0d99f670e0a_7
handlebars:3.0.8
handy-uri-templates-2-api:2.1.8-30.v7e777411b_148
htmlpublisher:1.33
http_request:1.18
infradna-backup:3.38.73
instance-identity:185.v303dc7c645f9
ionicons-api:56.v1b_1c8c49374e
ivy:2.5
jackson2-api:2.16.2-378.v7e79818f53ce
jakarta-activation-api:2.1.3-1
jakarta-mail-api:2.1.3-1
javadoc:243.vb_b_503b_b_45537
javax-activation-api:1.2.0-6
javax-mail-api:1.6.2-9
jaxb:2.3.9-1
jdk-tool:73.vddf737284550
jenkins-design-language:1.27.11
jersey2-api:2.41-133.va_03323b_a_1396
jira:3.13
jjwt-api:0.11.5-77.v646c772fddb_0
job-import-plugin:3.6
jobConfigHistory:1229.v3039470161a_d
joda-time-api:2.12.7-29.v5a_b_e3a_82269a_
jquery-detached:1.2.1
jquery3-api:3.7.1-2
jsch:0.2.16-86.v42e010d9484b_
json-api:20240303-41.v94e11e6de726
json-path-api:2.9.0-33.v2527142f2e1d
junit:1256.v002534a_5f33e
kube-agent-management:1.1.68
kubernetes:4193.vded98e56cc25
kubernetes-client-api:6.10.0-240.v57880ce8b_0b_2
kubernetes-credentials:0.11
ldap:711.vb_d1a_491714dc
lockable-resources:1246.v28b_e4cc6fa_16
logstash:2.5.0218.v0a_ff8fefc12b_
mailer:470.vc91f60c5d8e2
mapdb-api:1.0.9-28.vf251ce40855d
matrix-project:822.824.v14451b_c0fd42
maven-plugin:3.23
mercurial:1260.vdfb_723cdcc81
metrics:4.2.21-449.v6960d7c54c69
mina-sshd-api-common:2.12.0-90.v9f7fb_9fa_3d3b_
mina-sshd-api-core:2.12.0-90.v9f7fb_9fa_3d3b_
mina-sshd-api-scp:2.12.0-90.v9f7fb_9fa_3d3b_
mina-sshd-api-sftp:2.12.0-90.v9f7fb_9fa_3d3b_
momentjs:1.1.1
monitoring:1.99.0
nectar-license:8.43
nectar-rbac:5.91
node-iterator-api:55.v3b_77d4032326
okhttp-api:4.11.0-172.vda_da_1feeb_c6e
opentelemetry:3.1092.va_2a_c52b_dd182
operations-center-agent:3.26903
operations-center-client:3.26903
operations-center-cloud:3.26903
operations-center-context:3.26903
p4:1.15.1
parameterized-scheduler:277.v61a_4b_a_49a_c5c
permissive-script-security:0.7
pipeline-build-step:540.vb_e8849e1a_b_d8
pipeline-graph-analysis:216.vfd8b_ece330ca_
pipeline-groovy-lib:704.vc58b_8890a_384
pipeline-input-step:491.vb_07d21da_1a_fb_
pipeline-milestone-step:111.v449306f708b_7
pipeline-model-api:2.2183.vb_36481468374
pipeline-model-definition:2.2183.vb_36481468374
pipeline-model-extensions:2.2183.vb_36481468374
pipeline-rest-api:2.34
pipeline-stage-step:305.ve96d0205c1c6
pipeline-stage-tags-metadata:2.2183.vb_36481468374
pipeline-stage-view:2.34
pipeline-utility-steps:2.16.2
plain-credentials:179.vc5cb_98f6db_38
plot:2.1.12
plugin-util-api:3.8.0
popper-api:1.16.1-3
popper2-api:2.11.6-4
prism-api:1.29.0-10
pubsub-light:1.18
repo:1.16.0
resource-disposer:0.23
rich-text-publisher-plugin:1.4
run-condition:1.7
saltstack:3.2.2
scm-api:683.vb_16722fb_b_80b_
script-security:1326.vdb_c154de8669
simple-theme-plugin:176.v39740c03a_a_f5
snakeyaml-api:2.2-111.vc6598e30cc65
sse-gateway:1.26
ssh-agent:346.vda_a_c4f2c8e50
ssh-credentials:322.v124df57ed808
ssh-slaves:2.948.vb_8050d697fec
ssh-steps:2.0.68.va_d21a_12a_6476
sshd:3.322.v159e91f6a_550
structs:337.v1b_04ea_4df7c8
summary_report:1.15
support-core:1413.v8021b_0f777dc
throttle-concurrents:2.14
timestamper:1.26
token-macro:400.v35420b_922dcb_
trilead-api:2.84.86.vf9c960e9b_458
unique-id:2.101.v21a_b_6390a_b_04
user-activity-monitoring:1.18
variant:60.v7290fc0eb_b_cd
warnings:5.0.1
warnings-ng:10.7.0
wikitext:3.16
workflow-aggregator:596.v8c21c963d92d
workflow-api:1291.v51fd2a_625da_7
workflow-basic-steps:1049.v257a_e6b_30fb_d
workflow-cps:3883.vb_3ff2a_e3eea_f
workflow-cps-checkpoint:2.17
workflow-cps-global-lib:612.v55f2f80781ef
workflow-durable-task-step:1331.vc8c2fed35334
workflow-job:1400.v7fd111b_ec82f
workflow-multibranch:773.vc4fe1378f1d5
workflow-scm-step:415.v434365564324
workflow-step-api:657.v03b_e8115821b_
workflow-support:865.v43e78cc44e0d
ws-cleanup:0.46
yet-another-build-visualizer:1.16


</details>


### What Operating System are you using (both controller, and any agents involved in the problem)?

Controller: CentOS 7.9.2009
Agent: Linux 5.4.0-186-generic #206-Ubuntu

### Reproduction steps

1. Get a lock on node 
2. Run script which is rebooting a node after installation of package
3. Wait till node be available back online
4. Check the version of installed package
5. Release the lock

### Expected Results

Lock will be released on end od stage

### Actual Results

Lock is released just after reboot

### Anything else?

_No response_

### Are you interested in contributing a fix?

Yes
@mPokornyETM
Copy link
Contributor

@michtyde what youmeans with "rebooted"?

@michtyde
Copy link
Author

@mPokornyETM The script which runs on Jenkins node at some step is running reboot command.

@mPokornyETM
Copy link
Contributor

reboot commd of node?

Might you pls post here some log output?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants