Description of problem: Cobbler does not require python-ctypes package when it should. Version-Release number of selected component (if applicable): SW Nightly on [ EL5 | EL6 ] [ OracleXE | PostgreSQL ] cobbler-2.2.3-2 How reproducible: 100% Steps to Reproduce: 1. Install SW Nightly on [ EL5 | EL6 ] [ OracleXE | PostgreSQL ] 2.# rhn-satellite start Starting spacewalk services... Initializing jabberd processes ... Starting router: [ OK ] Starting sm: [ OK ] Starting c2s: [ OK ] Starting s2s: [ OK ] Starting tomcat5: [ OK ] Waiting for tomcat to be ready ... Starting httpd: [ OK ] Starting osa-dispatcher: [ OK ] Starting Monitoring ... [ OK ] Starting MonitoringScout ... [ OK ] Starting rhn-search... Starting cobbler daemon: No module named ctypes Traceback (most recent call last): File "/usr/bin/cobblerd", line 76, in main api = cobbler_api.BootAPI(is_cobblerd=True) File "/usr/lib/python2.4/site-packages/cobbler/api.py", line 127, in __init__ module_loader.load_modules() File "/usr/lib/python2.4/site-packages/cobbler/module_loader.py", line 62, in load_modules blip = __import__("modules.%s" % ( modname), globals(), locals(), [modname]) File "/usr/lib/python2.4/site-packages/cobbler/modules/authn_pam.py", line 53, in ? from ctypes import CDLL, POINTER, Structure, CFUNCTYPE, cast, pointer, sizeof ImportError: No module named ctypes [ OK ] Starting RHN Taskomatic... Done.
This behaviour is also present in EL5. Also 100% Reproductible
Cobbler's bug tracking is hosted via github now. https://github.com/cobbler/cobbler/issues/
Created attachment 631672 [details] add python-ctypes to requires adding trivial patch to make this work for yum. Test (el5): ------- [root@host ~]# yum -y install cobbler ... Installed: cobbler.noarch 0:2.2.3-2.el5 Dependency Installed: PyYAML.x86_64 0:3.08-4.el5 createrepo.noarch 0:0.4.11-3.el5 libyaml.x86_64 0:0.1.2-3.el5 mkisofs.x86_64 9:2.01-10.7.el5 mod_wsgi.x86_64 0:3.2-2.el5 python-cheetah.x86_64 0:2.0.1-1.el5 python-netaddr.noarch 0:0.5.2-1.el5 python-simplejson.x86_64 0:2.0.9-8.el5 tftp-server.x86_64 0:0.49-2.el5.centos xinetd.x86_64 2:2.3.14-16.el5 yum-utils.noarch 0:1.1.16-21.el5.centos Complete! [root@host ~]# service cobblerd start Starting cobbler daemon: No module named ctypes Traceback (most recent call last): File "/usr/bin/cobblerd", line 76, in main api = cobbler_api.BootAPI(is_cobblerd=True) File "/usr/lib/python2.4/site-packages/cobbler/api.py", line 127, in __init__ module_loader.load_modules() File "/usr/lib/python2.4/site-packages/cobbler/module_loader.py", line 62, in load_modules blip = __import__("modules.%s" % ( modname), globals(), locals(), [modname]) File "/usr/lib/python2.4/site-packages/cobbler/modules/authn_pam.py", line 53, in ? from ctypes import CDLL, POINTER, Structure, CFUNCTYPE, cast, pointer, sizeof ImportError: No module named ctypes [ OK ] [===> apply patch / rpmbuild <====] [root@host noarch]$ yum localinstall --nogpgcheck cobbler-2.2.3-3.noarch.rpm ... Resolving Dependencies --> Running transaction check ---> Package cobbler.noarch 0:2.2.3-3 set to be updated --> Processing Dependency: python-ctypes for package: cobbler --> Running transaction check ---> Package python-ctypes.x86_64 0:1.0.2-3.el5 set to be updated --> Finished Dependency Resolution ... Running Transaction Installing : python-ctypes 1/3 Updating : cobbler 2/3 Stopping cobbler daemon: [FAILED] Starting cobbler daemon: [ OK ] Cleanup : cobbler 3/3 Dependency Installed: python-ctypes.x86_64 0:1.0.2-3.el5 Updated: cobbler.noarch 0:2.2.3-3 Complete!
cobbler-2.4.3-1.el5 has been submitted as an update for Fedora EPEL 5. https://admin.fedoraproject.org/updates/cobbler-2.4.3-1.el5
cobbler-2.4.4-1.fc20 has been submitted as an update for Fedora 20. https://admin.fedoraproject.org/updates/cobbler-2.4.4-1.fc20
cobbler-2.4.4-1.fc19 has been submitted as an update for Fedora 19. https://admin.fedoraproject.org/updates/cobbler-2.4.4-1.fc19
cobbler-2.4.4-1.el6 has been submitted as an update for Fedora EPEL 6. https://admin.fedoraproject.org/updates/cobbler-2.4.4-1.el6
cobbler-2.4.4-1.el5 has been submitted as an update for Fedora EPEL 5. https://admin.fedoraproject.org/updates/cobbler-2.4.4-1.el5
Package cobbler-2.4.4-1.el5: * should fix your issue, * was pushed to the Fedora EPEL 5 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=epel-testing cobbler-2.4.4-1.el5' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-EPEL-2014-1211/cobbler-2.4.4-1.el5 then log in and leave karma (feedback).
cobbler-2.4.4-1.fc20 has been pushed to the Fedora 20 stable repository. If problems still persist, please make note of it in this bug report.
cobbler-2.4.4-1.el6 has been pushed to the Fedora EPEL 6 stable repository. If problems still persist, please make note of it in this bug report.
cobbler-2.4.4-1.fc19 has been pushed to the Fedora 19 stable repository. If problems still persist, please make note of it in this bug report.
cobbler-2.4.4-1.el5 has been pushed to the Fedora EPEL 5 stable repository. If problems still persist, please make note of it in this bug report.