From: Patrick Williams <patrick@stwcx.xyz>
To: Kumar Thangavel <kumarthangavel.hcl@gmail.com>
Cc: openbmc@lists.ozlabs.org, vernon.mauery@linux.intel.com,
tomjose@linux.vnet.ibm.com, anoo@us.ibm.com,
dkodihal@linux.vnet.ibm.com, ratagupt@linux.vnet.ibm.com,
Brad Bishop <bradleyb@fuzziesquirrel.com>,
Vijay Khemka <vijaykhemka@fb.com>, Sai Dasari <sdasari@fb.com>
Subject: Re: Sd_bus_call - ELOOP Issue
Date: Fri, 29 May 2020 13:07:09 -0500 [thread overview]
Message-ID: <20200529180709.GH17541@heinlein> (raw)
In-Reply-To: <CAA7TbcvAOF-ThzEyZMkMr4T4XwBxXmCoO0MOL-WmywpFQuKpQQ@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1426 bytes --]
On Fri, May 29, 2020 at 09:29:48PM +0530, Kumar Thangavel wrote:
> 6. As per our understanding, current sd_bus_call not supported for
> connection with the same bus/clients. (sender and receiver are same
> application name ). Please confirm.
>
> Log :
> yosemitev2 ipmid[370]: sd_bus_call function called..
> yosemitev2 ipmid[370]: sd_bus_call function ELOOP .
> yosemitev2 ipmid[370]: unique name = :1.71
> yosemitev2 ipmid[370]: incoming sender = :1.71
> yosemitev2 ipmid[370]: executeCallback called. catch block
> yosemitev2 ipmid[370]: EXCEPTION=sd_bus_call:
> System.Error.ELOOP: Too many levels of symbolic links
Yes, it appears that systemd has some code to specifically return ELOOP
in this case:
https://github.com/systemd/systemd/blob/master/src/libsystemd/sd-bus/sd-bus.c#L2236
>
> So, Could you please confirm sd_bus_call does not support the same
> bus/clients with in the same process.
>
> Also, Please let us know if any alternate method to call the
> execute dbus method with the same bus/connection.
My suggestion would be to see if one of the functions in ipmid-new.cpp,
such as executeIpmiCommand, can be exposed to providers for these kind
of recursive callbacks.
Maintainers of phosphor-host-ipmid have opinions here?
--
Patrick Williams
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
next prev parent reply other threads:[~2020-05-29 18:07 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-29 15:59 Sd_bus_call - ELOOP Issue Kumar Thangavel
2020-05-29 18:07 ` Patrick Williams [this message]
2020-05-29 18:21 ` Vernon Mauery
2020-06-02 15:53 ` Patrick Williams
2020-06-01 3:23 ` 郁雷
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200529180709.GH17541@heinlein \
--to=patrick@stwcx.xyz \
--cc=anoo@us.ibm.com \
--cc=bradleyb@fuzziesquirrel.com \
--cc=dkodihal@linux.vnet.ibm.com \
--cc=kumarthangavel.hcl@gmail.com \
--cc=openbmc@lists.ozlabs.org \
--cc=ratagupt@linux.vnet.ibm.com \
--cc=sdasari@fb.com \
--cc=tomjose@linux.vnet.ibm.com \
--cc=vernon.mauery@linux.intel.com \
--cc=vijaykhemka@fb.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.