[Fuego] Reboot issue in SSH transport
Tim.Bird at sony.com
Tim.Bird at sony.com
Fri Sep 14 22:01:38 UTC 2018
> -----Original Message-----
> From: Manoj Tiwary
>
> I'm using Raspberry pi 3 board.
> For every test I'm running if I set value of variable Reboot=true i'm getting
> following error
>
>
> for Functional.fuego_board_status test
>
> + export Reboot=true
> + Reboot=true
> + export Rebuild=false
> + Rebuild=false
> + export Target_PreCleanup=true
> + Target_PreCleanup=true
> + export Target_PostCleanup=true
> + Target_PostCleanup=true
> + export TESTDIR=Functional.fuego_board_status
> + TESTDIR=Functional.fuego_board_status
> + export TESTSPEC=default
> + TESTSPEC=default
> + timeout --signal=9 6m /bin/bash /fuego-core/engine/scripts/main.sh
> Using nosyslogd.dist overlay
> ##### doing fuego phase: pre_test ########
> sshpass: -e option given but SSHPASS environment variable not set
> Usage: sshpass [-f|-d|-p|-e] [-hV] command parameters
> -f filename Take password to use from file
> -d number Use number as file descriptor for getting password
> -p password Provide password as argument (security unwise)
> -e Password is passed as env-var "SSHPASS"
> With no parameters - password will be taken from stdin
>
> -h Show help (this screen)
> -V Print version information
> At most one of -f, -d, -p or -e should be used
> In Fuego signal_handler (due to error in pre_test phase)
> ##### doing fuego phase: post_test (from signal handler) #####
> sshpass: -e option given but SSHPASS environment variable not set
> Usage: sshpass [-f|-d|-p|-e] [-hV] command parameters
> -f filename Take password to use from file
> -d number Use number as file descriptor for getting password
> -p password Provide password as argument (security unwise)
> -e Password is passed as env-var "SSHPASS"
> With no parameters - password will be taken from stdin
>
> -h Show help (this screen)
> -V Print version information
> At most one of -f, -d, -p or -e should be used
>
> *** ABORTED (during post_test phase) ***
>
> Fuego error reason: ERROR: Cannot connect to board for test post-
> processing
>
> Terminated
> Build was aborted
> Aborted by ...
> [description-setter] Description set: <a
> href="/fuego/userContent/fuego.logs/Functional.fuego_board_status/myb
> oard.default.19.19/testlog.txt">testlog</a> <a
> href="/fuego/userContent/fuego.logs/Functional.fuego_board_status/myb
> oard.default.19.19/run.json">run.json</a> <a
> href="/fuego/userContent/fuego.logs/Functional.fuego_board_status/myb
> oard.default.19.19/consolelog.txt">fuegolog</a> <a
> href="/fuego/userContent/fuego.logs/Functional.fuego_board_status/myb
> oard.default.19.19/devlog.txt">devlog</a> <a
> href="/fuego/userContent/fuego.logs/Functional.fuego_board_status/myb
> oard.default.19.19/prolog.sh">prolog.sh</a>
> Finished: ABORTED
>
> With Reboot=false , things are working fine.
>
> console log with debug is attached below
>
> suggest me a way to debug it.
It looks like SSHPASS was not being set early-enough in
fuego_core/engine/scripts/functions.sh, function pre_test().
It needed to be moved before the call to target_reboot.
I just checked in a patch for this, but don't have time to test
it right now. Can you see if this fix solves your problem?
(either by pulling the latest master branch of fuego-core,
or by editing functions.sh and moving the following line yourself:
export SSHPASS=$PASSWORD
It should go at the top of the function.
Thanks for the bug report.
-- Tim
More information about the Fuego
mailing list