Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Systems.Eventlog.Test Association: Unable to use the callout-test of the debug tarball. #2225

Open
allen810118 opened this issue Nov 3, 2023 · 7 comments
Assignees

Comments

@allen810118
Copy link

Hi, I encountered an error while testing Testcase: Create Test Error Callout And Verify.
When the robot tries to Create Test Error With Callout, it cannot find callout-test.
(I have ensured that the debug tarball has been correctly installed in the /tmp directory of the target machine.)
image

And I also independently executed callout-test on the target machine and obtained the same situation:No such file or directory
Is this problem occurring because the openbmc version I am using is too outdated?

My test configuration is as follows:
OpenBMC version follow 2.12.0
The source of the debug tarball file is witherspoon prebuild
The command I used during testing was: # robot -v OPENBMC_HOST:${IP_ADDR} -i Create_Test_Error_Callout_And_Verify -v DEBUG_TARBALL_PATH:redfish/systems/eventlog/obmc-phosphor-debug-tarball-witherspoon.tar.xz redfish/systems/eventlog/test_association.robot

@gkeishin
Copy link
Member

gkeishin commented Nov 8, 2023

To get the community tar ball..

  1. Go to https://jenkins.openbmc.org/job/latest-master/
  2. Choose any of the target platform build accordingly
  3. Navigate to the page where the images / tars are available.. Example fro Target Witherspoon https://jenkins.openbmc.org/job/latest-master/label=docker-builder,target=witherspoon/947/artifact/openbmc/build/tmp/deploy/images/witherspoon/
  4. Download tar ball for that target .. Example: ```obmc-phosphor-debug-tarball-witherspoon-20231108025050.tar.xz
5,   pass the param when executing the test   
```-v DEBUG_TARBALL_PATH:<tarball path>```

That should do, Hope that helps

@gkeishin gkeishin self-assigned this Nov 8, 2023
@allen810118
Copy link
Author

To get the community tar ball..

  1. Go to https://jenkins.openbmc.org/job/latest-master/
  2. Choose any of the target platform build accordingly
  3. Navigate to the page where the images / tars are available.. Example fro Target Witherspoon https://jenkins.openbmc.org/job/latest-master/label=docker-builder,target=witherspoon/947/artifact/openbmc/build/tmp/deploy/images/witherspoon/
  4. Download tar ball for that target .. Example: ```obmc-phosphor-debug-tarball-witherspoon-20231108025050.tar.xz
5,   pass the param when executing the test   
```-v DEBUG_TARBALL_PATH:<tarball path>```

That should do, Hope that helps

I still can't execute "callout-test" using the provided tarball file.
Whenever I call out to "callout-test", it always prompts (Whether it is in the console or through a robot file ): No such file or directory
image

@allen810118
Copy link
Author

To get the community tar ball..

  1. Go to https://jenkins.openbmc.org/job/latest-master/
  2. Choose any of the target platform build accordingly
  3. Navigate to the page where the images / tars are available.. Example fro Target Witherspoon https://jenkins.openbmc.org/job/latest-master/label=docker-builder,target=witherspoon/947/artifact/openbmc/build/tmp/deploy/images/witherspoon/
  4. Download tar ball for that target .. Example: ```obmc-phosphor-debug-tarball-witherspoon-20231108025050.tar.xz
5,   pass the param when executing the test   
```-v DEBUG_TARBALL_PATH:<tarball path>```

That should do, Hope that helps

I still can't execute "callout-test" using the provided tarball file. Whenever I call out to "callout-test", it always prompts (Whether it is in the console or through a robot file ): No such file or directory image

Supplementary information:
Report of Robot testing
image

OpenBMC version follow 2.12.0
openbmc-test-automation follow v3.0-stable

@gkeishin
Copy link
Member

gkeishin commented Nov 8, 2023

[email protected]:~# cd /tmp/tarball/
[email protected]:/tmp/tarball# pwd
/tmp/tarball
[email protected]:/tmp/tarball# ls bin/callout-test
bin/callout-test
[email protected]:/tmp/tarball#
[email protected]:/tmp/tarball# /tmp/tarball/bin/callout-test /sys/devices/platform/gpio-fsi/fsi0/slave@00:00/raw
[email protected]:/tmp/tarball# Nov 09 01:33:52 xx.xx.xx.xx callout-test[1153]: This is test error TestCallout
Nov 09 01:33:52 xx.xx.xx.xx systemd-journald[124]: Forwarding to syslog missed 1 messages.
Nov 09 01:33:52 xx.xx.xx.xx callout-test[1153]: method is deprecated, use commit() with exception type
Nov 09 01:33:52 xx.xx.xx.xx systemd[1]: systemd-journald.service: Sent signal SIGRTMIN+1 to main process 124 (systemd-journal) on client request.
Nov 09 01:33:52 xx.xx.xx.xx phosphor-fru-fault-monitor[453]: /xyz/openbmc_project/logging/entry/1 created
***Variables***
${target_device_path}  /sys/devices/platform/gpio-fsi/fsi0/slave@00:00/raw

This is the target path.. so you are using different target, so probably you might need to talk to Developer if you are trying something else where it works.. The above target is working as posted with logs there.

and also use the latest master code for testing in general. its been quite some time and many changes have gone in.. and we are planning to branch out this year-end v4 version ahead..

@allen810118
Copy link
Author

allen810118 commented Nov 9, 2023

The test tarball I am using is obmc-phosphor-debug-tarball-witherspoon-20231108025050.tar.xz
OpenBMC version follow 2.12.0
openbmc-test-automation follow v3.0-stable

and I operated in the Console according to the above method.
root@allen:~# cd /tmp/tarball/
root@allen:/tmp/tarball# pwd
/tmp/tarball
root@allen:/tmp/tarball# ls bin/callout-test
bin/callout-test
root@allen:/tmp/tarball/bin# /tmp/tarball/bin/callout-test /sys/devices/platform/gpio-fsi/fsi0/slave@00:00/raw
-sh: /tmp/tarball/bin/callout-test: No such file or directory

Test results show: No such file or directory
Is this problem caused by the version too outdated of OpenBMC?

@gkeishin
Copy link
Member

gkeishin commented Nov 9, 2023

Not sure.. if you scp the tarball to BMC and login to BMC Shell and execute it, it should work and it wont hurt to update the OpenBMC version too on your BMC.

@gkeishin
Copy link
Member

@allen810118 Found anything else working for you ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants