Bug 1335586 - ceph systemd services warn about "TasksMax"
Summary: ceph systemd services warn about "TasksMax"
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Ceph Storage
Classification: Red Hat Storage
Component: Build
Version: 2.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: rc
: 2.3
Assignee: Boris Ranto
QA Contact: ceph-qe-bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-05-12 14:51 UTC by Ken Dreyer (Red Hat)
Modified: 2022-02-21 18:03 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-04-04 18:03:00 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Ceph Project Bug Tracker 15583 0 None None None 2016-05-16 17:03:08 UTC
Launchpad 1564917 0 None None None 2016-05-20 02:35:54 UTC
Red Hat Bugzilla 1337244 0 medium CLOSED [RFE] support for TasksMax and DefaultTasksAccounting? 2021-02-22 00:41:40 UTC

Internal Links: 1337244

Description Ken Dreyer (Red Hat) 2016-05-12 14:51:48 UTC
Description of problem:
The ceph-rbd-mirror@.service file uses a "TasksMax" setting, which causes an error to be printed, eg "systemctl status ceph-rbd-mirror"

systemd introduced this TasksMax setting in version 226, while RHEL 7 still has systemd 219.

Version-Release number of selected component (if applicable):
ceph-10.2.0-1.el7cp

How reproducible:
always

Steps to Reproduce:
1. yum install rbd-mirror
2. systemctl start ceph-rbd-mirror
3. systemctl status -l ceph-rbd-mirror

Actual results:
May 12 14:44:42 magna004 systemd[1]: [/usr/lib/systemd/system/ceph-rbd-mirror@.service:20] Unknown lvalue 'TasksMax' in section 'Service'

Expected results:
service starts as expected, without warning about TasksMax.

Comment 1 Ken Dreyer (Red Hat) 2016-05-12 14:52:33 UTC
Boris, would you please fix this issue with the systemd unit file for ceph-rbd-mirror?

Comment 2 Ken Dreyer (Red Hat) 2016-05-12 14:54:40 UTC
(Note to QE: this only applies to RHEL, since Ubuntu Xenial ships systemd 229)

Comment 3 Boris Ranto 2016-05-12 15:29:33 UTC
@Ken: SystemD ignores the lines that it does not understand and prints the warning (not error) to the journal. Otherwise, it will continue as if the line was not there. I don't think there is anything we need to do, here (well, if we are ok that TasksMax won't apply).

i.e.: The warning does not have any additional influence on the functionality of the service. It is just that the maximum number of tasks won't be enforced afterwards.

Comment 4 Ken Dreyer (Red Hat) 2016-05-16 16:46:49 UTC
We could make the packaging strip out this line during the RHEL 7 build.

Comment 5 Boris Ranto 2016-05-16 20:26:11 UTC
That would work. The downside is that we would need to un-apply the change once (or if) RHEL 7 adopts that option for it to take action (*).

(*) In terms of enterprise sw, this might be considered an upside as it minimizes the amount of available (untested) variants. :-)

Comment 7 Boris Ranto 2016-05-19 10:12:50 UTC
Given that the option preserves the current behaviour (if it is applicable) and all it does is that prints a warning (well, an info message) to the journal on a system that does not support it, I think that the safest choice for us, here, would be to just keep it the way it is, now.

Comment 8 Boris Ranto 2016-05-19 10:58:10 UTC
NOTE: We might want to document this somewhere (KB?) to minimize to volume of support calls that it could potentially generate.

Comment 9 Ken Dreyer (Red Hat) 2016-05-24 21:53:17 UTC
From the systemd bug 1337244, we're clear to just strip out the TasksMax setting on RHEL 7.

Comment 10 Ken Dreyer (Red Hat) 2016-09-23 21:02:22 UTC
According to bz 1337244, systemd in RHEL 7.4 might make this problem go away.

Comment 12 Ken Dreyer (Red Hat) 2017-04-04 18:03:00 UTC
To summarize this issue: it is entirely cosmetic (TasksMax has no effect in RHEL 7.3.) There is a chance that RHEL 7.4 will make the warning go away.


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