saltstack / saltstack/salt

[BUG] pkg.hold and pkg.unhold without any effect on Debian

Open
#63,665 3 comments 0 reactions 1 assignee View on GitHub

@Akm0d is already working on this.

Since Mar 21, 2024.

bug debian needs-triage
Dominant language
Python
Stars
15.7k
Forks
5.6k
Avg merge
2d 44m
Merged PRs (30d)
80

Description

Description
calling pkg.hold and pkg.unhold doesn't have any effect on Debian.

Tested with 3005.1+ds-4 (onedir) on Debian 11 and 3004.2+ds-1 (classic) on Debian 9.

Setup

  • classic packaging
  • onedir packaging
  • used bootstrap to install

Steps to Reproduce the behavior

root@master:~# apt install cowsay
[...]

root@master:~# dpkg -l|grep cowsay
ii  cowsay                         3.03+dfsg2-8                   all          configurable talking cow

root@master:~# salt-call pkg.hold cowsay
local:
    ----------
    cowsay:
        ----------
        changes:
            ----------
        comment:
            Package cowsay is set to be held.
        name:
            cowsay
        result:
            None

root@master:~# dpkg -l|grep cowsay
ii  cowsay                         3.03+dfsg2-8                   all          configurable talking cow

Expected behavior

The package should be set to hold like 'apt-mark hold' does:

root@master:~# dpkg -l|grep cowsay
ii  cowsay                         3.03+dfsg2-8                   all          configurable talking cow

root@master:~# apt-mark hold cowsay
cowsay set on hold.

root@master:~# dpkg -l|grep cowsay
hi  cowsay                         3.03+dfsg2-8                   all          configurable talking cow

Versions Report

root@master:~# salt-call --versions-report
Salt Version:
          Salt: 3005.1
 
Dependency Versions:
          cffi: 1.14.6
      cherrypy: 18.6.1
      dateutil: 2.8.1
     docker-py: Not Installed
         gitdb: Not Installed
     gitpython: Not Installed
        Jinja2: 3.1.0
       libgit2: Not Installed
      M2Crypto: Not Installed
          Mako: Not Installed
       msgpack: 1.0.2
  msgpack-pure: Not Installed
  mysql-python: Not Installed
     pycparser: 2.21
      pycrypto: Not Installed
  pycryptodome: 3.9.8
        pygit2: Not Installed
        Python: 3.9.16 (main, Jan  6 2023, 22:49:58)
  python-gnupg: 0.4.8
        PyYAML: 5.4.1
         PyZMQ: 23.2.0
         smmap: Not Installed
       timelib: 0.2.4
       Tornado: 4.5.3
           ZMQ: 4.3.4
 
System Versions:
          dist: debian 11 bullseye
        locale: utf-8
       machine: x86_64
       release: 5.10.0-21-amd64
        system: Linux
       version: Debian GNU/Linux 11 bullseye

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.