Bug 568463

Summary: add-kstree.pl fails with syntax error
Product: [Retired] Red Hat Network Reporter: Daniel Mach <dmach>
Component: RHN/MaintenanceAssignee: Stephen Herr <sherr>
Status: CLOSED CURRENTRELEASE QA Contact: Red Hat Network Quality Assurance <rhn-qa-list>
Severity: high Docs Contact:
Priority: high    
Version: rhn520CC: acarter, bkearney, dgregor, ggainey, jskrabal, rhn-bugs
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-04-01 12:48:33 UTC Type: ---
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: 578256, 516902    

Description Daniel Mach 2010-02-25 18:59:50 UTC
1) login to scripts01.rhn.qa.ext.intdev.redhat.com
2) run /opt/ks_trees/kickstart.py --dsn dmach/PASSWORD@webqa0
this script is a wrapper which creates ks trees and runs kickstart-lint.pl:
find /mnt/redhat/rel-eng/RHEL5.5-Server-20100201.0/5/i386/os/VT -type f -name '*.rpm' | xargs perl kickstart-lint.pl --dsn dmach/PASSWORD@webqa0 --channel rhel-i386-server-5 --lookaside /pub/rhn/kickstart/ks-rhel-i386-server-5-u5

somewhere, probably in kickstart-lint.pl is this command executed:
find /pub/rhn/kickstart/ks-rhel-i386-server-5-u5 -type f | xargs perl add-kstree.pl --clear --install_type rhel_5 --dsn dmach/PASSWORD@webqa0 --label ks-rhel-i386-server-5-u5 --channel rhel-i386-server-5 --tree_type rhn-managed

it fails with:
"use" not allowed in expression at add-kstree.pl line 116, near ""
syntax error at add-kstree.pl line 116, near "use Digest::MD5"
BEGIN not safe after errors--compilation aborted at add-kstree.pl line 129.
xargs: perl: exited with status 255; aborting

Comment 2 Grant Gainey 2010-02-25 19:14:51 UTC
Spurious <F2> in add-kstree.pl at line 116.  Workaround in place, real fix being tested.

Carefully refraining from thinking about how that got in there...

Comment 4 James Bowes 2010-04-01 12:48:33 UTC
This is already in prod. closing.