Skip to content

Issues updating packages that use 'latest' versioning #1971

@jlrcontegix

Description

@jlrcontegix

When attempting to install the latest version of Chrome, for example, the installer is not being executed and the existing version remains. Perhaps I am misinterpreting expected behavior, and assume for packages that use the 'latest' versioning scheme, the installer will be executed each time.

With 3005.1 this does not seem to be the case:

Current version of Chrome installed

# salt 'minion' pkg.version chrome
minion:
    107.0.5304.106

Latest version available at the time of this writing is 107.0.5304.107.

Attempting to install the package results in no output and the installer is not ran:

# salt 'minion' pkg.install chrome
minion:

DEBUG output from the minion:

[DEBUG   ] The functions from module 'pkg' are being loaded by dir() on the loaded module
[DEBUG   ] LazyLoaded pkg.version
[DEBUG   ] Using existing pkg metadata db for saltenv 'base' (age is 2:04:54.471155)
[DEBUG   ] The functions from module 'aggregation' are being loaded from the provided __all__ attribute
[DEBUG   ] The functions from module 'reg' are being loaded by dir() on the loaded module
[DEBUG   ] LazyLoaded reg.list_keys
[INFO    ] Returning information for job: 20221110202347930507
[DEBUG   ] SaltEvent PUB socket URI: 4510
[DEBUG   ] SaltEvent PULL socket URI: 4511
[DEBUG   ] Sending event: tag = __master_req_channel_payload; data = {'cmd': '_return', 'id': 'minion', 'success': True, 'return': '107.0.5304.106', 'retcode': 0, 'jid': '
20221110202347930507', 'fun': 'pkg.version', 'fun_args': ['chrome'], '_stamp': '2022-11-10T20:23:53.815176'}
[DEBUG   ] Closing IPCMessageClient instance
[DEBUG   ] Minion of 'master' is handling event tag '__master_req_channel_payload'
[DEBUG   ] minion return: {'success': True, 'return': '107.0.5304.106', 'retcode': 0, 'jid': '20221110202347930507', 'fun': 'pkg.version', 'fun_args': ['chrome']}
[DEBUG   ] Minion return retry timer set to 7 seconds (randomized)
[DEBUG   ] Subprocess ProcessPayload(jid=20221110202347930507) cleaned up

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions