Bug 882312 - rlBundleLogs -- keep logs in the system
Summary: rlBundleLogs -- keep logs in the system
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: beakerlib
Version: 19
Hardware: All
OS: All
medium
medium
Target Milestone: ---
Assignee: Petr Muller
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 1063446 Fedora-beakerlib-1.9-3 1116317
TreeView+ depends on / blocked
 
Reported: 2012-11-30 16:16 UTC by Miroslav Franc
Modified: 2016-02-01 02:28 UTC (History)
5 users (show)

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


Attachments (Terms of Use)

Description Miroslav Franc 2012-11-30 16:16:07 UTC
Many times I'm running some test manually in which case it's not possible to send logs away anyway.  It would be cool if rlBundleLogs recognize this, store logs somewhere in /tmp instead and notify user about it.  Of course you can modify test so that it won't clean after itself, but you have to keep that in mind.  I know this sounds like dirty hack, but it's useful hack! :)

Comment 1 Petr Muller 2012-12-03 11:29:00 UTC
H-m-m-m.

rlBundleLogs uses rlFileSubmit, which should recognize this situation (not running on Beaker machine as part of automatically scheduled Beaker run) and in that case put the file somewhere in /tmp and report its location. So either you've missed it or this is broken somehow.

Comment 2 Miroslav Franc 2012-12-03 13:12:25 UTC
Then I guess it's broken.

# . /usr/share/beakerlib/beakerlib.sh
# rlFileSubmit /etc/passwd
:: [08:12:54] :: [ INFO    ] :: Sending /etc/passwd as etc-passwd
Argh Blargh!: 2
result_server not set, assuming developer mode.
Log File : /tmp/tmp.SuOeLLVvsE/etc-passwd
# cat /tmp/tmp.SuOeLLVvsE/etc-passwd
cat: /tmp/tmp.SuOeLLVvsE/etc-passwd: No such file or directory
# ls /tmp/tmp.SuOeLLVvsE
ls: cannot access /tmp/tmp.SuOeLLVvsE: No such file or directory

Comment 3 Petr Muller 2013-01-08 11:54:40 UTC
Interesting. It seems that rhts-report-result (or whatever part of beaker emits the 'developer mode' - that is not from beakerlib) tries to do the same thing to and is broken. I wonder if the mechanism in BeakerLib determining if the test is running locally was broken somehow...

I'll look into it.

Comment 4 Fedora End Of Life 2013-04-03 19:56:56 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 19 development cycle.
Changing version to '19'.

(As we did not run this process for some time, it could affect also pre-Fedora 19 development
cycle bugs. We are very sorry. It will help us with cleanup during Fedora 19 End Of Life. Thank you.)

More information and reason for this action is here:
https://fedoraproject.org/wiki/BugZappers/HouseKeeping/Fedora19

Comment 6 Fedora Update System 2014-06-17 13:42:42 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:30:10 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:24 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:18 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:55 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.