Unable to create flow-classifier for service function chaining: The resource could not be found

asked 2017-01-15 06:27:30 -0500

AmirV gravatar image

updated 2017-01-15 06:31:05 -0500

I have an OpenStack setup with a controller node and two compute nodes. I installed networking-sfc using these commands:

$ git clone https://github.com/openstack/networking-sfc.git -b stable/newton
$ cd networking-sfc
$ sudo pip install -e /home/{user}/networking-sfc
$ neutron-db-manage --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/plugins/ml2/ml2_conf.ini --subproject networking-sfc upgrade head
$ sudo python setup.py install

And then I was able to run sfc commands in Neutron CLI. At the first step, when I want to create a classifier, I receive the following error:

root@controller:/# neutron flow-classifier-create --description "PING traffic from to" --ethertype IPv4 --source-ip-prefix --destination-ip-prefix --protocol icmp FLOWCLASSIFIER01
The resource could not be found.<br /><br />

Neutron server returns request_ids: ['req-9f128a5e-7e00-45e9-a70e-5be19665fad7']

I couldn't find any usable logs in Neutron log files.

edit retag flag offensive close merge delete



Are you able to run other SFC commands like port-pair/port group create successfully? Try to run the command with "--debug" and paste here, so that we will get more logs.

Example: neutron --debug flow-classifier-create...

craja gravatar imagecraja ( 2017-01-16 04:14:34 -0500 )edit

Thanks for the comment. No I cannot run any SFC command. I run the command in --debug mode. The log is here:

AmirV gravatar imageAmirV ( 2017-01-16 04:40:30 -0500 )edit

facing exactly same issue, any luck to resolve this issue?

Ali Solangi gravatar imageAli Solangi ( 2017-01-31 05:47:02 -0500 )edit

I was able to resolve this by using apt-get install python-networking-sfc instead of using the pip install, and then configuring according to documentation.

Wajahat gravatar imageWajahat ( 2019-10-14 13:52:18 -0500 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2017-02-02 09:23:41 -0500

bcafarel gravatar image

neutron-db-manage only handles the database part itself if I remember correctly, can you paste your /etc/neutron/neutron.conf and /etc/neutron/plugins/ml2/ml2_conf.ini? You should have in /etc/neutron.conf on the controller:

service_plugins = qos,neutron.services.l3_router.l3_router_plugin.L3RouterPlugin,networking_sfc.services.flowclassifier.plugin.FlowClassifierPlugin,networking_sfc.services.sfc.plugin.SfcPlugin

drivers = ovs

drivers = ovs

The first line is the most important as it loads the endpoints (which are missing from your debug log).

The compute nodes should have in /etc/neutron/plugins/ml2/ml2_conf.ini:

extensions = sfc
edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools



Asked: 2017-01-15 06:27:30 -0500

Seen: 687 times

Last updated: Jan 15 '17