summaryrefslogtreecommitdiffstats
path: root/docs/scenarios/kvmfornfv.scenarios.description.rst
diff options
context:
space:
mode:
authorShravani <shravani.p@tcs.com>2017-03-07 18:14:05 +0530
committerShravani Paladugula <shravani.p@tcs.com>2017-03-07 14:57:17 +0000
commit7ca470b86711f5f1abaa439de4ea0626f5849b0b (patch)
tree8e341314b4ee94873de6c4cd1ba85b0eda3a8601 /docs/scenarios/kvmfornfv.scenarios.description.rst
parent0c2f88aa2ccffc538c276caac88da6841107bf81 (diff)
This patch contains updated documentation for Dashboard,packet
forwarding,pcm utility,Ftrace and Scenario testing. Change-Id: I677faeed6e4c78f30d486701364ca15a1507b1ef Signed-off-by: Shravani <shravani.p@tcs.com> Co-Authored by:Srinivas <srinivas.atmakuri@tcs.com> Co-Authored by:RajithaY<rajithax.yerrumsetty@intel.com> Co-Authored by:Gundarapu Kalyan Reddy <reddyx.gundarapu@intel.com> Co-Authored by:Navya Bathula <navyax.bathula@intel.com>
Diffstat (limited to 'docs/scenarios/kvmfornfv.scenarios.description.rst')
-rw-r--r--docs/scenarios/kvmfornfv.scenarios.description.rst430
1 files changed, 430 insertions, 0 deletions
diff --git a/docs/scenarios/kvmfornfv.scenarios.description.rst b/docs/scenarios/kvmfornfv.scenarios.description.rst
new file mode 100644
index 000000000..459852d53
--- /dev/null
+++ b/docs/scenarios/kvmfornfv.scenarios.description.rst
@@ -0,0 +1,430 @@
+.. This work is licensed under a Creative Commons Attribution 4.0 International License.
+
+.. http://creativecommons.org/licenses/by/4.0
+========================
+KVM4NFV SCENARIO-TESTING
+========================
+
+ABSTRACT
+========
+
+This document describes the procedure to deploy/test KVM4NFV scenario in a nested virtualization
+environment in a single system. This has been verified with os-nosdn-kvm-ha, os-nosdn-kvm-noha,
+os-nosdn-kvm_ovs_dpdk-ha, os-nosdn-kvm_ovs_dpdk-noha and os-nosdn-kvm_ovs_dpdk_bar-ha test scenario.
+
+Version Features
+================
+
++-----------------------------+---------------------------------------------+
+| | |
+| **Release** | **Features** |
+| | |
++=============================+=============================================+
+| | - Scenario Testing feature was not part of |
+| Colorado | the Colorado release of KVMFORNFV |
+| | |
++-----------------------------+---------------------------------------------+
+| | - High Availability deployment and |
+| | configuration of KVMFORNFV software suite |
+| Danube | - Multi-node setup with 3 controllers and |
+| | 2 computes nodes are deployed |
+| | - Scenarios os-nosdn-kvm_ovs_dpdk-ha and |
+| | os-nosdn-kvm_ovs_dpdk_bar-ha are supported|
+| | |
++-----------------------------+---------------------------------------------+
+
+
+INTRODUCTION
+============
+The purpose of os-nosdn-kvm_ovs_dpdk-ha and os-nosdn-kvm_ovs_dpdk_bar-ha scenario testing is to
+test the High Availability deployment and configuration of OPNFV software suite with OpenStack and
+without SDN software. This OPNFV software suite includes OPNFV KVMFORNFV latest software packages
+for Linux Kernel and QEMU patches for achieving low latency and also OPNFV Barometer for traffic,
+performance and platform monitoring. High Availability feature is achieved by deploying OpenStack
+multi-node setup with 1 Fuel-Master,3 controllers and 2 computes nodes.
+
+KVMFORNFV packages will be installed on compute nodes as part of deployment. The scenario testcase deploys a multi-node setup by using OPNFV Fuel deployer.
+
+1. System pre-requisites
+------------------------
+
+- RAM - Minimum 16GB
+- HARD DISK - Minimum 500GB
+- Linux OS installed and running
+- Nested Virtualization enabled, which can be checked by,
+
+.. code:: bash
+
+ $ cat /sys/module/kvm_intel/parameters/nested
+ Y
+
+ $ cat /proc/cpuinfo | grep vmx
+
+*Note:*
+If Nested virtualization is disabled, enable it by,
+
+.. code:: bash
+
+ For Ubuntu:
+ $ modeprobe kvm_intel
+ $ echo Y > /sys/module/kvm_intel/parameters/nested
+ $ sudo reboot
+
+ For RHEL:
+ $ cat << EOF > /etc/modprobe.d/kvm_intel.conf
+ options kvm-intel nested=1
+ options kvm-intel enable_shadow_vmcs=1
+ options kvm-intel enable_apicv=1
+ options kvm-intel ept=1
+ EOF
+ $ cat << EOF > /etc/sysctl.d/98-rp-filter.conf
+ net.ipv4.conf.default.rp_filter = 0
+ net.ipv4.conf.all.rp_filter = 0
+ EOF
+ $ sudo reboot
+
+2. Environment Setup
+--------------------
+
+**2.1 Configure apt.conf in /etc/apt**
+
+Create an apt.conf file in /etc/apt if it doesn't exist. Used to set proxy for apt-get if workin behind a proxy server.
+
+.. code:: bash
+
+ Acquire::http::proxy "http://<username>:<password>@<proxy>:<port>/";
+ Acquire::https::proxy "https://<username>:<password>@<proxy>:<port>/";
+ Acquire::ftp::proxy "ftp://<username>:<password>@<proxy>:<port>/";
+ Acquire::socks::proxy "socks://<username>:<password>@<proxy>:<port>/";
+
+**2.2 Network Time Protocol (NTP) setup and configuration**
+
+Install ntp by:
+
+.. code:: bash
+
+ $ sudo apt-get update
+ $ sudo apt-get install -y ntp
+
+Insert the following two lines after “server ntp.ubuntu.com” line and before “ # Access control configuration; see `link`_ for” line in /etc/ntp.conf file:
+
+.. _link: /usr/share/doc/ntp-doc/html/accopt.html
+
+server 127.127.1.0
+fudge 127.127.1.0 stratum 10
+
+Restart the ntp server
+
+.. code:: bash
+
+ $ sudo service ntp restart
+
+3. Scenario Testing
+-------------------
+
+There are three ways of performing scenario testing,
+ - 3.1 Fuel
+ - 3.2 OPNFV-Playground
+ - 3.3 Jenkins Project
+
+3.1 Fuel
+~~~~~~~~~
+
+**3.1.1 Clone the fuel repo :**
+
+.. code:: bash
+
+ git clone https://gerrit.opnfv.org/gerrit/fuel.git
+
+**3.1.2 Checkout to the specific version of the branch to deploy by:**
+
+.. code:: bash
+
+ git checkout stable/Colorado
+
+**3.1.3 Building the Fuel iso :**
+
+.. code:: bash
+
+ $ cd ~/fuel/ci/
+ $ ./build.sh -h
+
+Provides the necessary options that are required to build an iso. Creates a ``customized iso`` as per the deployment needs.
+
+.. code:: bash
+
+ $ cd ~/fuel/build/
+ $ make
+
+ (OR) Other way is to download the latest stable fuel iso from `here`_.
+
+.. _here: http://artifacts.opnfv.org/fuel/colorado/opnfv-colorado.3.0.iso
+
+**3.1.4 Creating a new deployment scenario**
+
+``(i). Naming the scenario file:``
+
+Include the new deployment scenario yaml file in deploy/scenario/. The file name should adhere to the following format :
+
+.. code:: bash
+
+ <ha | no-ha>_<SDN Controller>_<feature-1>_..._<feature-n>.yaml
+
+``(ii). The deployment configuration file should contain configuration metadata as stated below:``
+
+.. code:: bash
+
+ deployment-scenario-metadata:
+ title:
+ version:
+ created:
+
+``(iii). To include fuel plugins in the deployment configuration file, use the “stack-extentions” key:``
+
+.. code:: bash
+
+ Example:
+ stack-extensions:
+ - module: fuel-plugin-collectd-ceilometer
+ module-config-name: fuel-barometer
+ module-config-version: 1.0.0
+ module-config-override:
+ #module-config overrides
+
+
+The “module-config-name” and “module-config-version” should be same as the name of plugin configuration file.
+
+
+The “module-config-override” is used to configure the plugin by overrriding the corresponding keys in the plugin config yaml file present in ~/fuel/deploy/config/plugins/.
+
+``(iv). To configure the HA/No-Ha mode, network segmentation types and role to node assignments, use the “dea-override-config” key.``
+
+.. code:: bash
+
+ Example:
+ dea-override-config:
+ environment:
+ mode: ha
+ net_segment_type: tun
+ nodes:
+ - id: 1
+ interfaces: interfaces_1
+ role: mongo,controller,opendaylight
+ - id: 2
+ interfaces: interfaces_1
+ role: mongo,controller
+ - id: 3
+ interfaces: interfaces_1
+ role: mongo,controller
+ - id: 4
+ interfaces: interfaces_1
+ role: ceph-osd,compute
+ - id: 5
+ interfaces: interfaces_1
+ role: ceph-osd,compute
+ settings:
+ editable:
+ storage:
+ ephemeral_ceph:
+ description: Configures Nova to store ephemeral volumes in RBD. This works best if Ceph is enabled for volumes and images, too. Enables live migration of all types of Ceph backed VMs (without this option, live migration will only work with VMs launched from Cinder volumes).
+ label: Ceph RBD for ephemeral volumes (Nova)
+ type: checkbox
+ value: true
+ weight: 75
+ images_ceph:
+ description: Configures Glance to use the Ceph RBD backend to store images.If enabled, this option will prevent Swift from installing.
+ label: Ceph RBD for images (Glance)
+ restrictions:
+ - settings:storage.images_vcenter.value == true: Only one Glance backend could be selected.
+ type: checkbox
+ value: true
+ weight: 30
+
+Under the “dea-override-config” should provide atleast {environment:{mode:'value},{net_segment_type:'value'}
+and {nodes:1,2,...} and can also enable additional stack features such ceph,heat which overrides
+corresponding keys in the dea_base.yaml and dea_pod_override.yaml.
+
+``(v). In order to configure the pod dha definition, use the “dha-override-config” key.``
+
+The “dha-override-config” key is an optional key present at the ending of the scenario file.
+
+``(vi). The scenario.yaml file is used to map the short names of scenario's to the one or more deployment scenario configuration yaml files.``
+
+The short scenario names should follow the scheme below:
+
+.. code:: bash
+
+ [os]-[controller]-[feature]-[mode]-[option]
+
+ [os]: mandatory
+ possible value: os
+
+please note that this field is needed in order to select parent jobs to list and do blocking relations between them.
+
+.. code:: bash
+
+
+ [controller]: mandatory
+ example values: nosdn, ocl, odl, onos
+
+ [mode]: mandatory
+ possible values: ha, noha
+
+ [option]: optional
+
+used for the scenarios those do not fit into naming scheme.
+optional field in the short scenario name should not be included if there is no optional scenario.
+
+.. code:: bash
+
+ Example:
+ 1. os-nosdn-kvm-noha
+ 2. os-nosdn-kvm_ovs_dpdk_bar-ha
+
+
+Example of how short scenario names are mapped to configuration yaml files:
+
+.. code:: bash
+
+ os-nosdn-kvm_ovs_dpdk-ha:
+ configfile: ha_nfv-kvm_nfv-ovs-dpdk_heat_ceilometer_scenario.yaml
+
+Note:
+
+- ( - ) used for separator of fields. [os-nosdn-kvm_ovs_dpdk-ha]
+
+- ( _ ) used to separate the values belong to the same field. [os-nosdn-kvm_ovs_bar-ha].
+
+**3.1.5 Deploying the scenario**
+
+
+Command to deploy the os-nosdn-kvm_ovs_dpdk-ha scenario:
+
+.. code:: bash
+
+ $ cd ~/fuel/ci/
+ $ sudo ./deploy.sh -f -b file:///tmp/opnfv-fuel/deploy/config -l devel-pipeline -p default -s no-ha_nfv-kvm_nfv-ovsdpdk_heat_ceilometer_scenario.yaml -i file:///tmp/opnfv.iso
+
+where,
+ -b is used to specify the configuration directory
+
+ -i is used to specify the image downloaded from artifacts.
+
+Note:
+
+.. code:: bash
+
+ Check $ sudo ./deploy.sh -h for further information.
+
+
+3.2 OPNFV-Playground
+~~~~~~~~~~~~~~~~~~~~
+
+Install OPNFV-playground (the tool chain to deploy/test CI scenarios in fuel@opnfv, ):
+
+.. code:: bash
+
+ $ cd ~
+ $ git clone https://github.com/jonasbjurel/OPNFV-Playground.git
+ $ cd OPNFV-Playground/ci_fuel_opnfv/
+
+- Follow the README.rst in this ~/OPNFV-Playground/ci_fuel_opnfv sub-holder to complete all necessary installation and setup.
+- Section “RUNNING THE PIPELINE” in README.rst explain how to use this ci_pipeline to deploy/test CI test scenarios, you can also use
+
+.. code:: bash
+
+ ./ci_pipeline.sh --help ##to learn more options.
+
+
+
+``3.2.1 Downgrade paramiko package from 2.x.x to 1.10.0``
+
+The paramiko package 2.x.x doesn’t work with OPNFV-playground tool chain now, Jira ticket FUEL - 188 has been raised for the same.
+
+Check paramiko package version by following below steps in your system:
+
+$ python
+Python 2.7.6 (default, Jun 22 2015, 17:58:13) [GCC 4.8.2] on linux2 Type "help", "copyright", "credits" or "license" for more information.
+>>> import paramiko
+>>> print paramiko.__version__
+>>> exit()
+
+You will get the current paramiko package version, if it is 2.x.x, uninstall this version by
+
+.. code:: bash
+
+ $ sudo pip uninstall paramiko
+
+Ubuntu 14.04 LTS has python-paramiko package (1.10.0), install it by
+
+.. code:: bash
+
+ $ sudo apt-get install python-paramiko
+
+
+Verify it by following:
+
+.. code:: bash
+
+ $ python
+ >>> import paramiko
+ >>> print paramiko.__version__
+ >>> exit()
+
+
+``3.2.2 Clone the fuel@opnfv``
+
+Check out the specific version of specific branch of fuel@opnfv
+
+.. code:: bash
+
+ $ cd ~
+ $ git clone https://gerrit.opnfv.org/gerrit/fuel.git
+ $ cd fuel
+ $ git checkout stable/Colorado
+
+
+``3.2.3 Creating the scenario``
+
+Implement the scenario file as described in 3.1.4
+
+``3.2.4 Deploying the scenario``
+
+You can use the following command to start to deploy/test os-nosdn kvm_ovs_dpdk-noha and os-nosdn-kvm_ovs_dpdk-ha scenario
+
+.. code:: bash
+
+ $ cd ~/OPNFV-Playground/ci_fuel_opnfv/
+
+For os-nosdn-kvm_ovs_dpdk-ha :
+
+.. code:: bash
+
+ $ ./ci_pipeline.sh -r ~/fuel -i /root/fuel.iso -B -n intel-sc -s os-nosdn-kvm_ovs_dpdk-ha
+
+For os-nosdn-kvm_ovs_dpdk_bar-ha:
+
+.. code:: bash
+
+ $ ./ci_pipeline.sh -r ~/fuel -i /root/fuel.iso -B -n intel-sc -s os-nosdn-kvm_ovs_dpdk_bar-ha
+
+The “ci_pipeline.sh” first clones the local fuel repo, then deploys the
+os-nosdn-kvm_ovs_dpdk-ha/os-nosdn-kvm_ovs_dpdk-noha scenario from the given ISO, and run Func test
+and Yarstick test. The log of the deployment/test (ci.log) can be found in
+~/OPNFV-Playground/ci_fuel_opnfv/artifact/master/YYYY-MM-DD—HH.mm, where YYYY-MM-DD—HH.mm is the
+date/time you start the “ci_pipeline.sh”.
+
+Note:
+
+.. code:: bash
+
+ Check $ ./ci_pipeline.sh -h for further information.
+
+
+3.3 Jenkins Project
+~~~~~~~~~~~~~~~~~~~
+
+os-nosdn-kvm_ovs_dpdk-ha and os-nosdn-kvm_ovs_dpdk_bar-ha scenario can be executed from the jenkins project :
+
+ 1. "fuel-os-nosdn-kvm_ovs_dpdk-ha-baremetal-daily-master" (os-nosdn-kvm_ovs_dpdk-ha)
+ 2. "fuel-os-nosdn-kvm_ovs_dpdk_bar-ha-baremetal-daily-master" (os-nosdn-kvm_ovs_dpdk_bar-ha)