[EXTERNAL] RE: Host related testcases in openbmc-test-automation

Jayashree D jayashree-d at hcl.com
Wed Aug 12 16:12:20 AEST 2020


Thanks George for your inputs,

The host is accessible from test server via SSH, since we need to communicate host from BMC to confirm obmc-console-client is working, we need interactive session, maybe SSHLibrary will be helpful to do the communication.

Regards,
Jayashree


From: George Keishing <gkeishin at in.ibm.com>
Sent: Monday, August 10, 2020 10:15 PM
To: Jayashree D <jayashree-d at hcl.com>
Cc: openbmc at lists.ozlabs.org; openbmc <openbmc-bounces+gkeishin=in.ibm.com at lists.ozlabs.org>
Subject: Re: [EXTERNAL] RE: Host related testcases in openbmc-test-automation

[CAUTION: This Email is from outside the Organization. Unless you trust the sender, Don’t click links or open attachments as it may be a Phishing email, which can steal your Information and compromise your Computer.]

Hi Jayashree,

The current the test infrastructure is over SSH to Host / remote server to login to OS partition, execute commands, only if the partition is accessible from the test server where the test code is executed.

Reading from your note, it sounded like the OS partition is not configured over network and can't be access from test server but through BMC only? is that correct assumption ?

To connect a session to BMC SSH and then invoke obmc-console-client and then try to login on a spawn session looks like job for interactive shell, however, this may not really work well.

Having said that, you can look at this http://robotframework.org/SSHLibrary/SSHLibrary.html#Write<https://apc01.safelinks.protection.outlook.com/?url=http%3A%2F%2Frobotframework.org%2FSSHLibrary%2FSSHLibrary.html%23Write&data=02%7C01%7Cjayashree-d%40hcl.com%7C2a61d5135f5d42049d5108d83d4cceb1%7C189de737c93a4f5a8b686f4ca9941912%7C0%7C0%7C637326747394411535&sdata=gxQyvKUXtQMwDNhwxpeNXW9%2Fa82IZBkdHhhEWGA1S04%3D&reserved=0> to do interactive shell http://robotframework.org/SSHLibrary/SSHLibrary.html#Interactive%20shells<https://apc01.safelinks.protection.outlook.com/?url=http%3A%2F%2Frobotframework.org%2FSSHLibrary%2FSSHLibrary.html%23Interactive%2520shells&data=02%7C01%7Cjayashree-d%40hcl.com%7C2a61d5135f5d42049d5108d83d4cceb1%7C189de737c93a4f5a8b686f4ca9941912%7C0%7C0%7C637326747394421530&sdata=rZYP%2FG6kgckPyMaVl0s60pRCQhsPGl%2B3gwC0CJzeli4%3D&reserved=0>

We got a bit older code over telnet interactive shell https://github.com/openbmc/openbmc-test-automation/blob/master/lib/serial_connection/serial_console_client.robot#L12<https://apc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fopenbmc%2Fopenbmc-test-automation%2Fblob%2Fmaster%2Flib%2Fserial_connection%2Fserial_console_client.robot%23L12&data=02%7C01%7Cjayashree-d%40hcl.com%7C2a61d5135f5d42049d5108d83d4cceb1%7C189de737c93a4f5a8b686f4ca9941912%7C0%7C0%7C637326747394421530&sdata=s974%2BPmIVCYj%2FmNSoF8D7LC7W3VswEpOqGS2UtJ4NJE%3D&reserved=0> see if that example helps as well.



On another note, assuming, you want to make sure the OS is booted good and need a check point or look up reference data, probably, you can check /var/log/obmc-console.log from the test code and look for the OS console message.

Nevertheless, if you don't provide the host credential/ or off the network, the BMC + host state would certainly give confidence that the Host OS partition start booting, which the test is doing so when powered on via test code by checking the states bellow.

CurrentBMCState : xyz.openbmc_project.State.BMC.BMCState.Ready
CurrentPowerState : xyz.openbmc_project.State.Chassis.PowerState.On
CurrentHostState : xyz.openbmc_project.State.Host.HostState.Running
BootProgress : xyz.openbmc_project.State.Boot.Progress.ProgressStages.OSStart
OperatingSystemState: xyz.openbmc_project.State.OperatingSystem.Status.OSStatus.BootComplete

Thanks and Regards,
George Keishing



[Inactive hide details for Jayashree D ---10-08-2020 10:51:06 AM---Hi George, In obmc-console feature, after login to BMC we wil]Jayashree D ---10-08-2020 10:51:06 AM---Hi George, In obmc-console feature, after login to BMC we will run “obmc-console-client” and will gi

