dangtrinhnt / DynamicSFCDemo

Dynamic SFC Demo at OpenStack Summit 2018 Vancouver
Apache License 2.0
4 stars 2 forks source link

VNFFG create failed. AttributeError: 'Client' object has no attribute 'create_port_pair' #1

Closed FarnazZ closed 6 years ago

FarnazZ commented 6 years ago

Hi, I try to create VNFFG (no_classifier) but I got below error

Request Failed: internal server error while processing your request

and my tacker log is related to neutron client:

2018-09-05 10:57:17.359 11035 ERROR tacker.api.v1.resource [req-0be1f69c-ba2f-47ec-8851-61f1b15ba3fb ef1d3a364c9b4bef80aa1748f005e6a1 a74c780c160d4a85813b22eaec824dc1 - - -] create failed: No details.: AttributeError: 'Client' object has no attribute 'create_port_pair' 2018-09-05 10:57:17.359 11035 ERROR tacker.api.v1.resource Traceback (most recent call last): 2018-09-05 10:57:17.359 11035 ERROR tacker.api.v1.resource File "/usr/lib/python2.7/site-packages/tacker/api/v1/resource.py", line 77, in resource 2018-09-05 10:57:17.359 11035 ERROR tacker.api.v1.resource result = method(request=request, args) 2018-09-05 10:57:17.359 11035 ERROR tacker.api.v1.resource File "/usr/lib/python2.7/site-packages/tacker/api/v1/base.py", line 393, in create 2018-09-05 10:57:17.359 11035 ERROR tacker.api.v1.resource obj = obj_creator(request.context, kwargs) 2018-09-05 10:57:17.359 11035 ERROR tacker.api.v1.resource File "/usr/lib/python2.7/site-packages/tacker/common/log.py", line 35, in wrapper 2018-09-05 10:57:17.359 11035 ERROR tacker.api.v1.resource return method(*args, kwargs) 2018-09-05 10:57:17.359 11035 ERROR tacker.api.v1.resource File "/usr/lib/python2.7/site-packages/tacker/nfvo/nfvo_plugin.py", line 356, in create_vnffg 2018-09-05 10:57:17.359 11035 ERROR tacker.api.v1.resource self.delete_vnffg(context, vnffg_id=vnffg_dict['id']) 2018-09-05 10:57:17.359 11035 ERROR tacker.api.v1.resource File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in exit 2018-09-05 10:57:17.359 11035 ERROR tacker.api.v1.resource self.force_reraise() 2018-09-05 10:57:17.359 11035 ERROR tacker.api.v1.resource File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in forcereraise 2018-09-05 10:57:17.359 11035 ERROR tacker.api.v1.resource six.reraise(self.type, self.value, self.tb) 2018-09-05 10:57:17.359 11035 ERROR tacker.api.v1.resource File "/usr/lib/python2.7/site-packages/tacker/nfvo/nfvo_plugin.py", line 353, in create_vnffg 2018-09-05 10:57:17.359 11035 ERROR tacker.api.v1.resource auth_attr=vim_obj['auth_cred']) 2018-09-05 10:57:17.359 11035 ERROR tacker.api.v1.resource File "/usr/lib/python2.7/site-packages/tacker/common/driver_manager.py", line 70, in invoke 2018-09-05 10:57:17.359 11035 ERROR tacker.api.v1.resource return getattr(driver, method_name)(kwargs) 2018-09-05 10:57:17.359 11035 ERROR tacker.api.v1.resource File "/usr/lib/python2.7/site-packages/tacker/nfvo/drivers/vim/openstack_driver.py", line 429, in create_chain 2018-09-05 10:57:17.359 11035 ERROR tacker.api.v1.resource port_pairid = neutronclient.port_pair_create(port_pair) 2018-09-05 10:57:17.359 11035 ERROR tacker.api.v1.resource File "/usr/lib/python2.7/site-packages/tacker/nfvo/drivers/vim/openstack_driver.py", line 759, in port_pair_create 2018-09-05 10:57:17.359 11035 ERROR tacker.api.v1.resource pp = self.neutron_client.create_port_pair({'port_pair': port_pair_dict}) 2018-09-05 10:57:17.359 11035 ERROR tacker.api.v1.resource AttributeError: 'Client' object has no attribute 'create_port_pair' 2018-09-05 10:57:17.359 11035 ERROR tacker.api.v1.resource 2018-09-05 10:57:17.363 11035 INFO tacker.wsgi [req-0be1f69c-ba2f-47ec-8851-61f1b15ba3fb ef1d3a364c9b4bef80aa1748f005e6a1 a74c780c160d4a85813b22eaec824dc1 - - -] 192.168.99.213 - - [05/Sep/2018 10:57:17] "POST /v1.0/vnffgs.json HTTP/1.1" 500 367 2.77849

Any support would be appreciated.

FarnazZ commented 6 years ago

Issue resolved with reinstalling SFC neutron.