Bug 947917 - [RFE] rlGetPrimaryArch / rlGetSecondaryArch
Summary: [RFE] rlGetPrimaryArch / rlGetSecondaryArch
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: beakerlib
Version: rawhide
Hardware: All
OS: All
medium
medium
Target Milestone: ---
Assignee: Petr Muller
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 1092476 Fedora-beakerlib-1.9-3 1116317
TreeView+ depends on / blocked
 
Reported: 2013-04-03 14:23 UTC by Miroslav Franc
Modified: 2016-02-01 02:28 UTC (History)
6 users (show)

Fixed In Version: beakerlib-1.9-3.fc20
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1092476 (view as bug list)
Environment:
Last Closed: 2014-07-30 06:57:44 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Patch to beakerlib/logging.sh (3.99 KB, patch)
2013-04-29 11:42 UTC, Michael Petlan
no flags Details | Diff

Description Miroslav Franc 2013-04-03 14:23:09 UTC
Description of problem:

As part of beakerlib lives function called rlGetArch.  The problem is the result you'll get from it does not always match the actual architecture we support.  There is concept of primary and secondary architecture on RHEL.  For example on ppc64 machine with rhel5 the primary architecture is ppc and secondary ppc64, on rhel6 and rhel7 with the same machine it's the other way around.  Similar problems are with x86_64.  On rhel5 the secondary architecture is i386, but on rhel6 it's i686.  There's no simple command to query this piece of information within the test.  Would it be possible to implement rlGetPrimaryArch for us to be able to get string describing primary architecture and similar thing for secondary arch?  It would somewhat simplify writing of our tests.

Comment 1 Martin Cermak 2013-04-03 14:52:43 UTC
Agreed. Also possibly a nice item for some new hire's 90day/intern goals :-)

Comment 2 Petr Muller 2013-04-09 11:15:07 UTC
I think such RHEL-related stuff would make a great BeakerLib library. I would even consider dumping the rlGetDistroRelease there.

Comment 4 Michael Petlan 2013-04-29 11:42:25 UTC
Created attachment 741441 [details]
Patch to beakerlib/logging.sh

Comment 5 Petr Muller 2014-04-29 11:56:31 UTC
I have made few modifications and pushed the patch. Thanks!

https://git.fedorahosted.org/cgit/beakerlib.git/commit/?id=52da77f9a3b72ba169b2ed0a121c6671c03fd5cd

Comment 6 Fedora Update System 2014-06-17 13:42:25 UTC
beakerlib-1.9-1.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/beakerlib-1.9-1.fc20

Comment 7 Fedora Update System 2014-06-17 23:29:54 UTC
Package beakerlib-1.9-1.fc20:
* should fix your issue,
* was pushed to the Fedora 20 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing beakerlib-1.9-1.fc20'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2014-7442/beakerlib-1.9-1.fc20
then log in and leave karma (feedback).

Comment 8 Fedora Update System 2014-07-02 08:02:06 UTC
beakerlib-1.9-2.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/beakerlib-1.9-2.fc20

Comment 9 Dalibor Pospíšil 2014-07-04 08:50:59 UTC
Please consider the package fixing this bug available in Fedora stable repos once bz1116308 is closed and RHEL stable repos once bz1116317 is closed.

Fixed in:
beakerlib-1.9-2.fc19
beakerlib-1.9-2.fc20
beakerlib-1.9-2.fc21
beakerlib-1.9-3.el5
beakerlib-1.9-2.el6
beakerlib-1.9-2.el7

Comment 10 Fedora Update System 2014-07-17 13:16:10 UTC
beakerlib-1.9-3.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/beakerlib-1.9-3.fc20

Comment 11 Fedora Update System 2014-07-30 06:57:44 UTC
beakerlib-1.9-3.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.


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