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 salt-minion update (winrepo definition) using pkg.installed returns False, retcode: 2 #63767

Closed
amalaguti opened this issue Feb 23, 2023 · 1 comment · Fixed by #64395
Assignees
Labels
Bug broken, incorrect, or confusing behavior Chlorine v3007.0 Execution-Module State-Module

Comments

@amalaguti
Copy link

amalaguti commented Feb 23, 2023

Description
Updating Windows Salt Minion using winrepo software definition with pkg.installed returns False, retcode 2
The scheduled task is launched and the salt-minion installation is completed succesfully but the state output shows error.

update_salt:
  pkg.installed:
    - name: salt-minion-py3
    - version: "3003.5-1"
ID: update_salt
Function: pkg.installed
    Name: salt-minion-py3
  Result: False
 Comment: The following packages failed to install/update: salt-minion-py3=3003.5-1
 Started: 21:11:32.111568
Duration: 1187.513 ms
 Changes:
          ----------
          salt-minion-py3:
              ----------
              install status:
                  task started
# Event Bus
pkg.installed	{
    "__id__": "update_salt",
    "__run_num__": 1,
    "__sls__": "salt.minion-pkg_winrepo",
    "_stamp": "2023-02-23T21:11:33.353024",
    "changes": {
        "salt-minion-py3": {
            "install status": "task started"
        }
    },
    "comment": "The following packages failed to install/update: salt-minion-py3=3003.5-1",
    "duration": 1187.513,
    "name": "salt-minion-py3",
    "result": false,
    "retcode": 2,
    "start_time": "21:11:32.111568"
}
# salt win-lab1 test.version
win-lab1:
    3003.5

Setup
winrepo: https://raw.githubusercontent.com/saltstack/salt-winrepo-ng/master/salt-minion.sls

Updating from 3002.6 to 3003.5-1 but probably same problem with other versions.

@amalaguti amalaguti added Bug broken, incorrect, or confusing behavior needs-triage labels Feb 23, 2023
@twangboy
Copy link
Contributor

May have to do with this:
https://stackoverflow.com/questions/12964998/windows-7-task-scheduler-keeps-returning-operational-code-2
We can probably ignore it, but it shouldn't cause the state to fail...

@twangboy twangboy self-assigned this Feb 23, 2023
@twangboy twangboy added Execution-Module State-Module Chlorine v3007.0 Bug broken, incorrect, or confusing behavior and removed Bug broken, incorrect, or confusing behavior needs-triage labels Feb 23, 2023
@twangboy twangboy added this to the Chlorine v3007.0 milestone Feb 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug broken, incorrect, or confusing behavior Chlorine v3007.0 Execution-Module State-Module
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants