blob: 160b729ad3d87388338e5288861749de728a3b9e [file] [log] [blame] [view]
Dennis Dmitriev7d538c62016-10-18 13:51:17 +03001# tcp-qa
Dennis Dmitriev6f59add2016-10-18 13:45:27 +03002
Dennis Dmitriev5bd9f562016-10-18 13:50:47 +03003Default template used here requires 20 vCPU and 52Gb host RAM.
Dennis Dmitriev6f59add2016-10-18 13:45:27 +03004
5Clone the repo
6--------------
Dmitrya21a79d2016-11-09 19:08:21 +02007```
Dennis Dmitriev5bd9f562016-10-18 13:50:47 +03008git clone https://github.com/Mirantis/tcp-qa
Dennis Dmitriev5bd9f562016-10-18 13:50:47 +03009cd ./tcp-qa
Dmitrya21a79d2016-11-09 19:08:21 +020010```
Dennis Dmitriev6f59add2016-10-18 13:45:27 +030011
12Install requirements
13--------------------
Dmitrya21a79d2016-11-09 19:08:21 +020014```
Dennis Dmitriev9cc4ca32016-11-03 13:50:45 +020015pip install -r ./tcp_tests/requirements.txt
Dmitrya21a79d2016-11-09 19:08:21 +020016```
Dennis Dmitrievf624fb02016-11-07 15:00:34 +020017* Note: Please read [1] if you don't have fuel-devops installed, because there are required some additional packages and configuration.
Dennis Dmitriev6f59add2016-10-18 13:45:27 +030018
Dennis Dmitrievb4b5c102017-05-10 17:09:06 +030019Get cloudinit image
20-------------------
Dmitrya21a79d2016-11-09 19:08:21 +020021```
Dennis Dmitriev7080d8d2016-10-26 13:43:37 +030022wget https://cloud-images.ubuntu.com/xenial/current/xenial-server-cloudimg-amd64-disk1.img -O ./xenial-server-cloudimg-amd64.qcow2
Dmitrya21a79d2016-11-09 19:08:21 +020023```
Dennis Dmitriev6f59add2016-10-18 13:45:27 +030024
Dennis Dmitrievb4b5c102017-05-10 17:09:06 +030025Choose the name of the cluster model
26------------------------------------
27LAB_CONFIG_NAME variable maps cluster name from the model repository with
28the set of templates in the ./tcp_tests/templates/ folder.
Dmitrya21a79d2016-11-09 19:08:21 +020029```
Dennis Dmitrievb4b5c102017-05-10 17:09:06 +030030export LAB_CONFIG_NAME=virtual-mcp-ocata-dvr # OVS-DVR with ocata packages
31export LAB_CONFIG_NAME=virtual-mcp-ocata-ovs # OVS-NO-DVR with ocata packages
32export LAB_CONFIG_NAME=virtual-mcp11-dvr # OVS-DVR with neutron packages
33export LAB_CONFIG_NAME=virtual-mcp11-ovs # OVS-NO-DVR with neutron packages
34export LAB_CONFIG_NAME=virtual-mcp11-dpdk # OVS-DPDK with neutron packages
35```
36
37Run deploy test
38---------------
39```
Dennis Dmitriev7080d8d2016-10-26 13:43:37 +030040export IMAGE_PATH1604=./xenial-server-cloudimg-amd64.qcow2
disc5298382016-11-23 16:03:33 +020041export SHUTDOWN_ENV_ON_TEARDOWN=false # Optional
dis2b2d8632016-12-08 17:56:57 +020042
43LC_ALL=en_US.UTF-8 py.test -vvv -s -k test_tcp_install_default
Dennis Dmitriev98449d92016-12-22 11:55:03 +020044```
Dennis Dmitriev98449d92016-12-22 11:55:03 +020045
Dennis Dmitrievb4b5c102017-05-10 17:09:06 +030046Run deploy test and rally verify (tempest)
47------------------------------------------
Dennis Dmitriev5e81a4b2017-04-27 03:32:01 +030048```
Dennis Dmitrievb4b5c102017-05-10 17:09:06 +030049export IMAGE_PATH1604=./xenial-server-cloudimg-amd64.qcow2
50export SHUTDOWN_ENV_ON_TEARDOWN=false # Optional
Dennis Dmitriev5e81a4b2017-04-27 03:32:01 +030051
52LC_ALL=en_US.UTF-8 py.test -vvv -s -k test_tcp_install_run_rally
Dennis Dmitrievb4b5c102017-05-10 17:09:06 +030053```
Dennis Dmitriev5e81a4b2017-04-27 03:32:01 +030054
Dennis Dmitrievb4b5c102017-05-10 17:09:06 +030055Run deploy test for mk22-qa-lab01 (outdated)
56--------------------------------------------
disc5298382016-11-23 16:03:33 +020057Note: This lab is not finished yet. TBD: configure vsrx node
58```
dis2b2d8632016-12-08 17:56:57 +020059export ENV_NAME=tcpcloud-mk22 # You can set any env name
disc5298382016-11-23 16:03:33 +020060export LAB_CONFIG_NAME=mk22-qa-lab01 # Name of set of templates
61export VSRX_PATH=./vSRX.img # /path/to/vSRX.img, or to ./xenial-server-cloudimg-amd64.qcow2 as a temporary workaround
62
63LC_ALL=en_US.UTF-8 py.test -vvv -s -k test_tcp_install_default
64```
disf0924fb2016-12-03 04:01:12 +020065, or as an alternative there is another test that use deploy scripts from models repository written on bash [2]:
66```
67LC_ALL=en_US.UTF-8 py.test -vvv -s -k test_tcp_install_with_scripts
68```
69
70Labs with names mk22-lab-basic and mk22-lab-avdanced are deprecated and not recommended to use.
disc5298382016-11-23 16:03:33 +020071
Dennis Dmitriev6f59add2016-10-18 13:45:27 +030072
Dennis Dmitriev6f59add2016-10-18 13:45:27 +030073Create and start the env for manual tests
74-----------------------------------------
Dmitrya21a79d2016-11-09 19:08:21 +020075```
Dennis Dmitriev2c5693f2016-11-04 01:10:22 +020076dos.py create-env ./tcp_tests/templates/underlay/mk22-lab-basic.yaml
Dennis Dmitriev6f59add2016-10-18 13:45:27 +030077dos.py start "${ENV_NAME}"
Dmitrya21a79d2016-11-09 19:08:21 +020078```
Dennis Dmitriev6f59add2016-10-18 13:45:27 +030079
Dennis Dmitriev7080d8d2016-10-26 13:43:37 +030080Then, wait until cloud-init is finished and port 22 is open (~3-4 minutes), and login with root:r00tme
Dennis Dmitrievf624fb02016-11-07 15:00:34 +020081
82[1] https://github.com/openstack/fuel-devops/blob/master/doc/source/install.rst
83
84[2] https://github.com/Mirantis/mk-lab-salt-model/tree/dash/scripts