Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1070575

Summary: hardcoded distro name and version in beaker-import (Red Hat Enterprise Linux and CentOS)
Product: [Retired] Beaker Reporter: Hushan Jia <hushan.jia>
Component: lab controllerAssignee: Dan Callaghan <dcallagh>
Status: CLOSED CURRENTRELEASE QA Contact: tools-bugs <tools-bugs>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 0.15CC: aigao, asaha, dcallagh, rmancy, tools-bugs, xma
Target Milestone: 0.18.1Keywords: Patch
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-09-12 07:36:24 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 Hushan Jia 2014-02-27 06:36:38 UTC
Description of problem:

when import customised distro with beaker-import command, it fails with:

2014-02-27 14:27:31,816 root CRITICAL No valid importer found for http://pek.zelin.local/distros/zos-0.1/

later dcallagh found it is because the script have name and version hardcoded to RHEL and CentOS, and major version >= 6.

this is not very convinient, because this restrict beaker support only RHEL6 and CentOS6.

Version-Release number of selected component (if applicable):
beaker-server-0.15.3-2.el6eng.noarch

How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 2 Dan Callaghan 2014-07-18 04:07:20 UTC
This is the other issue we need to fix to support custom distros with arbitrary names.

Comment 3 Dan Callaghan 2014-09-03 04:23:48 UTC
This actually only applies to custom distros using the original .treeinfo format, rather than the newer style .composeinfo files which have been introduced by Red Hat Release Engineering starting in RHEL7 and RHEL6.6.

CentOS still uses the original .treeinfo format and so any custom distros based on CentOS will have this problem.

Comment 4 Dan Callaghan 2014-09-03 08:18:08 UTC
Steps to reproduce:

1. Run an HTTP server, or go to some directory you control being served by an HTTP server (like your public_html, etc).
2. Create a new subdir CustomCentOS6.5-x86_64 (this is our fake custom CentOS tree).
3. Grab the CentOS 6.5 .treeinfo from http://mirror.aarnet.edu.au/pub/centos/6.5/os/x86_64/.treeinfo and place it in the fake custom tree
4. Modify .treeinfo so the 'family' key is CustomCentOS (or any other unrecognised product name).
5. Run beaker-import pointing at your custom tree's HTTP URL:
beaker-import http://example.com/CustomCentOS6.5-x86_64/

Actual results:
2014-09-03 18:15:01,559 root CRITICAL No valid importer found for http://lab.dcallagh.beakerdevs.lab.eng.bne.redhat.com/distros/CustomCentOS6.5-x86_64/

Expected results:
2014-09-03 18:12:15,288 root INFO CustomCentOS-6.5  x86_64 added to beaker.

Comment 5 Dan Callaghan 2014-09-03 08:19:04 UTC
On Gerrit: http://gerrit.beaker-project.org/3308

Comment 8 Dan Callaghan 2014-09-12 07:36:24 UTC
Beaker 0.18.1 has been released.