This section instructs you on how to perform the data plane networking test of your deployment using the CVP - Shaker network tests Jenkins pipeline.
Note
Clone the cvp-shaker repository to your local Gerrit and use it locally to add new or adjust the existing scenarios and build a new Docker image with Shaker.
To perform the data plane networking test of your deployment:
In a web browser, open http://<ip_address>:8081
to access the
Jenkins web UI.
Note
The IP address is defined in the
classes/cluster/<cluster_name>/cicd/init.yml
file
of the Reclass model under the cicd_control_address
parameter variable.
Log in to the Jenkins web UI as Administrator.
Note
To get the password, execute the following command on the Salt Master node:
salt-call pillar.data _param:jenkins_admin_password
In the global view, find the CVP - Shaker network tests pipeline.
Select the Build with Parameters option from the drop-down menu of the pipeline.
Configure the following parameters as required:
Parameter | Description |
---|---|
IMAGE | The cvp-shaker Docker image (with all dependencies)
that will be used during the test run. The default value is
docker-prod-local.docker.mirantis.net/mirantis/cvp/cvp-shaker:<MCP_VERSION> .
For the offline mode, use the URL from the local artifactory or
offline image. |
SALT_MASTER_CREDENTIALS | The credentials to Salt API stored in Jenkins, included by default. See View credentials details used in Jenkins pipelines for details. |
SALT_MASTER_URL | The reachable IP address of the Salt Master node and port on which
Salt API listens. For example, To determine on which port Salt API listens:
|
SHAKER_PARAMS | The YAML context with parameters for running Shaker.
See the description of the available options below.
The SHAKER_SERVER_ENDPOINT option is mandatory, while others can
be left with the default values. |
SHAKER_PARAMS:SHAKER_SERVER_ENDPOINT | The address for the Shaker server connections in the form of
Caution The Shaker server address should belong to the CI/CD node that you start the job at and is accessible from the Openstack public (floating) network. Also, to be able to run some scenarios, you should provide compute nodes with the 4*(density count) gigabytes of free disk space. |
SHAKER_PARAMS:SHAKER_SCENARIOS | Path to the Shaker scenarios in the
The default value is |
SHAKER_PARAMS:SKIP_LIST | A comma-separated list of Shaker scenarios to skip directories or
files inside the scenarios directory of the cvp-shaker
Docker image. For example, dense_l2.yaml,full_l2.yaml,l3 .
Defaults to an empty string. |
SHAKER_PARAMS:MATRIX | The matrix of extra parameters for the scenario. The value is specified in the JSON format. Defaults to an empty string. For example, to override a scenario duration, specify It is a required field for some of external-category scenarios when
the host name with external iPerf3 server must be provided as a
command-line parameter, for example, |
SHAKER_PARAMS:IMAGE_BUILDER | The list of the
Used for building an image of Shaker which will be used for running Shaker agents across the cluster. Leave these parameters commented out as the default settings should meet all the requirements for starting a test. |
SHAKER_PARAMS:SHAKER | List of Shaker server environment variables including:
You can define these parameters to alter the Shaker server environment variables. The The All the other options in most cases can be left unchanged. |
Click Build.
Verify the job status:
GREEN, SUCCESS
Testing has beed performed successfully, no errors found.
RED, FAILURE
Testing has failed due to issues with the framework or/and pipeline configuration. Review the console output.