All of lore.kernel.org
 help / color / mirror / Atom feed
From: Vernon Mauery <vernon.mauery@linux.intel.com>
To: Patrick Williams <patrick@stwcx.xyz>
Cc: Kumar Thangavel <kumarthangavel.hcl@gmail.com>,
	openbmc@lists.ozlabs.org, 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 11:21:07 -0700	[thread overview]
Message-ID: <20200529182107.GA7478@mauery.jf.intel.com> (raw)
In-Reply-To: <20200529180709.GH17541@heinlein>

On 29-May-2020 01:07 PM, Patrick Williams wrote:
>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?

ipmid hosts a very small set of D-Bus objects/interfaces. I don't know 
of any standard commands that would call back to itself though. There is 
some context I seem to be missing here.

--Vernon

  reply	other threads:[~2020-05-29 18:21 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
2020-05-29 18:21   ` Vernon Mauery [this message]
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=20200529182107.GA7478@mauery.jf.intel.com \
    --to=vernon.mauery@linux.intel.com \
    --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=patrick@stwcx.xyz \
    --cc=ratagupt@linux.vnet.ibm.com \
    --cc=sdasari@fb.com \
    --cc=tomjose@linux.vnet.ibm.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.