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] pkg.install failed to install/update but install actually suceeded #56825

Open
briggsy87 opened this issue Apr 22, 2020 · 2 comments
Open
Assignees
Labels
Bug broken, incorrect, or confusing behavior severity-medium 3rd level, incorrect or bad functionality, confusing and lacks a work around Windows
Milestone

Comments

@briggsy87
Copy link

Description
After running my sls file below to install .Net 4.8 I get the following:

----------
          ID: dotnet48
    Function: pkg.installed
      Result: False
     Comment: The following packages failed to install/update: dotnet48
     Started: 10:37:19.089224
    Duration: 169819.811 ms
     Changes:   
              ----------
              dotnet48:
                  ----------
                  install status:
                      success, reboot required

Setup
cat /srv/salt/win/repo-ng/salt-winrepo-ng/dotnet48.sls

dotnet48:
  '4.8.03761':
    full_name: 'Microsoft .NET Framework 4.8'
    installer: 'https://download.visualstudio.microsoft.com/download/pr/014120d7-d689-4305-befd-3cb711108212/1f81f3962f75eff5d83a60abd3a3ec7b/ndp48-web.exe'
    install_flags: '/q /norestart'
    msiexec: False
    locale: en_US
    reboot: False

The relevant logs from the minion are the following, and show that it was successful, but I think the 3010 return code is being propagated, and seen as an error:

2020-04-22 10:40:08,737 [salt.loaded.int.module.cmdmod:844 ][ERROR   ][2288] retcode: 3010
2020-04-22 10:40:08,799 [salt.state       :322 ][ERROR   ][2288] {'dotnet48': {'install status': 'success, reboot required'}}

Expected behavior
Expected the install to succeed, like it did, but not report a failure to the master.

Versions Report

salt --versions-report Salt Version: Salt: 3000.1

Dependency Versions:
cffi: Not Installed
cherrypy: Not Installed
dateutil: 2.6.1
docker-py: Not Installed
gitdb: 2.0.3
gitpython: 2.1.8
Jinja2: 2.10
libgit2: Not Installed
M2Crypto: Not Installed
Mako: Not Installed
msgpack-pure: Not Installed
msgpack-python: 0.5.6
mysql-python: Not Installed
pycparser: Not Installed
pycrypto: 2.6.1
pycryptodome: Not Installed
pygit2: Not Installed
Python: 3.6.9 (default, Apr 18 2020, 01:56:04)
python-gnupg: 0.4.1
PyYAML: 3.12
PyZMQ: 16.0.2
smmap: 2.0.3
timelib: Not Installed
Tornado: 4.5.3
ZMQ: 4.2.5

System Versions:
dist: Ubuntu 18.04 bionic
locale: UTF-8
machine: x86_64
release: 5.0.0-1036-azure
system: Linux
version: Ubuntu 18.04 bionic

Additional context
As mentioned, I believe this is related to the 3010 return code from the installer, that a reboot is required.

@briggsy87 briggsy87 added the Bug broken, incorrect, or confusing behavior label Apr 22, 2020
@twangboy twangboy self-assigned this Apr 22, 2020
@alexey-zhukovin alexey-zhukovin added the Pending-Discussion The issue or pull request needs more discussion before it can be closed or merged label Apr 23, 2020
@alexey-zhukovin
Copy link
Contributor

@briggsy87 Than you.
I think it is not an issue, perhaps we should add this behaviour in documentation.
@twangboy thoughts?

@twangboy twangboy added this to the Approved milestone Apr 28, 2020
@twangboy twangboy added severity-medium 3rd level, incorrect or bad functionality, confusing and lacks a work around team-windows Windows and removed Pending-Discussion The issue or pull request needs more discussion before it can be closed or merged labels Apr 28, 2020
@sagetherage sagetherage added the severity-high 2nd top severity, seen by most users, causes major problems label Jul 6, 2020
@sagetherage sagetherage modified the milestones: Approved, Aluminium Jul 29, 2020
@sagetherage sagetherage added the Aluminium Release Post Mg and Pre Si label Jul 29, 2020
@sagetherage sagetherage removed the severity-high 2nd top severity, seen by most users, causes major problems label Oct 20, 2020
@sagetherage sagetherage removed Aluminium Release Post Mg and Pre Si phase-plan labels Mar 22, 2021
@sagetherage sagetherage modified the milestones: Aluminium, Approved Mar 22, 2021
@twangboy
Copy link
Contributor

A 3010 error code means success, but reboot required. This should not cause a false return. This is a bug

@briggsy87 briggsy87 reopened this Mar 23, 2021
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 severity-medium 3rd level, incorrect or bad functionality, confusing and lacks a work around Windows
Projects
None yet
Development

No branches or pull requests

5 participants