Bug 590536

Summary: cannot submit a xml file to beaker
Product: [Community] Beaker Reporter: Han Pingtian <phan>
Component: lab controllerAssignee: Bill Peck <bpeck>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: medium Docs Contact:
Priority: low    
Version: 0.5CC: bpeck, 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-05-13 10:57:48 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---
Attachments:
Description Flags
the xml file
none
another xml cannot be submitted none

Description Han Pingtian 2010-05-10 05:56:40 UTC
Created attachment 412720 [details]
the xml file

Description of problem:
We have a xml file which can be submitted to RHTS, but cannot submit to beaker. We always get this error message:

<Fault 1: 'bkr.server.bexceptions.BX:u\'No Distro matches Recipe: <distroRequires><and><distro_arch op="=" value="x86_64"/><distro_family op="=" value="RedHatEnterpriseLinux6"/><distro_name op="=" value="RHEL6.0-20100428.3"/><distro_variant op="=" value="Server"/></and><distro_virt op="=" value="1"/></distroRequires>\''>



Version-Release number of selected component (if applicable):


How reproducible:
always

Steps to Reproduce:
1.bkr job-submit --convert default-kvm-guest.xml
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Bill Peck 2010-05-10 14:03:56 UTC
Thanks for the bug report.  I have a fix for this which I'm testing.  I'm hoping to get this deployed live Today.  But it may not happen until Tomorrow.

I will update here when its pushed.

Comment 2 Han Pingtian 2010-05-13 08:49:22 UTC
We again have at least two xml files cannot submitted to beaker. The results are:

<Fault 1: 'bkr.server.bexceptions.BX:u\'No Distro matches Recipe: <distroRequires><and><distro_arch op="=" value="ppc"/><distro_name op="=" value="RHEL5-Server-U5"/><distro_family op="=" value="RedHatEnterpriseLinuxServer5"/></and><distro_virt op="=" value=""/></distroRequires>\''>

and

<Fault 1: 'bkr.server.bexceptions.BX:u\'No Distro matches Recipe: <distroRequires><and><distro_arch op="=" value="ppc"/><distro_name op="=" value="RHEL5-Server-U5"/><distro_family op="=" value="RedHatEnterpriseLinuxServer5"/></and><distro_virt op="=" value=""/></distroRequires>\''>

the same problem and has been resolved in the new package?

Comment 3 Han Pingtian 2010-05-13 09:16:15 UTC
Created attachment 413692 [details]
another xml cannot be submitted

The error message should be this:

<Fault 1: 'bkr.server.bexceptions.BX:u\'No Distro matches Recipe: <distroRequires><and><distro_arch op="=" value="ppc"/><distro_name op="=" value="RHEL5-Server-U5"/><distro_family op="=" value="RedHatEnterpriseLinuxServer5"/></and><distro_virt op="=" value=""/></distroRequires>\''>

Comment 4 Bill Peck 2010-05-13 10:57:48 UTC
Hello,

The problem you are reporting is different.  Legacy RHTS improperly called RHEL5 ppc and not ppc64.  In fact I had a bug in the old system about this.

In beaker because we use cobbler, the distro is imported correctly as ppc64.

see here. https://beaker.engineering.redhat.com/distros/?distrosearch-0.table=Name&distrosearch-0.operation=contains&distrosearch-0.value=RHEL5-Server-U5&distrosearch-1.table=Arch&distrosearch-1.operation=contains&distrosearch-1.value=ppc&Search=Search

Please change your xml to ppc64.  

This might be painful until we can remove the old workflows from the equation.

I'm closing this bz since the original problem is fixed.