From 0be80bdde8668f7990960bcdddaf3f1360eeadbb Mon Sep 17 00:00:00 2001 From: Richard Marian Thomaiyar Date: Fri, 10 Jan 2020 12:20:16 +0530 Subject: [user-mgmt]: Do late initialization of user init. When dependency with phosphor-user-manager is removed from host-ipmid, both the daemons can start on it's own pace, causing host-ipmid to miss both GetManagedObjects query and signal capture, as host-ipmid is busy in doing the initialization. Updated code, such that user initialization is posted and executed as part of io schedule. Tested: 1. Verified that user list are properly listed after this change. Note: Also, performed following tests to determine the order didn't cause any problem. Verified with both ipmi_user.json deleted and preserved. 2. Started phosphor-user-manager after host-ipmid 3. Re-started phosphor-user-manager. 4. Started phosphor-host-ipmid after phosphor-user-manager. 5. Restarted phosphor-host-ipmid. 6. Added sleep code to force the scenario of GetManagedObjects fails, and signals are captured. and GetManagedObject passes (when both are started). Change-Id: Id5cc6ada6dd3472ddfd8803c49cd4a2a7fb6c58b Signed-off-by: Richard Marian Thomaiyar --- user_channel/usercommands.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'user_channel') diff --git a/user_channel/usercommands.cpp b/user_channel/usercommands.cpp index 1d9460c..3396d2d 100644 --- a/user_channel/usercommands.cpp +++ b/user_channel/usercommands.cpp @@ -672,7 +672,7 @@ ipmi::RspType