port pair creation fails in create_port_pair_postcommit on kolla deployment

Bug #1724444 reported by vikrant
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
networking-sfc
New
Undecided
Unassigned

Bug Description

I have followed the blog [1] to configure the neutron-sfc using kolla deployment tool. After deployment I am able to successfully create an instance without any issue, but while creating neutron SFC port pair following [2] I am getting following error:

~~~
[root@controller-1 ~]# openstack server list
+--------------------------------------+-------+--------+-------------------------------+--------+---------+
| ID | Name | Status | Networks | Image | Flavor |
+--------------------------------------+-------+--------+-------------------------------+--------+---------+
| 1a59573b-b557-488f-917c-536a2fd21f35 | FW | ACTIVE | demo-net=10.0.0.14, 10.0.0.12 | cirros | m1.tiny |
| c540bcc3-ce27-46e9-85e3-cc4d124194ae | demo1 | ACTIVE | demo-net=10.0.0.6 | cirros | m1.tiny |
+--------------------------------------+-------+--------+-------------------------------+--------+---------+
[root@controller-1 ~]#

[root@controller-1 ~]# openstack port list
+--------------------------------------+------+-------------------+---------------------------------------------------------------------------+--------+
| ID | Name | MAC Address | Fixed IP Addresses | Status |
+--------------------------------------+------+-------------------+---------------------------------------------------------------------------+--------+
| 0a3e2ac8-4ec7-4238-ad08-36528eed6743 | P0 | fa:16:3e:24:03:87 | ip_address='10.0.0.10', subnet_id='08bbc3a6-4fe0-4ca2-bc03-1425a69b53f6' | DOWN |
| 2ce17a23-e80c-453e-81a1-28f49043eef5 | | fa:16:3e:6d:81:d8 | ip_address='10.0.0.1', subnet_id='08bbc3a6-4fe0-4ca2-bc03-1425a69b53f6' | DOWN |
| 49ba9fd8-5840-4ab3-b9f7-96fc59225b37 | P1 | fa:16:3e:19:35:45 | ip_address='10.0.0.14', subnet_id='08bbc3a6-4fe0-4ca2-bc03-1425a69b53f6' | ACTIVE |
| 8f83b61d-3057-4d1c-a075-340271f845ee | P2 | fa:16:3e:44:20:29 | ip_address='10.0.0.12', subnet_id='08bbc3a6-4fe0-4ca2-bc03-1425a69b53f6' | ACTIVE |
| a20e66c1-9c95-4c45-8008-8eadc5962cce | | fa:16:3e:e0:40:dc | ip_address='10.0.0.6', subnet_id='08bbc3a6-4fe0-4ca2-bc03-1425a69b53f6' | ACTIVE |
| d0dc19b2-1b63-4c92-a2d2-a2f26af06456 | | fa:16:3e:37:8d:7f | ip_address='10.0.2.155', subnet_id='72bc8dea-2364-4138-a284-80ffa564362f' | DOWN |
| fcb49641-6b32-4064-a5e1-4aa65243352c | | fa:16:3e:c3:2f:50 | ip_address='10.0.0.2', subnet_id='08bbc3a6-4fe0-4ca2-bc03-1425a69b53f6' | ACTIVE |
+--------------------------------------+------+-------------------+---------------------------------------------------------------------------+--------+

[root@controller-1 ~]# nova list
+--------------------------------------+-------+--------+------------+-------------+-------------------------------+
| ID | Name | Status | Task State | Power State | Networks |
+--------------------------------------+-------+--------+------------+-------------+-------------------------------+
| 1a59573b-b557-488f-917c-536a2fd21f35 | FW | ACTIVE | - | Running | demo-net=10.0.0.14, 10.0.0.12 |
| c540bcc3-ce27-46e9-85e3-cc4d124194ae | demo1 | ACTIVE | - | Running | demo-net=10.0.0.6 |
+--------------------------------------+-------+--------+------------+-------------+-------------------------------+
~~~

While creating sfc port pair group.

