Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • Ubuntu 16.04.2 LTS (Xenial) for x86_64

  • Ubuntu 14.04 LTS (Trusty) for x86_64
  • CentOS-7-1611 for x86_64
     

...

Sample Openstack credential file environment_config.sh:

 

 

             /*Project-level authentication scope (name or ID), recommend admin project.*/

 

          export OS_PROJECT_NAME=admin

 

 

          /* Authentication username, belongs to the project above, recommend admin user.*/

          export OS_USERNAME=admin

...

          export OS_PROJECT_DOMAIN_NAME=default


 

...

          /* home directory for dovetail, if install Dovetail Docker container, DOVETAIL_HOME can just be /home/opnfv*/

          export DOVETAIL_HOME=$HOME/cvp

Export all these variables into environment by,

          % source <OpenStack-credential-file-path>


The tester should validate that the Openstack environmental settings are correct by,
  /*API use example */     % source <OpenStack-credential-file-path>     % openstack service list

...

     Use the following steps to check if the right version of python is already installed, and if not, install it.

    % python --version

2. Install Docker  2. Dovetail requires Docker 1.8.0 and later 

 

    Use the following steps to check if the right version of Docker is already installed, and if not, install it.

 

    % docker --version

    As the docker As the docker installation process is much complex, you can refer to the official document: https://docs.docker.com/engine/installation/linux/

2.2.4 Installing Dovetail on Jumphost

A tester can choose one of the following two methods for installing and running Dovetail. In part1, we explain the steps to install Dovetail from the source. In part2, an alternative using a Docker image with preinstalled Dovetail is introduced. 

part1. Installing Dovetail directly

  1. Update and install packages
     

    a) Ubuntu  

             sudo apt-get update

     

             sudo apt-get -y install gcc  git  vim  python-dev  python-pip  --no-install-recommends

     

     b) centos and redhat

     

             sudo yum -y update

     

             sudo yum -y install epel-release

     

             sudo yum -y install gcc  git  vim-enhanced  python-devel  python-pip

     

     c) fedora

     

             sudo dnf -y update

     

             sudo dnf -y install gcc  git  vim-enhanced  python-devel  python-pip  redhat-rpm-config

    p.s  When testing SUT's https service, there need some extra packages, such as apt-transport-https. This still remains to be verified. 


  2. Installing Dovetail

          Now we are ready to install Dovetail.

          /* Version of dovetail is not specified yet? we are still using the latest in the master - this needs to be fixed before launch. */

          First change directory to $DOVETAIL_HOME,

          % cd $DOVETAIL_HOME

          sudo git clone https://git.opnfv.org/dovetail


/* steps missing in installing dovetail after the git clone */

          % cd $DOVETAIL_HOME/dovetail

          sudo pip install -e ./

          /* test dovetail install is successful */

          % dovetail -h

...

part2.

...

Installing Dovetail Docker

...

Container 

       The The Dovetail project also maintains a Docker image that has Dovetail test tools preinstalled.  

2.3 Running CVP Test Suite

...