From: Jayashree D <jayashree-d at hcl.com<mailto:jayashree-d at hcl.com>>
To: George Keishing <gkeishin at in.ibm.com<mailto:gkeishin at in.ibm.com>>
Cc: "openbmc at lists.ozlabs.org<mailto:openbmc at lists.ozlabs.org>" <openbmc at lists.ozlabs.org<mailto:openbmc at lists.ozlabs.org>>
Date: 10-08-2020 10:51 AM
Subject: [EXTERNAL] RE: Host related testcases in openbmc-test-automation
Sent by: "openbmc" <openbmc-bounces+gkeishin=in.ibm.com at lists.ozlabs.org<mailto:openbmc-bounces+gkeishin=in.ibm.com at lists.ozlabs.org>>

________________________________



Hi George,

In obmc-console feature, after login to BMC we will run “obmc-console-client” and will give “ENTER” to connect the host by giving username and password.

root at tiogapass:~# obmc-console-client # BMC Execute Command
# ENTER
CentOS Linux 8 (Core)
Kernel 5.2.9-91_fbk10_3371_ge007350ae172 on an x86_64

localhost login: # Host Username
Password: # Host Password

[root at localhost ~]#


We can run obmc-console-client using BMC Execute Command, then ENTER should be given and OS Username and password.
Is there any way to run the above commands “ENTER” in automation scripts after obmc-console-client?

Regards,
Jayashree

From: Jayashree D
Sent: Thursday, August 6, 2020 8:20 PM
To: George Keishing <gkeishin at in.ibm.com<mailto:gkeishin at in.ibm.com>>
Cc: openbmc at lists.ozlabs.org<mailto:openbmc at lists.ozlabs.org>
Subject: RE: Host related testcases in openbmc-test-automation

Thanks George, I will look into this keywords.

From: George Keishing <gkeishin at in.ibm.com<mailto:gkeishin at in.ibm.com>>
Sent: Thursday, August 6, 2020 6:12 PM
To: Jayashree D <jayashree-d at hcl.com<mailto:jayashree-d at hcl.com>>
Cc: openbmc at lists.ozlabs.org<mailto:openbmc at lists.ozlabs.org>
Subject: Re: Host related testcases in openbmc-test-automation

[CAUTION: This Email is from outside the Organization. Unless you trust the sender, Don’t click links or open attachments as it may be a Phishing email, which can steal your Information and compromise your Computer.]

Jayashree,

See if this info helps to get you started what you are looking for.

1. OBMC-CONSOLE - To connect the host via BMC, we are using obmc-console-client to login the host and check the host conections.

Most of the test code uses the login BMC/host, check connect via REST/SSH/Ping to do the check on connection

You can look at this keyword used:
Example:

