Back references to dis-associated policy exist while deleting VN.
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Juniper Openstack | Status tracked in Trunk | |||||
R2.1 |
Won't Fix
|
Medium
|
Hampapur Ajay | |||
R3.0 |
Invalid
|
Medium
|
Hampapur Ajay | |||
Trunk |
Invalid
|
Medium
|
Hampapur Ajay |
Bug Description
After dis-associating a policy from a VN, when we try to delete the policy we see an error which points that the VN still has references to this policy, thus the policy can't be deleted. On inspecting the logs it seems like the policy associate and policy dis-associate requests done through vnc apis
add_network_
virtual_
delete_
virtual_
might not be in correct sequence resulting in this error.
Steps:
1. Create a VM
2. Create a policy
3. Associate the policy to VN
4. Try deleting the policy - it should fail with RefsExistError
5. Dis-associate the policy
6. Delete the Policy
While deleting the policy we see error which says that the VN still has back references to the policy and thus a failure occurs.
Script Log:
*******
2014-12-26 18:19:01,779 - INFO - VN vn44 is created using API Server
2014-12-26 18:19:01,795 - DEBUG - Policy np_rules : [<vnc_api.
2014-12-26 18:19:01,846 - DEBUG - Policy Creation Response 518a3905-
2014-12-26 18:19:01,846 - INFO - policy policy11 is created with rules using API Server
2014-12-26 18:19:01,856 - INFO - trying to associate policy policy11 to vn vn44
2014-12-26 18:19:01,890 - INFO - policy policy11 assocation with vn vn44 is successful
2014-12-26 18:19:01,903 - INFO - RefsExistError:
2014-12-26 18:19:01,903 - INFO - trying to dis-associate policy policy11 from vn vn44
2014-12-26 18:19:01,931 - INFO - policy policy11 dis-assocation with vn vn44 is successful
2014-12-26 18:19:05,664 - ERROR -
File "tcutils/
result = function(self, *args, **kwargs)
File "scripts/
np_delete = self.vnc_
File "/usr/lib/
content = self._request_
File "/usr/lib/
retry_
File "/usr/lib/
raise RefsExistError(
RefsExistError:
Back-References from http://
2014-12-26 18:19:05,664 - ERROR -
File "tcutils/
cleanup(*args, **kwargs)
File "/root/
self.
File "/root/
self.
TypeError:
'NetworkPolicy' object has no attribute '__getitem__'
Ifmap Server log:
*******
2014-12-26 18:19:02,023 [pool-1-thread-3] TRACE - contrail:
2014-12-26 18:19:02,023 [pool-1-thread-3] TRACE - contrail:id-perms [state=NEW cardinality=
2014-12-26 18:19:02,024 [pool-1-thread-3] TRACE - contrail:
Cassandra Logs:
*******
2014 Dec 26 18:19:01.757383 nodea34 [Config:
2014 Dec 26 18:19:01.766356 nodea34 [Config:
cores and logs are copied to:
bhushana@
Access details
ip:-10.204.216.50
login:bhushana
passw:- bhu@123
tags: | added: regression sanity |
information type: | Proprietary → Public |
bug update...