Bug 624089

Summary: [Beaker][cmd_workflow_kernel] role= getting parm options not <parms>
Product: [Retired] Beaker Reporter: Jeff Burke <jburke>
Component: schedulerAssignee: Bill Peck <bpeck>
Status: CLOSED NOTABUG QA Contact:
Severity: medium Docs Contact:
Priority: low    
Version: 0.5CC: bpeck, dcallagh, kbaker, mcsontos, rmancy
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-08-31 16:29:57 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:

Description Jeff Burke 2010-08-13 15:58:28 UTC
Description of problem:
In the kenrel workflow. I use the below code snippet. 

<snip>
if arch == 'ia64':
    pkgparms = []
    pkgparms.append("PKGARGNAME=xen-ia64-guest-firmware")
    recipe.addTask("/distribution/pkginstall", (pkgparms))       
</snip>

It results in the following xml
<task name="/distribution/pkginstall" role="['PKGARGNAME=xen-ia64-guest-firmware']">
    <params/>
</task>

It should result in this:

<task name="/distribution/pkginstall" role="STANDALONE">
    <params>
        <param name="PKGARGNAME" value="xen-ia64-guest-firmware"/>
    </params>
</task>   


See: Recipe ID R:22698

Comment 1 Jeff Burke 2010-08-13 16:25:31 UTC
Changing the workflow to the below resolved the issue:

<snip>
if arch == 'ia64':
    pkgparms = []
    pkgparms.append("PKGARGNAME=xen-ia64-guest-firmware")
    recipe.addTask("/distribution/pkginstall", taskParams=pkgparms)
        <task name="/distribution/pkginstall" role="STANDALONE">
            <params>
                <param name="PKGARGNAME" value="xen-ia64-guest-firmware"/>
            </params>
        </task>


</snip>