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] 3000.0 pkg.latest state does not work on macOS #56676

Open
taranlu-houzz opened this issue Apr 17, 2020 · 0 comments
Open

[BUG] 3000.0 pkg.latest state does not work on macOS #56676

taranlu-houzz opened this issue Apr 17, 2020 · 0 comments
Assignees
Labels
Bug broken, incorrect, or confusing behavior MacOS pertains to the OS of fruit severity-high 2nd top severity, seen by most users, causes major problems State-Module

Comments

@taranlu-houzz
Copy link

Description
Using pkg.latest state fails to upgrade packages using brew.

Setup
install_git.sls:

Install or upgrade git:
  pkg.latest:
    - name: git

OS: macOS 10.13.6
salt-master/minion: 3000 (installed via brew, run via launchd plist)
git: 2.24.0 (installed previously via brew)

Steps to Reproduce the behavior
Run sudo salt '<target machine>' state.apply install_git.

mini2:
----------
          ID: Install git
    Function: pkg.latest
        Name: git
      Result: False
     Comment: An error was encountered while installing package(s): Brew command failed. Additional info follows:

              result:
                  ----------
                  pid:
                      57932
                  retcode:
                      1
                  stderr:
                      Updating Homebrew...
                      Error: git 2.24.0 is already installed
                      To upgrade to 2.26.1, run `brew upgrade git`.
                  stdout:
     Started: 17:11:32.986756
    Duration: 15156.012 ms
     Changes:

Summary for mini2
------------
Succeeded: 0
Failed:    1
------------
Total states run:     1
Total run time:  15.156 s

Expected behavior
The package should be upgraded properly using brew upgrade.

Versions Report

salt --versions-report (Provided by running salt --versions-report. Please also mention any differences in master/minion versions.)
Salt Version:
           Salt: 3000

Dependency Versions:
           cffi: 1.13.2
       cherrypy: Not Installed
       dateutil: Not Installed
      docker-py: Not Installed
          gitdb: Not Installed
      gitpython: Not Installed
         Jinja2: 2.10.3
        libgit2: 0.99.0
       M2Crypto: 0.35.2
           Mako: Not Installed
   msgpack-pure: Not Installed
 msgpack-python: 0.6.2
   mysql-python: Not Installed
      pycparser: 2.19
       pycrypto: 2.6.1
   pycryptodome: Not Installed
         pygit2: 1.1.1
         Python: 3.7.7 (default, Mar 10 2020, 15:43:27)
   python-gnupg: Not Installed
         PyYAML: 3.13
          PyZMQ: 18.1.1
          smmap: Not Installed
        timelib: Not Installed
        Tornado: 4.5.3
            ZMQ: 4.3.2

System Versions:
           dist:
         locale: UTF-8
        machine: x86_64
        release: 17.7.0
         system: Darwin
        version: 10.13.6 x86_64

Additional context
I think this issue is related: #56609

@Akm0d Akm0d added Bug broken, incorrect, or confusing behavior MacOS pertains to the OS of fruit State-Module P4 Priority 4 labels Apr 17, 2020
@Akm0d Akm0d added this to the Approved milestone Apr 17, 2020
@gigi206 gigi206 mentioned this issue May 1, 2020
3 tasks
@sagetherage sagetherage removed the P4 Priority 4 label Jun 3, 2020
@sagetherage sagetherage changed the title [BUG] pkg.latest state does not work on macOS [BUG] 3000.0 pkg.latest state does not work on macOS Jun 16, 2021
@sagetherage sagetherage added severity-high 2nd top severity, seen by most users, causes major problems Phosphorus v3005.0 Release code name and version labels Jun 16, 2021
@sagetherage sagetherage modified the milestones: Approved, Phosphorus Jun 18, 2021
@s0undt3ch s0undt3ch added Sulfur v3006.0 release code name and version and removed Phosphorus v3005.0 Release code name and version labels Apr 14, 2022
@waynew waynew removed the Sulfur v3006.0 release code name and version label Dec 16, 2022
@anilsil anilsil removed this from the Chlorine v3007.0 milestone May 11, 2023
@s0undt3ch s0undt3ch removed their assignment Jun 4, 2024
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 MacOS pertains to the OS of fruit severity-high 2nd top severity, seen by most users, causes major problems State-Module
Projects
None yet
Development

No branches or pull requests

7 participants