Google Groups

Re: FreeBSD installation problem

Wayne Fiori Apr 11, 2012 4:46 PM
Posted in group: Salt-users
On Wed, Apr 11, 2012 at 3:45 PM, Christer Edwards
<> wrote:
> On Wed, Apr 11, 2012 at 4:05 PM, Wayne Fiori <> wrote:
>>>> > I've been deploying saltstack (salt-0.9.8) recently. The installation
>>>> > has be trouble free on all my Gentoo, Ubuntu, and most FreeBSD
>>>> > servers. I have three FreeBSD servers that have the following python
>>>> > trace:
> ...[snip]...
> ports or packages? I've never run into this issue on my FreeBSD
> servers, but I strictly build from ports..

I built salt from the ports.

The problem looks like python. The python on the servers that show
this issue does not include the PyGILState symbol. The PyGILState is
related to threading. Just checked and the python installed on these
bad servers is not configured for threading. The python installed on
the good servers was configured with threading. It looks like M2Crypto
is looking for a threaded environment, not finding it, it simply

Server with a successfull salt installation:

ns-a-1#  cd /usr/local/lib ; readelf -d -a | grep PyGILState
00119658  00005a07 R_386_JUMP_SLOT   000d11a0   _PyGILState_Init
001197bc  0000d807 R_386_JUMP_SLOT   000d1950   PyGILState_Release
00119e8c  00033607 R_386_JUMP_SLOT   000d1ce0   PyGILState_Ensure
0011a37c  0004d607 R_386_JUMP_SLOT   000d10f0   _PyGILState_Fini
    90: 000d11a0    68 FUNC    GLOBAL DEFAULT   10 _PyGILState_Init
   216: 000d1950   166 FUNC    GLOBAL DEFAULT   10 PyGILState_Release
   822: 000d1ce0   128 FUNC    GLOBAL DEFAULT   10 PyGILState_Ensure
  1123: 000d1060    60 FUNC    GLOBAL DEFAULT   10 PyGILState_GetThisThreadS
  1238: 000d10f0    58 FUNC    GLOBAL DEFAULT   10 _PyGILState_Fini

Server with a broken salt installation:

ns-test-1# cd /usr/local/lib ; readelf -d -a | grep PyGILState

I have no clue how/why I configured three out of 15 servers to no use
threading in python, but there you have it.  I'm off to rebuild ports
on these three servers and have a good install of salt at the end.