salt icon indicating copy to clipboard operation
salt copied to clipboard

Provider overrides appear to be broken

Open justinta opened this issue 11 years ago • 4 comments

On an ubuntu system I set the provider to yumpkg/yumpkg5 and was still able to install packages. This should cause a stack trace. @terminalmage @basepi

Output below shows yumpkg5 as the provider, the minion restarted, what os is running, and htop being installed.

root@li162-102:~# cat /etc/salt/minion | grep -A 2 providers
# via the providers option, in this case the default module will be
# overwritten by the specified module. In this example the pkg module will
# be provided by the yumpkg5 module instead of the system default.
#providers:
#  pkg: yumpkg5
providers:
  pkg: yumpkg5
#
root@li162-102:~# service salt-minion restart
salt-minion stop/waiting
salt-minion start/running, process 8718
root@li162-102:~# salt '*' grains.get os
li162-102.members.linode.com:
    Ubuntu
root@li162-102:~# salt '*' pkg.install htop
li162-102.members.linode.com:
    ----------
    htop:
        ----------
        new:
            1.0.2-3
        old:

justinta avatar Sep 17 '15 23:09 justinta

#26994

justinta avatar Sep 17 '15 23:09 justinta

I also think based on some customer testing that even in cases where it tries to override, it's not packing __salt__ and other values properly in the overridden provider. I'll be looking into this this week.

basepi avatar Sep 21 '15 16:09 basepi

ZD 416

meggiebot avatar Sep 21 '15 17:09 meggiebot

Fixed in #27388

basepi avatar Sep 24 '15 23:09 basepi