Bug 1265084 - cobbler20-setup Error - No such file or directory: '/usr/share/cobbler/installer_templates/defaults'
cobbler20-setup Error - No such file or directory: '/usr/share/cobbler/instal...
Product: Spacewalk
Classification: Community
Component: Installation (Show other bugs)
x86_64 Linux
unspecified Severity medium
: ---
: ---
Assigned To: Tomáš Kašpárek
Red Hat Satellite QA List
Depends On:
Blocks: space28
  Show dependency treegraph
Reported: 2015-09-22 01:43 EDT by vikas027
Modified: 2018-04-20 08:21 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2017-10-27 09:57:21 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description vikas027 2015-09-22 01:43:28 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/
total 28
-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):
Spacewalk v2.3
CentOS/RedHat 7.1
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

Actual results:
Failed while trying to look for file /usr/share/cobbler/installer_templates/defaults  

# cobbler20-setup
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
    return load(open(fl).read())
IOError: [Errno 2] No such file or directory: '/usr/share/cobbler/installer_templates/defaults'

Expected results:
Command should have succeeded and setup cobbler as desired.

Additional info:
Comment 1 vikas027 2015-10-01 15:29:37 EDT
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.
Comment 2 Jan Dobes 2017-10-27 09:57:21 EDT
Closing this bug as CURRENT_RELEASE as it should not be currently possible to install cobbler > 2.0 because of dependencies (since SW 2.4). Also, there is a different command similar to cobbler20-setup - spacewalk-setup-cobbler, which could possibly configure newer cobbler (anyway, new cobbler is disabled currently).

Note You need to log in before you can comment on or make changes to this bug.