Actions
action #159963
open[sporadic] salt-pillars-openqa deploy pipeline fails because file.manage complains about »name '__env__' is not defined«
Start date:
2024-05-06
Due date:
% Done:
0%
Estimated time:
Tags:
Description
Observation¶
https://gitlab.suse.de/openqa/salt-pillars-openqa/-/jobs/2571863
worker34.oqa.prg2.suse.org:
----------
ID: /etc/ssh/sshd_config
Function: file.managed
Result: False
Comment: Unable to manage file: name '__env__' is not defined
Started: 11:37:24.951794
Duration: 162.446 ms
Changes:
----------
ID: sshd
Function: service.running
Result: False
Comment: One or more requisite failed: sshd./etc/ssh/sshd_config
Started: 11:37:25.118150
Duration: 0.003 ms
Changes:
----------
[…snip…]
worker29.oqa.prg2.suse.org:
----------
ID: /etc/ssh/sshd_config
Function: file.managed
Result: False
Comment: Unable to manage file: name '__env__' is not defined
Started: 11:37:24.091996
Duration: 140.863 ms
Changes:
----------
ID: sshd
Function: service.running
Result: False
Comment: One or more requisite failed: sshd./etc/ssh/sshd_config
Started: 11:37:24.236772
Duration: 0.003 ms
Changes:
----------
happened once, was good again after. Might be still worth to check if we can find something upstream about this
EDIT: Sometimes later still appearing sometimes:
worker40.oqa.prg2.suse.org:
----------
ID: firewalld_zones
Function: file.managed
Name: /etc/firewalld/zones/trusted.xml
Result: False
Comment: Unable to manage file: name '__env__' is not defined
Started: 13:36:50.135092
Duration: 200.901 ms
Changes:
Summary for worker40.oqa.prg2.suse.org
--------------
Succeeded: 501
Failed: 1
--------------
from https://gitlab.suse.de/openqa/salt-pillars-openqa/-/jobs/2807754#L224
Acceptance criteria¶
- AC1: Consistently stable salt deployment jobs with no error "Unable to manage file: name 'env' is not defined"
Suggestions¶
- DONE Do upstream research on error message "Unable to manage file: name 'env' is not defined" -> https://github.com/search?q=repo%3Asaltstack%2Fsalt%20%20%22Unable%20to%20manage%20file%3A%20name%20%27__env__%27%20is%20not%20defined%22&type=code reveals nothing, so does https://www.ecosia.org/search?method=index&q=salt%20%22Unable%20to%20manage%20file%3A%20name%20%27__env__%27%20is%20not%20defined%22 . Only remotely similar https://github.com/saltstack/salt/issues/24273 but no helpful content.
Workaround¶
Retrigger the according CI job
Updated by livdywan 8 months ago
- Target version set to future
I could only find really old issues such as https://github.com/saltstack/salt/issues/6003 reproducing NameError: global name '__env__' is not defined
in a different use case.
Maybe if it becomes reproducible we can file an upstream issue.
Updated by livdywan 8 months ago
Total states run: 660
Total run time: 47.558 s
backup-vm.qe.nue2.suse.org:
----------
ID: /etc/systemd/system/ca-certificates.service.d/override.conf
Function: file.managed
Result: False
Comment: Unable to manage file: name '__env__' is not defined
Started: 18:17:26.470223
Duration: 159.447 ms
Changes:
Summary for backup-vm.qe.nue2.suse.org
--------------
Succeeded: 255
Failed: 1
Updated by livdywan 7 months ago
ID: /etc/udev/rules.d/80-disk-description.rules
Function: file.managed
Result: False
Comment: Unable to manage file: name '__env__' is not defined
Started: 16:31:36.245968
Duration: 232.683 ms
Changes:
----------
ID: /etc/udev/rules.d/80-disk-description.rules
Function: cmd.run
Name: udevadm trigger
Result: False
Comment: One or more requisite failed: udev.disk_descriptions./etc/udev/rules.d/80-disk-description.rules
Started: 16:31:36.482986
Duration: 0.004 ms
Changes:
https://gitlab.suse.de/openqa/salt-states-openqa/-/jobs/2608277
Updated by okurz 6 months ago
- Tags changed from reactive work, alerts, infra to reactive work, alerts, infra, salt, CI
- Subject changed from salt-pillars-openqa deploy pipeline fails because file.manage complains about »name '__env__' is not defined« to [sporadic] salt-pillars-openqa deploy pipeline fails because file.manage complains about »name '__env__' is not defined«
- Description updated (diff)
- Category set to Regressions/Crashes
Updated by okurz 6 months ago
- Has duplicate action #163478: [sporadic] sometimes in salt deploy pipelines "Unable to manage file: name '__env__' is not defined" added
Updated by nicksinger 29 days ago
https://gitlab.suse.de/openqa/salt-pillars-openqa/-/jobs/3434510
qesapworker-prg7.qa.suse.cz:
----------
ID: /etc/ssh/sshd_config
Function: file.managed
Result: False
Comment: Unable to manage file: name '__env__' is not defined
Started: 19:38:46.704731
Duration: 89.722 ms
Changes:
----------
a restart of the job just magically fixed it.
Actions