Can't get salt-minion to work on FreeBSD 9.1

87 views
Skip to first unread message

Maruf Yunus

unread,
Apr 5, 2013, 2:50:57 AM4/5/13
to salt-...@googlegroups.com
I have just followed the saltstack FreeBSD installation and the installation seem to go ok. I am trying to make my freebsd system to be a minion. After I start the salt-minion on freebsd the service is running but I noticed no key request when I ran on the salt-master. Then I looked into /var/log/salt log on the freebsd machine and noticed this:

2013-04-05 06:36:10,884 [salt.loaded.int.grain.core][WARNING ] Both 'dmidecode' and 'lspci' failed to execute, either because they do not exist on the system of the user running this instance does not have the necessary permissions to execute them. Grains output might not be accurate.
2013-04-05 06:36:10,995 [salt.loader           ][CRITICAL] Failed to load grains defined in grain file core.ip4 in function <function ip4 at 0x80a175050>, error:
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/site-packages/salt/loader.py", line 787, in gen_grains
    ret = fun()
  File "/usr/local/lib/python2.7/site-packages/salt/grains/core.py", line 747, in ip4
    ips = salt.utils.socket_util.ip4_addrs()
  File "/usr/local/lib/python2.7/site-packages/salt/utils/socket_util.py", line 307, in ip4_addrs
    ifaces = interfaces()
  File "/usr/local/lib/python2.7/site-packages/salt/utils/socket_util.py", line 298, in interfaces
    ifaces = _interfaces_ifconfig(cmd)
NameError: global name 'cmd' is not defined


Here is my freebsd kernel info:
oot@freebsd:/root # uname -a
FreeBSD freebsd.corp.local 9.1-RELEASE FreeBSD 9.1-RELEASE #0 r243825: Tue Dec  4 09:23:10 UTC 2012     ro...@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  amd64


I followed the installation instruction from the link below:

Any thoughts? 

Thanks
Maruf 

Denis Generalov

unread,
Apr 5, 2013, 2:59:27 AM4/5/13
to salt-...@googlegroups.com, Maruf Yunus
This typo was fixed in https://github.com/saltstack/salt/pull/4234.
You can try to apply this patch by hand or wait for 0.14.1 release.

>
> Thanks
> Maruf
>
> --
> You received this message because you are subscribed to the Google Groups "Salt-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to salt-users+...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>


--
Denis Generalov <gian...@gmail.com>
Reply all
Reply to author
Forward
0 new messages