Search code examples
upgradesalt-project

Salt-minion not upgrading


I've a salt-minion who refuses to upgrade. When I try to update it, apt-get says that it is already the newest version. Others minions are updating without problems.

I've already tried to uninstall it and reinstall it.

Any hints?

Here follows salt-minion version, apt-get result and os version. Thank you.

root@myserver:~# salt-call --version
salt-call 2016.11.0rc2 (Carbon)

root@myserver:~# apt-get upgrade salt-minion
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
salt-minion is already the newest version.
The following packages have been kept back:
  libzmq3 postgresql-contrib
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.

root@myserver:~# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 14.04.5 LTS
Release:        14.04
Codename:       trusty

The result of apt-cache policy is:

root@myserver:~# apt-cache policy salt-minion
salt-minion:
  Installed: 2016.11.5+ds-3
  Candidate: 2016.11.5+ds-3
  Version table:
 *** 2016.11.5+ds-3 0
        500 http://repo.saltstack.com/apt/ubuntu/14.04/amd64/latest/ trusty/main amd64 Packages
        100 /var/lib/dpkg/status
     0.17.5+ds-1 0
        500 http://mirrors.digitalocean.com/ubuntu/ trusty/universe amd64 Packages

Solution

  • Short answer: salt-call command is not a part of the salt-minion package. It is a part of the salt-common package. You probably have to upgrade this package to fix the problem.

    Some background: to find out which command is actually being executed when you run salt-call you can use command which:

    $ which salt-call
    /usr/bin/salt-call
    

    Now we can find out which package is the one installing /usr/bin/salt-call by running:

    $ dpkg -S /usr/bin/salt-call 
    salt-common: /usr/bin/salt-call
    

    Hope this helps!