unable to create sfc port pairs .

asked 2018-03-22 02:16:23 -0500

trellisSFC gravatar image

i get the below error when i try to create a sfc port pair. ( i am using stable pike version)

pmanda@ctl:~$ openstack sfc port pair create --ingress p2 --egress p2 PP1 create_port_pair_postcommit failed. Neutron server returns request_ids: ['req-ec2ba301-86e7-4b0f-bc02-5008f503d0aa'] pmanda@ctl:~$

i have enabled the sfc in netron.conf and upgraded the db

[DEFAULT] service_plugins = flow_classifier,sfc

[sfc] drivers = ovs

[flowclassifier] drivers = ovs

i have enabled the sfc ont the computes by changing the openvsitch_agent.ini file.

[agent] extensions = sfc

below are the debug logs , i see delete a port pair is tried which fails. why delete a port pair when i want to create one.

2018-03-22 01:46:04.635 24427 WARNING networking_sfc.services.sfc.drivers.ovs.driver [req-3344d68c-9aa4-4797-8c28-326cf99bc447 a8ada9a35eb847939db0f462d4703170 de4495fd3c404d1f808d5d822627de61 - 8a0fe214b2d6422a8f0ecff0fa7ef90c 8a0fe214b2d6422a8f0ecff0fa7ef90c] Currently only support vxlan network 2018-03-22 01:46:04.635 24427 DEBUG networking_sfc.services.sfc.drivers.ovs.driver [req-3344d68c-9aa4-4797-8c28-326cf99bc447 a8ada9a35eb847939db0f462d4703170 de4495fd3c404d1f808d5d822627de61 - 8a0fe214b2d6422a8f0ecff0fa7ef90c 8a0fe214b2d6422a8f0ecff0fa7ef90c] networking_sfc.services.sfc.drivers.ovs.driver.OVSSfcDriver method _get_port_detail_info called with arguments (u'cee088cb-5b0d-4d65-99a5-74a0e0597661',) {} wrapper /usr/lib/python2.7/dist-packages/oslo_log/helpers.py:66 2018-03-22 01:46:04.791 24427 WARNING networking_sfc.services.sfc.drivers.ovs.driver [req-3344d68c-9aa4-4797-8c28-326cf99bc447 a8ada9a35eb847939db0f462d4703170 de4495fd3c404d1f808d5d822627de61 - 8a0fe214b2d6422a8f0ecff0fa7ef90c 8a0fe214b2d6422a8f0ecff0fa7ef90c] Currently only support vxlan network 2018-03-22 01:46:04.796 24427 ERROR oslo_db.sqlalchemy.exc_filters [req-3344d68c-9aa4-4797-8c28-326cf99bc447 a8ada9a35eb847939db0f462d4703170 de4495fd3c404d1f808d5d822627de61 - 8a0fe214b2d6422a8f0ecff0fa7ef90c 8a0fe214b2d6422a8f0ecff0fa7ef90c] DBAPIError exception wrapped from (pymysql.err.IntegrityError) (1048, u"Column 'host_id' cannot be null") [SQL: u'INSERT INTO sfc_portpair_details (project_id, id, ingress, egress, host_id, in_mac_address, mac_address, network_type, segment_id, local_endpoint, correlation) VALUES (%(project_id)s, %(id)s, %(ingress)s, %(egress)s, %(host_id)s, %(in_mac_address)s, %(mac_address)s, %(network_type)s, %(segment_id)s, %(local_endpoint)s, %(correlation)s)'] [parameters: {'ingress': u'cee088cb-5b0d-4d65-99a5-74a0e0597661', 'segment_id': None, 'mac_address': None, 'id': 'e3362ef5-519d-4289-a6fd-a0539c69a4ac', 'local_endpoint': None, 'in_mac_address': None, 'egress': u'cee088cb-5b0d-4d65-99a5-74a0e0597661', 'correlation': None, 'host_id': None, 'project_id': u'de4495fd3c404d1f808d5d822627de61', 'network_type': None}]: IntegrityError: (1048, u"Column 'host_id' cannot be null") 2018-03-22 01:46:04.796 24427 ERROR oslo_db.sqlalchemy.exc_filters Traceback (most recent call last): 2018-03-22 01:46:04.796 24427 ERROR oslo_db.sqlalchemy.exc_filters File "/usr/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1182, in _execute_context 2018-03-22 01:46:04.796 24427 ERROR oslo_db.sqlalchemy.exc_filters context) 2018-03-22 01:46:04.796 24427 ERROR oslo_db.sqlalchemy.exc_filters File "/usr/lib/python2.7/dist-packages/sqlalchemy/engine/default.py", line 470, in do_execute 2018-03-22 01:46:04.796 24427 ERROR oslo_db.sqlalchemy.exc_filters cursor.execute(statement, parameters) 2018-03-22 01:46:04.796 24427 ERROR oslo_db.sqlalchemy.exc_filters File "/usr/lib/python2.7/dist-packages/pymysql/cursors.py", line 166, in execute 2018-03-22 01:46:04.796 24427 ERROR oslo_db.sqlalchemy.exc_filters result = self._query(query) 2018-03-22 01:46:04.796 24427 ERROR oslo_db.sqlalchemy.exc_filters File "/usr/lib/python2.7/dist-packages/pymysql/cursors.py", line 322, in _query 2018-03-22 01:46:04.796 24427 ERROR oslo_db.sqlalchemy.exc_filters conn.query(q) 2018-03-22 01:46:04.796 24427 ERROR oslo_db.sqlalchemy.exc_filters File "/usr/lib/python2.7/dist-packages/pymysql/connections.py", line 856, in query 2018-03-22 01:46:04.796 24427 ERROR oslo_db.sqlalchemy.exc_filters self._affected_rows = self._read_query_result(unbuffered=unbuffered) 2018-03-22 01:46:04 ... (more)

edit retag flag offensive close merge delete