Bug 1284931

Summary: `cobbler buildiso --profiles=nonexistent` returns 0 and resulting ISO only contain "(local)" boot target
Product: Red Hat Satellite 5 Reporter: Jan Hutař <jhutar>
Component: ProvisioningAssignee: Jan Dobes <jdobes>
Status: CLOSED DEFERRED QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: low Docs Contact:
Priority: unspecified    
Version: 570CC: dyordano, tlestach
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-04-09 14:52:07 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jan Hutař 2015-11-24 13:33:14 UTC
Description of problem:
Command `cobbler buildiso --profiles=nonexistent` (e.g. do a typo in the profile name) returns exit code 0 and resulting ISO only contain "(local)" boot target


Version-Release number of selected component (if applicable):
cobbler-2.0.7-64.el6sat.noarch


How reproducible:
always


Steps to Reproduce:
1. Make sure you do not have profile named "nonexistent"
2. # cobbler buildiso --profiles=nonexistent


Actual results:
# cobbler buildiso --profiles=foobarbaz
task started: 2015-11-24_082751_buildiso
task started (id=Build Iso, time=Tue Nov 24 08:27:51 2015)
using/creating tempdir: /tmp/cobbler/buildiso
building tree for isolinux
copying miscellaneous files
copying kernels and initrds for profiles
generating a isolinux.cfg
generating profile list
done writing config
running: mkisofs -o /tmp/cobbler/buildiso/generated.iso -r -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -V Cobbler\ Install -R -J -T /tmp/cobbler/buildiso
received: 
ISO build complete
You may wish to delete: /tmp/cobbler/buildiso
The output file is: /tmp/cobbler/buildiso/generated.iso
*** TASK COMPLETE ***
# echo $?
0


Expected results:
Some error message and non-0 return code

Comment 1 Tomas Lestach 2018-04-09 14:52:07 UTC
We have re-reviewed this bug, as part of an ongoing effort to improve Satellite/Proxy feature and bug updates, review and backlog.

This is a low priority bug and has no currently open customer cases. While this bug may still valid, we do not see it being implemented prior to the EOL of the Satellite 5.x product. As such, this is being CLOSED DEFERRED. 

Closing now to help set customer expectations as early as possible. You are welcome to re-open this bug if needed.