-login to BMC and execute : BMC Execute Command
https://github.com/openbmc/openbmc-test-automation/blob/master/lib/bmc_ssh_utils.py#L12<https://apc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Furldefense.proofpoint.com%2Fv2%2Furl%3Fu%3Dhttps-3A__apc01.safelinks.protection.outlook.com_-3Furl-3Dhttps-253A-252F-252Fgithub.com-252Fopenbmc-252Fopenbmc-2Dtest-2Dautomation-252Fblob-252Fmaster-252Flib-252Fbmc-5Fssh-5Futils.py-2523L12-26data-3D02-257C01-257Cjayashree-2Dd-2540hcl.com-257C8553afa8ad3d4c09cdf808d83a062596-257C189de737c93a4f5a8b686f4ca9941912-257C0-257C0-257C637323145366004707-26sdata-3DFWn1U2v3YL44mE4-252B-252FLQJ58-252BqBSn57YA9qD-252FuZku2Ju4-253D-26reserved-3D0%26d%3DDwMGaQ%26c%3Djf_iaSHvJObTbx-siA1ZOg%26r%3DhHlxml_LX5HIffRsSFs-k3DrxQDKe6i0A3XGNW7rlIw%26m%3DYcoChPUQFfWImdbl3uyPXF-qoErHN5aF013OCxTDZ_A%26s%3DBuyo-uV2qzkCTAE4AABZtGARDr1UV0K8PZ5HxRg0YEY%26e%3D&data=02%7C01%7Cjayashree-d%40hcl.com%7C2a61d5135f5d42049d5108d83d4cceb1%7C189de737c93a4f5a8b686f4ca9941912%7C0%7C0%7C637326747394431532&sdata=oYisywTL%2B3HtGw2v9cxlCVNXbKwQ9Gns%2F0koDsNyuo0%3D&reserved=0>
https://github.com/openbmc/openbmc-test-automation/blob/master/redfish/extended/test_basic_ci.robot#L74<https://apc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Furldefense.proofpoint.com%2Fv2%2Furl%3Fu%3Dhttps-3A__apc01.safelinks.protection.outlook.com_-3Furl-3Dhttps-253A-252F-252Fgithub.com-252Fopenbmc-252Fopenbmc-2Dtest-2Dautomation-252Fblob-252Fmaster-252Fredfish-252Fextended-252Ftest-5Fbasic-5Fci.robot-2523L74-26data-3D02-257C01-257Cjayashree-2Dd-2540hcl.com-257C8553afa8ad3d4c09cdf808d83a062596-257C189de737c93a4f5a8b686f4ca9941912-257C0-257C0-257C637323145366004707-26sdata-3DIQhFENJiIkzsS3lEitdpBX6eBInNIUCMd9sO408AF8c-253D-26reserved-3D0%26d%3DDwMGaQ%26c%3Djf_iaSHvJObTbx-siA1ZOg%26r%3DhHlxml_LX5HIffRsSFs-k3DrxQDKe6i0A3XGNW7rlIw%26m%3DYcoChPUQFfWImdbl3uyPXF-qoErHN5aF013OCxTDZ_A%26s%3Dc8Sc93H3cNNHqat9WNjskezjgDpU577n76hFGlidapU%26e%3D&data=02%7C01%7Cjayashree-d%40hcl.com%7C2a61d5135f5d42049d5108d83d4cceb1%7C189de737c93a4f5a8b686f4ca9941912%7C0%7C0%7C637326747394431532&sdata=d1zPfciQNYBf2PfP4WKxWDhYvKWJdvTXS7hrFypPMOc%3D&reserved=0>
https://github.com/openbmc/openbmc-test-automation/blob/master/redfish/extended/test_basic_ci.robot#L96<https://apc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Furldefense.proofpoint.com%2Fv2%2Furl%3Fu%3Dhttps-3A__apc01.safelinks.protection.outlook.com_-3Furl-3Dhttps-253A-252F-252Fgithub.com-252Fopenbmc-252Fopenbmc-2Dtest-2Dautomation-252Fblob-252Fmaster-252Fredfish-252Fextended-252Ftest-5Fbasic-5Fci.robot-2523L96-26data-3D02-257C01-257Cjayashree-2Dd-2540hcl.com-257C8553afa8ad3d4c09cdf808d83a062596-257C189de737c93a4f5a8b686f4ca9941912-257C0-257C0-257C637323145366014703-26sdata-3DysP5zMeVa7UODKItQ30fDFFu9hjqh8a7WDxjuCc-252Fu1I-253D-26reserved-3D0%26d%3DDwMGaQ%26c%3Djf_iaSHvJObTbx-siA1ZOg%26r%3DhHlxml_LX5HIffRsSFs-k3DrxQDKe6i0A3XGNW7rlIw%26m%3DYcoChPUQFfWImdbl3uyPXF-qoErHN5aF013OCxTDZ_A%26s%3DJfnhTLGK9pp8HJrIqllNjhvBLpAqct34zfVzvFxLRC8%26e%3D&data=02%7C01%7Cjayashree-d%40hcl.com%7C2a61d5135f5d42049d5108d83d4cceb1%7C189de737c93a4f5a8b686f4ca9941912%7C0%7C0%7C637326747394441521&sdata=LjeWgg9dfSPQ%2FchlT2Mzqjx3UjqB%2BhLMP3BKRBc1wxY%3D&reserved=0>
https://github.com/openbmc/openbmc-test-automation/blob/master/redfish/managers/test_certificate.robot#L413<https://apc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Furldefense.proofpoint.com%2Fv2%2Furl%3Fu%3Dhttps-3A__apc01.safelinks.protection.outlook.com_-3Furl-3Dhttps-253A-252F-252Fgithub.com-252Fopenbmc-252Fopenbmc-2Dtest-2Dautomation-252Fblob-252Fmaster-252Fredfish-252Fmanagers-252Ftest-5Fcertificate.robot-2523L413-26data-3D02-257C01-257Cjayashree-2Dd-2540hcl.com-257C8553afa8ad3d4c09cdf808d83a062596-257C189de737c93a4f5a8b686f4ca9941912-257C0-257C0-257C637323145366014703-26sdata-3DM4kpR-252BYUSOhs8v-252Fw8I7aHeR3dvgohKJbLwRLAh9m6e4-253D-26reserved-3D0%26d%3DDwMGaQ%26c%3Djf_iaSHvJObTbx-siA1ZOg%26r%3DhHlxml_LX5HIffRsSFs-k3DrxQDKe6i0A3XGNW7rlIw%26m%3DYcoChPUQFfWImdbl3uyPXF-qoErHN5aF013OCxTDZ_A%26s%3DDTigoeO7w3j1CpoUIwH2PihZ8I38AS8oTkGWyIF5AHw%26e%3D&data=02%7C01%7Cjayashree-d%40hcl.com%7C2a61d5135f5d42049d5108d83d4cceb1%7C189de737c93a4f5a8b686f4ca9941912%7C0%7C0%7C637326747394441521&sdata=zI%2BcEu14NjLFa8KopWEvzPEoeHfHCNPfAMO%2BzL8mSjk%3D&reserved=0>
etc...

