2026-01-08 02:25:33,982 - INFO - Domain Default found not creating 2026-01-08 02:25:34,138 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-98917196 not found, creating it 2026-01-08 02:25:34,696 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-98917196, ID : 557ad4d1-ca87-4b2f-91a1-589910a2f08b 2026-01-08 02:25:36,291 - INFO - ================================================================================ 2026-01-08 02:25:36,291 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-08 02:25:37,571 - DEBUG - Nothing to compare xmpp stats {'10.0.0.57': {'10.20.0.25': '0', '10.20.0.17': '0'}, '10.0.0.56': {'10.20.0.25': '0', '10.20.0.193': '0'}} with 2026-01-08 02:25:37,571 - INFO - Initial checks done. Running the testcase now 2026-01-08 02:25:37,571 - INFO - 2026-01-08 02:25:37,571 - INFO - ================================================================================ 2026-01-08 02:25:37,571 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-08 02:25:37,571 - 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-08 02:25:38,839 - DEBUG - Nothing to compare xmpp stats {'10.0.0.57': {'10.20.0.25': '0', '10.20.0.17': '0'}, '10.0.0.56': {'10.20.0.25': '0', '10.20.0.193': '0'}} with 2026-01-08 02:25:38,839 - INFO - Initial checks done. Running the testcase now 2026-01-08 02:25:38,839 - INFO - 2026-01-08 02:25:39,204 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-98917196:ctest-vn4-62164178, 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-98917196:ctest-vn4-62164178, 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-98917196:ctest-vn4-62164178, 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-98917196:ctest-vn4-62164178, 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-08 02:25:39,842 - DEBUG - Response for create_network : {'network': {'id': '305940f0-3fad-4dae-8d46-4bfbc3dc7da1', 'name': 'ctest-vn4-62164178', 'tenant_id': '557ad4d1ca874b2f91a1589910a2f08b', 'project_id': '557ad4d1ca874b2f91a1589910a2f08b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-98917196', 'ctest-vn4-62164178'], 'port_security_enabled': True, 'description': ''}} 2026-01-08 02:25:40,138 - DEBUG - Response for create_subnet : {'subnet': {'id': 'be399c77-02ab-4fcb-b8b3-a35b55942b4a', 'name': '', 'tenant_id': '557ad4d1ca874b2f91a1589910a2f08b', 'network_id': '305940f0-3fad-4dae-8d46-4bfbc3dc7da1', 'ip_version': 4, 'cidr': '212.39.146.128/26', 'allocation_pools': [{'start': '212.39.146.130', 'end': '212.39.146.190'}], 'gateway_ip': '212.39.146.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '212.39.146.130', 'tags': [], 'project_id': '557ad4d1ca874b2f91a1589910a2f08b'}} 2026-01-08 02:25:40,368 - DEBUG - Response for create_subnet : {'subnet': {'id': '61b6ceb7-686c-48c6-b115-f6621d351de0', 'name': '', 'tenant_id': '557ad4d1ca874b2f91a1589910a2f08b', 'network_id': '305940f0-3fad-4dae-8d46-4bfbc3dc7da1', 'ip_version': 6, 'cidr': '2fdf:1b8d:ba13:113f:bdbf:9ec::/96', 'allocation_pools': [{'start': '2fdf:1b8d:ba13:113f:bdbf:9ec:0:2', 'end': '2fdf:1b8d:ba13:113f:bdbf:9ec:ffff:fffe'}], 'gateway_ip': '2fdf:1b8d:ba13:113f:bdbf:9ec:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2fdf:1b8d:ba13:113f:bdbf:9ec:0:2', 'tags': [], 'project_id': '557ad4d1ca874b2f91a1589910a2f08b'}} 2026-01-08 02:25:40,394 - INFO - Created VN ctest-vn4-62164178 2026-01-08 02:25:40,408 - DEBUG - VN ctest-vn4-62164178 UUID is 305940f0-3fad-4dae-8d46-4bfbc3dc7da1 2026-01-08 02:25:40,625 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '305940f0-3fad-4dae-8d46-4bfbc3dc7da1', 'name': 'ctest-vn4-62164178', 'tenant_id': '557ad4d1ca874b2f91a1589910a2f08b', 'project_id': '557ad4d1ca874b2f91a1589910a2f08b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['be399c77-02ab-4fcb-b8b3-a35b55942b4a', '61b6ceb7-686c-48c6-b115-f6621d351de0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-98917196', 'ctest-vn4-62164178'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-98917196', 'ctest-policy1-80416325']], 'subnet_ipam': [{'subnet_cidr': '212.39.146.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2fdf:1b8d:ba13:113f:bdbf:9ec::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-01-08 02:25:40,737 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-01-08 02:25:41,049 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-01-08 02:25:41,084 - DEBUG - Requesting: http://10.0.0.242:8082/domain/01640a83-288f-426f-a2f2-0c0b4b93ac50 2026-01-08 02:25:41,100 - DEBUG - Requesting: http://10.0.0.242:8082/project/557ad4d1-ca87-4b2f-91a1-589910a2f08b 2026-01-08 02:25:41,189 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/305940f0-3fad-4dae-8d46-4bfbc3dc7da1 2026-01-08 02:25:41,218 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/305940f0-3fad-4dae-8d46-4bfbc3dc7da1 2026-01-08 02:25:41,228 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/5c85ee52-0729-4fdc-a274-19fbccc32da3 2026-01-08 02:25:41,236 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/5c85ee52-0729-4fdc-a274-19fbccc32da3 2026-01-08 02:25:41,244 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/8b45245a-a8d2-4bbf-b29c-4570cfde88fa 2026-01-08 02:25:41,250 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-08 02:25:41,250 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/305940f0-3fad-4dae-8d46-4bfbc3dc7da1 2026-01-08 02:25:41,260 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/5c85ee52-0729-4fdc-a274-19fbccc32da3 2026-01-08 02:25:41,276 - INFO - Verified VN network id 13 for VN 305940f0-3fad-4dae-8d46-4bfbc3dc7da1 2026-01-08 02:25:41,276 - INFO - Verifications in API Server for VN ctest-vn4-62164178 passed 2026-01-08 02:25:41,277 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/305940f0-3fad-4dae-8d46-4bfbc3dc7da1 2026-01-08 02:25:41,286 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/5c85ee52-0729-4fdc-a274-19fbccc32da3 2026-01-08 02:25:41,293 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/5c85ee52-0729-4fdc-a274-19fbccc32da3 2026-01-08 02:25:41,300 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/8b45245a-a8d2-4bbf-b29c-4570cfde88fa 2026-01-08 02:25:41,312 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-98917196:ctest-vn4-62164178', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-98917196', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3483887187352440238', 'uuid-lslong': '10179907552412466593'}, 'enable': 'true', 'created': '2026-01-08T02:25:39', 'last-modified': '2026-01-08T02:25:40', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.715210'} 2026-01-08 02:25:41,318 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-08 02:25:41,324 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-98917196:ctest-vn4-62164178', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-98917196', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3483887187352440238', 'uuid-lslong': '10179907552412466593'}, 'enable': 'true', 'created': '2026-01-08T02:25:39', 'last-modified': '2026-01-08T02:25:40', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.728031'} 2026-01-08 02:25:41,330 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-08 02:25:41,335 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-98917196:ctest-vn4-62164178', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-98917196', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3483887187352440238', 'uuid-lslong': '10179907552412466593'}, 'enable': 'true', 'created': '2026-01-08T02:25:39', 'last-modified': '2026-01-08T02:25:40', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.745159'} 2026-01-08 02:25:41,341 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-08 02:25:41,341 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-62164178 passed 2026-01-08 02:25:41,342 - DEBUG - ====Verifying policy data for ctest-vn4-62164178 in API_Server ====== 2026-01-08 02:25:41,342 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-01-08 02:25:41,347 - DEBUG - Requesting: http://10.0.0.242:8082/domain/01640a83-288f-426f-a2f2-0c0b4b93ac50 2026-01-08 02:25:41,359 - DEBUG - Requesting: http://10.0.0.242:8082/project/557ad4d1-ca87-4b2f-91a1-589910a2f08b 2026-01-08 02:25:41,456 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/305940f0-3fad-4dae-8d46-4bfbc3dc7da1 2026-01-08 02:25:41,466 - DEBUG - ==>Verifying data for policy with id: 71375486-1e35-4e2e-b890-adc1125af8f6, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-98917196', 'ctest-policy1-80416325'] 2026-01-08 02:25:41,466 - INFO - VN ctest-vn4-62164178 Policy verification: verify_vn_policy_in_api_server, status: True 2026-01-08 02:25:41,466 - DEBUG - Verifying the vn in opserver 2026-01-08 02:25:41,466 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-98917196:ctest-vn4-62164178 virtual network link through opserver 10.0.0.242 2026-01-08 02:25:41,466 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2026-01-08 02:25:41,770 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2026-01-08 02:25:41,837 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-98917196:ctest-vn4-62164178', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-98917196:ctest-vn4-62164178?flat'} 2026-01-08 02:25:41,837 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-98917196:ctest-vn4-62164178 virtual network link through opserver 10.0.0.50 2026-01-08 02:25:41,837 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-01-08 02:25:42,128 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-01-08 02:25:42,182 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-98917196:ctest-vn4-62164178', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-98917196:ctest-vn4-62164178?flat'} 2026-01-08 02:25:42,182 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-98917196:ctest-vn4-62164178 virtual network link through opserver 10.0.0.27 2026-01-08 02:25:42,182 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2026-01-08 02:25:42,474 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2026-01-08 02:25:42,542 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-98917196:ctest-vn4-62164178', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-98917196:ctest-vn4-62164178?flat'} 2026-01-08 02:25:42,542 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-98917196:ctest-vn4-62164178 is found in opserver 2026-01-08 02:25:42,563 - DEBUG - Do not have enough data to verify VN in agent 2026-01-08 02:25:42,572 - DEBUG - VRF ids for VN ctest-vn4-62164178: {} 2026-01-08 02:25:42,572 - DEBUG - ====Verifying data for ctest-policy1-80416325 in API_Server ====== 2026-01-08 02:25:42,572 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-01-08 02:25:42,578 - DEBUG - Requesting: http://10.0.0.242:8082/domain/01640a83-288f-426f-a2f2-0c0b4b93ac50 2026-01-08 02:25:42,588 - DEBUG - Requesting: http://10.0.0.242:8082/project/557ad4d1-ca87-4b2f-91a1-589910a2f08b 2026-01-08 02:25:42,679 - DEBUG - Requesting: http://10.0.0.242:8082/network-policy/71375486-1e35-4e2e-b890-adc1125af8f6 2026-01-08 02:25:42,687 - INFO - Verified policy ctest-policy1-80416325 in API Server, Result: True 2026-01-08 02:25:42,688 - INFO - Done with setup and verification, moving onto test .. 2026-01-08 02:25:42,699 - INFO - Deleting VN ctest-vn4-62164178 2026-01-08 02:25:42,893 - DEBUG - Response for deleting network () 2026-01-08 02:25:42,893 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/5c85ee52-0729-4fdc-a274-19fbccc32da3 2026-01-08 02:25:42,907 - DEBUG - Response Code: 404 2026-01-08 02:25:42,908 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-01-08 02:25:42,915 - DEBUG - Requesting: http://10.0.0.242:8082/domain/01640a83-288f-426f-a2f2-0c0b4b93ac50 2026-01-08 02:25:42,931 - DEBUG - Requesting: http://10.0.0.242:8082/project/557ad4d1-ca87-4b2f-91a1-589910a2f08b 2026-01-08 02:25:43,031 - INFO - Validated that VN ctest-vn4-62164178 is not found in API Server 2026-01-08 02:25:43,041 - DEBUG - VN ctest-vn4-62164178 is not present in Agent 10.0.0.57 2026-01-08 02:25:43,052 - DEBUG - VN ctest-vn4-62164178 is not present in Agent 10.0.0.56 2026-01-08 02:25:43,053 - INFO - Validated that VN ctest-vn4-62164178 is not in any agent 2026-01-08 02:25:43,082 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-62164178 info 2026-01-08 02:25:43,126 - INFO - Deleted policy ctest-policy1-80416325 2026-01-08 02:25:43,319 - DEBUG - policy ctest-policy1-80416325 is not found in API Server 2026-01-08 02:25:44,602 - DEBUG - No XMPP flaps were noticed during the test
2026-01-08 02:25:44,602 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:07]
2026-01-08 02:25:44,602 - INFO - -------------------------------------------------------------------------------- 2026-01-08 02:25:45,873 - DEBUG - No XMPP flaps were noticed during the test
2026-01-08 02:25:45,873 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:09]
2026-01-08 02:25:45,874 - INFO - -------------------------------------------------------------------------------- 2026-01-08 02:25:46,608 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-98917196, ID : 557ad4d1-ca87-4b2f-91a1-589910a2f08b