-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
templated service files are broken #26
Comments
Yea, that's definitely a problem that a templated service wouldn't also claim a templated D-Bus name. |
FWIW, it was templated for the yaml version of the service files. The json versions no longer required the use of %i |
Shouldn't have been closed. I wrote "partially resolves"... |
jamin-aspeed
pushed a commit
to AspeedTech-BMC/openbmc
that referenced
this issue
Mar 29, 2023
Partially resolves openbmc/phosphor-fan-presence#26. The phosphor-fan package installs templated service files based on the OBMC_CHASSIS_INSTANCES, but there is currently nothing in those templates which is templated. As a result, all but the first instance continuously crashes due to the dbus name already being taken. Hack around this for now by only using CHASSIS="0" until a more complete solution is identified. Signed-off-by: Patrick Williams <[email protected]> Change-Id: Ia0bebb1670d45cb91555ff7af9ba502abd7460e1
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The repository has a number of templated services files, such as:
There is nothing in this template file that is templated. There is no use of the
%I
field, for example.In meta-phosphor, these templates are being installed based on
OBMC_CHASSIS_INSTANCES
:The side-effect of this is any multi-chassis system ends up with N instances of this template installed, each of which tries to launch the same
phosphor-fan-monitor
program, of which N-1 crash due to the dbus server name already being taken. Unfortunately, the service files are also written withRestart=on-failure
, so we end up with a continuous loop of crash/restart/crash/restart on N-1 instances of the service, which fills up the phosphor-debug-collector almost instantly and consumes plenty of CPU.The text was updated successfully, but these errors were encountered: