Skip to content
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

dbus interface fixes #23

Merged
merged 4 commits into from Oct 29, 2015
Merged

dbus interface fixes #23

merged 4 commits into from Oct 29, 2015

Conversation

jk-ozlabs
Copy link
Member

With these changes, I can get ipmid talking to our dbus-enabled ipmitool.

@causten
Copy link
Member

causten commented Oct 27, 2015

I have reviewed this pull request and find it favorable

@causten
Copy link
Member

causten commented Oct 27, 2015

Tested in qemu, works as described

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Currently, the IPMI daemon will only receive messages from a specific
(arbitrary) object path that the debug daemon used.

Instead, we should be listening to any signal that matches our interface
(org.openbmc.HostIpmi.ReceivedMessage). When replying to the message,
we should be using the signal sender info to properly address the
reply method.

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
With the updated HostIpmi dbus interface, netfns are not packed with
LUNs, and the CC is separate from the data.  This means we no longer
have to define NETFN_* as arbitrarily shifted, and we have the added
bonus of replying to messages where lun != 0.

We may want to separate the CC returned from the handlers in future too.

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Curently, if I have no ipmi_lib_path, ipmid crashes:

  $ ./ipmid
  Registering handler:[/usr/lib/host-ipmid/H���dH��%(]
  ERROR opening [/usr/lib/host-ipmid/H���dH��%(]: /usr/lib/host-ipmid/H���dH��%(: cannot open shared object file: No such file or directory
  *** Error in `./ipmid': munmap_chunk(): invalid pointer: 0x0000000000401eb6 ***
  Aborted (core dumped)

We need to check for the error case of a scandir().

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
williamspatrick added a commit that referenced this pull request Oct 29, 2015
@williamspatrick williamspatrick merged commit cf82b7e into openbmc:master Oct 29, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants