Skip to content

Rainier:DateTime Manual setting error out #3588

Open
@gtmills

Description

@gtmills

Downstream defect is https://w3.rchland.ibm.com/projects/SLIC/bestquest/index.php?defect=SW552970

Reported by @gkeishin
Test:

  1. Load the latest driver 5.12 1020.2224.20220613a
  2. Try to set to MANUAL mode DateTime

Expectation: Sets to manual and DateTime is updated

Observation: Errors out while trying to set

Error saving date and time settings

1st recreate

Jun 14 16:34:12 rainjmt04bmc systemd[1]: systemd-hostnamed.service: Deactivated successfully.
Jun 14 16:34:18 rainjmt04bmc phosphor-time-manager[584]: Error in setting system time
Jun 14 16:34:18 rainjmt04bmc bmcweb[934]: (2022-06-14 16:34:18) [CRITICAL "error_messages.cpp":233] Internal Error ../git/redfish-core/include/../lib/managers.hpp(1963:44) `redfish::setDateTime(std::shared_ptr<bmcweb::AsyncResp>, std::string)::<lambda(boost::system::error_code)>`:
Jun 14 16:34:18 rainjmt04bmc phosphor-time-manager[584]: The operation failed

2nd recreate


Jun 14 16:26:52 rainjmt04bmc systemd-timedated[2137]: Set NTP to enabled (systemd-timesyncd.service).
Jun 14 16:26:52 rainjmt04bmc phosphor-time-manager[584]: Updated NTP setting
Jun 14 16:26:52 rainjmt04bmc systemd[1]: Started SSH Per-Connection Server (9.3.62.100:49820).
Jun 14 16:26:52 rainjmt04bmc dropbear[2154]: Child connection from ::ffff:9.3.62.100:49820
Jun 14 16:26:52 rainjmt04bmc bmcweb[934]: (2022-06-14 16:26:52) [ERROR "redfish_util.hpp":162] generic:3
Jun 14 16:26:52 rainjmt04bmc systemd[1]: Starting Network Time Synchronization...
Jun 14 16:26:53 rainjmt04bmc systemd[1]: Started Network Time Synchronization.
Jun 14 16:26:55 rainjmt04bmc dropbear[2154]: pam_ibmacf(dropbear:auth): Failed to open file /srv/ibm-acf/ibmacf-prod-backup2.key
Jun 14 16:26:55 rainjmt04bmc dropbear[2154]: PAM password auth succeeded for 'service' from ::ffff:9.3.62.100:49820
Jun 14 16:26:55 rainjmt04bmc sudo[2163]:  service : TTY=pts/0 ; PWD=/home/root ; USER=root ; COMMAND=/bin/sh
Jun 14 16:27:07 rainjmt04bmc avahi-daemon[462]: Registering new address record for 2001:501:ffff:101:a94:efff:fe82:3e17 on eth1.*.
Jun 14 16:27:23 rainjmt04bmc systemd[1]: systemd-timedated.service: Deactivated successfully.
Jun 14 16:27:35 rainjmt04bmc bmcweb[934]: (2022-06-14 16:27:35) [ERROR "websocket.hpp":216] doRead error boost.beast:1
Jun 14 16:27:55 rainjmt04bmc phosphor-time-manager[584]: Time mode is changed
Jun 14 16:27:55 rainjmt04bmc bmcweb[934]: (2022-06-14 16:27:55) [CRITICAL "http_connection.hpp":491] 0x15908b8 Response content provided but code was no-content
Jun 14 16:27:55 rainjmt04bmc systemd[1]: Starting Time & Date Service...
Jun 14 16:27:56 rainjmt04bmc systemd[1]: Started Time & Date Service.
Jun 14 16:27:56 rainjmt04bmc systemd-timedated[2174]: systemd-timesyncd.service: Disabling unit.
Jun 14 16:27:56 rainjmt04bmc systemd[1]: Reloading.
Jun 14 16:28:03 rainjmt04bmc systemd[1]: Stopping Network Time Synchronization...
Jun 14 16:28:03 rainjmt04bmc systemd-timedated[2174]: Set NTP to disabled.
Jun 14 16:28:03 rainjmt04bmc phosphor-time-manager[584]: Updated NTP setting
Jun 14 16:28:16 rainjmt04bmc phosphor-time-manager[584]: Error in setting system time
Jun 14 16:28:16 rainjmt04bmc phosphor-time-manager[584]: The operation failed <---- here is the error
Jun 14 16:28:16 rainjmt04bmc bmcweb[934]: (2022-06-14 16:28:16) [CRITICAL "error_messages.cpp":233] Internal Error ../git/redfish-core/include/../lib/managers.hpp(1963:44) `redfish::setDateTime(std::shared_ptr<bmcweb::AsyncResp>, std::string)::<lambda(boost::system::error_code)>`:
Jun 14 16:28:18 rainjmt04bmc systemd[1]: systemd-timesyncd.service: Deactivated successfully.
Jun 14 16:28:18 rainjmt04bmc systemd[1]: Stopped Network Time Synchronization.
Jun 14 16:28:48 rainjmt04bmc systemd[1]: systemd-timedated.service: Deactivated successfully.
Jun 14 16:28:53 rainjmt04bmc systemd[1]: systemd-hostnamed.service: Deactivated successfully.
Jun 14 16:29:05 rainjmt04bmc systemd[1]: Starting Hostname Service...
Jun 14 16:29:05 rainjmt04bmc systemd[1]: Started Hostname Service.
Jun 14 16:29:45 rainjmt04bmc peltool[2195]: peltool deleting all event logs

3rd recreate

Jun 14 16:31:26 rainjmt04bmc phosphor-time-manager[584]: Error in setting system time
Jun 14 16:31:26 rainjmt04bmc phosphor-time-manager[584]: The operation failed

Jun 14 16:31:26 rainjmt04bmc bmcweb[934]: (2022-06-14 16:31:26) [CRITICAL "error_messages.cpp":233] Internal Error ../git/redfish-core/include/../lib/managers.hpp(1963:44) `redfish::setDateTime(std::shared_ptr<bmcweb::AsyncResp>, std::string)::<lambda(boost::system::error_code)>`:

The set on D-Bus failed
https://github.com/ibm-openbmc/bmcweb/blob/1020/redfish-core/lib/managers.hpp#L1963

@lxwinspur Could this be something your team looks at ?
Could you set the datetime back and forth from manual to ntp and back ?

Metadata

Metadata

Assignees

Labels

Migrate-NoDo not migrate to JiraReadyForDevStories ready for development work

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions