openbmc / phosphor-rest-server

REST server that transposes dbus interfaces to REST
Apache License 2.0
4 stars 11 forks source link

obmc-rest did not activate #23

Closed Kenthliu closed 8 years ago

Kenthliu commented 8 years ago

I had tested in 2 system. One system happened randomly. The system is connected LAN to my laptop directly. I found there is no obmc-rest procedure sometimes. Attachment is the journalctl log that is no obmc-rest situation. norest1.txt This is another journalctl log that get obmc-rest getrest.txt

There is another system that always can not see the obmc-rest. The environment is a little different. The system BMC LAN port is connected to WAN, and the IP is assigned by DHCP. Here is the log. norest2.txt

I think the key point is the message. Jun 22 08:59:55 barreleye systemd[1]: Failed to start Phosphor OpenBMC DBus service management daemon. Jun 22 08:59:55 barreleye systemd[1]: Dependency failed for Phosphor OpenBMC DBus REST daemon. Jun 22 08:59:55 barreleye systemd[1]: obmc-rest.service: Job obmc-rest.service/start failed with result 'dependency'.

Kenthliu commented 8 years ago

@williamspatrick @bradbishop Please help to look into this issue. Thanks.

bradbishop commented 8 years ago

I was able to reproduce this by creating 128 logs.

I think I have solved it with some performance improvements here: https://github.com/openbmc/phosphor-objmgr/commit/59800b8326233b6f662a423b9e113e2b823fd744.

Also, as a safeguard, I bumped the mapper service start timeout from 90 to 300 seconds.

Kenthliu commented 8 years ago

This issue seems fixed in 1.0.1. Thanks.