Lines Matching full:dump

3 Documentation       Test BMC dump functionality of OpenBMC.
19 # Total size of the dump in kilo bytes
22 # Minimum space required for one bmc dump in kilo bytes
29 Verify Error Response For Already Deleted Dump Id
30 [Documentation] Delete non existing BMC dump and expect an error.
34 ${dump_id}= Create User Initiated BMC Dump Via Redfish
35 Wait Until Keyword Succeeds 15 sec 5 sec Redfish Delete BMC Dump ${dump_id}
36 Run Keyword And Expect Error ValueError: * Redfish Delete BMC Dump ${dump_id}
39 Verify User Initiated BMC Dump When Host Powered Off
40 [Documentation] Create user initiated BMC dump at host off state and
41 ... verify dump entry for it.
45 ${dump_id}= Create User Initiated BMC Dump Via Redfish
46 ${dump_entries}= Get BMC Dump Entries
51 Verify User Initiated BMC Dump Size
52 [Documentation] Verify user initiated BMC dump size is under 20 MB.
56 ${dump_id}= Create User Initiated BMC Dump Via Redfish
57 …${resp}= Redfish.Get Properties /redfish/v1/Managers/${MANAGER_ID}/LogServices/Dump/Entries/${du…
62 # "AdditionalDataURI": "/redfish/v1/Managers/${MANAGER_ID}/LogServices/Dump/attachment/9",
67 # "Name": "BMC Dump Entry"
69 # Max size for dump is 20 MB = 20x1024x1024 Byte.
73 Verify Internal Failure Initiated BMC Dump Size
74 [Documentation] Verify that the internal failure initiated BMC dump size is under 20 MB.
83 # Wait for BMC dump to get generated after injecting internal failure.
84 Wait Until Keyword Succeeds 2 min 10 sec Is BMC Dump Available
86 # Verify that only one BMC dump is generated after injecting error.
87 ${dump_entries}= Get BMC Dump Entries
91 # Max size for dump is 20 MB = 20x1024x1024 Byte.
93 ... /redfish/v1/Managers/${MANAGER_ID}/LogServices/Dump/Entries/${dump_entries[0]}
97 Verify Multiple BMC Dump Creation
105 Create User Initiated BMC Dump Via Redfish
109 Verify BMC Dump Default Location In BMC
110 [Documentation] Verify that BMC dump is created in its default location of BMC.
115 ${dump_id}= Create User Initiated BMC Dump Via Redfish
122 Verify User Initiated BMC Dump At Host Booting
123 [Documentation] Create and verify user initiated BMC dump during Host is powwering on
134 # Create user initiated BMC dump and verify only one dump is available.
135 Create User Initiated BMC Dump Via Redfish
136 ${dump_entries}= Get BMC Dump Entries
140 Verify Dump Persistency On Dump Service Restart
141 [Documentation] Create user dump, restart dump manager service and verify dump
146 Create User Initiated BMC Dump Via Redfish
147 …efore}= redfish_utils.get_member_list /redfish/v1/Managers/${MANAGER_ID}/LogServices/Dump/Entries
149 # Restart dump service.
150 BMC Execute Command systemctl restart xyz.openbmc_project.Dump.Manager.service
151 Sleep 10s reason=Wait for BMC dump service to restart properly
153 …after}= redfish_utils.get_member_list /redfish/v1/Managers/${MANAGER_ID}/LogServices/Dump/Entries
157 Verify Dump Persistency On BMC Reset
158 [Documentation] Create user dump, reset BMC and verify dump persistency.
161 # Power off host so that dump is not offloaded to host OS.
164 Create User Initiated BMC Dump Via Redfish
165 …efore}= redfish_utils.get_member_list /redfish/v1/Managers/${MANAGER_ID}/LogServices/Dump/Entries
170 …after}= redfish_utils.get_member_list /redfish/v1/Managers/${MANAGER_ID}/LogServices/Dump/Entries
174 Delete User Initiated BMC Dump And Verify
175 [Documentation] Delete user initiated BMC dump and verify.
179 ${dump_id}= Create User Initiated BMC Dump Via Redfish
180 Wait Until Keyword Succeeds 15 sec 5 sec Redfish Delete BMC Dump ${dump_id}
182 ${dump_entries}= Get BMC Dump Entries
190 # Power off host so that dump is not offloaded to host OS.
193 # Create some BMC dump.
194 Create User Initiated BMC Dump Via Redfish
195 Create User Initiated BMC Dump Via Redfish
198 ${dump_entries}= Get BMC Dump Entries
207 ${dump_id1}= Create User Initiated BMC Dump Via Redfish
208 ${dump_id2}= Create User Initiated BMC Dump Via Redfish
210 ${dump_entries}= Get BMC Dump Entries
221 ${dump_id1}= Create User Initiated BMC Dump Via Redfish
222 ${dump_id2}= Create User Initiated BMC Dump Via Redfish
224 Wait Until Keyword Succeeds 15 sec 5 sec Redfish Delete BMC Dump ${dump_id1}
226 ${dump_entries}= Get BMC Dump Entries
231 Create And Delete User Initiated BMC Dump Multiple Times
232 [Documentation] Create and delete user initiated BMC dump multiple times.
237 ${dump_id}= Create User Initiated BMC Dump Via Redfish
238 Wait Until Keyword Succeeds 15 sec 5 sec Redfish Delete BMC Dump ${dump_id}
242 Verify Maximum BMC Dump Creation
243 [Documentation] Create maximum BMC dump and verify error when dump runs out of space.
247 # Maximum allowed space for dump is 1024 KB. BMC typically hold 8-14 dumps
248 # before running out of this dump space. So trying to create dumps in 20
250 # User can key in the Maximum allowed space for bmc dump and how many iteration.
252 Create User Initiated BMC Dump Via Redfish
257 # Check error while creating dump when dump size is full.
259 …Redfish.Post /redfish/v1/Managers/${MANAGER_ID}/LogServices/Dump/Actions/LogService.CollectDiagno…
263 Verify BMC Core Dump When Host Powered Off
264 [Documentation] Verify BMC core dump after application crash at host powered off state.
271 Trigger Core Dump
273 # Verify that BMC dump is available.
274 Wait Until Keyword Succeeds 2 min 10 sec Is BMC Dump Available
277 Verify Core Dump Size
278 [Documentation] Verify BMC core dump size is under 20 MB.
285 Trigger Core Dump
287 # Verify that BMC dump is available.
288 Wait Until Keyword Succeeds 2 min 10 sec Is BMC Dump Available
289 ${dump_entries}= Get BMC Dump Entries
291 ... /redfish/v1/Managers/${MANAGER_ID}/LogServices/Dump/Entries/${dump_entries[0]}
293 # Max size for dump is 20 MB = 20x1024x1024 Byte.
297 Verify Error While Initiating BMC Dump During Dumping State
298 [Documentation] Verify error while initiating BMC dump during dumping state.
302 ${task_id}= Create User Initiated BMC Dump Via Redfish ${1}
304 # Check error while initiating BMC dump while dump in progress.
307 … ... /redfish/v1/Managers/${MANAGER_ID}/LogServices/Dump/Actions/LogService.CollectDiagnosticData
310 # Wait for above initiated dump to complete. Otherwise, on going dump would impact next test.
314 Verify BMC Dump Create Errors While Another BMC Dump In Progress
315 [Documentation] Verify BMC dump creation error until older BMC dump completion.
320 # Initiate a BMC dump that returns without completion.
321 ${task_id}= Create User Initiated BMC Dump Via Redfish ${1}
326 … ... /redfish/v1/Managers/${MANAGER_ID}/LogServices/Dump/Actions/LogService.CollectDiagnosticData
330 # Wait for above initiated dump to complete. Otherwise, on going dump would impact next test.
334 Verify Core Dump After Terminating Dump Manager Service
335 [Documentation] Verify initiate core dumps and kill Phosphor-dump-manager.
343 # Find the pid of the phosphor-dump-manage process and kill it.
344 ${cmd_buf}= Catenate kill -s SEGV $(pgrep phosphor-dump-manager)
348 # Verify that BMC dump is available.
349 Wait Until Keyword Succeeds 10 min 10 sec Is BMC Dump Available
351 # Verifying that there is only one dump.
352 ${dump_entries}= Get BMC Dump Entries
357 Verify User Initiated BMC Dump Type
358 [Documentation] Download user initiate BMC dump and validates its type.
362 ${dump_id}= Create User Initiated BMC Dump Via Redfish
364 # Download BMC dump and verify its size.
365 ${resp}= Redfish.Get /redfish/v1/Managers/${MANAGER_ID}/LogServices/Dump/Entries/${dump_id}
367 # Download BMC dump and verify its size.
368 ${tarfile}= Download BMC Dump ${dump_id}
370 # Extract dump and verify type of dump from summary.log content:
375 ${extracted_dump_folder}= Extract BMC Dump BMC_dump.tar.gz ${redfish_dump_creation_timestamp}
379 # Clean extracted dump files.
384 Verify Retrieve Core Initiated BMC Dump
385 [Documentation] Verify retrieval of core initiated BMC dump.
392 Trigger Core Dump
394 # Verify that BMC dump is available.
395 Wait Until Keyword Succeeds 2 min 10 sec Is BMC Dump Available
397 ${dump_entries}= Get BMC Dump Entries
398 # Download BMC dump and verify its size.
399 Download BMC Dump ${dump_entries[0]}
402 Verify Retrieve User Initiated BMC Dump
403 [Documentation] Verify retrieval of user initiated BMC dump.
407 ${dump_id}= Create User Initiated BMC Dump Via Redfish
409 # Download BMC dump.
410 Download BMC Dump ${dump_id}
413 Verify Core Initiated BMC Dump Type
414 [Documentation] Download core initiate BMC dump and validates its type.
421 Trigger Core Dump
423 # Verify that BMC dump is available.
424 Wait Until Keyword Succeeds 2 min 10 sec Is BMC Dump Available
426 ${dump_entries}= Get BMC Dump Entries
428 # Find the timestamp of BMC dump.
429 …${resp}= Redfish.Get /redfish/v1/Managers/${MANAGER_ID}/LogServices/Dump/Entries/${dump_entries[…
432 # Download BMC dump and verify its size.
433 ${tarfile}= Download BMC Dump ${dump_entries[0]}
435 # Extract dump and verify type of dump from summary.log content:
441 ${extracted_dump_folder}= Extract BMC Dump ${tarfile} ${redfish_dump_creation_timestamp}
445 # Clean extracted dump files.
450 Verify Core Watchdog Initiated BMC Dump
451 [Documentation] Verify core watchdog timeout initiated BMC dump.
460 # Wait for BMC dump to get generated after injecting watchdog timeout.
461 Wait Until Keyword Succeeds 4 min 20 sec Is BMC Dump Available
463 # Verify that only one BMC dump is available.
464 ${dump_entry_list}= Get BMC Dump Entries
471 Download BMC Dump
472 [Documentation] Download BMC dump and verify its size.
476 # dump_id An integer value that identifies a particular dump (e.g. 1, 3).
478 ${resp}= Redfish.Get /redfish/v1/Managers/${MANAGER_ID}/LogServices/Dump/Entries/${dump_id}
484 …${ret}= GET On Session openbmc /redfish/v1/Managers/${MANAGER_ID}/LogServices/Dump/Entries/${du…
494 Extract BMC Dump
495 [Documentation] Extract BMC dump from the tar file and returns the name of
500 # filename name of BMC dump tar file.
501 # bmc_dump_timestamp timestamp of generated BMC dump.
513 # Find the extracted dump folder identified with BMCDUMP as prefix and
514 # timestamp of dump generation where timestamp format is : 2023-09-27T08:30:17.000000+00:00.
524 Get BMC Dump Entries
525 [Documentation] Return BMC dump ids list.
527 …_uris}= redfish_utils.get_member_list /redfish/v1/Managers/${MANAGER_ID}/LogServices/Dump/Entries
538 Is BMC Dump Available
539 [Documentation] Verify if BMC dump is available.
541 ${dump_entries}= Get BMC Dump Entries
543 # Verifying that BMC dump is available.