Red Hat Bugzilla – Bug 1265084
cobbler20-setup Error - No such file or directory: '/usr/share/cobbler/installer_templates/defaults'
Last modified: 2015-10-01 15:29:37 EDT
Description of problem:
Python script /bin/cobbler20-setup fails while trying to look for files under /usr/share/cobbler/installer_templates/
It expects these files. This output is from CentOS 6.6.
# ls -l /usr/share/cobbler/installer_templates/
-rwxr--r-- 1 root root 358 Apr 20 2011 defaults
-rwxr--r-- 1 root root 2886 Apr 20 2011 modules.conf.template
-rwxr--r-- 1 root root 17067 Apr 20 2011 settings.template
If I manually create these files, I do not get any error while running the script /bin/cobbler20-setup but I am not too sure if I am missing anything else on the cobbler part.
This script belongs to spacewalk-setup rpm.
# rpm -qf `which cobbler20-setup`
Version-Release number of selected component (if applicable):
cobbler v2.6.9 (cobbler-2.6.9-1)
Steps to Reproduce:
Run command "cobbler20-setup" after installing Spacewalk v2.3 on CentOS/RHEL 7.1
Failed while trying to look for file /usr/share/cobbler/installer_templates/defaults
Traceback (most recent call last):
File "/bin/cobbler20-setup", line 78, in <module>
File "/bin/cobbler20-setup", line 55, in main
answers = dict(loadFile(DEFAULTS))
File "/bin/cobbler20-setup", line 26, in loadFile
IOError: [Errno 2] No such file or directory: '/usr/share/cobbler/installer_templates/defaults'
Command should have succeeded and setup cobbler as desired.
I have found the cause of the error. The problem is that if we install spacewalk-oracle and cobbler-loaders in one yum command i.e. yum install spacewalk-oracle cobbler-loaders, it installs cobbler-2.6.9-1 which does not gels up with spacewalk RPMs.
If we install the packages separately, i.e. yum install spacewalk-oracle && yum install cobbler-loaders, cobbler-2.6.9-1 does not gets installed. Spacewalk RPMs require cobbler2-2.0.11 and cobbler20-2.0.11 which gets installed as a dependency of spacewalk-oracle.
Hope this helps someone. I think this should be handled in the spec files of RPMs.