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

[BUG] Windows (support) testing has been broken since around 2021-W42 #151

Open
myii opened this issue Mar 22, 2022 · 0 comments
Open

[BUG] Windows (support) testing has been broken since around 2021-W42 #151

myii opened this issue Mar 22, 2022 · 0 comments
Assignees
Labels

Comments

@myii
Copy link
Member

myii commented Mar 22, 2022

Your setup

Formula commit hash / release tag

As provided in the CI.

Versions reports (master & minion)

As provided in the CI.

Pillar / config used

As provided in the CI.


Bug details

Describe the bug

Windows testing (and probably support) has been broken from around W42 of 2021 (failing in every weekly testing until now):

Sample of the failed states:

        ----------
          ID: openvpn_create_dh_512
           Function: cmd.run
        Name: "C:\Program Files\OpenVPN\bin\openssl" dhparam -out "C:\Program Files\OpenVPN\config/dh512.pem" 512
             Result: False
            Comment: Command ""C:\Program Files\OpenVPN\bin\openssl" dhparam -out "C:\Program Files\OpenVPN\config/dh512.pem" 512" run
            Started: 10:46:38.345913
           Duration: 13427.013 ms
            Changes:   
              ----------
              pid:
                  7140
              retcode:
                  1
              stderr:
                  '"C:\Program Files\OpenVPN\bin\openssl"' is not recognized as an internal or external command,
                  operable program or batch file.
        ----------
...
        ----------
          ID: openvpn_service
           Function: service.running
        Name: OpenVPNService
             Result: False
            Comment: An exception occurred in this state: Traceback (most recent call last):
                File "C:\Program Files\Salt Project\Salt\bin\lib\site-packages\salt-3004-py3.8.egg\salt\utils\win_service.py", line 122, in info
                  handle_svc = win32service.OpenService(
              pywintypes.error: (1060, 'OpenService', 'The specified service does not exist as an installed service.')
              
              During handling of the above exception, another exception occurred:
              
              Traceback (most recent call last):
                File "C:\Program Files\Salt Project\Salt\bin\lib\site-packages\salt-3004-py3.8.egg\salt\state.py", line 2179, in call
                  ret = self.states[cdata["full"]](
                File "C:\Program Files\Salt Project\Salt\bin\lib\site-packages\salt-3004-py3.8.egg\salt\loader\lazy.py", line 149, in __call__
                  return self.loader.run(run_func, *args, **kwargs)
                File "C:\Program Files\Salt Project\Salt\bin\lib\site-packages\salt-3004-py3.8.egg\salt\loader\lazy.py", line 1201, in run
                  return self._last_context.run(self._run_as, _func_or_method, *args, **kwargs)
                File "C:\Program Files\Salt Project\Salt\bin\lib\site-packages\salt-3004-py3.8.egg\salt\loader\lazy.py", line 1216, in _run_as
                  return _func_or_method(*args, **kwargs)
                File "C:\Program Files\Salt Project\Salt\bin\lib\site-packages\salt-3004-py3.8.egg\salt\loader\lazy.py", line 1249, in wrapper
                  return f(*args, **kwargs)
                File "C:\Program Files\Salt Project\Salt\bin\Lib\site-packages\salt-3004-py3.8.egg\salt\states\service.py", line 1018, in mod_watch
                  if __salt__["service.status"](name, sig, **status_kwargs):
                File "C:\Program Files\Salt Project\Salt\bin\lib\site-packages\salt-3004-py3.8.egg\salt\loader\lazy.py", line 149, in __call__
                  return self.loader.run(run_func, *args, **kwargs)
                File "C:\Program Files\Salt Project\Salt\bin\lib\site-packages\salt-3004-py3.8.egg\salt\loader\lazy.py", line 1201, in run
                  return self._last_context.run(self._run_as, _func_or_method, *args, **kwargs)
                File "C:\Program Files\Salt Project\Salt\bin\lib\site-packages\salt-3004-py3.8.egg\salt\loader\lazy.py", line 1216, in _run_as
                  return _func_or_method(*args, **kwargs)
                File "C:\Program Files\Salt Project\Salt\bin\Lib\site-packages\salt-3004-py3.8.egg\salt\modules\win_service.py", line 511, in status
                  results[service] = info(service)["Status"] in ["Running", "Stop Pending"]
                File "C:\Program Files\Salt Project\Salt\bin\Lib\site-packages\salt-3004-py3.8.egg\salt\modules\win_service.py", line 304, in info
                  return salt.utils.win_service.info(name=name)
                File "C:\Program Files\Salt Project\Salt\bin\lib\site-packages\salt-3004-py3.8.egg\salt\utils\win_service.py", line 131, in info
                  raise CommandExecutionError("Failed To Open {}: {}".format(name, exc.strerror))
              salt.exceptions.CommandExecutionError: Failed To Open OpenVPNService: The specified service does not exist as an installed service.

Steps to reproduce the bug

Run Kitchen testing.

Expected behaviour

CI to pass again, as before.

Attempts to fix the bug

Additional context

@myii myii added the bug label Mar 22, 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

2 participants