Duplicate name of VNF was created successfully when created using mistral

Bug #1757964 reported by Manik Bindlish
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tacker
Expired
Undecided
Unassigned

Bug Description

Release: Stable Newton
Ubuntu 16.04
Environment for NFV

VNF created with same name[created using mistral], it always gets fail when creating through tacker commands.

Most of times it was failing in mistral too but this time succeed: So seems a issue

VNF Name: tacker-create-vnfm1

dharmendra@controller:~/mistralflow$ tacker vnf-list

+-------------------------------+---------------------+----------------------------+----------------+-------------------------------+-------------------------------+

| id | name | mgmt_url | status | vim_id | vnfd_id |

+-------------------------------+---------------------+----------------------------+----------------+-------------------------------+-------------------------------+

| 0ac97b82-b567-411c-a25d- | tacker-create-vnfm1 | {"VDU1": "192.168.104.43"} | ACTIVE | 613ab165-a420-4362-813d- | e9953da4-60d2-4a6f-908a- |

| 2ca1a82df5d1 | | | | ec2936422942 | 8f976414619e |

| 3cf5d77e-b2fb- | tacker-create-vnf | {"VDU1": "192.168.104.29"} | ACTIVE | 613ab165-a420-4362-813d- | e9953da4-60d2-4a6f-908a- |

| 4bc4-ab87-ef7e5effc4b3 | | | | ec2936422942 | 8f976414619e |

| 544192ea-a03a- | tacker-create-vnfm1 | {"VDU1": "192.168.104.41"} | ACTIVE | 613ab165-a420-4362-813d- | e9953da4-60d2-4a6f-908a- |

| 417c-b900-e758326b899e | | | | ec2936422942 | 8f976414619e |

Trace:

2017-12-05 12:18:30.382 4290 ERROR tacker.api.v1.resource [req-5c869de9-311c-4236-a411-8ea9d7533edd 4f40ae325991476f8733358eb736ad1e 9a036d420925419c9066e02ae98c4f99 - - -] create failed

2017-12-05 12:18:30.382 4290 ERROR tacker.api.v1.resource Traceback (most recent call last):

2017-12-05 12:18:30.382 4290 ERROR tacker.api.v1.resource File "/usr/local/lib/python2.7/dist-packages/tacker/api/v1/resource.py", line 83, in resource

2017-12-05 12:18:30.382 4290 ERROR tacker.api.v1.resource result = method(request=request, **args)

2017-12-05 12:18:30.382 4290 ERROR tacker.api.v1.resource File "/usr/local/lib/python2.7/dist-packages/tacker/api/v1/base.py", line 395, in create

2017-12-05 12:18:30.382 4290 ERROR tacker.api.v1.resource obj = obj_creator(request.context, **kwargs)

2017-12-05 12:18:30.382 4290 ERROR tacker.api.v1.resource File "/usr/local/lib/python2.7/dist-packages/tacker/vnfm/plugin.py", line 365, in create_vnf

2017-12-05 12:18:30.382 4290 ERROR tacker.api.v1.resource if self._get_by_name(context, vnfm_db.VNF, name):

2017-12-05 12:18:30.382 4290 ERROR tacker.api.v1.resource File "/usr/local/lib/python2.7/dist-packages/tacker/db/db_base.py", line 212, in _get_by_name

2017-12-05 12:18:30.382 4290 ERROR tacker.api.v1.resource return query.filter(model.name == name).one()

2017-12-05 12:18:30.382 4290 ERROR tacker.api.v1.resource File "/home/dharmendra/.local/lib/python2.7/site-packages/sqlalchemy/orm/query.py", line 2768, in one

2017-12-05 12:18:30.382 4290 ERROR tacker.api.v1.resource "Multiple rows were found for one()")

2017-12-05 12:18:30.382 4290 ERROR tacker.api.v1.resource MultipleResultsFound: Multiple rows were found for one()

2017-12-05 12:18:30.382 4290 ERROR tacker.api.v1.resource

Revision history for this message
Trinh Nguyen (dangtrinhnt) wrote :

Hi,
Can you give us the logs when mistral successfully creates the vnf?
Thanks,

Changed in tacker:
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for tacker because there has been no activity for 60 days.]

Changed in tacker:
status: Incomplete → Expired
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.