or simply use something like this:
SSHLibrary.Open connection ${bmc_ip}
SSHLibrary.Login ${openbmc_username} ${openbmc_password}

-login to Host and execute: Login To OS Host / OS Execute Command
https://github.com/openbmc/openbmc-test-automation/blob/master/syslib/utils_os.robot#L38<https://apc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Furldefense.proofpoint.com%2Fv2%2Furl%3Fu%3Dhttps-3A__apc01.safelinks.protection.outlook.com_-3Furl-3Dhttps-253A-252F-252Fgithub.com-252Fopenbmc-252Fopenbmc-2Dtest-2Dautomation-252Fblob-252Fmaster-252Fsyslib-252Futils-5Fos.robot-2523L38-26data-3D02-257C01-257Cjayashree-2Dd-2540hcl.com-257C8553afa8ad3d4c09cdf808d83a062596-257C189de737c93a4f5a8b686f4ca9941912-257C0-257C0-257C637323145366024696-26sdata-3DhHShdQPoOkLRCt7yKaI5gR0qPXuV-252FNBXJg4qcIwExPE-253D-26reserved-3D0%26d%3DDwMGaQ%26c%3Djf_iaSHvJObTbx-siA1ZOg%26r%3DhHlxml_LX5HIffRsSFs-k3DrxQDKe6i0A3XGNW7rlIw%26m%3DYcoChPUQFfWImdbl3uyPXF-qoErHN5aF013OCxTDZ_A%26s%3DLIlbKvM1Gzo1YyOcNZ8vsI3H1CdIaQBJ3kwGuwLgTMw%26e%3D&data=02%7C01%7Cjayashree-d%40hcl.com%7C2a61d5135f5d42049d5108d83d4cceb1%7C189de737c93a4f5a8b686f4ca9941912%7C0%7C0%7C637326747394451513&sdata=4gdizdSbfISwXbfKYz3%2BcTINorm%2FfN6CkJibJ3gTJ%2B8%3D&reserved=0>
https://github.com/openbmc/openbmc-test-automation/blob/master/lib/bmc_ssh_utils.py#L70<https://apc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Furldefense.proofpoint.com%2Fv2%2Furl%3Fu%3Dhttps-3A__apc01.safelinks.protection.outlook.com_-3Furl-3Dhttps-253A-252F-252Fgithub.com-252Fopenbmc-252Fopenbmc-2Dtest-2Dautomation-252Fblob-252Fmaster-252Flib-252Fbmc-5Fssh-5Futils.py-2523L70-26data-3D02-257C01-257Cjayashree-2Dd-2540hcl.com-257C8553afa8ad3d4c09cdf808d83a062596-257C189de737c93a4f5a8b686f4ca9941912-257C0-257C0-257C637323145366024696-26sdata-3D7ICm9BqdcdW38FuPfg6VbIqo5pmQaab44OsvsEmwokk-253D-26reserved-3D0%26d%3DDwMGaQ%26c%3Djf_iaSHvJObTbx-siA1ZOg%26r%3DhHlxml_LX5HIffRsSFs-k3DrxQDKe6i0A3XGNW7rlIw%26m%3DYcoChPUQFfWImdbl3uyPXF-qoErHN5aF013OCxTDZ_A%26s%3DhTE-sYPLFrwviMxvP1Z5_WvyC0Rp6d7Ovw5NndvVHRU%26e%3D&data=02%7C01%7Cjayashree-d%40hcl.com%7C2a61d5135f5d42049d5108d83d4cceb1%7C189de737c93a4f5a8b686f4ca9941912%7C0%7C0%7C637326747394451513&sdata=17ddDV98FYjHmQ%2BD6pdscxHibdiOPsSvzqmvAPW5hAk%3D&reserved=0>
etc.

- obmc-console-client: Start SOL Console Logging / Stop SOL Console Logging
https://github.com/openbmc/openbmc-test-automation/blob/master/lib/common_utils.robot#L386<https://apc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Furldefense.proofpoint.com%2Fv2%2Furl%3Fu%3Dhttps-3A__apc01.safelinks.protection.outlook.com_-3Furl-3Dhttps-253A-252F-252Fgithub.com-252Fopenbmc-252Fopenbmc-2Dtest-2Dautomation-252Fblob-252Fmaster-252Flib-252Fcommon-5Futils.robot-2523L386-26data-3D02-257C01-257Cjayashree-2Dd-2540hcl.com-257C8553afa8ad3d4c09cdf808d83a062596-257C189de737c93a4f5a8b686f4ca9941912-257C0-257C0-257C637323145366024696-26sdata-3DeI1kuljBHLWVQmXHzCTbX7GWLHeLCPzurllrjPUP6E4-253D-26reserved-3D0%26d%3DDwMGaQ%26c%3Djf_iaSHvJObTbx-siA1ZOg%26r%3DhHlxml_LX5HIffRsSFs-k3DrxQDKe6i0A3XGNW7rlIw%26m%3DYcoChPUQFfWImdbl3uyPXF-qoErHN5aF013OCxTDZ_A%26s%3DrYhda1zcisBGnohu1y0Rge3tcb1XeSTgqgfquT0DoKk%26e%3D&data=02%7C01%7Cjayashree-d%40hcl.com%7C2a61d5135f5d42049d5108d83d4cceb1%7C189de737c93a4f5a8b686f4ca9941912%7C0%7C0%7C637326747394461507&sdata=AVeGOSfiRrlwC%2Fz8M42xDXdQODT64IEXnXj3tumlVxQ%3D&reserved=0>
https://github.com/openbmc/openbmc-test-automation/blob/master/lib/common_utils.robot#L342<https://apc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Furldefense.proofpoint.com%2Fv2%2Furl%3Fu%3Dhttps-3A__apc01.safelinks.protection.outlook.com_-3Furl-3Dhttps-253A-252F-252Fgithub.com-252Fopenbmc-252Fopenbmc-2Dtest-2Dautomation-252Fblob-252Fmaster-252Flib-252Fcommon-5Futils.robot-2523L342-26data-3D02-257C01-257Cjayashree-2Dd-2540hcl.com-257C8553afa8ad3d4c09cdf808d83a062596-257C189de737c93a4f5a8b686f4ca9941912-257C0-257C0-257C637323145366034691-26sdata-3DYFLmdwiIpMj-252FxUEHez33Hl2ZF0d8dMZPer0W9CWmEjE-253D-26reserved-3D0%26d%3DDwMGaQ%26c%3Djf_iaSHvJObTbx-siA1ZOg%26r%3DhHlxml_LX5HIffRsSFs-k3DrxQDKe6i0A3XGNW7rlIw%26m%3DYcoChPUQFfWImdbl3uyPXF-qoErHN5aF013OCxTDZ_A%26s%3D0n141jmOPkWgXPU--JKBTYLKXk3Qr4MzEqgHJYOosuM%26e%3D&data=02%7C01%7Cjayashree-d%40hcl.com%7C2a61d5135f5d42049d5108d83d4cceb1%7C189de737c93a4f5a8b686f4ca9941912%7C0%7C0%7C637326747394461507&sdata=Vi86IOZ6oNBv4%2F6%2FTVHwd%2FB7h1FSnwAGqw5c7NArzaw%3D&reserved=0>

you can grep/serach around tests / redfish dir, you ll see where and how they are used in the test suite


