Brief Description
-----------------
We are currently removing the guest-agent service from the platform since it is no more needed. Some queries in the create_sm_db on the ha repo are causing issues in the sm. Because of those issues, sm won't go standby.
Severity
--------
Provide the severity of the defect.
Major
Steps to Reproduce
------------------
- Upgrade test (or)
- DX fresh install
Expected Behavior
------------------
No error log related to guest-agent queries should appear in the sm log file and the sm should be able to go standby
Actual Behavior
----------------
Error logs related to guest-agent queries appears in the sm log file and the sm is not able to go standby
Reproducibility
---------------
Reproducible
System Configuration
--------------------
Founded in DX
Timestamp/Logs
--------------
2023-01-09T16:32:42.786 controller-1 sm: debug time[337.619] log<454> ERROR: sm[81038]: sm_service_action.c(72): Failed to open file (/usr/lib/ocf/resource.d/platform/guestAgent).
2023-01-09T16:32:42.786 controller-1 sm: debug time[337.619] log<455> ERROR: sm[81038]: sm_service_action.c(702): Service (guest-agent) plugin (/usr/lib/ocf/resource.d/platform/guestAgent) access failed, error=No such file or directory.
2023-01-09T16:32:42.786 controller-1 sm: debug time[337.619] log<456> ERROR: sm[81038]: sm_service_audit.c(374): Failed to run audit-enabled action for service (guest-agent), error=FAILED.
2023-01-09T16:32:42.786 controller-1 sm: debug time[337.619] log<457> ERROR: sm[81038]: sm_service_unknown_state.c(27): Failed to audit service (guest-agent), error=FAILED
2023-01-09T16:32:42.786 controller-1 sm: debug time[337.619] log<458> ERROR: sm[81038]: sm_service_fsm.c(204): Service (guest-agent) unable to enter state (unknown), error=FAILED.
2023-01-09T16:32:42.786 controller-1 sm: debug time[337.619] log<459> ERROR: sm[81038]: sm_service_fsm.c(661): Failed to enter state (unknown) service (guest-agent), error=FAILED.
2023-01-09T16:32:42.786 controller-1 sm: debug time[337.619] log<460> ERROR: sm[81038]: sm_service_initial_state.c(58): Failed to set service (guest-agent) state (unknown), error=FAILED.
2023-01-09T16:32:42.786 controller-1 sm: debug time[337.619] log<461> ERROR: sm[81038]: sm_service_fsm.c(855): Service (guest-agent) unable to handle event (audit) in state (initial), error=FAILED.
2023-01-09T16:32:42.786 controller-1 sm: debug time[337.619] log<462> ERROR: sm[81038]: sm_service_engine.c(440): Event (audit) not handled for service (guest-agent).
2023-01-09T16:32:43.300 controller-1 sm: debug time[338.133] log<463> ERROR: sm[81038]: sm_service_action.c(702): Service (guest-agent) plugin (/usr/lib/ocf/resource.d/platform/guestAgent) access failed, error=No such file or directory.
2023-01-09T16:32:43.300 controller-1 sm: debug time[338.134] log<464> ERROR: sm[81038]: sm_service_audit.c(374): Failed to run audit-enabled action for service (guest-agent), error=FAILED.
2023-01-09T16:32:43.300 controller-1 sm: debug time[338.134] log<465> ERROR: sm[81038]: sm_service_unknown_state.c(27): Failed to audit service (guest-agent), error=FAILED
2023-01-09T16:32:43.300 controller-1 sm: debug time[338.134] log<466> ERROR: sm[81038]: sm_service_fsm.c(204): Service (guest-agent) unable to enter state (unknown), error=FAILED.
2023-01-09T16:32:43.300 controller-1 sm: debug time[338.134] log<467> ERROR: sm[81038]: sm_service_fsm.c(661): Failed to enter state (unknown) service (guest-agent), error=FAILED.
2023-01-09T16:32:43.300 controller-1 sm: debug time[338.134] log<468> ERROR: sm[81038]: sm_service_initial_state.c(58): Failed to set service (guest-agent) state (unknown), error=FAILED.
2023-01-09T16:32:43.300 controller-1 sm: debug time[338.134] log<469> ERROR: sm[81038]: sm_service_fsm.c(855): Service (guest-agent) unable to handle event (audit) in state (initial), error=FAILED.
2023-01-09T16:32:43.300 controller-1 sm: debug time[338.134] log<470> ERROR: sm[81038]: sm_service_engine.c(440): Event (audit) not handled for service (guest-agent).
2023-01-09T16:32:43.813 controller-1 sm: debug time[338.646] log<471> ERROR: sm[81038]: sm_service_action.c(702): Service (guest-agent) plugin (/usr/lib/ocf/resource.d/platform/guestAgent) access failed, error=No such file or directory.
Test Activity
-------------
Developer Testing
Workaround
----------
N/A
Fix proposed to branch: master /review. opendev. org/c/starlingx /ha/+/870859
Review: https:/