2016-02-02 01:19:57 -06:00
|
|
|
..
|
|
|
|
Copyright 2014-2015 OpenStack Foundation
|
|
|
|
All Rights Reserved.
|
|
|
|
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License"); you may
|
|
|
|
not use this file except in compliance with the License. You may obtain
|
|
|
|
a copy of the License at
|
|
|
|
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
|
|
distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
|
|
WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
|
|
License for the specific language governing permissions and limitations
|
|
|
|
under the License.
|
|
|
|
|
2021-06-29 13:01:42 +09:00
|
|
|
==================================
|
|
|
|
Getting Started with Legacy Tacker
|
|
|
|
==================================
|
2016-02-02 01:19:57 -06:00
|
|
|
|
2018-09-14 09:25:03 +07:00
|
|
|
Once Tacker is installed successfully, follow the steps given below to get
|
|
|
|
started with Tacker and validate the installation.
|
2016-02-02 01:19:57 -06:00
|
|
|
|
2017-09-17 13:26:32 +08:00
|
|
|
|
2021-06-29 13:01:42 +09:00
|
|
|
Registering Default OpenStack VIM
|
2020-06-22 17:27:29 +00:00
|
|
|
---------------------------------
|
2017-12-20 18:02:33 +01:00
|
|
|
|
2020-06-22 17:27:29 +00:00
|
|
|
#. Get one account on the OpenStack VIM
|
2018-09-14 09:51:49 +07:00
|
|
|
|
2020-06-22 17:27:29 +00:00
|
|
|
In Tacker MANO system, VNFs can be on-boarded to a target OpenStack which
|
|
|
|
is also called as VIM. Get one account on your OpenStack, such as ``admin``
|
|
|
|
if you deploy your OpenStack via devstack. Here is an example of a user
|
|
|
|
named as ``nfv_user`` and has a project ``nfv`` on OpenStack for
|
2021-06-29 13:01:42 +09:00
|
|
|
VIM configuration. It is described in ``vim_config.yaml`` [#f1]_:
|
2018-09-14 09:51:49 +07:00
|
|
|
|
2020-06-22 17:27:29 +00:00
|
|
|
.. literalinclude:: ../../../samples/vim/vim_config.yaml
|
|
|
|
:language: yaml
|
2017-09-17 13:26:32 +08:00
|
|
|
|
2020-06-22 17:27:29 +00:00
|
|
|
.. note::
|
2017-09-17 13:26:32 +08:00
|
|
|
|
2021-06-29 13:01:42 +09:00
|
|
|
In Keystone, port ``5000`` is enabled for authentication service [#f2]_,
|
2020-06-22 17:27:29 +00:00
|
|
|
so the end users can use ``auth_url: 'http://127.0.0.1:5000/v3'`` instead
|
|
|
|
of ``auth_url: 'http://127.0.0.1/identity'`` as above mention.
|
|
|
|
|
|
|
|
By default, ``cert_verify`` is set as ``True``. To disable verifying SSL
|
2021-08-17 14:11:30 +05:30
|
|
|
certificate, user can set ``cert_verify`` parameter to ``False``.
|
2020-06-22 17:27:29 +00:00
|
|
|
|
|
|
|
#. Register VIM
|
|
|
|
|
|
|
|
Register the default VIM with the config file for VNF deployment.
|
|
|
|
This will be required when the optional argument ``--vim-id`` is not
|
|
|
|
provided by the user during VNF creation.
|
|
|
|
|
|
|
|
.. code-block:: console
|
|
|
|
|
|
|
|
$ openstack vim register --config-file vim_config.yaml \
|
|
|
|
--description 'my first vim' --is-default hellovim
|
2017-09-17 13:26:32 +08:00
|
|
|
|
|
|
|
|
2021-06-29 13:01:42 +09:00
|
|
|
Onboarding Sample VNF
|
2020-06-22 17:27:29 +00:00
|
|
|
---------------------
|
2017-09-17 13:26:32 +08:00
|
|
|
|
2020-06-22 17:27:29 +00:00
|
|
|
#. Create a ``sample-vnfd.yaml`` file with the following template
|
2016-02-02 01:19:57 -06:00
|
|
|
|
2020-06-22 17:27:29 +00:00
|
|
|
.. code-block:: yaml
|
2016-02-02 01:19:57 -06:00
|
|
|
|
2020-06-22 17:27:29 +00:00
|
|
|
tosca_definitions_version: tosca_simple_profile_for_nfv_1_0_0
|
2016-08-31 14:37:53 +05:30
|
|
|
|
2020-06-22 17:27:29 +00:00
|
|
|
description: Demo example
|
2016-08-31 14:37:53 +05:30
|
|
|
|
2020-06-22 17:27:29 +00:00
|
|
|
metadata:
|
|
|
|
template_name: sample-tosca-vnfd
|
2016-08-31 14:37:53 +05:30
|
|
|
|
2020-06-22 17:27:29 +00:00
|
|
|
topology_template:
|
|
|
|
node_templates:
|
|
|
|
VDU1:
|
|
|
|
type: tosca.nodes.nfv.VDU.Tacker
|
|
|
|
capabilities:
|
|
|
|
nfv_compute:
|
|
|
|
properties:
|
|
|
|
num_cpus: 1
|
|
|
|
mem_size: 512 MB
|
|
|
|
disk_size: 1 GB
|
2016-08-31 14:37:53 +05:30
|
|
|
properties:
|
2021-06-30 02:23:48 +00:00
|
|
|
image: cirros-0.5.2-x86_64-disk
|
2020-06-22 17:27:29 +00:00
|
|
|
availability_zone: nova
|
|
|
|
mgmt_driver: noop
|
|
|
|
config: |
|
|
|
|
param0: key1
|
|
|
|
param1: key2
|
|
|
|
|
|
|
|
CP1:
|
|
|
|
type: tosca.nodes.nfv.CP.Tacker
|
|
|
|
properties:
|
|
|
|
management: true
|
|
|
|
order: 0
|
|
|
|
anti_spoofing_protection: false
|
|
|
|
requirements:
|
|
|
|
- virtualLink:
|
|
|
|
node: VL1
|
|
|
|
- virtualBinding:
|
|
|
|
node: VDU1
|
|
|
|
|
|
|
|
VL1:
|
|
|
|
type: tosca.nodes.nfv.VL
|
|
|
|
properties:
|
|
|
|
network_name: net_mgmt
|
|
|
|
vendor: Tacker
|
2016-02-02 01:19:57 -06:00
|
|
|
|
2020-06-22 17:27:29 +00:00
|
|
|
.. note::
|
2016-02-02 01:19:57 -06:00
|
|
|
|
2021-06-29 13:01:42 +09:00
|
|
|
You can find several samples of tosca template for VNFD at [#f3]_.
|
2017-09-17 13:26:32 +08:00
|
|
|
|
2016-02-02 01:19:57 -06:00
|
|
|
|
2020-06-22 17:27:29 +00:00
|
|
|
#. Create a sample VNFD
|
2016-02-02 01:19:57 -06:00
|
|
|
|
2020-06-22 17:27:29 +00:00
|
|
|
.. code-block:: console
|
2016-02-02 01:19:57 -06:00
|
|
|
|
2020-06-22 17:27:29 +00:00
|
|
|
$ openstack vnf descriptor create --vnfd-file sample-vnfd.yaml samplevnfd
|
2016-02-02 01:19:57 -06:00
|
|
|
|
2020-06-22 17:27:29 +00:00
|
|
|
#. Create a VNF
|
2016-02-02 01:19:57 -06:00
|
|
|
|
2020-06-22 17:27:29 +00:00
|
|
|
.. code-block:: console
|
2016-02-02 01:19:57 -06:00
|
|
|
|
2020-06-22 17:27:29 +00:00
|
|
|
$ openstack vnf create --vnfd-name samplevnfd samplevnf
|
2016-02-02 01:19:57 -06:00
|
|
|
|
2020-06-22 17:27:29 +00:00
|
|
|
#. Some basic Tacker commands
|
2016-02-02 01:19:57 -06:00
|
|
|
|
2020-06-22 17:27:29 +00:00
|
|
|
You can find each of VIM, VNFD and VNF created in previous steps by using
|
|
|
|
``list`` subcommand.
|
2016-02-02 01:19:57 -06:00
|
|
|
|
2020-06-22 17:27:29 +00:00
|
|
|
.. code-block:: console
|
|
|
|
|
|
|
|
$ openstack vim list
|
|
|
|
$ openstack vnf descriptor list
|
|
|
|
$ openstack vnf list
|
|
|
|
|
2021-08-17 14:11:30 +05:30
|
|
|
If you inspect attributes of the instance, use ``show`` subcommand with
|
|
|
|
name or ID. For example, you can inspect the VNF named ``samplevnf``
|
2020-06-22 17:27:29 +00:00
|
|
|
as below.
|
|
|
|
|
|
|
|
.. code-block:: console
|
|
|
|
|
|
|
|
$ openstack vnf show samplevnf
|
2018-09-14 09:25:03 +07:00
|
|
|
|
|
|
|
References
|
2020-06-22 17:27:29 +00:00
|
|
|
----------
|
2018-09-14 09:25:03 +07:00
|
|
|
|
2021-06-29 13:01:42 +09:00
|
|
|
.. rubric:: Footnotes
|
|
|
|
|
|
|
|
.. [#] https://opendev.org/openstack/tacker/src/branch/master/samples/vim/vim_config.yaml
|
|
|
|
.. [#] https://docs.openstack.org/keystoneauth/latest/using-sessions.html#sessions-for-users
|
|
|
|
.. [#] https://opendev.org/openstack/tacker/src/branch/master/samples/tosca-templates/vnfd
|