We can create vims with same name in same tenant.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tacker |
Fix Released
|
Critical
|
dharmendra |
Bug Description
I create a vim twice with same config-file and same name, find it successed.
yanxa@ubuntu:
yanxa@ubuntu:
yanxa@ubuntu:
| id | tenant_id | name | type | is_default | placement_attr | status |
| 45fa8c72-
| ce62645b-
According to the constraint of VIM, we should not have two vim with same names.
__table_args__ = (
"name",
)
Changed in tacker: | |
assignee: | nobody → Yan Xing'an (yanxingan) |
Changed in tacker: | |
milestone: | none → pike-3 |
importance: | Undecided → Critical |
This issue occurred after [1].
In that patch, We had introduce the unique constraint over name, tenant_id and deleted_at column. Where default value of deleted_at is NULL. The main point is Creating unique constraint over nullable key, actually destroy the property of uniqueness, and this bug occurred.
[1]: https:/ /review. openstack. org/#/c/ 455421/