Skip to content

windows salt-minion 2015.8.0rc3 misses info on un-install #26097

Closed

Description

@TheBigBear

When using the latest RC3 of the windows salt-minion Salt-Minion-2015.8.0rc3-AMD64-Setup.exe or the Salt-Minion-2015.8.0rc3-x86-Setup.exe for the Berryllium release some of the sls files do not give the correct and expected output on pkg.remove.

Here are two sls files one that does give the correct output and one that doesn't.
(BTW they are both taken from the WIP_Berryllium+jinja branch of the salt-winrepo, that I am working on.)

xming.sls

for Notepad++ on pkg install I correctly get: (pkg file: npp.sls)

C:\salt>salt-call --local pkg.install npp -l info
[WARNING ] Specified file https://notepad-plus-plus.org/repository/6.x/6.8.1/npp.6.8.1.Installer.exe is not present to generate hash
[INFO    ] Executing command ['c:\\salt\\var\\cache\\salt\\minion\\extrn_files\\base\\notepad-plus-plus.org\\repository\\6.x\\6.8.1\\npp.6.8.1.Installer.exe', '/S'] in directory 'c:\\salt\\var\\cache\\salt\\minion\\extrn_files\\base\\notepad-plus-plus.org\\repository\\6.x\\6.8.1'
local:
    ----------
    npp:
        ----------
        new:
            6.8.1
        old:

But on un-install, I get nothing, but the pkg is being un-installed:

C:\salt>salt-call --local pkg.remove npp -l info
[INFO    ] Executing command ['C:\\Program Files (x86)\\Notepad++\\uninstall.exe', '/S'] in directory 'C:\\Users\\sysadmin.uk'
local:
    ----------

Whereas if I do the same for xming pkg, it does give me proper expected output for both install and un-install.

C:\salt>salt-call --local pkg.install xming
[WARNING ] Specified file http://downloads.sourceforge.net/project/xming/Xming/6.9.0.31/Xming-6-9-0-31-setup.exe is not present to generate hash
[INFO    ] Executing command ['c:\\salt\\var\\cache\\salt\\minion\\extrn_files\\base\\downloads.sourceforge.net\\project\\xming\\Xming\\6.9.0.31\\Xming-6-9-0-31-setup.exe', '/SP-', '/verysilent', '/suppressmsgboxes', '/norestart'] in directory 'c:\\salt\\var\\cache\\salt\\minion\\extrn_files\\base\\downloads.sourceforge.net\\project\\xming\\Xming\\6.9.0.31'
local:
    ----------
    Xming 6.9.0.31:
        ----------
        new:
            6.9.0.31
        old:


C:\salt>salt-call --local pkg.remove xming
[INFO    ] Executing command ['C:\\Program Files (x86)\\Xming\\unins000.exe', '/SP-', '/verysilent', '/norestart'] in directory 'C:\\Users\\sysadmin.uk'
local:
    ----------
    Xming 6.9.0.31:
        ----------
        new:
        old:
            6.9.0.31

C:\salt>

The two sls files are as follows:

xming.sls:

# http://www.straightrunning.com/XmingNotes/setupcmdline.htm
# just 32-bit x86 installer available
{% if grains['cpuarch'] == 'AMD64' %}
    {% set PROGRAM_FILES = "C:\Program Files (x86)" %}
{% else %}
    {% set PROGRAM_FILES = "C:\Program Files" %}
{% endif %}
xming:
  6.9.0.31:
    installer: 'http://downloads.sourceforge.net/project/xming/Xming/6.9.0.31/Xming-6-9-0-31-setup.exe'
    full_name:  'xming'
    reboot: False
    install_flags: '/SP- /verysilent /suppressmsgboxes /norestart'
    uninstaller: '{{ PROGRAM_FILES }}\Xming\unins000.exe'
    uninstall_flags: '/SP- /verysilent /norestart'

npp.sls:

# just 32-bit x86 installer available
{% if grains['cpuarch'] == 'AMD64' %}
    {% set PROGRAM_FILES = "C:\Program Files (x86)" %}
{% else %}
    {% set PROGRAM_FILES = "C:\Program Files" %}
{% endif %}
npp:
   6.8.1:
      full_name: Notepad++
      installer: 'https://notepad-plus-plus.org/repository/6.x/6.8.1/npp.6.8.1.Installer.exe'
      install_flags: '/S'
      uninstaller: '{{ PROGRAM_FILES }}\Notepad++\uninstall.exe'
      uninstall_flags: '/S'
      locale: en_US
      reboot: False

@twangboy do you have any idea why this gives empty output for some types of un-installs.

Activity

  1. added
    bug
    severity-medium
    P2
    Platform
    on Aug 7, 2015
  2. modified the milestones: Be 0, Approved on Aug 7, 2015
  3. jfindlay commented on Aug 7, 2015

    @jfindlay
    Contributor

    @TheBigBear, thanks for the report.

  4. self-assigned this
    on Aug 10, 2015
  5. twangboy commented on Aug 14, 2015

    @twangboy
    Contributor

    @TheBigBear I've noticed the empty return as well. I'm looking into it.

  6. modified the milestones: Be -1, Approved on Aug 17, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P2PlatformWindowsZRELEASED - Boronbugseverity-medium

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions