Lines Matching +full:documentation +full:- +full:service
2 Documentation Verify Auto Restart policy for set of mission critical
16 ${LOG_SERVICE} xyz.openbmc_project.Logging.service
21 [Documentation] Kill active services and expect auto restart.
25 # systemctl -p Restart show xyz.openbmc_project.Logging.service | cat
28 ... Create List xyz.openbmc_project.Logging.service
29 ... xyz.openbmc_project.ObjectMapper.service
30 ... xyz.openbmc_project.State.BMC.service
31 ... xyz.openbmc_project.State.Chassis@0.service
32 ... xyz.openbmc_project.State.Host@0.service
33 FOR ${SERVICE} IN @{services}
34 Check Service Autorestart ${SERVICE}
38 Kill Services And Expect Service Restart
39 [Documentation] Kill the service and it must restart.
42 # Get the MainPID and service state.
43 ${MainPID}= Get Service Attribute MainPID ${LOG_SERVICE}
45 ... msg=Logging service not restarted.
47 ${ActiveState}= Get Service Attribute ActiveState ${LOG_SERVICE}
49 ... msg=Logging Service not in active state.
51 BMC Execute Command kill -9 ${MainPID}
52 Sleep 10s reason=Wait for service to restart.
54 ${MainPID}= Get Service Attribute MainPID ${LOG_SERVICE}
56 ... msg=Logging service not restarted.
58 ${ActiveState}= Get Service Attribute ActiveState ${LOG_SERVICE}
60 ... msg=Logging service not in active state.
62 Kill The List Of Services And Expect Killed Service Gets Restarted
63 [Documentation] Kill the given services and expect again services get restarted automatically.
67 # like romulus.py, witherspoon.py on openbmc-test-automation/data directory etc.
70 …# "BMC_SERVICES": ['xyz.openbmc_project.Logging.service', 'xyz.openbmc_project.ObjectMapper.servic…
71 # 'xyz.openbmc_project.State.BMC.service', 'xyz.openbmc_project.State.Chassis.service',
72 # 'xyz.openbmc_project.State.Host.service']
80 ${services}= Get Service Restart Policy Services ${OPENBMC_MODEL}
84 # From service list it will check service auto-restart policy
88 FOR ${service} IN @{service_list}
89 ${service_status}= Run Keyword And Return Status Check Service Autorestart ${service}
91 Append To List ${incorrect_auto_restart_policy_services} ${service}
93 Append To List ${auto_restart_policy_always_services} ${service}
100 Fail msg=All the given services have incorrect auto-restart policy.
103 …Run Keyword And Continue On Failure Fail msg=Listed services are having incorrect auto-restart p…
106 # This will get process id and check the service active state before killing the services.
107 # If service process id was 0 or service was not in active state then those services will get
112 FOR ${service} IN @{auto_restart_policy_always_services}
113 ${Old_MainPID}= Get Service Attribute MainPID ${service}
114 ${ActiveState}= Get Service Attribute ActiveState ${service}
118 Append To List ${service_not_started} ${service}
122 BMC Execute Command kill -9 ${Old_MainPID}
123 Sleep 10s reason=Wait for service to restart.
125 ${New_MainPID}= Get Service Attribute MainPID ${service}
127 ... msg=${service} service not restarted.
129 ... msg=Old process ID is mapped to ${service} service after service restart..
131 ${ActiveState}= Get Service Attribute ActiveState ${service}
133 ... msg=${service} service not in active state.
149 Check Service Autorestart
150 [Documentation] Check if given policy is "always".
152 # servicename Qualified service name
153 ${restart_policy}= Get Service Attribute Restart ${servicename}