[Starlingx-discuss] How to run stx-test: automated-pytest-suite?

Chen, Yan yan.chen at intel.com
Thu Aug 1 08:00:31 UTC 2019


Hi,

I'm trying to run the automated-pytest-suite cases under stx-test on a simplex deployment (on a vm created by qemu kvm).
The controller-0 is already unlocked and stx-openstack applied successfully.

I tried to make my own test.conf following the sample config file (stx-test_template.conf<https://opendev.org/starlingx/test/src/branch/master/automated-pytest-suite/stx-test_template.conf>) as attached.
And I tried to run cases with the following command:
$ pytest -m platform_sanity --testcase-config=./test.conf testcases/

But I got the following error log at the setup step 1:
[2019-08-01 07:44:23,466] 1477 INFO  MainThread ssh.set_natbox_client:: NatBox localhost ssh client is set
[2019-08-01 07:44:23,466] 1425 INFO  MainThread ssh.get_natbox_client:: Getting NatBox Client...
[2019-08-01 07:44:25,322] 845  INFO  MainThread container_helper.is_stx_openstack_deployed:: ['applied']
[2019-08-01 07:44:25,322] 109  INFO  MainThread setups.setup_keypair:: scp key file from controller to NATBox
***Failure at test setup: /home/ec/workspace/codebase/test/automated-pytest-suite/utils/clients/ssh.py:1549: utils.exceptions.ActiveControllerUnsetException: Active controller ssh client is not set! Please use ControllerClient.set_active_controller(ssh_client) to set an active controller client.
ERROR

I'm wondering if this NATBox configuration is a must and if I configured it correctly?
Anyone can help on the test config file?
Or is there anything I need to do before the test?

Thanks a lot!


Yan

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.starlingx.io/pipermail/starlingx-discuss/attachments/20190801/547bd6fa/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.conf
Type: application/octet-stream
Size: 1146 bytes
Desc: test.conf
URL: <http://lists.starlingx.io/pipermail/starlingx-discuss/attachments/20190801/547bd6fa/attachment.obj>


More information about the Starlingx-discuss mailing list