Python messages on starting opsiconfd

Antworten
lloydsystems
Beiträge: 22
Registriert: 03 Feb 2013, 09:46

Python messages on starting opsiconfd

Beitrag von lloydsystems »

Hi,

I have installed the current opsi-depotserver package on a CentOS 6.3 server. When starting either the opsiconfd or opsipxeconfd services I get the following messages:
/usr/lib64/python2.6/site-packages/twisted/conch/ssh/keys.py:13: DeprecationWarning: the sha module is deprecated; use the hashlib module instead
import sha, md5
/usr/lib64/python2.6/site-packages/twisted/conch/ssh/keys.py:13: DeprecationWarning: the md5 module is deprecated; use hashlib instead
import sha, md5
close failed in file object destructor:
IOError: [Errno 10] No child processes
However, the services do start and are running.

These are obviously python errors, but I'm not a python programmer. The version of python on the server is 2.6.6-29. Does anyone know why and how to fix it please?

Regards,

Stephen Jones
Benutzeravatar
d.oertel
uib-Team
Beiträge: 3319
Registriert: 04 Jun 2008, 14:27

Re: Python messages on starting opsiconfd

Beitrag von d.oertel »

Hi,

I opened an internal ticket.
At the moment the code has backward compatibility to python 2.4 (CentOs 5).
The support for these old system is depricated, so we will go on to remove the old stuff.
And I hope this will help to remove this warnings.

Thank you for the message

regards

d.oertel
opsi support - uib gmbh

For productive opsi installations we recommend support contracts.
http://www.uib.de
http://www.opsi.org
Benutzeravatar
ueluekmen
uib-Team
Beiträge: 1939
Registriert: 28 Mai 2008, 10:53

Re: Python messages on starting opsiconfd

Beitrag von ueluekmen »

Hi,

we have checked these and I can't reproduce this issue.

Please post the output from command:

Code: Alles auswählen

rpm -qa | grep opsi
regards
ueluekmen
opsi support - uib gmbh
For productive opsi installations we recommend support contracts.
http://www.uib.de
lloydsystems
Beiträge: 22
Registriert: 03 Feb 2013, 09:46

Re: Python messages on starting opsiconfd

Beitrag von lloydsystems »

Hi,

Package list as requested...

opsipxeconfd-4.0.2.6-1.1.noarch
opsi-linux-bootimage-20120728-1.1.noarch
python-opsi-4.0.2.4-1.1.noarch
opsiconfd-4.0.2.4-1.1.noarch
opsi-depotserver-4.0.2.3-1.1.noarch
opsi-atftp-0.7.dfsg-10.1.x86_64
opsi-utils-4.0.2.3-1.1.noarch

Regards,

Stephen Jones
Benutzeravatar
SisterOfMercy
Beiträge: 1524
Registriert: 22 Jun 2012, 19:18

Re: Python messages on starting opsiconfd

Beitrag von SisterOfMercy »

And how about this:
rpm -qa | grep python

