Bug 673110 - RFE: workflow-tcms should be able to submit multiple jobs for multiple distros
Summary: RFE: workflow-tcms should be able to submit multiple jobs for multiple distros
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Beaker
Classification: Retired
Component: command line
Version: 0.7
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified vote
Target Milestone: ---
Assignee: Petr Šplíchal
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-01-27 13:27 UTC by Karel Volný
Modified: 2016-06-01 01:41 UTC (History)
7 users (show)

Fixed In Version: 2.0-49
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-03-26 10:54:20 UTC


Attachments (Terms of Use)

Description Karel Volný 2011-01-27 13:27:20 UTC
Description of problem:
Beaker is unable to schedule a job with more different distros. It'd be nice if workflow-tcms works around this limitation by submitting multiple jobs if more distros are specified. It'd be especially useful if an erratum is filed for several versions at once, see also bug 673108.

Comment 1 Bill Peck 2011-01-27 16:46:25 UTC
Please explain what you are trying to do here.  What do you mean by the following:

"Beaker is unable to schedule a job with more different distros."

And I really don't like the idea of submitting multiple jobs.  Remember you use up resources when you do that.

Comment 2 Karel Volný 2011-01-28 11:35:14 UTC
(In reply to comment #1)
> Please explain what you are trying to do here.

to run a testsuite on packages from some erratum

> What do you mean by the following:
> 
> "Beaker is unable to schedule a job with more different distros."

that it is impossible to schedule a job for RHEL4, RHEL5 & RHEL6 at once

at least I think so ... I wasn't able to do this via commandline, I'm really not sure if it is impossible by design - for that I refer to Peter Šplíchal in this irc snippet:

[14:07:46] <jscotka> psss: kvolny: I'm not also sure, if it is possible to schedule more than one distro in same job (for zsteram, security) bugs, isn't is?
[14:08:27] <psss> jscotka: yes, just one distro... 

> And I really don't like the idea of submitting multiple jobs.  Remember you
> use up resources when you do that.

we need this anyways (to test the erratum on all distros it covers), it would in fact save our resources not having to submit multiple jobs by hand

Comment 3 Bill Peck 2011-01-28 13:41:52 UTC
I think I understand now.

A job can contain any number of recipeset/recipes.  There is nothing stopping you from submitting a job with multiple recipes that all have different distros.

the current bkr workflow-errata workflow does exactly what you are talking about.

Comment 4 Karel Volný 2011-11-08 14:45:24 UTC
(In reply to comment #3)
> the current bkr workflow-errata workflow does exactly what you are talking
> about.

unfortunately, workflow-errata lacks TCMS integration (getting list of tests from TCMS run rather than running all "relevant" beaker tasks)

Comment 5 Karel Volný 2011-12-31 11:04:22 UTC
I thought this one is solved already, but when trying to verify, I've got the error:

$ bkr workflow-tcms --run=32468 --errata=2011:1410
Using distro RHEL-3, RHEL-4, RHEL-5.3.LLZ, RHEL-5.6.Z, RHEL-5.7.Z, RHEL-6.0.Z and RHEL-6.1.Z from the Errata tool
Found 18 singlehost tasks (created 30 recipe sets)
[ERROR] ('Submit failed', <Fault 1: '<class \'bkr.common.bexceptions.BX\'>:u\'No Distro matches Recipe: <distroRequires><and><distro_name op="=" value="RHEL6-6.0"/><distro_variant op="=" value="Server"/><distro_method op="=" value="nfs"/><distro_arch op="=" value="i386"/></and><distro_virt op="=" value=""/></distroRequires>\''>)

- this may or may not have to do something with the ticket and bugs relevant to it: https://engineering.redhat.com/rt/Ticket/Display.html?id=132232

Comment 6 Petr Šplíchal 2012-01-02 14:13:47 UTC
Yes, the distro naming in Beaker has changed. I've updated the
workflow accordingly. Fix pushed to git.

http://git.engineering.redhat.com/?p=users/psplicha/tcms;a=commitdiff;h=71afc16

Comment 7 Karel Volný 2012-01-04 11:37:23 UTC
(In reply to comment #6)
> Yes, the distro naming in Beaker has changed. I've updated the
> workflow accordingly. Fix pushed to git.
> 
> http://git.engineering.redhat.com/?p=users/psplicha/tcms;a=commitdiff;h=71afc16

after applying the patch, it works:

[kvolny@kvolny ~]$ bkr workflow-tcms --run=32468 --errata=2011:1410
Using distro RHEL-3, RHEL-4, RHEL-5.3.LLZ, RHEL-5.6.Z, RHEL-5.7.Z, RHEL-6.0.Z and RHEL-6.1.Z from the Errata tool
Found 18 singlehost tasks (created 30 recipe sets)
Successfully submitted as TJ#176340

and the job
https://beaker.engineering.redhat.com/jobs/176340
has all the versions included

thanks!


Note You need to log in before you can comment on or make changes to this bug.