Ask Your Question
0

Service Function Chaining is supported in newton release (Not Devstack)?

asked 2017-01-08 16:13:06 -0500

guimora gravatar image

updated 2017-05-30 09:15:51 -0500

rbowen gravatar image

Service Function Chaining is supported in newton release? I'm using openstack newton in centos 7. I follow this document to do the install http://docs.openstack.org/newton/install-guide-rdo/ but changing the linuxbridge to openvswitch (http://docs.openstack.org/newton/networking-guide/deploy-ovs-selfservice.html).

All installation work fine and is stable. All openstack and neutron command work fine. I want to try SFC in my lab.

To install SFC I follow this guide http://docs.openstack.org/developer/n... and using "pip install networking-sfc" in controller node (where I have neutron).

After that, when execute all neutron command, receive the message "An auth plugin is required to fetch a token". Openstack command now show warning "WARNING: openstackclient.common.utils is deprecated and will be removed after Jun 2017. Please use osc_lib.utils. This warning is caused by an out-of-date import in /usr/lib/python2.7/site-packages/designateclient/osc/plugin.py"

[root@os-controller-1 ~]# . admin-openrc
[root@os-controller-1 ~]# neutron port-pair-create   --description "VNF 1"   --ingress p1   --egress p2 PP1
An auth plugin is required to fetch a token
[root@os-controller-1 ~]# neutron port-create --name p3 net1                           
An auth plugin is required to fetch a token
[root@os-controller-1 ~]# openstack service list
WARNING: openstackclient.common.utils is deprecated and will be removed after Jun 2017. Please use osc_lib.utils. This warning is caused by an out-of-date import in /usr/lib/python2.7/site-packages/designateclient/osc/plugin.py
+----------------------------------+----------+----------+
| ID                               | Name     | Type     |
+----------------------------------+----------+----------+
| 087febad22a54ccba0e5db2e75f0abf1 | nova     | compute  |
| 4a15d32ff5cf40f5bf016db31460f66d | keystone | identity |
| 9b916429cd5e4f2a9023361387bed606 | neutron  | network  |
| fe46ce4b2e784f1a9422fdb794d2668c | glance   | image    |
+----------------------------------+----------+----------+
[root@os-controller-1 ~]# openstack port show p1                                       
WARNING: openstackclient.common.utils is deprecated and will be removed after Jun 2017. Please use osc_lib.utils. This warning is caused by an out-of-date import in /usr/lib/python2.7/site-packages/designateclient/osc/plugin.py
__init__() got an unexpected keyword argument 'additional_headers'
[root@os-controller-1 ~]#

New 1/13/2017

keystone_authtoken section from neutron.conf (Remove all comments):

[keystone_authtoken]

auth_uri = http://os-controller-1:5000
auth_url = http://os-controller-1:35357

memcached_servers = os-controller-1:11211

auth_type = password
project_domain_name = default
user_domain_name = default
project_name = service
username = neutron
password = XXXXXX

file demo-openrc:

export OS_PROJECT_DOMAIN_NAME=default
export OS_USER_DOMAIN_NAME=default
export OS_PROJECT_NAME=demo
export OS_USERNAME=demo
export OS_PASSWORD=XXXXXX
export OS_AUTH_URL=http://os-controller-1:5000/v3
export OS_IDENTITY_API_VERSION=3
export OS_IMAGE_API_VERSION=2

file admin-openrc:

export OS_PROJECT_DOMAIN_NAME=default
export OS_USER_DOMAIN_NAME=default
export OS_PROJECT_NAME=admin
export OS_USERNAME=admin
export OS_PASSWORD=XXXXXX
export OS_AUTH_URL=http://os-controller-1:35357/v3
export OS_IDENTITY_API_VERSION=3
export OS_IMAGE_API_VERSION=2

Before SFC install "pip install networking-sfc"

[root@os-controller-1 ~]# . demo-openrc
[root@os-controller-1 ~]#  neutron port-create --name p1 net1
Created a new port:
+-----------------------+------------------------------------------------------+
| Field                 | Value                                                |
+-----------------------+------------------------------------------------------+
| admin_state_up        | True                                                 |
| allowed_address_pairs |                                                      |
| binding:vnic_type     | normal                                               |
| created_at            | 2017-01-13T16:46:34                                  |
| description           |                                                      |
| device_id             |                                                      |
| device_owner          |                                                      |
| extra_dhcp_opts       |                                                      |
| fixed_ips             | {"subnet_id":                                        |
|                       | "73d0fcd9-2dbb-4028-8bd2-6252dd3977ee",              |
|                       | "ip_address": "10.10.0.4"}                           |
| id                    | 256c617e-0f3e-41d3-b219-8e865170cdc6                 |
| mac_address           | fa:16:3e:69:e7:12                                    |
| name                  | p1                                                   |
| network_id            | 9df0168f-4e3f-4051-bb40-2ba1a216ce25                 |
| port_security_enabled | True                                                 |
| security_groups       | 20460214-5ef2-4ec0-a8d5-0b1518281f36                 |
| status                | DOWN                                                 |
| tenant_id             | 8c474052f6124915a6d38b898988ebe5                     |
| updated_at            | 2017-01-13T16:46:34                                  |
+-----------------------+------------------------------------------------------+

After SFC install (command "yum install python-pip" and "pip install networking-sfc")

[root@os-controller-1 ~]# . demo-openrc
[root@os-controller-1 ~]# neutron port-create --name p4 net1
An auth plugin is required to fetch a token
[root@os-controller-1 ~]#
edit retag flag offensive close merge delete

Comments

could you paste your keystone_authtoken section from neutron.conf?

Eduardo Gonzalez gravatar imageEduardo Gonzalez ( 2017-01-13 09:48:18 -0500 )edit

Eduardo, I add the requested information. neutron.conf was the same before and after SFC installation. Add as well content of demo-openrc and admin-openrc files. If you need anything else let me know

guimora gravatar imageguimora ( 2017-01-13 13:04:03 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
1

answered 2017-06-08 07:18:11 -0500

bcafarel gravatar image

Better late than never, this could help people hitting the same problem.

The root cause here is that running pip command without additional parameters brought in the latest version, and its dependencies. So it probably installed keystone parts incompatible with a newton setup.

I updated the https://docs.openstack.org/developer/networking-sfc/installation.html#installation (SFC installation doc) recently, to adapt it for newton, the pip install command should be:

pip install -c https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt?h=stable/newton (https://git.openstack.org/cgit/openst...) networking-sfc==3.0.0

Also, as you use Centos 7, RDO for Newton (and of course newer releases) now has a python-networking-sfc RPM package

edit flag offensive delete link more

Comments

Thats is ok. I see the change in the web https://docs.openstack.org/developer/networking-sfc/installation.html Thank you.

guimora gravatar imageguimora ( 2017-06-10 10:22:04 -0500 )edit

Bernard, I followed the pip install command you gave for Newton and it worked fine. But I saw that the python-networking-sfc RPM package in Centos 7 is only available for Ocata and Pike. Newton don't have a python-networking-sfc RPM package in Centos 7? Regards

guimora gravatar imageguimora ( 2017-10-01 22:20:33 -0500 )edit

Indeed for Newton, the package was added after the GA release. So it is only found in the RDO trunk repositories. More details on the RDO repositories: https://www.rdoproject.org/what/repos/

bcafarel gravatar imagebcafarel ( 2017-10-27 07:56:37 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

2 followers

Stats

Asked: 2017-01-08 16:13:06 -0500

Seen: 473 times

Last updated: Jun 08 '17