Just to be sure, this is a 64-bit machine, right? (lib64 is probably x64 only but I'm not sure). I also have a CentOS 6.3 installation, but don't have these errors.
Bitte schreiben Sie Deutsch, when I'm responding in the German-speaking part of the forum!
Benutzeravatar
ueluekmen
uib-Team
Beiträge: 1939
Registriert: 28 Mai 2008, 10:53

Re: Python messages on starting opsiconfd

Beitrag von ueluekmen »

Hi,

I don't think that this Deprecation Warnings comes from opsi or python directly. The message says that a module from the twisted Framework installed on these server causes a Deprecation Warning. Opsi only use this Framework.

So, please execute the command from SisterOfMercy:
SisterOfMercy hat geschrieben:rpm -qa | grep python
and check the version of python-twisted package.
opsi support - uib gmbh
For productive opsi installations we recommend support contracts.
http://www.uib.de
lloydsystems
Beiträge: 22
Registriert: 03 Feb 2013, 09:46

Re: Python messages on starting opsiconfd

Beitrag von lloydsystems »

Hi,

Thanks for your response. Yes, it is a 64-bit system. Output of 'rpm -qa | grep python' shown below.
    • audit-libs-python-2.2-2.el6.x86_64
      boost-python-1.41.0-11.el6_1.2.x86_64
      dbus-python-0.83.0-6.1.el6.x86_64
      libselinux-python-2.0.94-5.3.el6.x86_64
      libsemanage-python-2.0.43-4.1.el6.x86_64
      matahari-python-0.6.0-14.el6.x86_64
      newt-python-0.52.11-3.el6.x86_64
      policycoreutils-python-2.0.83-19.24.el6.x86_64
      python-2.6.6-29.el6_3.3.x86_64
      python-crypto-2.0.1-22.el6.x86_64
      python-fpconst-0.7.3-6.1.el6.noarch
      python-GnuPG-Interface-0.3.2-4.3.x86_64
      python-imaging-1.1.6-19.el6.x86_64
      python-iniparse-0.3.1-2.1.el6.noarch
      python-ldap-2.3.10-1.el6.x86_64
      python-ldaptor-0.0.43-3.5.x86_64
      python-libs-2.6.6-29.el6_3.3.x86_64
      python-magic-5.04-13.el6.x86_64
      python-mysql-1.2.2-92.2.x86_64
      python-opsi-4.0.2.4-1.1.noarch
      python-pam-0.5.0-76.2.x86_64
      python-pexpect-2.3-31.2.x86_64
      python-pycurl-7.19.0-8.el6.x86_64
      python-pyparsing-1.5.6-2.el6.rf.noarch
      python-qpid-0.14-11.el6_3.noarch
      python-qpid-qmf-0.14-14.el6_3.x86_64
      python-saslwrapper-0.14-1.el6.x86_64
      python-simplejson-2.0.9-3.1.el6.x86_64
      python-sqlalchemy-0.5.5-3.el6_2.noarch
      python-twisted-8.2.0-3.1.el6.noarch
      python-twisted-conch-8.2.0-3.2.el6.x86_64
      python-twisted-core-8.2.0-4.el6.x86_64
      python-twisted-lore-8.2.0-3.2.el6.x86_64
      python-twisted-mail-8.2.0-3.2.el6.x86_64
      python-twisted-names-8.2.0-3.2.el6.x86_64
      python-twisted-news-8.2.0-3.2.el6.x86_64
      python-twisted-runner-8.2.0-3.2.el6.x86_64
      python-twisted-web-8.2.0-3.2.el6.x86_64
      python-twisted-words-8.2.0-3.2.el6.x86_64
      python-urlgrabber-3.9.1-8.el6.noarch
      python-zope-filesystem-1-5.el6.x86_64
      python-zope-interface-3.5.2-2.1.el6.x86_64
      rpm-python-4.8.0-27.el6.x86_64
      rrdtool-python-1.3.8-6.el6.x86_64
      setools-libs-python-3.3.7-4.el6.x86_64
    If it's any help, here is the details of the opsi install from yum history log.
    • Command Line : localinstall opsi-depotserver-4.0.2.3-1.1.noarch.rpm
      Transaction performed with:
      Installed rpm-4.8.0-27.el6.x86_64 @base
      Installed yum-3.2.29-30.el6.centos.noarch @base
      Installed yum-metadata-parser-1.1.2-16.el6.x86_64 @anaconda-CentOS-201112091719.x86_64/6.2
      Installed yum-plugin-fastestmirror-1.1.30-14.el6.noarch @base
      Packages Altered:
      Dep-Install PyXML-0.8.4-19.el6.x86_64 @base
      Dep-Install SOAPpy-0.11.6-11.el6.noarch @base
      Dep-Install dbus-python-0.83.0-6.1.el6.x86_64 @base
      Dep-Install duplicity-0.6.08b-6.3.x86_64 @opsi
      Dep-Install libXft-2.1.13-4.1.el6.x86_64 @base
      Dep-Install librsync-0.9.7-176.3.x86_64 @opsi
      Dep-Install lshw-2.16-1.el6.rf.x86_64 @rpmforge
      Dep-Install m2crypto-0.20.2-9.el6.x86_64 @base
      Dep-Install opsi-atftp-0.7.dfsg-10.1.x86_64 @opsi
      Install opsi-depotserver-4.0.2.3-1.1.noarch @/opsi-depotserver-4.0.2.3-1.1.noarch
      Dep-Install opsi-linux-bootimage-20120728-1.1.noarch @opsi
      Dep-Install opsi-utils-4.0.2.3-1.1.noarch @opsi
      Dep-Install opsiconfd-4.0.2.4-1.1.noarch @opsi
      Dep-Install opsipxeconfd-4.0.2.6-1.1.noarch @opsi
      Dep-Install pyOpenSSL-0.10-2.el6.x86_64 @base
      Dep-Install python-GnuPG-Interface-0.3.2-4.3.x86_64 @opsi
      Dep-Install python-crypto-2.0.1-22.el6.x86_64 @base
      Dep-Install python-fpconst-0.7.3-6.1.el6.noarch @base
      Dep-Install python-ldap-2.3.10-1.el6.x86_64 @base
      Dep-Install python-ldaptor-0.0.43-3.5.x86_64 @opsi
      Dep-Install python-magic-5.04-13.el6.x86_64 @base
      Dep-Install python-mysql-1.2.2-92.2.x86_64 @opsi
      Dep-Install python-opsi-4.0.2.4-1.1.noarch @opsi
      Dep-Install python-pam-0.5.0-76.2.x86_64 @opsi
      Dep-Install python-pexpect-2.3-31.2.x86_64 @opsi
      Dep-Install python-pyparsing-1.5.6-2.el6.rf.noarch @rpmforge
      Dep-Install python-simplejson-2.0.9-3.1.el6.x86_64 @base
      Dep-Install python-sqlalchemy-0.5.5-3.el6_2.noarch @base
      Dep-Install python-twisted-8.2.0-3.1.el6.noarch @base
      Dep-Install python-twisted-conch-8.2.0-3.2.el6.x86_64 @base
      Dep-Install python-twisted-core-8.2.0-4.el6.x86_64 @base
      Dep-Install python-twisted-lore-8.2.0-3.2.el6.x86_64 @base
      Dep-Install python-twisted-mail-8.2.0-3.2.el6.x86_64 @base
      Dep-Install python-twisted-names-8.2.0-3.2.el6.x86_64 @base
      Dep-Install python-twisted-news-8.2.0-3.2.el6.x86_64 @base
      Dep-Install python-twisted-runner-8.2.0-3.2.el6.x86_64 @base
      Dep-Install python-twisted-web-8.2.0-3.2.el6.x86_64 @base
      Dep-Install python-twisted-words-8.2.0-3.2.el6.x86_64 @base
      Dep-Install python-zope-filesystem-1-5.el6.x86_64 @base
      Dep-Install python-zope-interface-3.5.2-2.1.el6.x86_64 @base
      Dep-Install tcl-1:8.5.7-6.el6.x86_64 @base
      Dep-Install tix-1:8.4.3-5.el6.x86_64 @base
      Dep-Install tk-1:8.5.7-5.el6.x86_64 @base
      Dep-Install tkinter-2.6.6-29.el6_3.3.x86_64 @updates
      Dep-Install wget-1.12-1.4.el6.x86_64 @base
      Dep-Install xinetd-2:2.3.14-35.el6_3.x86_64 @updates
      Dep-Install zsync-0.6.2-1.el6.rf.x86_64 @rpmforge
    Regards,

    Stephen Jones
    Benutzeravatar
    ueluekmen
    uib-Team
    Beiträge: 1939
    Registriert: 28 Mai 2008, 10:53

    Re: Python messages on starting opsiconfd

    Beitrag von ueluekmen »

    Hi,

    ok, I have checked these list with my test-Server (Centos 6.3 64Bit).

    My list is little bit different then yours:
    • python-zopeinterface-3.3.0-114.2.x86_64
      python-GnuPG-Interface-0.3.2-4.3.x86_64
      python-simplejson-2.0.9-11.2.x86_64
      python-sqlalchemy-0.5.5-3.el6_2.noarch
      python-iniparse-0.3.1-2.1.el6.noarch
      python-pycurl-7.19.0-8.el6.x86_64
      python-twisted-8.2.0-13.2.x86_64
      python-pyparsing-1.5.6-25.1.noarch
      python-pexpect-2.3-31.2.x86_64
      python-opsi-4.0.3.1-1.1.noarch
      python-2.6.6-29.el6_3.3.x86_64
      python-pam-0.5.0-76.2.x86_64
      python-mysql-1.2.2-92.2.x86_64
      python-magic-5.04-13.el6.x86_64
      python-ldap-2.3.10-1.el6.x86_64
      rpm-python-4.8.0-27.el6.x86_64
      dbus-python-0.83.0-6.1.el6.x86_64
      python-urlgrabber-3.9.1-8.el6.noarch
      python-crypto-2.1.0-5.2.x86_64
      python-serial-2.4-11.2.noarch
      newt-python-0.52.11-3.el6.x86_64
      python-ldaptor-0.0.43-2.3.x86_64
      python-libs-2.6.6-29.el6_3.3.x86_64
    First of all, my python-twisted package is newer then yours and is not modular. I have no packages installed, that looks like:
    lloydsystems hat geschrieben:python-twisted-conch-8.2.0-3.2.el6.x86_64
    python-twisted-core-8.2.0-4.el6.x86_64
    python-twisted-lore-8.2.0-3.2.el6.x86_64
    python-twisted-mail-8.2.0-3.2.el6.x86_64
    python-twisted-names-8.2.0-3.2.el6.x86_64
    python-twisted-news-8.2.0-3.2.el6.x86_64
    python-twisted-runner-8.2.0-3.2.el6.x86_64
    python-twisted-web-8.2.0-3.2.el6.x86_64
    python-twisted-words-8.2.0-3.2.el6.x86_64
    Is these a fresh centos 6 installation or have you made a release-upgrade from centos 5? Please check these packages again, perhabs you can update them. The Deprecation-Warning comes from the package: python-twisted-conch-8.2.0-3.2.el6.x86_64

    regards
    e. ueluekmen
    opsi support - uib gmbh
    For productive opsi installations we recommend support contracts.
    http://www.uib.de
    lloydsystems
    Beiträge: 22
    Registriert: 03 Feb 2013, 09:46

    Re: Python messages on starting opsiconfd

    Beitrag von lloydsystems »

    Hi,

    Thank you for the information. The server was a fresh CentOS 6 install. I think the disk I used was 6.2, minimal install, and then 'yum update all' brought it to 6.3.

    I now see what has happened. The python-twisted packages have been installed from the CentOS base repo rather than the version in the opsi repo. This is because of yum-priorities. I have a few repos enabled - rpmforge, epel, sogo and opsi - so I use yum-priorities to protect base OS packages from being replaced by 3rd party versions. I am very careful of this and won't allow it unless I know why and then specifically configure it for those packages.

    In light of this information I reconfigured yum for python-twisted and tried to update it but, as I expected, this gave dependency problems due to the different structure of opsi's python-twisted and so wanted to remove many of the opsi packages. I got around this by doing it within yum shell. It also required replacing the base python-zope-interface and python-zope-filesystem with opsi's python-zopeinterface.

    The output of 'rpm -qa | grep python' then looked like this:
    • audit-libs-python-2.2-2.el6.x86_64
      boost-python-1.41.0-11.el6_1.2.x86_64
      dbus-python-0.83.0-6.1.el6.x86_64
      libselinux-python-2.0.94-5.3.el6.x86_64
      libsemanage-python-2.0.43-4.1.el6.x86_64
      matahari-python-0.6.0-14.el6.x86_64
      newt-python-0.52.11-3.el6.x86_64
      policycoreutils-python-2.0.83-19.24.el6.x86_64
      python-2.6.6-29.el6_3.3.x86_64
      python-crypto-2.0.1-22.el6.x86_64
      python-fpconst-0.7.3-6.1.el6.noarch
      python-GnuPG-Interface-0.3.2-4.3.x86_64
      python-imaging-1.1.6-19.el6.x86_64
      python-iniparse-0.3.1-2.1.el6.noarch
      python-ldap-2.3.10-1.el6.x86_64
      python-ldaptor-0.0.43-3.5.x86_64
      python-libs-2.6.6-29.el6_3.3.x86_64
      python-magic-5.04-13.el6.x86_64
      python-mysql-1.2.2-92.2.x86_64
      python-opsi-4.0.2.4-1.1.noarch
      python-pam-0.5.0-76.2.x86_64
      python-pexpect-2.3-31.2.x86_64
      python-pycurl-7.19.0-8.el6.x86_64
      python-pyparsing-1.5.6-2.el6.rf.noarch
      python-qpid-0.14-11.el6_3.noarch
      python-qpid-qmf-0.14-14.el6_3.x86_64
      python-saslwrapper-0.14-1.el6.x86_64
      python-serial-2.4-11.2.noarch
      python-simplejson-2.0.9-3.1.el6.x86_64
      python-sqlalchemy-0.5.5-3.el6_2.noarch
      python-twisted-8.2.0-13.2.x86_64
      python-urlgrabber-3.9.1-8.el6.noarch
      python-zopeinterface-3.3.0-114.2.x86_64
      rpm-python-4.8.0-27.el6.x86_64
      rrdtool-python-1.3.8-6.el6.x86_64
      setools-libs-python-3.3.7-4.el6.x86_64
    Starting the opsiconfd service now shows this:
    Starting opsi config service..close failed in file object destructor:
    IOError: [Errno 10] No child processes
    So the deprecation warnings have now gone, but the IOerror still remains. The opsiconfd log shows:
    Starting opsiconfd main thread (opsiconfd.py|449)
    Opening socket /var/run/opsiconfd/opsiconfd.socket for interprocess communication. (opsiconfd.py|426)
    Failed to read opsi modules file '/etc/opsi/modules': Signature not found (Backend.py|371)
    Disabling mysql backend and license management module: no customer in modules file (MySQL.py|391)
    Added static content '/' which points to directory '/usr/share/opsiconfd/static' (opsiconfd.py|285)
    Running on depot server 'server.domain.local', exporting repository directory (opsiconfd.py|302)
    Running on depot server 'server.domain.local', exporting depot directory (opsiconfd.py|315)
    Added webdav content 'repository' which points to directory '/var/lib/opsi/repository' () (opsiconfd.py|348)
    Added webdav content 'depot' which points to directory '/var/lib/opsi/depot' () (opsiconfd.py|348)
    Cannot add static content 'configed': directory '/usr/lib/configed' does not exist. (opsiconfd.py|339)
    Accepting HTTPS requests on 0.0.0.0:4447 (opsiconfd.py|395)
    Publishing opsiconfd over zeroconf as 'opsi configuration daemon' on '4447' (opsiconfd.py|409)
    Failed to publish ZeroconfService: avahi/dbus module missing (opsiconfd.py|100)
    Is this normal/expected? Where does the IOerror come from? I know it's related to python.

    I also checked all the other packages that were installed with opsi-depotserver against the opsi repo and there are 3 other python differences:
    • python-crypto-2.0.1-22.el6.x86_64 (installed from base), opsi version 2.1.0-5.2
      python-pyparsing-1.5.6-2.el6.rf.noarch (installed from rpmforge), opsi version 1.5.6-25.1
      python-simplejson-2.0.9-3.1.el6.x86_64 (installed from base), opsi version 2.0.9-11.2
    I did try replacing these installed packages with the opsi repo versions, but it made no visible difference to the operation of opsi and the IOerror still remained and log file was the same.

    May I suggest that, if opsi requires certain packages to be installed that replace base OS versions, then this could be mentioned in the installation guide to avoid confusion.

    Regards,

    Stephen Jones
    Antworten