~~~
[root@controller-1 ~]# openstack sfc port pair create --ingress P1 --egress P2 PPAIR
create_port_pair_postcommit failed.
Neutron server returns request_ids: ['req-5e062f5c-2860-422c-964d-af191f6b4c4d']
~~~

Following call trace is reported in neutron-server container.

~~~
2017-10-18 04:13:36.505 23 ERROR networking_sfc.services.sfc.plugin [req-5e062f5c-2860-422c-964d-af191f6b4c4d 0efeac25b8a845c799800fa87d850024 766c772012ff4c4ca6e563accd51f1ea - default default] Cr
eate port pair failed, deleting port_pair 'e66b3968-7d8a-4fd7-848b-563fc5a2e248': SfcDriverError: create_port_pair_postcommit failed.
2017-10-18 04:13:36.721 23 ERROR neutron.api.v2.resource [req-5e062f5c-2860-422c-964d-af191f6b4c4d 0efeac25b8a845c799800fa87d850024 766c772012ff4c4ca6e563accd51f1ea - default default] create failed
: No details.: SfcDriverError: create_port_pair_postcommit failed.
2017-10-18 04:13:36.721 23 ERROR neutron.api.v2.resource Traceback (most recent call last):
2017-10-18 04:13:36.721 23 ERROR neutron.api.v2.resource File "/var/lib/kolla/venv/lib/python2.7/site-packages/neutron/api/v2/resource.py", line 98, in resource
2017-10-18 04:13:36.721 23 ERROR neutron.api.v2.resource result = method(request=request, **args)
2017-10-18 04:13:36.721 23 ERROR neutron.api.v2.resource File "/var/lib/kolla/venv/lib/python2.7/site-packages/neutron/api/v2/base.py", line 435, in create
2017-10-18 04:13:36.721 23 ERROR neutron.api.v2.resource return self._create(request, body, **kwargs)
2017-10-18 04:13:36.721 23 ERROR neutron.api.v2.resource File "/var/lib/kolla/venv/lib/python2.7/site-packages/neutron/db/api.py", line 92, in wrapped
2017-10-18 04:13:36.721 23 ERROR neutron.api.v2.resource setattr(e, '_RETRY_EXCEEDED', True)
2017-10-18 04:13:36.721 23 ERROR neutron.api.v2.resource File "/var/lib/kolla/venv/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__
2017-10-18 04:13:36.721 23 ERROR neutron.api.v2.resource self.force_reraise()
2017-10-18 04:13:36.721 23 ERROR neutron.api.v2.resource File "/var/lib/kolla/venv/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise
2017-10-18 04:13:36.721 23 ERROR neutron.api.v2.resource six.reraise(self.type_, self.value, self.tb)
2017-10-18 04:13:36.721 23 ERROR neutron.api.v2.resource File "/var/lib/kolla/venv/lib/python2.7/site-packages/neutron/db/api.py", line 88, in wrapped
2017-10-18 04:13:36.721 23 ERROR neutron.api.v2.resource return f(*args, **kwargs)
2017-10-18 04:13:36.721 23 ERROR neutron.api.v2.resource File "/var/lib/kolla/venv/lib/python2.7/site-packages/oslo_db/api.py", line 150, in wrapper
2017-10-18 04:13:36.721 23 ERROR neutron.api.v2.resource ectxt.value = e.inner_exc
2017-10-18 04:13:36.721 23 ERROR neutron.api.v2.resource File "/var/lib/kolla/venv/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__
2017-10-18 04:13:36.721 23 ERROR neutron.api.v2.resource self.force_reraise()
2017-10-18 04:13:36.721 23 ERROR neutron.api.v2.resource File "/var/lib/kolla/venv/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise
2017-10-18 04:13:36.721 23 ERROR neutron.api.v2.resource six.reraise(self.type_, self.value, self.tb)
2017-10-18 04:13:36.721 23 ERROR neutron.api.v2.resource File "/var/lib/kolla/venv/lib/python2.7/site-packages/oslo_db/api.py", line 138, in wrapper
2017-10-18 04:13:36.721 23 ERROR neutron.api.v2.resource return f(*args, **kwargs)
2017-10-18 04:13:36.721 23 ERROR neutron.api.v2.resource File "/var/lib/kolla/venv/lib/python2.7/site-packages/neutron/db/api.py", line 127, in wrapped
2017-10-18 04:13:36.721 23 ERROR neutron.api.v2.resource LOG.debug("Retry wrapper got retriable exception: %s", e)
2017-10-18 04:13:36.721 23 ERROR neutron.api.v2.resource File "/var/lib/kolla/venv/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__
2017-10-18 04:13:36.721 23 ERROR neutron.api.v2.resource self.force_reraise()
2017-10-18 04:13:36.721 23 ERROR neutron.api.v2.resource File "/var/lib/kolla/venv/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise
2017-10-18 04:13:36.721 23 ERROR neutron.api.v2.resource six.reraise(self.type_, self.value, self.tb)
2017-10-18 04:13:36.721 23 ERROR neutron.api.v2.resource File "/var/lib/kolla/venv/lib/python2.7/site-packages/neutron/db/api.py", line 123, in wrapped
2017-10-18 04:13:36.721 23 ERROR neutron.api.v2.resource return f(*dup_args, **dup_kwargs)
2017-10-18 04:13:36.721 23 ERROR neutron.api.v2.resource File "/var/lib/kolla/venv/lib/python2.7/site-packages/neutron/api/v2/base.py", line 548, in _create
2017-10-18 04:13:36.721 23 ERROR neutron.api.v2.resource obj = do_create(body)
2017-10-18 04:13:36.721 23 ERROR neutron.api.v2.resource File "/var/lib/kolla/venv/lib/python2.7/site-packages/neutron/api/v2/base.py", line 530, in do_create
2017-10-18 04:13:36.721 23 ERROR neutron.api.v2.resource request.context, reservation.reservation_id)
2017-10-18 04:13:36.721 23 ERROR neutron.api.v2.resource File "/var/lib/kolla/venv/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__
2017-10-18 04:13:36.721 23 ERROR neutron.api.v2.resource self.force_reraise()
2017-10-18 04:13:36.721 23 ERROR neutron.api.v2.resource File "/var/lib/kolla/venv/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise
2017-10-18 04:13:36.721 23 ERROR neutron.api.v2.resource six.reraise(self.type_, self.value, self.tb)
2017-10-18 04:13:36.721 23 ERROR neutron.api.v2.resource File "/var/lib/kolla/venv/lib/python2.7/site-packages/neutron/api/v2/base.py", line 523, in do_create
2017-10-18 04:13:36.721 23 ERROR neutron.api.v2.resource return obj_creator(request.context, **kwargs)
2017-10-18 04:13:36.721 23 ERROR neutron.api.v2.resource File "/var/lib/kolla/venv/lib/python2.7/site-packages/oslo_log/helpers.py", line 67, in wrapper
2017-10-18 04:13:36.721 23 ERROR neutron.api.v2.resource return method(*args, **kwargs)
2017-10-18 04:13:36.721 23 ERROR neutron.api.v2.resource File "/var/lib/kolla/venv/lib/python2.7/site-packages/networking_sfc/services/sfc/plugin.py", line 126, in create_port_pair
2017-10-18 04:13:36.721 23 ERROR neutron.api.v2.resource self.delete_port_pair(context, portpair_db['id'])
2017-10-18 04:13:36.721 23 ERROR neutron.api.v2.resource File "/var/lib/kolla/venv/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__
2017-10-18 04:13:36.721 23 ERROR neutron.api.v2.resource self.force_reraise()
2017-10-18 04:13:36.721 23 ERROR neutron.api.v2.resource File "/var/lib/kolla/venv/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise
2017-10-18 04:13:36.721 23 ERROR neutron.api.v2.resource six.reraise(self.type_, self.value, self.tb)
2017-10-18 04:13:36.721 23 ERROR neutron.api.v2.resource File "/var/lib/kolla/venv/lib/python2.7/site-packages/networking_sfc/services/sfc/plugin.py", line 119, in create_port_pair
2017-10-18 04:13:36.721 23 ERROR neutron.api.v2.resource self.driver_manager.create_port_pair_postcommit(portpair_context)
2017-10-18 04:13:36.721 23 ERROR neutron.api.v2.resource File "/var/lib/kolla/venv/lib/python2.7/site-packages/networking_sfc/services/sfc/driver_manager.py", line 142, in create_port_pair_postcommit
2017-10-18 04:13:36.721 23 ERROR neutron.api.v2.resource self._call_drivers("create_port_pair_postcommit", context)
2017-10-18 04:13:36.721 23 ERROR neutron.api.v2.resource File "/var/lib/kolla/venv/lib/python2.7/site-packages/networking_sfc/services/sfc/driver_manager.py", line 113, in _call_drivers
2017-10-18 04:13:36.721 23 ERROR neutron.api.v2.resource method=method_name
2017-10-18 04:13:36.721 23 ERROR neutron.api.v2.resource SfcDriverError: create_port_pair_postcommit failed.
2017-10-18 04:13:36.721 23 ERROR neutron.api.v2.resource
2017-10-18 04:13:36.722 23 INFO neutron.wsgi [req-5e062f5c-2860-422c-964d-af191f6b4c4d 0efeac25b8a845c799800fa87d850024 766c772012ff4c4ca6e563accd51f1ea - default default] 192.168.133.254,192.168.133.100 "POST /v2.0/sfc/port_pairs HTTP/1.1" status: 500 len: 302 time: 1.2051969
~~~

