we have observed below point while working with phosphor-time-manager.
if we set time mode to manual and try to set epoch time immediately using Elapsed property, we encounter the below error:
"Failed to set property Elapsed on interface xyz.openbmc_project.Time.EpochTime: The operation failed"
2.if we wait for few seconds(5-8 seconds assumed) and then set epoch time using Elapsed property then we are able to set the BMC time successfully.
query:
1.Is the above behavior known or a bug?. is it documented in the repo?.
possible suggestion:
if we want to set epoch time immediately after manual mode then we suggest below solution:
when we changed mode from NTP to Manual , phosphor-TimeManager service disables the NTPSync
which actually takes a few seconds. so when we try to set time immediately(NTPSync will still be in enabled phase) timedate service gives error that previous operation is still in progress.
2.To avoid the error we can wait for NTPSync to be disabled before setting time in cpp file.
we have observed below point while working with phosphor-time-manager.
query: 1.Is the above behavior known or a bug?. is it documented in the repo?.
possible suggestion: if we want to set epoch time immediately after manual mode then we suggest below solution: