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

Problem when runing windows 11 with revert policy before every job #19

Open
mnehlsen opened this issue Apr 6, 2022 · 0 comments
Open
Labels

Comments

@mnehlsen
Copy link

mnehlsen commented Apr 6, 2022

Jenkins and plugins versions report

Environment
Jenkins: 2.332.1
OS: Linux - 5.4.0-104-generic
---
ace-editor:1.1
ant:1.13
antisamy-markup-formatter:2.7
apache-httpcomponents-client-4-api:4.5.13-1.0
bootstrap4-api:4.6.0-3
bootstrap5-api:5.1.3-6
bouncycastle-api:2.25
branch-api:2.1044.v2c007e51b_87f
build-timeout:1.20
caffeine-api:2.9.2-29.v717aac953ff3
checks-api:1.7.2
cloudbees-folder:6.714.v79e858ef76a_2
command-launcher:1.6
copyartifact:1.46.3
credentials:1087.v16065d268466
credentials-binding:1.27.1
cygpath:1.5
cygwin-process-killer:0.2
description-setter:1.10
display-url-api:2.3.6
durable-task:495.v29cd95ec10f2
echarts-api:5.3.0-2
email-ext:2.87
external-monitor-job:191.v363d0d1efdf8
font-awesome-api:6.0.0-1
git:4.11.0
git-client:3.11.0
git-server:1.10
github:1.34.3
github-api:1.301-378.v9807bd746da5
github-branch-source:1598.v91207e9f9b_4a_
gitlab-plugin:1.5.29
gradle:1.38
handlebars:3.0.8
jackson2-api:2.13.2-260.v43d711474c77
javadoc:217.v905b_86277a_2a_
javax-activation-api:1.2.0-2
javax-mail-api:1.6.2-5
jaxb:2.3.0.1
jdk-tool:1.5
jersey2-api:2.35-4
jjwt-api:0.11.2-9.c8b45b8bb173
jnr-posix-api:3.1.7-3
jobConfigHistory:1133.v0f5420f85053
jquery3-api:3.6.0-2
jsch:0.1.55.2
junit:1.58
ldap:2.8
lockable-resources:2.14
mailer:408.vd726a_1130320
matrix-auth:3.1
matrix-project:758.v7a_ea_491852f3
momentjs:1.1.1
nodelabelparameter:1.10.3
okhttp-api:4.9.3-105.vb96869f8ac3a
pam-auth:1.7
pipeline-build-step:2.16
pipeline-github-lib:36.v4c01db_ca_ed16
pipeline-graph-analysis:188.v3a01e7973f2c
pipeline-input-step:446.vf27b_0b_83500e
pipeline-milestone-step:100.v60a_03cd446e1
pipeline-model-api:2.2075.vce74e77b_ce40
pipeline-model-definition:2.2075.vce74e77b_ce40
pipeline-model-extensions:2.2075.vce74e77b_ce40
pipeline-rest-api:2.23
pipeline-stage-step:291.vf0a8a7aeeb50
pipeline-stage-tags-metadata:2.2075.vce74e77b_ce40
pipeline-stage-view:2.23
plain-credentials:1.8
plugin-util-api:2.16.0
popper-api:1.16.1-2
popper2-api:2.11.4-1
proxmox:0.7.1
resource-disposer:0.18
scm-api:595.vd5a_df5eb_0e39
script-security:1145.vb_cf6cf6ed960
snakeyaml-api:1.29.1
ssh-credentials:1.19
ssh-slaves:1.806.v2253cedd3295
sshd:3.1.0
structs:308.v852b473a2b8c
timestamper:1.17
token-macro:285.vff7645a_56ff0
trilead-api:1.0.13
windows-slaves:1.8
workflow-aggregator:2.7
workflow-api:1143.v2d42f1e9dea_5
workflow-basic-steps:941.vdfe1b_a_132c64
workflow-cps:2683.vd0a_8f6a_1c263
workflow-cps-global-lib:564.ve62a_4eb_b_e039
workflow-durable-task-step:1128.v8c259d125340
workflow-job:1174.vdcb_d054cf74a_
workflow-multibranch:711.vdfef37cda_816
workflow-scm-step:2.13
workflow-step-api:622.vb_8e7c15b_c95a_
workflow-support:815.vd60466279fc8
ws-cleanup:0.41

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

Ubuntu 20.04 on the controller and windows 11 on the agent.

Reproduction steps

  1. Configure the system with a windows 11 (not tried other windows versions) agent and select the "Before every job running on the virtual machine" revert policy.
  2. Run a job on the agent configured.

Expected Results

The job will run without a problem.

Actual Results

The job fails with the error:

21:31:36 Started by user Me
21:31:36 Running as SYSTEM
21:31:36 ERROR: Issue with creating launcher for agent Agentname. The agent has not been fully initialized yet
21:31:36 Building remotely on Agentname (Labelnames)ERROR: Agentname seems to be offline
21:31:36 ERROR: Step ‘Archive the artifacts’ failed: no workspace for jobname #34
21:31:36 Finished: FAILURE

And it does this before the machine even had time to revert the snapshot and start again. Even though I have a Startup Idle time of 60 seconds the error comes after something like 10 seconds.

Anything else?

It works if I use the "After connect with the virtual machine" revert policy.

@mnehlsen mnehlsen added the bug label Apr 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant