FAFT test AttributeError: 'firmware_CorruptBothFwBodyAB' object has no attribute 'faft_client'

176 views
Skip to first unread message

Jiazi Yang

unread,
Apr 7, 2014, 11:54:07 PM4/7/14
to faft-...@chromium.org, sha...@chromium.org, agnes...@chromium.org
running FAFT test
DUT:
OS : the latest test chrome OS
bios: the latest BIOS

Server: full layout chromeos source export BOARD=board ./setup_board --board=${BOARD} // ./build_packages --board=${BOARD}
emerge-$BOARD autotest-tests emerge-$BOARD autotest-deps
export REMOTE_IP=192.168.0.101
then run_remote_tests.sh --board=$BOARD --remote=$REMOTE_IP --servo suite:faft_bios
but always error:
04/05 01:45:52.219 ERROR|base_utils:0238| [stderr] ssh_exchange_identification: read: Connection reset by peer
04/05 01:45:58.287 ERROR|base_utils:0238| [stderr] ssh_exchange_identification: read: Connection reset by peer
04/05 01:46:04.349 ERROR|base_utils:0238| [stderr] ssh_exchange_identification: read: Connection reset by peer
04/05 01:46:10.411 ERROR|base_utils:0238| [stderr] ssh_exchange_identification: read: Connection reset by peer
04/05 01:46:16.479 ERROR|base_utils:0238| [stderr] ssh_exchange_identification: read: Connection reset by peer
04/05 01:46:22.541 ERROR|base_utils:0238| [stderr] ssh_exchange_identification: read: Connection reset by peer
04/05 01:46:27.609 ERROR|base_utils:0238| [stderr] ssh_exchange_identification: read: Connection reset by peer
04/05 01:46:27.612 ERROR| test:0523| Ignoring exception during cleanup() phase:
04/05 01:46:27.612 ERROR| traceback:0013| Traceback (most recent call last):
04/05 01:46:27.613 ERROR| traceback:0013| File "/mnt/host/source/src/third_party/autotest/files/client/common_lib/test.py", line 521, in _exec
04/05 01:46:27.614 ERROR| traceback:0013| _cherry_pick_call(self.cleanup, *args, **dargs)
04/05 01:46:27.614 ERROR| traceback:0013| File "/mnt/host/source/src/third_party/autotest/files/client/common_lib/test.py", line 628, in _cherry_pick_call
04/05 01:46:27.615 ERROR| traceback:0013| return func(*p_args, **p_dargs)
04/05 01:46:27.615 ERROR| traceback:0013| File "/mnt/host/source/src/third_party/autotest/files/server/site_tests/firmware_CorruptBothFwBodyAB/firmware_CorruptBothFwBodyAB.py", line 41, in cleanup
04/05 01:46:27.615 ERROR| traceback:0013| self.restore_firmware()
04/05 01:46:27.616 ERROR| traceback:0013| File "/mnt/host/source/src/third_party/autotest/files/server/cros/faft/faft_classes.py", line 1726, in restore_firmware
04/05 01:46:27.616 ERROR| traceback:0013| if not self.is_firmware_changed():
04/05 01:46:27.616 ERROR| traceback:0013| File "/mnt/host/source/src/third_party/autotest/files/server/cros/faft/faft_classes.py", line 1678, in is_firmware_changed
04/05 01:46:27.616 ERROR| traceback:0013| self.faft_client.bios.reload()
04/05 01:46:27.616 ERROR| traceback:0013| AttributeError: 'firmware_CorruptBothFwBodyAB' object has no attribute 'faft_client'
04/05 01:46:27.617 ERROR| test:0526| Now raising the earlier <class 'autotest_lib.client.common_lib.error.AutoservInstallError'> error
firmware_CgptState.normal.ERROR
firmware_CgptState.normal.DEBUG
firmware_CgptState.normal.INFO
firmware_CgptState.normal.WARNING
status.log

Tom Wai-Hong Tam (談偉航)

unread,
Apr 8, 2014, 3:19:57 AM4/8/14
to Jiazi Yang, faft-...@chromium.org, Shawn Nematbakhsh, agnes...@chromium.org
It failed at the very beginning of setting up the ssh connection. Please verify the ssh connection between the test server and dut:

$ ssh -q root@dut exit; echo $?

It should return 0. If not, please follow the instructions of the following document:

http://www.chromium.org/chromium-os/testing/autotest-developer-faq/ssh-test-keys-setup

Tom


To unsubscribe from this group and stop receiving emails from it, send an email to faft-users+...@chromium.org.

Jiazi Yang

unread,
Apr 8, 2014, 8:31:16 AM4/8/14
to faft-...@chromium.org, Jiazi Yang, Shawn Nematbakhsh, agnes...@chromium.org
hello Tom:
thanks very much.
I‘ve followed the ssh-setup instructions to setup, and ssh -q ro...@192.168.0.101 exit; echo $?  it has returned 0. but the same error.
AttributeError: 'firmware_CgptState' object has no attribute 'faft_client'

在 2014年4月8日星期二UTC+8下午3时19分57秒,Tom Tam写道:

Tom Wai-Hong Tam (談偉航)

unread,
Apr 8, 2014, 10:58:33 PM4/8/14
to Jiazi Yang, faft-...@chromium.org, Shawn Nematbakhsh, agnes...@chromium.org
You may try to run a dummy pass test to verify the setup is correct, like:
$ run_remote_tests.sh --board=$BOARD --remote=$REMOTE_IP dummy_PassServer

Tom

Tom Wai-Hong Tam (談偉航)

unread,
Apr 8, 2014, 11:03:42 PM4/8/14
to Jiazi Yang, faft-...@chromium.org, Shawn Nematbakhsh, agnes...@chromium.org
And also try the client test version:
$ run_remote_tests.sh --board=$BOARD --remote=$REMOTE_IP dummy_Pass

Jiazi Yang

unread,
Apr 9, 2014, 1:35:56 AM4/9/14
to faft-...@chromium.org, Jiazi Yang, Shawn Nematbakhsh, agnes...@chromium.org
$ run_remote_tests.sh --board=$BOARD --remote=$REMOTE_IP dummy_PassServer
INFO : Test results:
---------------------------------------------
dummy_PassServer [ PASSED ]
dummy_PassServer/dummy_PassServer [ PASSED ]
---------------------------------------------

$ run_remote_tests.sh --board=$BOARD --remote=$RE dummy_Pass/control
Identity added: /tmp/run_remote_tests.tEt9/autotest_key (/tmp/run_remote_tests.tEt9/autotest_key)
INFO : Detected cros_workon autotests. Building and running your autotests from /mnt/host/source/src/third_party/autotest/files. To use emerged autotest, pass --use_emerged.
>>> "dummy_Pass/control" is an ambiguous pattern. Disambiguate by passing one of these patterns instead:
^client/site_tests/dummy_Pass/control.wifichaos$
^client/site_tests/dummy_Pass/control.bluetooth$
^client/site_tests/dummy_Pass/control$
^client/site_tests/dummy_Pass/control.experimental$
so run:
$ run_remote_tests.sh --board=$BOARD --remote=$RE dummy_Pass/control.wifichaos
pass
$ run_remote_tests.sh --board=$BOARD --remote=$RE dummy_Pass/control.experimental
pass

Tom Wai-Hong Tam (談偉航)

unread,
Apr 9, 2014, 2:44:27 AM4/9/14
to Jiazi Yang, faft-...@chromium.org, Shawn Nematbakhsh, agnes...@chromium.org
According to the log, the master ssh socket was failed to be created. Please try to create your own ssh socket and see the socket file exists or not, like:

$ mkdir /tmp/test
$ /usr/bin/ssh -a -x   -N -o ControlMaster=yes -o ControlPath=/tmp/test/socket -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o BatchMode=yes -o ConnectTimeout=30 -o ServerAliveInterval=180 -o ServerAliveCountMax=3 -o ConnectionAttempts=4 -o Protocol=2 -l root -p 22 $REMOTE_IP &
$ ls /tmp/test/socket

Jiazi Yang

unread,
Apr 9, 2014, 3:44:06 AM4/9/14
to faft-...@chromium.org, Jiazi Yang, Shawn Nematbakhsh, agnes...@chromium.org
I run one test alone;run_remote_tests.sh --board=$BOARD --remote=$REMOTE_IP --servo firmware_CgptState/control 


04/08 23:37:48.066 ERROR|base_utils:0238| [stderr] sudo: runlevel: command not found
04/08 23:37:48.067 ERROR|servo_host:0289| Command <sudo -n runlevel> failed, rc=1, Command returned non-zero exit status
* Command: 
    sudo -n runlevel
