TEST_TARGET_IPERF still not being passed to checkbox when using remote
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Next Generation Checkbox (CLI) |
Expired
|
Undecided
|
Unassigned |
Bug Description
This has been blocking regression testing for a while because I'm unable to run network tests using testflinger, which depends on checkbox-remote to run the tests on the SUT from the agent container.
On a bare metal test, we have the file /etc/xdg/
This has been failing when using checkbox remote because, apparently, the client side of that connection has to own that data and then pass it to the individual tests on the remote side to be executed (if I'm understanding this correctly).
So the suggestion was to set up the environment variable instead (TEST_TARGET_IPERF) on the agent container so that when checkbox-cli is run, they will be passed on to the SUT when the tests are executed.
This does not work either. To try this, I set up the environment variable on my local machine, and ran network tests and, as with other attempts, they failed because the environment where network.py is being executed does not have the environment var, nor does it have access to the config file.
First, I exported it locally:
bladernr@
10.1.11.
and ran
checkbox-cli remote IPADDR /usr/bin/
and that failed as described above.
Next, I tried it this way:
bladernr@
Connecting to 10.245.
And that too failed:
-------
------------[ Multi-NIC Iperf3 stress testing for NIC enp33s0f0np0 ]------------
ID: com.canonical.
Category: Ethernet Device tests
-------
ERROR:root:Valid target server has not been supplied.
ERROR:root:
ERROR:root:1- If calling the script directly, pass the --target option
ERROR:root:2- Define the TEST_TARGET_IPERF environment variable
ERROR:root:3- If running the test via checkbox/plainbox, define the
ERROR:root:target in /etc/xdg/
ERROR:root:Please run this script with -h to see more details on how to configure
-------
Outcome: job failed
Then I tried setting up the ENV var on teh SUT
ubuntu@birdo:~$ export TEST_TARGET_
ubuntu@birdo:~$ echo $TEST_TARGET_IPERF
10.1.11.
-------
------------[ Multi-NIC Iperf3 stress testing for NIC enp33s0f0np0 ]------------
ID: com.canonical.
Category: Ethernet Device tests
-------
ERROR:root:Valid target server has not been supplied.
ERROR:root:
ERROR:root:1- If calling the script directly, pass the --target option
ERROR:root:2- Define the TEST_TARGET_IPERF environment variable
ERROR:root:3- If running the test via checkbox/plainbox, define the
ERROR:root:target in /etc/xdg/
ERROR:root:Please run this script with -h to see more details on how to configure
-------
Outcome: job failed
I then put the config file on my local machine and tried again, and this also failed just like every other attempt with checkbox-remote.
So to summarise:
Checkbox run on SUT directly using config file: PASS
Checkbox run remotely on SUT with config file on SUT: FAIL
Checkbox run remotely on SUT with ENV Var set on STU: FAIL
Checkbox run remotely on SUT with ENV Var exported to local system: FAIL
Checkbox run remotely on SUT with ENV Var passed on cli when calling checkbox remote: FAIL
Checkbox run remotely on SUT with config file present on local system
tags: | added: servcert-364 |
Bug was migrated to GitHub: https:/ /github. com/canonical/ checkbox/ issues/ 226.
Bug is no more monitored here.