2026-01-22 21:57:35,301 - INFO - Domain Default found not creating 2026-01-22 21:57:35,498 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-46267512 not found, creating it 2026-01-22 21:57:36,060 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-46267512, ID : 9df0b054-75b7-4ac9-8ca8-a06cb4fe210b 2026-01-22 21:57:37,676 - INFO - ================================================================================ 2026-01-22 21:57:37,676 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-22 21:57:38,971 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.18': '0', '10.20.0.17': '0'}, '10.0.0.19': {'10.20.0.17': '0', '10.20.0.18': '0'}} with 2026-01-22 21:57:38,971 - INFO - Initial checks done. Running the testcase now 2026-01-22 21:57:38,971 - INFO - 2026-01-22 21:57:38,971 - INFO - ================================================================================ 2026-01-22 21:57:38,971 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-22 21:57:38,972 - INFO - TEST DESCRIPTION : This tests the following scenarios. 1. Test to validate that policy removal will fail when it referenced with VN. 2. validate vn_policy data in api-s against quantum-vn data, when created and unbind policy from VN thru quantum APIs. 3. validate policy data in api-s against quantum-policy data, when created and deleted thru quantum APIs. 2026-01-22 21:57:40,238 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.18': '0', '10.20.0.17': '0'}, '10.0.0.19': {'10.20.0.17': '0', '10.20.0.18': '0'}} with 2026-01-22 21:57:40,238 - INFO - Initial checks done. Running the testcase now 2026-01-22 21:57:40,238 - INFO - 2026-01-22 21:57:40,623 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-46267512:ctest-vn4-82043764, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-46267512:ctest-vn4-82043764, security_group = None, network_policy = None, subnet_list = []], dst_ports = [start_port = -1, end_port = -1], action_list = simple_action = pass, gateway_name = None, apply_service = [], service_properties = None, mirror_to = None, assign_routing_instance = None, log = False, alert = False, qos_action = None, host_based_service = False, ethertype = None, created = None, last_modified = None, description = None, rule_sequence = None, rule_uuid = None, direction = <>, protocol = 58, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-46267512:ctest-vn4-82043764, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-46267512:ctest-vn4-82043764, security_group = None, network_policy = None, subnet_list = []], dst_ports = [start_port = -1, end_port = -1], action_list = simple_action = pass, gateway_name = None, apply_service = [], service_properties = None, mirror_to = None, assign_routing_instance = None, log = False, alert = False, qos_action = None, host_based_service = False, ethertype = None, created = None, last_modified = None, description = None] 2026-01-22 21:57:41,285 - DEBUG - Response for create_network : {'network': {'id': 'c9bc40c2-b5e2-488a-97e2-bb57aa58f5bf', 'name': 'ctest-vn4-82043764', 'tenant_id': '9df0b05475b74ac98ca8a06cb4fe210b', 'project_id': '9df0b05475b74ac98ca8a06cb4fe210b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-46267512', 'ctest-vn4-82043764'], 'port_security_enabled': True, 'description': ''}} 2026-01-22 21:57:41,634 - DEBUG - Response for create_subnet : {'subnet': {'id': '2f9a08b3-2da1-41e4-a8d5-f9d0bb3d140d', 'name': '', 'tenant_id': '9df0b05475b74ac98ca8a06cb4fe210b', 'network_id': 'c9bc40c2-b5e2-488a-97e2-bb57aa58f5bf', 'ip_version': 4, 'cidr': '112.178.51.64/26', 'allocation_pools': [{'start': '112.178.51.66', 'end': '112.178.51.126'}], 'gateway_ip': '112.178.51.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '112.178.51.66', 'tags': [], 'project_id': '9df0b05475b74ac98ca8a06cb4fe210b'}} 2026-01-22 21:57:41,866 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a3f1d2f6-7c49-48a9-a35a-8c840ca5aa6f', 'name': '', 'tenant_id': '9df0b05475b74ac98ca8a06cb4fe210b', 'network_id': 'c9bc40c2-b5e2-488a-97e2-bb57aa58f5bf', 'ip_version': 6, 'cidr': '3309:718d:bd94:879e:ea20:d092::/96', 'allocation_pools': [{'start': '3309:718d:bd94:879e:ea20:d092:0:2', 'end': '3309:718d:bd94:879e:ea20:d092:ffff:fffe'}], 'gateway_ip': '3309:718d:bd94:879e:ea20:d092:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3309:718d:bd94:879e:ea20:d092:0:2', 'tags': [], 'project_id': '9df0b05475b74ac98ca8a06cb4fe210b'}} 2026-01-22 21:57:41,896 - INFO - Created VN ctest-vn4-82043764 2026-01-22 21:57:41,911 - DEBUG - VN ctest-vn4-82043764 UUID is c9bc40c2-b5e2-488a-97e2-bb57aa58f5bf 2026-01-22 21:57:42,158 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c9bc40c2-b5e2-488a-97e2-bb57aa58f5bf', 'name': 'ctest-vn4-82043764', 'tenant_id': '9df0b05475b74ac98ca8a06cb4fe210b', 'project_id': '9df0b05475b74ac98ca8a06cb4fe210b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2f9a08b3-2da1-41e4-a8d5-f9d0bb3d140d', 'a3f1d2f6-7c49-48a9-a35a-8c840ca5aa6f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-46267512', 'ctest-vn4-82043764'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-46267512', 'ctest-policy1-72986283']], 'subnet_ipam': [{'subnet_cidr': '112.178.51.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3309:718d:bd94:879e:ea20:d092::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-01-22 21:57:42,255 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-01-22 21:57:42,567 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-01-22 21:57:42,606 - DEBUG - Requesting: http://10.0.0.141:8082/domain/1fc276f0-b6b9-407c-bfe0-a534d969fb5e 2026-01-22 21:57:42,623 - DEBUG - Requesting: http://10.0.0.141:8082/project/9df0b054-75b7-4ac9-8ca8-a06cb4fe210b 2026-01-22 21:57:42,722 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/c9bc40c2-b5e2-488a-97e2-bb57aa58f5bf 2026-01-22 21:57:42,742 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/c9bc40c2-b5e2-488a-97e2-bb57aa58f5bf 2026-01-22 21:57:42,755 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/6cb6a931-006e-4272-9de6-397b6959c7d4 2026-01-22 21:57:42,764 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/6cb6a931-006e-4272-9de6-397b6959c7d4 2026-01-22 21:57:42,772 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/2037583b-a745-43d4-98bb-8896b22c9dd9 2026-01-22 21:57:42,780 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-01-22 21:57:42,781 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/c9bc40c2-b5e2-488a-97e2-bb57aa58f5bf 2026-01-22 21:57:42,791 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/6cb6a931-006e-4272-9de6-397b6959c7d4 2026-01-22 21:57:42,806 - INFO - Verified VN network id 11 for VN c9bc40c2-b5e2-488a-97e2-bb57aa58f5bf 2026-01-22 21:57:42,806 - INFO - Verifications in API Server for VN ctest-vn4-82043764 passed 2026-01-22 21:57:42,807 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/c9bc40c2-b5e2-488a-97e2-bb57aa58f5bf 2026-01-22 21:57:42,817 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/6cb6a931-006e-4272-9de6-397b6959c7d4 2026-01-22 21:57:42,824 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/6cb6a931-006e-4272-9de6-397b6959c7d4 2026-01-22 21:57:42,831 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/2037583b-a745-43d4-98bb-8896b22c9dd9 2026-01-22 21:57:42,843 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-46267512:ctest-vn4-82043764', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-46267512', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14536564902264457354', 'uuid-lslong': '10944516029658232255'}, 'enable': 'true', 'created': '2026-01-22T21:57:41', 'last-modified': '2026-01-22T21:57:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.742293'} 2026-01-22 21:57:42,849 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-01-22 21:57:42,855 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-46267512:ctest-vn4-82043764', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-46267512', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14536564902264457354', 'uuid-lslong': '10944516029658232255'}, 'enable': 'true', 'created': '2026-01-22T21:57:41', 'last-modified': '2026-01-22T21:57:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.742137'} 2026-01-22 21:57:42,861 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-01-22 21:57:42,865 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-46267512:ctest-vn4-82043764', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-46267512', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14536564902264457354', 'uuid-lslong': '10944516029658232255'}, 'enable': 'true', 'created': '2026-01-22T21:57:41', 'last-modified': '2026-01-22T21:57:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.767880'} 2026-01-22 21:57:42,871 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-01-22 21:57:42,871 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-82043764 passed 2026-01-22 21:57:42,871 - DEBUG - ====Verifying policy data for ctest-vn4-82043764 in API_Server ====== 2026-01-22 21:57:42,871 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-01-22 21:57:42,878 - DEBUG - Requesting: http://10.0.0.141:8082/domain/1fc276f0-b6b9-407c-bfe0-a534d969fb5e 2026-01-22 21:57:42,889 - DEBUG - Requesting: http://10.0.0.141:8082/project/9df0b054-75b7-4ac9-8ca8-a06cb4fe210b 2026-01-22 21:57:42,997 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/c9bc40c2-b5e2-488a-97e2-bb57aa58f5bf 2026-01-22 21:57:43,007 - DEBUG - ==>Verifying data for policy with id: f3de1855-53c9-4612-820e-9e4844db0f1e, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-46267512', 'ctest-policy1-72986283'] 2026-01-22 21:57:43,007 - INFO - VN ctest-vn4-82043764 Policy verification: verify_vn_policy_in_api_server, status: True 2026-01-22 21:57:43,008 - DEBUG - Verifying the vn in opserver 2026-01-22 21:57:43,008 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-46267512:ctest-vn4-82043764 virtual network link through opserver 10.0.0.141 2026-01-22 21:57:43,008 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2026-01-22 21:57:43,307 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2026-01-22 21:57:43,381 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-46267512:ctest-vn4-82043764', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-46267512:ctest-vn4-82043764?flat'} 2026-01-22 21:57:43,381 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-46267512:ctest-vn4-82043764 virtual network link through opserver 10.0.0.242 2026-01-22 21:57:43,381 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2026-01-22 21:57:43,671 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2026-01-22 21:57:43,736 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-46267512:ctest-vn4-82043764', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-46267512:ctest-vn4-82043764?flat'} 2026-01-22 21:57:43,736 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-46267512:ctest-vn4-82043764 virtual network link through opserver 10.0.0.33 2026-01-22 21:57:43,736 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-01-22 21:57:44,031 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-01-22 21:57:44,097 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-46267512:ctest-vn4-82043764', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-46267512:ctest-vn4-82043764?flat'} 2026-01-22 21:57:44,097 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-46267512:ctest-vn4-82043764 is found in opserver 2026-01-22 21:57:44,118 - DEBUG - Do not have enough data to verify VN in agent 2026-01-22 21:57:44,128 - DEBUG - VRF ids for VN ctest-vn4-82043764: {} 2026-01-22 21:57:44,128 - DEBUG - ====Verifying data for ctest-policy1-72986283 in API_Server ====== 2026-01-22 21:57:44,128 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-01-22 21:57:44,134 - DEBUG - Requesting: http://10.0.0.141:8082/domain/1fc276f0-b6b9-407c-bfe0-a534d969fb5e 2026-01-22 21:57:44,146 - DEBUG - Requesting: http://10.0.0.141:8082/project/9df0b054-75b7-4ac9-8ca8-a06cb4fe210b 2026-01-22 21:57:44,247 - DEBUG - Requesting: http://10.0.0.141:8082/network-policy/f3de1855-53c9-4612-820e-9e4844db0f1e 2026-01-22 21:57:44,261 - INFO - Verified policy ctest-policy1-72986283 in API Server, Result: True 2026-01-22 21:57:44,261 - INFO - Done with setup and verification, moving onto test .. 2026-01-22 21:57:44,275 - INFO - Deleting VN ctest-vn4-82043764 2026-01-22 21:57:44,497 - DEBUG - Response for deleting network () 2026-01-22 21:57:44,497 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/6cb6a931-006e-4272-9de6-397b6959c7d4 2026-01-22 21:57:44,504 - DEBUG - Response Code: 404 2026-01-22 21:57:44,505 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-01-22 21:57:44,518 - DEBUG - Requesting: http://10.0.0.141:8082/domain/1fc276f0-b6b9-407c-bfe0-a534d969fb5e 2026-01-22 21:57:44,542 - DEBUG - Requesting: http://10.0.0.141:8082/project/9df0b054-75b7-4ac9-8ca8-a06cb4fe210b 2026-01-22 21:57:44,652 - INFO - Validated that VN ctest-vn4-82043764 is not found in API Server 2026-01-22 21:57:44,665 - DEBUG - VN ctest-vn4-82043764 is not present in Agent 10.0.0.249 2026-01-22 21:57:44,681 - DEBUG - VN ctest-vn4-82043764 is not present in Agent 10.0.0.19 2026-01-22 21:57:44,681 - INFO - Validated that VN ctest-vn4-82043764 is not in any agent 2026-01-22 21:57:44,732 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-82043764 info 2026-01-22 21:57:44,795 - INFO - Deleted policy ctest-policy1-72986283 2026-01-22 21:57:44,987 - DEBUG - policy ctest-policy1-72986283 is not found in API Server 2026-01-22 21:57:46,278 - DEBUG - No XMPP flaps were noticed during the test