Project

General

Profile

Actions

action #159963

open

salt-pillars-openqa deploy pipeline fails because file.manage complains about »name '__env__' is not defined«

Added by nicksinger about 2 months ago. Updated about 1 month ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Target version:
Start date:
2024-05-06
Due date:
% Done:

0%

Estimated time:

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

Actions #1

Updated by livdywan about 2 months ago

  • Tags set to reactive work, alerts, infra
Actions #2

Updated by mkittler about 2 months ago

There's no file with env in its name and no file containing __env__ in our states and pillars. So probably an upstream problem.

Actions #3

Updated by livdywan about 2 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.

Actions #4

Updated by livdywan about 2 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
Actions #5

Updated by livdywan about 1 month 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
Actions

Also available in: Atom PDF