Bug 725010

Summary: bkr workflow-simple shuffles given task order what makes the client tool unusable
Product: [Retired] Beaker Reporter: Tomas Lestach <tlestach>
Component: command lineAssignee: Bill Peck <bpeck>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: high Docs Contact:
Priority: unspecified    
Version: 0.6CC: bpeck, dcallagh, mcsontos, rmancy, stl
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard: Regression
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-07-22 15:08:52 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Tomas Lestach 2011-07-22 15:03:01 UTC
Description of problem:
bkr workflow-simple produces a xml with different task order.

Version-Release number of selected component (if applicable):
beaker-client-0.6.8-5.git.47.219578f.fc14.noarch

How reproducible:
always

Steps to Reproduce:
$ /usr/bin/bkr workflow-simple --distro="RHEL5-Server-U6" --whiteboard="spwN_rhel56" --arch=x86_64     --task=/CoreOS/Spacewalk/Installer/Workaround/cobbler-issue     --task=/CoreOS/Spacewalk/Installer/Sanity/Whole-installation/SW-nightly-Oracle-XE     --task=/CoreOS/Spacewalk/Installer/Sanity/extra-packages-in-compose     --task=/distribution/reservesys     --debug --prettyxml

  
Actual results:
<job retention_tag="Scratch">
	<whiteboard>
		-bash
	</whiteboard>
	<recipeSet priority="Normal">
		<recipe ks_meta="method=nfs" whiteboard="-bash">
			<distroRequires>
				<and>
					<distro_name op="=" value="RHEL5-Server-U6"/>
					<distro_method op="=" value="nfs"/>
					<distro_arch op="=" value="x86_64"/>
				</and>
			</distroRequires>
			<hostRequires>
				<and/>
			</hostRequires>
			<repos/>
			<task name="/distribution/install" role="STANDALONE">
				<params/>
			</task>
			<task name="/distribution/reservesys" role="STANDALONE">
				<params/>
			</task>
			<task name="/CoreOS/Spacewalk/Installer/Sanity/extra-packages-in-compose" role="STANDALONE">
				<params/>
			</task>
			<task name="/CoreOS/Spacewalk/Installer/Workaround/cobbler-issue" role="STANDALONE">
				<params/>
			</task>
			<task name="/CoreOS/Spacewalk/Installer/Sanity/Whole-installation/SW-nightly-Oracle-XE" role="STANDALONE">
				<params/>
			</task>
		</recipe>
	</recipeSet>
</job>

Note that the tasks are listed in another order that specifying on the cmd line. The order of the tasks is very important, since the task depend on each other.

Expected results:
Keep the task order as specified on cmd line.

Additional info:
Note this is a regression.

Comment 1 Bill Peck 2011-07-22 15:08:52 UTC
Please update to a recent version..

[bpeck@localhost ~]$ bkr workflow-simple --distro="RHEL5-Server-U6" --whiteboard="spwN_rhel56" --arch=x86_64  --task=/CoreOS/Spacewalk/Installer/Workaround/cobbler-issue --task=/CoreOS/Spacewalk/Installer/Sanity/Whole-installation/SW-nightly-Oracle-XE --task=/CoreOS/Spacewalk/Installer/Sanity/extra-packages-in-compose --task=/distribution/reservesys     --debug --prettyxml

<job retention_tag="Scratch">
	<whiteboard>
		spwN_rhel56
	</whiteboard>
	<recipeSet priority="Normal">
		<recipe ks_meta="method=nfs" whiteboard="spwN_rhel56">
			<distroRequires>
				<and>
					<distro_name op="=" value="RHEL5-Server-U6"/>
					<distro_method op="=" value="nfs"/>
					<distro_arch op="=" value="x86_64"/>
				</and>
			</distroRequires>
			<hostRequires>
				<and/>
			</hostRequires>
			<repos/>
			<task name="/distribution/install" role="STANDALONE">
				<params/>
			</task>
			<task name="/CoreOS/Spacewalk/Installer/Workaround/cobbler-issue" role="STANDALONE">
				<params/>
			</task>
			<task name="/CoreOS/Spacewalk/Installer/Sanity/Whole-installation/SW-nightly-Oracle-XE" role="STANDALONE">
				<params/>
			</task>
			<task name="/CoreOS/Spacewalk/Installer/Sanity/extra-packages-in-compose" role="STANDALONE">
				<params/>
			</task>
			<task name="/distribution/reservesys" role="STANDALONE">
				<params/>
			</task>
		</recipe>
	</recipeSet>
</job>

beaker-client-0.6.14 works