Bug 1098255

Summary: Kickstart upload is failing.
Product: Red Hat Satellite 5 Reporter: Dimitar Yordanov <dyordano>
Component: WebUIAssignee: Grant Gainey <ggainey>
Status: CLOSED CURRENTRELEASE QA Contact: Martin Korbel <mkorbel>
Severity: low Docs Contact:
Priority: low    
Version: 560CC: mkorbel
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: 2017-06-21 12:10:45 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:
Bug Depends On:    
Bug Blocks: 1358815    

Comment 2 Martin Korbel 2017-05-19 13:36:09 UTC
Verified on spacewalk-backend-2.5.3-121

Reproduce:
1. Via comment 0, we can try to upload ks file (there are problems with uncomment variables)

  We get "There are errors in your kickstart template. Please check the 'Kickstart File' tab to determine the problem with the template."
  
  "The kickstart template has syntax rules, using punctuation symbols. To avoid clashes, they need to be properly treated. Details"


2. We edit ks file and comment variables:

...
drives=\$(list-harddrives | awk '{print $1}')
for disk in \$drives; do
    DISKS="\$DISKS \$(fdisk -l /dev/$disk | grep -v "swap\|LVM\|Extended" | awk '/^\/dev/{print $1}')"
done


The kickstart file is successfully uploaded without any errors.