The test boot keywords to power on /off/ reboot etc are here, https://github.com/openbmc/openbmc-test-automation/blob/master/lib/boot_utils.robot<https://apc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Furldefense.proofpoint.com%2Fv2%2Furl%3Fu%3Dhttps-3A__apc01.safelinks.protection.outlook.com_-3Furl-3Dhttps-253A-252F-252Fgithub.com-252Fopenbmc-252Fopenbmc-2Dtest-2Dautomation-252Fblob-252Fmaster-252Flib-252Fboot-5Futils.robot-26data-3D02-257C01-257Cjayashree-2Dd-2540hcl.com-257C8553afa8ad3d4c09cdf808d83a062596-257C189de737c93a4f5a8b686f4ca9941912-257C0-257C0-257C637323145366034691-26sdata-3DYcAA-252BPQUs7DsjSrpaQBhJVKz07LfVQyoDp3ml2Nx58A-253D-26reserved-3D0%26d%3DDwMGaQ%26c%3Djf_iaSHvJObTbx-siA1ZOg%26r%3DhHlxml_LX5HIffRsSFs-k3DrxQDKe6i0A3XGNW7rlIw%26m%3DYcoChPUQFfWImdbl3uyPXF-qoErHN5aF013OCxTDZ_A%26s%3DJ_QG0q5N10QjlZUn0V-t3kFRbbjvieJ_HTz02CpZ-XE%26e%3D&data=02%7C01%7Cjayashree-d%40hcl.com%7C2a61d5135f5d42049d5108d83d4cceb1%7C189de737c93a4f5a8b686f4ca9941912%7C0%7C0%7C637326747394471502&sdata=%2FIp4kE8I6Jo%2BgIeu7FEY9yicUuoWrTfs4nmJF6HPOHs%3D&reserved=0>
you'll notice those are used in test to drive the boot and the best part is if you key in these test parameter from robot command line https://github.com/openbmc/openbmc-test-automation/blob/master/lib/resource.robot#L45<https://apc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Furldefense.proofpoint.com%2Fv2%2Furl%3Fu%3Dhttps-3A__apc01.safelinks.protection.outlook.com_-3Furl-3Dhttps-253A-252F-252Fgithub.com-252Fopenbmc-252Fopenbmc-2Dtest-2Dautomation-252Fblob-252Fmaster-252Flib-252Fresource.robot-2523L45-26data-3D02-257C01-257Cjayashree-2Dd-2540hcl.com-257C8553afa8ad3d4c09cdf808d83a062596-257C189de737c93a4f5a8b686f4ca9941912-257C0-257C0-257C637323145366044688-26sdata-3DkILoPxnQZpSGSdGrS339EOWMO8dnZYkw-252B9VWWlF9Kuk-253D-26reserved-3D0%26d%3DDwMGaQ%26c%3Djf_iaSHvJObTbx-siA1ZOg%26r%3DhHlxml_LX5HIffRsSFs-k3DrxQDKe6i0A3XGNW7rlIw%26m%3DYcoChPUQFfWImdbl3uyPXF-qoErHN5aF013OCxTDZ_A%26s%3DLtEVnjwavcFDlYG0Ugi8nOY14LcslLcN5wi7vtHBLTg%26e%3D&data=02%7C01%7Cjayashree-d%40hcl.com%7C2a61d5135f5d42049d5108d83d4cceb1%7C189de737c93a4f5a8b686f4ca9941912%7C0%7C0%7C637326747394471502&sdata=fE%2BujMo6UBDehK8ursz4PBvRQzMHk23sPd0eotbu3rM%3D&reserved=0>

it will ensure, to login and check if the Host is up and running as part of the boot keyword



2. HOST LOGGER - To handle and store host's console output data, such as boot logs.