[1] http://networkop.co.uk/blog/2017/09/08/os-lab-docker/
[2] http://networkop.co.uk/blog/2017/09/15/os-sfc-skydive/

Regards,
Vikrant Aggarwal

Tags: sfc
Revision history for this message
vikrant (ervikrant06) wrote :

From inside docker container.

~~~
(neutron-server)[neutron@controller-1 /]$ neutron --version
neutron CLI is deprecated and will be removed in the future. Use openstack CLI instead.
6.5.0
~~~

Boden R (boden)
tags: added: sfc
Revision history for this message
Bernard Cafarelli (bcafarel) wrote :

All of this happens on the server (creating port pairs does not involve the agent), so I'd guess a configuration problem?

Let's check configuration first, what are the values for service_plugins, [sfc] section, [flowclassifier] section on the neutron-server? (should be in neutron.conf)
Also a more verbose log level may help.

summary: - neutron sfc port group pair creation failed
+ networking-sfc port pair creation fails in create_port_pair_postcommit
+ on kolla deployment
Revision history for this message
vikrant (ervikrant06) wrote : Re: networking-sfc port pair creation fails in create_port_pair_postcommit on kolla deployment
Download full text (30.4 KiB)

Here is the configuration file from neutron-server container.

~~~
(neutron-server)[neutron@controller-1 /]$ egrep -v "^(#|$)" /etc/neutron/neutron.conf
[DEFAULT]
debug = False
log_dir = /var/log/kolla/neutron
use_stderr = False
bind_host = 192.168.133.100
bind_port = 9696
api_paste_config = /usr/share/neutron/api-paste.ini
endpoint_type = internalURL
api_workers = 1
metadata_workers = 1
rpc_workers = 1
rpc_state_report_workers = 1
metadata_proxy_socket = /var/lib/neutron/kolla/metadata_proxy
interface_driver = openvswitch
allow_overlapping_ips = true
core_plugin = ml2
service_plugins = flow_classifier,sfc,odl-router_v2
transport_url = rabbit://openstack:k6cxU2zB4aufroLCbcfwDGZk3hHZwENNSIgDMugT@192.168.133.100:5672
[nova]
auth_url = http://192.168.133.254:35357
auth_type = password
project_domain_id = default
user_domain_id = default
region_name = RegionOne
project_name = service
username = nova
password = S61ZNKMtDEjtwuE1lmKv5UeRzRktUtkJZv4OXco7
endpoint_type = internal
[oslo_concurrency]
lock_path = /var/lib/neutron/tmp
[agent]
root_helper = sudo neutron-rootwrap /etc/neutron/rootwrap.conf
[database]
connection = mysql+pymysql://neutron:hCrMYKjHyIhbXtS5Gv9tEps5AYXxwWe4AOZUTZYI@192.168.133.254:3306/neutron
max_retries = -1
[keystone_authtoken]
auth_uri = http://192.168.133.254:5000
auth_url = http://192.168.133.254:35357
auth_type = password
project_domain_id = default
user_domain_id = default
project_name = service
username = neutron
password = WplkI8SwtHkjWVpoZZ4Uum4svmB0FbHNYuzJEP4v
memcache_security_strategy = ENCRYPT
memcache_secret_key = Al2ocKLr194CSJL14fRZbmhCs3Ty54dbDBD9eMzh
memcached_servers = 192.168.133.100:11211
[oslo_messaging_notifications]
driver = noop
[sfc]
drivers = ovs
[flowclassifier]
drivers = ovs
[placement]
auth_type = password
auth_url = http://192.168.133.254:35357
username = placement
password = BOiwJ43AjggaciqsfaVZsXMlEFxswhDO71x0FLnZ
user_domain_name = Default
project_name = service
project_domain_name = Default
os_region_name = RegionOne
os_interface = internal
~~~

