Versions Compared

Key

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

There are currently two SFC scenarios available in OPNFV Fraser:

  • os-odl-sfc-noha
  • os-odl-sfc-ha

These two scenarios can be deployed with the XCI tool or the APEX installer

XCI Integration

XCI Sandbox could used to deploy the SFC scenarios. Here is a link to get more information about it (please read the requirements and the prerequisites carefully):

http://docs.opnfv.org/en/latest/submodules/releng-xci/docs/xci-user-guide.html

The XCI integration is not finished yet and it has been tested only for mini and noha flavors of XCI. You can try to run xci using the master branch, Pike release or the Ocata release (instructions below for the three of them)

To deploy the SFC mini scenario using xci, the following must be done:

#### OpeStack master ####

  1. If you don’t have one already, generate an SSH key in $HOME/.ssh

    ssh-keygen -t rsa
     
    Make sure your system is configured for passwordless sudo

  2. Clone OPNFV releng-xci repository

     
  3. Change into directory where the sandbox script is located:
    cd releng-xci/xci

  4. Set the sandbox flavor, OPNFV scenario, openstack version, VM size and releng_xci and bifrost versions:
    export XCI_FLAVOR=mini 
    export DEPLOY_SCENARIO=os-odl-sfc
    export BIFROST_USE_PREBUILT_IMAGES=true

     

  5. Execute the sandbox script

    ./xci-deploy.sh


#### OpeStack Pike release ####

  1. If you don’t have one already, generate an SSH key in $HOME/.ssh

    ssh-keygen -t rsa

  2. Clone OPNFV releng-xci repository

     
  3. Change into directory where the sandbox script is located:
    cd releng-xci/xci

  4. Use a version of releng-xci which we know works

    git checkout 0d332a80cf731e5927c81c9f6929a8b83d43cddd


       5. Set the sandbox flavor, OPNFV scenario, openstack version, VM size and releng_xci and bifrost versions:
  • export XCI_FLAVOR=mini
  • export DEPLOY_SCENARIO=os-odl-sfc
  • export VM_MEMORY_SIZE=16384
  • export OPENSTACK_OSA_VERSION=stable/pike
  • export OPENSTACK_BIFROST_VERSION=28b6b8c96f89532bbddeca513285e6c00db89205
  • export BIFROST_IRONIC_VERSION=9b8440aa318e4883a74ef8640ad5409dd22858a9
  • export BIFROST_IRONIC_CLIENT_VERSION=1da269b0e99601f8f6395b2ce3f436f5600e8140
  • export BIFROST_IRONIC_INSPECTOR_VERSION=84da941fafb905c2debdd9a9ba68ba743af3ce8a
  • export BIFROST_IRONIC_INSPECTOR_CLIENT_VERSION=b73403fdad3165cfcccbf4b0330d426ae5925e01
  • export XCI_ANSIBLE_PIP_VERSION=2.4.3.0


      6. Execute the sandbox script

     ./xci-deploy.sh


### RUN FUNCTEST ###

If you would like to run functest, once the deployment is successful, you should access the OPNFV VM using ssh (ssh root@192.168.122.2) and then execute:

export DEPLOY_SCENARIO=os-odl-sfc

source openrc

ansible-playbook

-i

releng-xci/xci/playbooks/dynamic_inventory.py

\

releng-xci/xci/playbooks/prepare-functest.yml
To run the functest tests:
./run-functest.sh

 


APEX Integration

APEX is able to run both scenarios. Here is a link about to use APEX:

http://docs.opnfv.org/en/stable-euphrates/submodules/apex/docs/release/installation/index.html#apex-installation

To run the SFC scenario you should include the sfc deploy settings file with -d arg:

opnfv-deploy -d /etc/opnfv-apex/os-odl-sfc-noha.yaml