You can use the above SOL keyword to collect the data for Host boot logs
You can as well use IPMI SOL capabilities
https://github.com/openbmc/openbmc-test-automation/blob/master/lib/ipmi_client.robot#L188<https://apc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Furldefense.proofpoint.com%2Fv2%2Furl%3Fu%3Dhttps-3A__apc01.safelinks.protection.outlook.com_-3Furl-3Dhttps-253A-252F-252Fgithub.com-252Fopenbmc-252Fopenbmc-2Dtest-2Dautomation-252Fblob-252Fmaster-252Flib-252Fipmi-5Fclient.robot-2523L188-26data-3D02-257C01-257Cjayashree-2Dd-2540hcl.com-257C8553afa8ad3d4c09cdf808d83a062596-257C189de737c93a4f5a8b686f4ca9941912-257C0-257C0-257C637323145366044688-26sdata-3D2H7q16WAl5rlqSqS4gkabyYtf90hMhIsEyGLdT9gdv0-253D-26reserved-3D0%26d%3DDwMGaQ%26c%3Djf_iaSHvJObTbx-siA1ZOg%26r%3DhHlxml_LX5HIffRsSFs-k3DrxQDKe6i0A3XGNW7rlIw%26m%3DYcoChPUQFfWImdbl3uyPXF-qoErHN5aF013OCxTDZ_A%26s%3DGJhP6S-gIJd9T9OHhE8fMM6j6J340VlcWp05LtHXfjI%26e%3D&data=02%7C01%7Cjayashree-d%40hcl.com%7C2a61d5135f5d42049d5108d83d4cceb1%7C189de737c93a4f5a8b686f4ca9941912%7C0%7C0%7C637326747394481496&sdata=RH0R7p7tFgMpDFS8AwgCiCRcRotSWKdacX%2Fx9sDHhv0%3D&reserved=0>
https://github.com/openbmc/openbmc-test-automation/blob/master/lib/ipmi_client.robot#L204<https://apc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Furldefense.proofpoint.com%2Fv2%2Furl%3Fu%3Dhttps-3A__apc01.safelinks.protection.outlook.com_-3Furl-3Dhttps-253A-252F-252Fgithub.com-252Fopenbmc-252Fopenbmc-2Dtest-2Dautomation-252Fblob-252Fmaster-252Flib-252Fipmi-5Fclient.robot-2523L204-26data-3D02-257C01-257Cjayashree-2Dd-2540hcl.com-257C8553afa8ad3d4c09cdf808d83a062596-257C189de737c93a4f5a8b686f4ca9941912-257C0-257C0-257C637323145366044688-26sdata-3DRAX2hmIi-252BHWID3fTK-252BCcFIl0vDwx0yH2cUwbPsxWYnQ-253D-26reserved-3D0%26d%3DDwMGaQ%26c%3Djf_iaSHvJObTbx-siA1ZOg%26r%3DhHlxml_LX5HIffRsSFs-k3DrxQDKe6i0A3XGNW7rlIw%26m%3DYcoChPUQFfWImdbl3uyPXF-qoErHN5aF013OCxTDZ_A%26s%3DTK78WcQiHiF5YkhqWSxPEclPBa2Iz1GWLoF2QrUUuMU%26e%3D&data=02%7C01%7Cjayashree-d%40hcl.com%7C2a61d5135f5d42049d5108d83d4cceb1%7C189de737c93a4f5a8b686f4ca9941912%7C0%7C0%7C637326747394481496&sdata=mTRbf%2FAGJ4ZSNNYRYdBDtLKtKg6uLN9AmeUBEL5lG4Y%3D&reserved=0>

FFDC collects those data as well : https://github.com/openbmc/openbmc-test-automation/blob/master/lib/openbmc_ffdc.robot#L39<https://apc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Furldefense.proofpoint.com%2Fv2%2Furl%3Fu%3Dhttps-3A__apc01.safelinks.protection.outlook.com_-3Furl-3Dhttps-253A-252F-252Fgithub.com-252Fopenbmc-252Fopenbmc-2Dtest-2Dautomation-252Fblob-252Fmaster-252Flib-252Fopenbmc-5Fffdc.robot-2523L39-26data-3D02-257C01-257Cjayashree-2Dd-2540hcl.com-257C8553afa8ad3d4c09cdf808d83a062596-257C189de737c93a4f5a8b686f4ca9941912-257C0-257C0-257C637323145366054681-26sdata-3DjexRdnu8b-252B6YRSv-252B-252FmHOTw9V6CrD4pcRpQ7TWw-252FjoBw-253D-26reserved-3D0%26d%3DDwMGaQ%26c%3Djf_iaSHvJObTbx-siA1ZOg%26r%3DhHlxml_LX5HIffRsSFs-k3DrxQDKe6i0A3XGNW7rlIw%26m%3DYcoChPUQFfWImdbl3uyPXF-qoErHN5aF013OCxTDZ_A%26s%3D5DQFiL49PYJAZ42WtjqFd8QwBcPpmybHjYp_-q5WIfw%26e%3D&data=02%7C01%7Cjayashree-d%40hcl.com%7C2a61d5135f5d42049d5108d83d4cceb1%7C189de737c93a4f5a8b686f4ca9941912%7C0%7C0%7C637326747394491492&sdata=q4wwoWY8DYKaNxi%2BlZkgqEzMxQfln6aocTPnwdyELwg%3D&reserved=0>





Thanks and Regards,
George Keishing



[Inactive hide details for Jayashree D ---06-08-2020 04:08:09 PM---Hi All, I need to test the below features in openbmc-test-aut]Jayashree D ---06-08-2020 04:08:09 PM---Hi All, I need to test the below features in openbmc-test-automation.

From: Jayashree D <jayashree-d at hcl.com<mailto:jayashree-d at hcl.com>>
To: "openbmc at lists.ozlabs.org<mailto:openbmc at lists.ozlabs.org>" <openbmc at lists.ozlabs.org<mailto:openbmc at lists.ozlabs.org>>
Date: 06-08-2020 04:08 PM
Subject: [EXTERNAL] Host related testcases in openbmc-test-automation
Sent by: "openbmc" <openbmc-bounces+gkeishin=in.ibm.com at lists.ozlabs.org<mailto:openbmc-bounces+gkeishin=in.ibm.com at lists.ozlabs.org>>

