Bug 679678

Summary: bkr job-submit always give WARNING
Product: [Retired] Beaker Reporter: Hushan Jia <hjia>
Component: command lineAssignee: Dan Callaghan <dcallagh>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 0.6CC: bpeck, dcallagh, mcsontos, rmancy
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-03-10 05:21:32 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
job xml that trigger the warning none

Description Hushan Jia 2011-02-23 08:06:25 UTC
Description of problem:
bkr job-submit always give WARNING, the job xml is unmodified output by 'beaker workflow-simple --xxx --dryrun --debug --prettyxml'

Version-Release number of selected component (if applicable):
beaker-client-0.6.4-2.el6.noarch

How reproducible:
always

Steps to Reproduce:
1. save job to xml using a workflow
2. run bkr job-submit to submit
3.
  
Actual results:
WARNING: job xml validation failed: Expecting an element recipe, got nothing, line 5


Expected results:
no warning

Additional info:

Comment 1 Dan Callaghan 2011-02-23 22:22:18 UTC
Please attach the job xml which is triggering the warning.

Comment 2 Hushan Jia 2011-02-24 01:30:44 UTC
Hi Dan, I saw just every arbitrary job xml has such warning:
e.g.
[hushan@hushan tmp]$ bkr workflow-simple --arch=x86_64 --family=RedHatEnterpriseLinux6 --variant=Server --keyvalue="NETWORK=e1000e" --whiteboard="stest" --install="kernel-firmware-2.6.32-117.el6.noarch" --install="kernel-2.6.32-117.el6" --task=/kernel/filesystems/nfs/connectathon --dryrun --debug --prettyxml > t.xml
[hushan@hushan tmp]$ bkr job-submit t.xml 
WARNING: job xml validation failed: Expecting an element recipe, got nothing, line 5
Submitted: ['j:55914']

but submit directly has no such warning:
[hushan@hushan tmp]$ bkr workflow-simple --arch=x86_64 --family=RedHatEnterpriseLinux6 --variant=Server --keyvalue="NETWORK=e1000e" --whiteboard="stest" --install="kernel-firmware-2.6.32-117.el6.noarch" --install="kernel-2.6.32-117.el6" --task=/kernel/filesystems/nfs/connectathon
Submitted: ['j:55915']

Comment 3 Hushan Jia 2011-02-24 01:32:01 UTC
Created attachment 480622 [details]
job xml that trigger the warning