Added "--debug" while creating sfc port pair.

~~~
[root@controller-1 ~]# openstack --debug sfc port pair create --ingress P1 --egress P2 PPAIR
START with options: [u'--debug', u'sfc', u'port', u'pair', u'create', u'--ingress', u'P1', u'--egress', u'P2', u'PPAIR']
options: Namespace(access_token='***', access_token_endpoint='', access_token_type='', auth_type='', auth_url='http://192.168.133.254:35357/v3', cacert=None, cert='', client_id='', client_secret='***', cloud='', code='', debug=True, default_domain='default', default_domain_id='', default_domain_name='', deferred_help=False, discovery_endpoint='', domain_id='', domain_name='', endpoint='', identity_provider='', insecure=None, interface='internal', key='', log_file=None, openid_scope='', os_beta_command=False, os_compute_api_version='', os_identity_api_version='3', os_image_api_version='', os_network_api_version='', os_object_api_version='', os_project_id=None, os_project_name=None, os_volume_api_version='', passcode='', password='***', project_domain_id='', project_domain_name='Default', project_id='', project_name='admin', protocol='', redirect_uri='', region_name='RegionOne', timing=False...

Revision history for this message
Bernard Cafarelli (bcafarel) wrote :

Thanks, the configuration looks OK (I was wondering if the ovs driver for SFC was correctly set).
In that case failure in port pair creation probably means some database problems, what is the result of:
neutron-db-manage --subproject networking-sfc current --verbose

Revision history for this message
vikrant (ervikrant06) wrote :

Thanks for looking into the issue.

Here is the output:

(neutron-server)[neutron@controller-1 /]$ neutron-db-manage --subproject networking-sfc current --verbose
  Running current for networking-sfc ...
INFO [alembic.runtime.migration] Context impl MySQLImpl.
INFO [alembic.runtime.migration] Will assume non-transactional DDL.
Current revision(s) for mysql+pymysql://neutron:XXXXX@192.168.133.254:3306/neutron:
Rev: 06382790fb2c (head)
Parent: 010308b06b49
Branch names: contract
Path: /var/lib/kolla/venv/lib/python2.7/site-packages/networking_sfc/db/migration/alembic_migrations/versions/newton/contract/06382790fb2c_fix_foreign_constraints.py

    fix foreign constraints

    Revision ID: 06382790fb2c
    Create Date: 2016-08-11 14:45:34.416120

Rev: 53ed5bec6cff (head)
Parent: 8329e9be2d8a
Branch names: expand
Path: /var/lib/kolla/venv/lib/python2.7/site-packages/networking_sfc/db/migration/alembic_migrations/versions/queens/expand/53ed5bec6cff_add_service_graph_api_resource.py

    Add Service Graph API resource

    Revision ID: 53ed5bec6cff
    Revises: 8329e9be2d8a
    Create Date: 2017-05-24 00:00:00.000000

  OK

Revision history for this message
Bernard Cafarelli (bcafarel) wrote :

Thanks, reassigning to networking-sfc for further investigation, as both conf and database look good

affects: neutron → networking-sfc
summary: - networking-sfc port pair creation fails in create_port_pair_postcommit
- on kolla deployment
+ port pair creation fails in create_port_pair_postcommit on kolla
+ deployment
Revision history for this message
Bernard Cafarelli (bcafarel) wrote :

I am not sure I will have time to test a kolla deployment soon, in the meantime can you paste the debug neutron-server.log?

Setting "debug=True" in neutron.conf default section and restart the service should be enough. Hopefully there will be more indications there

Revision history for this message
vikrant (ervikrant06) wrote :
Download full text (43.3 KiB)

Sorry for late response, here is debug log :

2017-10-27 10:20:56.839 25 DEBUG neutron_lib.callbacks.manager [req-b78f1283-5414-4ece-acaa-b9db6cb70770 - - - - -] Notify callbacks ['neutron.services.segments.db._update_segment_host_mapping_for_agent-7394263'] for agent, after_update _notify_loop /var/lib/kolla/venv/lib/python2.7/site-packages/neutron_lib/callbacks/manager.py:167
2017-10-27 10:20:57.414 24 DEBUG neutron_lib.callbacks.manager [req-18c58833-6461-4092-9b81-4ac4206800b9 - - - - -] Notify callbacks ['neutron.services.segments.db._update_segment_host_mapping_for_agent-7394263'] for agent, after_update _notify_loop /var/lib/kolla/venv/lib/python2.7/site-packages/neutron_lib/callbacks/manager.py:167
2017-10-27 10:21:01.359 23 DEBUG neutron.wsgi [-] (23) accepted ('192.168.133.100', 55964) server /var/lib/kolla/venv/lib/python2.7/site-packages/eventlet/wsgi.py:883
2017-10-27 10:21:02.145 23 INFO neutron.wsgi [req-91a49273-34fa-4658-ae4b-b0de7ff8a25f 0efeac25b8a845c799800fa87d850024 766c772012ff4c4ca6e563accd51f1ea - default default] 192.168.133.254,192.168.133.100 "GET /v2.0/ports?name=P1 HTTP/1.1" status: 200 len: 1023 time: 0.7852690
2017-10-27 10:21:02.261 23 INFO neutron.wsgi [req-521faae1-aca6-4a10-aa16-8b79efa0196d 0efeac25b8a845c799800fa87d850024 766c772012ff4c4ca6e563accd51f1ea - default default] 192.168.133.254,192.168.133.100 "GET /v2.0/ports?name=P2 HTTP/1.1" status: 200 len: 1023 time: 0.1072490
2017-10-27 10:21:02.282 23 DEBUG neutron.api.v2.base [req-a21451b3-92fb-4b66-9d25-cf7b30e3f675 0efeac25b8a845c799800fa87d850024 766c772012ff4c4ca6e563accd51f1ea - default default] Request body: {u'port_pair': {u'ingress': u'49ba9fd8-5840-4ab3-b9f7-96fc59225b37', u'egress': u'8f83b61d-3057-4d1c-a075-340271f845ee', u'service_function_parameters': None, u'name': u'PPAIR'}} prepare_request_body /var/lib/kolla/venv/lib/python2.7/site-packages/neutron/api/v2/base.py:695
2017-10-27 10:21:02.283 23 INFO neutron.quota [req-a21451b3-92fb-4b66-9d25-cf7b30e3f675 0efeac25b8a845c799800fa87d850024 766c772012ff4c4ca6e563accd51f1ea - default default] Loaded quota_driver: <neutron.db.quota.driver.DbQuotaDriver object at 0x9434d90>.
2017-10-27 10:21:02.298 23 DEBUG neutron.db.quota.driver [req-a21451b3-92fb-4b66-9d25-cf7b30e3f675 0efeac25b8a845c799800fa87d850024 766c772012ff4c4ca6e563accd51f1ea - default default] Resources subnetpool,service_graph have unlimited quota limit. It is not required to calculate headroom make_reservation /var/lib/kolla/venv/lib/python2.7/site-packages/neutron/db/quota/driver.py:223
2017-10-27 10:21:02.317 23 DEBUG neutron.db.quota.driver [req-a21451b3-92fb-4b66-9d25-cf7b30e3f675 0efeac25b8a845c799800fa87d850024 766c772012ff4c4ca6e563accd51f1ea - default default] Attempting to reserve 1 items for resource port_pair. Total usage: 0; quota limit: 100; headroom:100 make_reservation /var/lib/kolla/venv/lib/python2.7/site-packages/neutron/db/quota/driver.py:255
2017-10-27 10:21:02.374 23 DEBUG networking_sfc.services.sfc.plugin [req-a21451b3-92fb-4b66-9d25-cf7b30e3f675 0efeac25b8a845c799800fa87d850024 766c772012ff4c4ca6e563accd51f1ea - default default] networking_sfc.services.sfc.plugin.SfcPlugin method create_port_pair called ...

Revision history for this message
Bernard Cafarelli (bcafarel) wrote :

No problem, so the error is local_endpoint cannot be NULL

I think I already saw some errors like that when the ports are not attached to a VM. But from your command outputs, it does not looks like this is the case here (P1 and P2 are marked as active, and are the FW vm ports right?)

Revision history for this message
vikrant (ervikrant06) wrote :

Yes, in my case that doesn't seem to be an issue.

~~~
[root@controller-1 ~]# nova list
+--------------------------------------+-------+--------+------------+-------------+-------------------------------+
| ID | Name | Status | Task State | Power State | Networks |
+--------------------------------------+-------+--------+------------+-------------+-------------------------------+
| 1a59573b-b557-488f-917c-536a2fd21f35 | FW | ACTIVE | - | Running | demo-net=10.0.0.14, 10.0.0.12 |
| c540bcc3-ce27-46e9-85e3-cc4d124194ae | demo1 | ACTIVE | - | Running | demo-net=10.0.0.6 |
+--------------------------------------+-------+--------+------------+-------------+-------------------------------+
[root@controller-1 ~]# neutron port-list | egrep 'P1|P2'
neutron CLI is deprecated and will be removed in the future. Use openstack CLI instead.
| 49ba9fd8-5840-4ab3-b9f7-96fc59225b37 | P1 | 766c772012ff4c4ca6e563accd51f1ea | fa:16:3e:19:35:45 | {"subnet_id": "08bbc3a6-4fe0-4ca2-bc03-1425a69b53f6", "ip_address": "10.0.0.14"} |
| 8f83b61d-3057-4d1c-a075-340271f845ee | P2 | 766c772012ff4c4ca6e563accd51f1ea | fa:16:3e:44:20:29 | {"subnet_id": "08bbc3a6-4fe0-4ca2-bc03-1425a69b53f6", "ip_address": "10.0.0.12"} |
~~~

Revision history for this message
vikrant (ervikrant06) wrote :

Any luck on this issue?

Revision history for this message
Bernard Cafarelli (bcafarel) wrote :

Sorry, no progress on my side. I suspect this is related to the containerized setup, but I'd need to setup a similar kolla setup to test.

Not the code parts I am most familiar with, but this local_endpoint info comes from the port (somewhere in the "extended" parts), so that's probably the direction to look into

Revision history for this message
lokendra (lokendrarathour-b) wrote :

Hi,
I also had the same error, but I was able to fix the same by creating the network of vxlan type.
By default, I was creating the network of flat type, because of which I was getting the same error.

So what I did is:
recreated the network from flat type to vxlan type. and the re-attempted port-pair/port-pair-group creation it worked.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.