________________________________




Hi All,

I need to test the below features in openbmc-test-automation.
Is there any related testcases to verify those features?

1. OBMC-CONSOLE - To connect the host via BMC, we are using obmc-console-client to login the host and check the host conections.
(https://github.com/openbmc/obmc-console<https://apc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Furldefense.proofpoint.com%2Fv2%2Furl%3Fu%3Dhttps-3A__apc01.safelinks.protection.outlook.com_-3Furl-3Dhttps-253A-252F-252Fgithub.com-252Fopenbmc-252Fobmc-2Dconsole-26data-3D02-257C01-257Cjayashree-2Dd-2540hcl.com-257C8553afa8ad3d4c09cdf808d83a062596-257C189de737c93a4f5a8b686f4ca9941912-257C0-257C0-257C637323145366054681-26sdata-3D8yio-252FtiZMhyCj-252BFGZUwh5A61JderIRlD-252BUsrxqGk-252B0M-253D-26reserved-3D0%26d%3DDwMGaQ%26c%3Djf_iaSHvJObTbx-siA1ZOg%26r%3DhHlxml_LX5HIffRsSFs-k3DrxQDKe6i0A3XGNW7rlIw%26m%3DYcoChPUQFfWImdbl3uyPXF-qoErHN5aF013OCxTDZ_A%26s%3DZq536ekke-efN3lPhpKpMGbdLPe4LdhBAQeh_m0MC6I%26e%3D&data=02%7C01%7Cjayashree-d%40hcl.com%7C2a61d5135f5d42049d5108d83d4cceb1%7C189de737c93a4f5a8b686f4ca9941912%7C0%7C0%7C637326747394491492&sdata=VO5x15etxUHSsT7YQqi5vvHgYI8GqJN6TW4dMgl4IRU%3D&reserved=0>)

2. HOST LOGGER - To handle and store host's console output data, such as boot logs.
(https://github.com/openbmc/phosphor-hostlogger<https://apc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Furldefense.proofpoint.com%2Fv2%2Furl%3Fu%3Dhttps-3A__apc01.safelinks.protection.outlook.com_-3Furl-3Dhttps-253A-252F-252Fgithub.com-252Fopenbmc-252Fphosphor-2Dhostlogger-26data-3D02-257C01-257Cjayashree-2Dd-2540hcl.com-257C8553afa8ad3d4c09cdf808d83a062596-257C189de737c93a4f5a8b686f4ca9941912-257C0-257C0-257C637323145366064674-26sdata-3D2-252FWbQyTInkJrEHUXJD4Qh-252BkYDjWPturq0mjKTOfs06s-253D-26reserved-3D0%26d%3DDwMGaQ%26c%3Djf_iaSHvJObTbx-siA1ZOg%26r%3DhHlxml_LX5HIffRsSFs-k3DrxQDKe6i0A3XGNW7rlIw%26m%3DYcoChPUQFfWImdbl3uyPXF-qoErHN5aF013OCxTDZ_A%26s%3DoJs2MyMqZHRpHsWyL_3UO6XowycjwB1mp7ddewRZ7Rw%26e%3D&data=02%7C01%7Cjayashree-d%40hcl.com%7C2a61d5135f5d42049d5108d83d4cceb1%7C189de737c93a4f5a8b686f4ca9941912%7C0%7C0%7C637326747394501487&sdata=oNf4Oze%2FYsl4KUapKsNh7EvembLldsRNAYZseUjEbPQ%3D&reserved=0>)


Regards,
Jayashree

::DISCLAIMER::

________________________________

The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only. E-mail transmission is not guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or may contain viruses in transmission. The e mail and its contents (with or without referred errors) shall therefore not attach any liability on the originator or HCL or its affiliates. Views or opinions, if any, presented in this email are solely those of the author and may not necessarily reflect the views or opinions of HCL or its affiliates. Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of this message without the prior written consent of authorized representative of HCL is strictly prohibited. If you have received this email in error please delete it and notify the sender immediately. Before opening any email and/or attachments, please check them for viruses and other defects.
________________________________


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ozlabs.org/pipermail/openbmc/attachments/20200812/f24d6620/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.gif
Type: image/gif
Size: 105 bytes
Desc: image001.gif
URL: <http://lists.ozlabs.org/pipermail/openbmc/attachments/20200812/f24d6620/attachment-0001.gif>


More information about the openbmc mailing list