[root@master ~]# func host148 call service start httpd
{'host148': 0}
这个也正常运行:
[root@master ~]# func host148 call command run "cat /etc/redhat-release"
('host148',
[0, 'Red Hat Enterprise Linux Server release 5.2 (Tikanga)\n', ''])
这个出错了:
[root@master ~]# func host148 call hardware info
{'host148': ['REMOTE_ERROR',
'exceptions.ImportError',
'No module named smolt',
' File "/usr/lib/python2.4/site-packages/func/minion/server.py", line 160,
in __call__\n rc = self.__method(*args)\n File "/usr/lib/python2.4/site-
packages/func/minion/modules/hardware.py", line 73, in info\n return hw_info(with_devices)\n
File "/usr/lib/python2.4/site-packages/func/minion/modules/hardware.py", line 110, in hw_info\n
import smolt\n']}
我机器上的python为
[root@master ~]# python
Python 2.6.5 (r265:79063, Mar 22 2010, 21:50:49)
[GCC 4.1.2 20071124 (Red Hat 4.1.2-42)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>