Exit status: 1
Duration: 0.0123670101166

stderr:
sudo: runlevel: command not found
04/08 23:41:06.612 ERROR|      test:0523| Ignoring exception during cleanup() phase:
04/08 23:41:06.612 ERROR| traceback:0013| Traceback (most recent call last):
04/08 23:41:06.613 ERROR| traceback:0013|   File "/mnt/host/source/src/third_party/autotest/files/client/common_lib/test.py", line 521, in _exec
04/08 23:41:06.614 ERROR| traceback:0013|     _cherry_pick_call(self.cleanup, *args, **dargs)
04/08 23:41:06.614 ERROR| traceback:0013|   File "/mnt/host/source/src/third_party/autotest/files/client/common_lib/test.py", line 628, in _cherry_pick_call
04/08 23:41:06.615 ERROR| traceback:0013|     return func(*p_args, **p_dargs)
04/08 23:41:06.616 ERROR| traceback:0013|   File "/mnt/host/source/src/third_party/autotest/files/server/site_tests/firmware_CgptState/firmware_CgptState.py", line 55, in cleanup
04/08 23:41:06.616 ERROR| traceback:0013|     self.restore_cgpt_attributes()
04/08 23:41:06.617 ERROR| traceback:0013|   File "/mnt/host/source/src/third_party/autotest/files/server/cros/faft/faft_classes.py", line 1859, in restore_cgpt_attributes
04/08 23:41:06.618 ERROR| traceback:0013|     self.wait_for_client_offline()
04/08 23:41:06.618 ERROR| traceback:0013|   File "/mnt/host/source/src/third_party/autotest/files/server/cros/faft/faft_classes.py", line 81, in wait_for_client_offline
04/08 23:41:06.619 ERROR| traceback:0013|     raise ConnectionError()
04/08 23:41:06.620 ERROR| traceback:0013| ConnectionError
04/08 23:41:06.621 ERROR|      test:0526| Now raising the earlier <class 'autotest_lib.client.common_lib.error.UnhandledTestFail'> error


On Wednesday, April 9, 2014 11:03:42 AM UTC+8, Tom Tam wrote:

Jiazi Yang

unread,
Apr 9, 2014, 3:44:45 AM4/9/14
to faft-...@chromium.org, Jiazi Yang, Shawn Nematbakhsh, agnes...@chromium.org
$ ls /tmp/test/socket
/tmp/test/socket

Vic Yang

unread,
Apr 9, 2014, 4:26:56 AM4/9/14
to Jiazi Yang, faft-...@chromium.org, Shawn Nematbakhsh, agnes...@chromium.org
runlevel is not related to this and it's actually not an issue. Jiazi, can you please describe your network setup? It looks definitely like a network problem. Also, have you been able to run FAFT successfully before?

- Vic

Jiazi Yang

unread,
Apr 9, 2014, 5:02:34 AM4/9/14
to faft-...@chromium.org, Jiazi Yang, Shawn Nematbakhsh, agnes...@chromium.org

hardware:

lan1 connects servo board, lan2 connects test server.

SW setup:

1. get the key from the chromiumos under chromiumos/src/scripts/mod_for_test_scripts/ssh_keys/testing_rsa ,then put them into ~/.ssh/

2. Host DUT_REMOTE_IP

CheckHostIP no
StrictHostKeyChecking no
IdentityFile %d/.ssh/testing_rsa
Protocol 2

3. $ ssh root@DUT_REMOTE_IP
Warning: Permanently added '172.22.50.42' (RSA) to the list of known hosts.
Last login: Mon Mar 17 14:21:30 PDT 2014 from 172.18.72.8 on ssh
localhost ~ # 

4. $ ssh -q root@DUT_REMOTE_IP exit; echo $?
0

Are there any other settings,please? thanks

Jiazi Yang

unread,
Apr 9, 2014, 5:03:43 AM4/9/14
to faft-...@chromium.org, Jiazi Yang, Shawn Nematbakhsh, agnes...@chromium.org

2.~/.ssh/config:

 Host DUT_REMOTE_IP

CheckHostIP no
StrictHostKeyChecking no
IdentityFile %d/.ssh/testing_rsa
Protocol 2


Reply all
Reply to author
Forward
0 new messages