Bug 1215368

Summary: [Build 20230914] journal_check: systemctl: invalid option -- '.'
Product: [openSUSE] openSUSE Tumbleweed Reporter: Dominique Leuenberger <dimstar>
Component: BasesystemAssignee: Ignaz Forster <iforster>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: fvogt, schubi
Version: Current   
Target Milestone: ---   
Hardware: Other   
OS: Other   
URL: https://openqa.opensuse.org/tests/3578196/modules/journal_check/steps/21
Whiteboard:
Found By: openQA Services Priority:
Business Priority: Blocker: Yes
Marketing QA Status: --- IT Deployment: ---

Description Dominique Leuenberger 2023-09-15 07:35:25 UTC
## Observation

The journal check error reports error like this:

Sep 15 06:30:17.563438 localhost.localdomain systemctl[1564]: systemctl: invalid option -- '.'
Sep 15 06:30:17.564956 localhost.localdomain systemctl[1564]: Hint: to specify units starting with a dash, use "--":
Sep 15 06:30:17.565067 localhost.localdomain systemctl[1564]:       systemctl [OPTIONS...] COMMAND -- -.mount ...

They are likely not really an issue (?) but spamming the journal with such things is not nice.

Unfortunatly there seems to be no indication as to what calls systemctl with invalid parameters -making a bit hard to trace and properly assoign the bug (hence for a start assigning to fbui - maybe we can find some better info)

openQA test in scenario microos-Tumbleweed-MicroOS-Image-x86_64-microos@64bit fails in
[journal_check](https://openqa.opensuse.org/tests/3578196/modules/journal_check/steps/21)

## Test suite description



## Reproducible

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


## Expected result

Last good: [20230913](https://openqa.opensuse.org/tests/3574580) (or more recent)


## Further details

Always latest result in this scenario: [latest](https://openqa.opensuse.org/tests/latest?arch=x86_64&distri=microos&flavor=MicroOS-Image&machine=64bit&test=microos&version=Tumbleweed)
Comment 1 Fabian Vogt 2023-09-15 07:57:54 UTC
This is a known issue in health-checker, ultimately caused by a change in kiwi:

Kiwi wrongly specified subvol=/@/.snapshots/1/snapshot as option for / in /etc/fstab which triggers this code in health-checker to call systemctl is-failed -.mount:

https://github.com/openSUSE/health-checker/blob/ea8850a5081c507d996845dc2d7d8c01680afc9d/plugins/btrfs-subvolumes-mounted.sh#L7

This is meanwhile fixed in kiwi: https://github.com/OSInside/kiwi/issues/2366

But health-checker should probably add the missing "--" as well.
Comment 2 Ignaz Forster 2023-09-15 12:04:23 UTC
Fixed in health-checker 1.10.
Comment 3 OBSbugzilla Bot 2023-09-15 13:05:03 UTC
This is an autogenerated message for OBS integration:
This bug (1215368) was mentioned in
https://build.opensuse.org/request/show/1111554 Factory / health-checker