VMI list got with a VM id as backref-id filter has incorrect fq-name
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Juniper Openstack | Status tracked in Trunk | |||||
R2.20 |
Fix Committed
|
Medium
|
Prakash Bailkeri | |||
Trunk |
Fix Committed
|
Medium
|
Prakash Bailkeri |
Bug Description
R2.20 Build 71
Below curl command returned incorrect fqname for all the vmis.
curl -u admin:contrail123 "http://
% Total % Received % Xferd Average Speed Time Time Time Current
100 629 100 629 0 0 170k 0 --:--:-- --:--:-- --:--:-- 204k
{
"virtual-
{
],
"href": "http://
"uuid": "958aba98-
},
{
],
"href": "http://
"uuid": "7aca8e5f-
},
{
],
"href": "http://
"uuid": "2a867ba1-
}
]
}
root@nodec1:
root@nodec1:
% Total % Received % Xferd Average Speed Time Time Time Current
100 2246 100 2246 0 0 460k 0 --:--:-- --:--:-- --:--:-- 548k
{
"virtual-
"fq_name": [
],
"href": "http://
"id_perms": {
},
"uuid": {
}
},
"name": "default-
{
},
],
}
],
{
],
}
],
"uuid": "958aba98-
]
},
},
{
],
}
],
{
],
}
]
}
}
Changed in juniperopenstack: | |
assignee: | Hampapur Ajay (hajay) → Prakash Bailkeri (prakashmb) |
Backref query returns in following format. TABLE.multiget( ['8ab1860f- 67ff-4687- 8e87-d583e48444 01'], column_ start=' backref: virtual_ machine_ interface: ', column_ finish= 'backref: virtual_ machine_ interface; ', column_count=100)
x=OBJ_UUID_
>>> print x [('8ab1860f- 67ff-4687- 8e87-d583e48444 01', OrderedDict( [('backref: virtual_ machine_ interface: e0ed2693- 9bea-40fc- 8940-afbf764e1c f0', u'{"is_weakref": false, "attr": null}')]))])
OrderedDict(
>>>
which is [('backref: <type>: <uuid>' , (<val>,<ts>), *]
But the code assumes [('<fqnstr> :<uuid> ', (<val>,<ts>), *]