Bug 1219347 - [Build 20240128] perl-Bootloader: pbl --log creates empty log file
Summary: [Build 20240128] perl-Bootloader: pbl --log creates empty log file
Status: NEW
Alias: None
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Bootloader (show other bugs)
Version: Current
Hardware: Other openSUSE Tumbleweed
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Cédric Vidot
QA Contact: E-mail List
URL: https://openqa.opensuse.org/tests/389...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-01-30 12:25 UTC by Cédric Vidot
Modified: 2024-02-27 12:10 UTC (History)
3 users (show)

See Also:
Found By: openQA
Services Priority:
Business Priority:
Blocker: Yes
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Cédric Vidot 2024-01-30 12:25:19 UTC
## Observation

Command 'pbl --log pbl.log' creates an empty log file:

---
 Script:
cat /var/log/pbl-test.log

Regular expression:
(?^:pbl)

Output:
---

openQA test in scenario opensuse-Tumbleweed-JeOS-for-kvm-and-xen-x86_64-jeos-extra@64bit_virtio-2G fails in
[perl_bootloader](https://openqa.opensuse.org/tests/3899504/modules/perl_bootloader/steps/43)

## Reproducible

Fails since (at least) Build [20240123](https://openqa.opensuse.org/tests/3888714)


## Expected result

See result for SLE: [13379161](https://openqa.suse.de/tests/13379161#step/perl_bootloader/42)

---
Script:
cat /var/log/pbl-test.log

Regular expression:
(?^:pbl)

Output:
2024-01-29 18:04:34 <1> pbl-1268 new.151: pbl-1268 = /sbin/pbl, version = 0.945, root = 0:48
2024-01-29 18:04:34 <1> pbl-1268 main.310: /sbin/pbl
2024-01-29 18:04:34 <1> pbl-1268 main.312: bootloader = grub2-efi
2024-01-29 18:04:34 <1> pbl-1268 main.318: locale =
---

## Further details

Always latest result in this scenario: [latest](https://openqa.opensuse.org/tests/latest?arch=x86_64&distri=opensuse&flavor=JeOS-for-kvm-and-xen&machine=64bit_virtio-2G&test=jeos-extra&version=Tumbleweed)
Comment 1 Michael Chang 2024-02-19 08:27:53 UTC
Hi Steffen,

Could you please have a look for the empty log an intended behavior or not ? Thanks.
Comment 2 Steffen Winterfeldt 2024-02-19 16:40:42 UTC
'pbl --log foo' is not a good test as it doesn't specify any action for pbl.

Better use 'pbl --log foo --default-settings' (for example).

Otherwise pbl will set the log file and then do nothing - i.e also log
nothing.

The change compared to SLE came with the rewrite as shell script.

Please adjust the test.
Comment 3 Cédric Vidot 2024-02-27 11:45:35 UTC
Hi Steffen,

Noted, I updated the test: https://openqa.opensuse.org/tests/3958904#step/perl_bootloader/51
Comment 4 Steffen Winterfeldt 2024-02-27 12:10:26 UTC
Thanks, looks good.