Bug 1251480

Summary: "tag" in json doesnt work when used along with distro.
Product: [Retired] Beaker Reporter: Gowrishankar Rajaiyan <grajaiya>
Component: command lineAssignee: beaker-dev-list
Status: CLOSED NOTABUG QA Contact: tools-bugs <tools-bugs>
Severity: high Docs Contact:
Priority: high    
Version: 20CC: grajaiya, mjia
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-05-14 05:59:46 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Gowrishankar Rajaiyan 2015-08-07 12:28:23 UTC
Description of problem:


Version-Release number of selected component (if applicable):
beaker-client-20.1-1.el6eng.noarch

How reproducible: Always


I have 'tag' set in my json file[1], however, when the provisioning[2] happens, the beaker xml[3] does not have it.

[1] https://idm-qe-jenkins.rhev-ci-vms.eng.rdu2.redhat.com/job/ipa-config-rhel72-x86_64-bkr/ws/rhel72-x86_64-bkr1.json
[2] https://idm-qe-jenkins.rhev-ci-vms.eng.rdu2.redhat.com/job/ipa-config-rhel72-x86_64-bkr/2/console
[3] https://beaker.engineering.redhat.com/jobs/clone?job_id=1039677


Actual results: tag and distro are not supported together.


Expected results: Both should be supported.


Additional info: https://projects.engineering.redhat.com/browse/CID-376

Comment 1 Dan Callaghan 2015-08-24 04:53:35 UTC
Sorry, I don't understand what the bug is here.

The JSON file you linked to is handled by the CI provisioner code, right?ios th

What Beaker XML is it producing, and what is the problem you are seeing with it?

Comment 2 Gowrishankar Rajaiyan 2015-10-27 11:44:31 UTC
            "recipesets": [
                {
                    "arch": "x86_64", 
                    "bkr_data": {
                        "name": "AppServer", 
                        "role": "Server"
                    }, 
                    "distro": "rhel-7.2%", 
                    "hostrequire": [], 
                    "tag": [
                        "RTT_ACCEPTED"
                    ], 
                    "variant": "Server"
                }
            ]


produces:

<distroRequires>
	<and>
		<distro_name op="like" value="rhel-7.2%"/>
		<distro_variant op="=" value="Server"/>
		<distro_arch op="=" value="x86_64"/>
	</and>
</distroRequires>


Please note the missing tag: 'RTT_ACCEPTED'

Comment 3 Dan Callaghan 2015-10-27 22:12:52 UTC
Okay, does that mean the CI provisioner code is producing the wrong thing?

Or is it invoking the bkr client with some options and *that* is producing the wrong XML? If so, what is the CI provisioner invoking?

Comment 4 Gowrishankar Rajaiyan 2015-11-19 10:54:31 UTC
This is because the 7.2% is not supported in the Beaker API.

Comment 5 Gowrishankar Rajaiyan 2015-11-19 10:55:28 UTC
(In reply to Gowrishankar Rajaiyan from comment #4)
> This is because the 7.2% is not supported in the Beaker API.

As mentioned by Ari at CID-376

Comment 6 Dan Callaghan 2017-12-07 06:33:03 UTC
I'm not clear what the bug is here. Is this still an issue?

Comment 7 Gowrishankar Rajaiyan 2019-05-14 05:59:17 UTC
Not an issue anymore.