Bug 1070575 - hardcoded distro name and version in beaker-import (Red Hat Enterprise Linux and CentOS)
Summary: hardcoded distro name and version in beaker-import (Red Hat Enterprise Linux ...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Beaker
Classification: Retired
Component: lab controller
Version: 0.15
Hardware: Unspecified
OS: Linux
unspecified
unspecified
Target Milestone: 0.18.1
Assignee: Dan Callaghan
QA Contact: tools-bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-02-27 06:36 UTC by Hushan Jia
Modified: 2018-02-06 00:41 UTC (History)
6 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2014-09-12 07:36:24 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1070597 0 unspecified CLOSED [RFE] Avoid assuming unknown distros are based on RHEL 6 2021-02-22 00:41:40 UTC

Internal Links: 1070597

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.


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