2026-04-30 08:49:23,019 - INFO - Domain Default found not creating 2026-04-30 08:49:23,184 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-99137201 not found, creating it 2026-04-30 08:49:23,651 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-99137201, ID : f6101d36-890d-4af7-acbe-8cf18b9c164b 2026-04-30 08:49:25,067 - INFO - ================================================================================ 2026-04-30 08:49:25,067 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-04-30 08:49:25,319 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.17': '0'}} with 2026-04-30 08:49:25,320 - INFO - Initial checks done. Running the testcase now 2026-04-30 08:49:25,320 - INFO - 2026-04-30 08:49:25,320 - INFO - ================================================================================ 2026-04-30 08:49:25,320 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-04-30 08:49:25,320 - 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-04-30 08:49:25,611 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.17': '0'}} with 2026-04-30 08:49:25,611 - INFO - Initial checks done. Running the testcase now 2026-04-30 08:49:25,612 - INFO - 2026-04-30 08:49:25,958 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-99137201:ctest-vn4-66638085, 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-99137201:ctest-vn4-66638085, 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-99137201:ctest-vn4-66638085, 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-99137201:ctest-vn4-66638085, 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-04-30 08:49:26,456 - DEBUG - Response for create_network : {'network': {'id': '91b37282-f394-47ca-b89a-3eafaf743215', 'name': 'ctest-vn4-66638085', 'tenant_id': 'f6101d36890d4af7acbe8cf18b9c164b', 'project_id': 'f6101d36890d4af7acbe8cf18b9c164b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-99137201', 'ctest-vn4-66638085'], 'port_security_enabled': True, 'description': ''}} 2026-04-30 08:49:26,627 - DEBUG - Response for create_subnet : {'subnet': {'id': 'de91c723-b68c-49ea-a93c-95d9ec07da03', 'name': '', 'tenant_id': 'f6101d36890d4af7acbe8cf18b9c164b', 'network_id': '91b37282-f394-47ca-b89a-3eafaf743215', 'ip_version': 4, 'cidr': '199.43.189.0/26', 'allocation_pools': [{'start': '199.43.189.2', 'end': '199.43.189.62'}], 'gateway_ip': '199.43.189.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '199.43.189.2', 'tags': [], 'project_id': 'f6101d36890d4af7acbe8cf18b9c164b'}} 2026-04-30 08:49:26,829 - DEBUG - Response for create_subnet : {'subnet': {'id': '319e536c-292d-4e3b-b3d0-4be93472937f', 'name': '', 'tenant_id': 'f6101d36890d4af7acbe8cf18b9c164b', 'network_id': '91b37282-f394-47ca-b89a-3eafaf743215', 'ip_version': 6, 'cidr': '2602:c3ff:d856:fe2d:30a5:319e::/96', 'allocation_pools': [{'start': '2602:c3ff:d856:fe2d:30a5:319e:0:2', 'end': '2602:c3ff:d856:fe2d:30a5:319e:ffff:fffe'}], 'gateway_ip': '2602:c3ff:d856:fe2d:30a5:319e:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2602:c3ff:d856:fe2d:30a5:319e:0:2', 'tags': [], 'project_id': 'f6101d36890d4af7acbe8cf18b9c164b'}} 2026-04-30 08:49:26,852 - INFO - Created VN ctest-vn4-66638085 2026-04-30 08:49:26,903 - DEBUG - VN ctest-vn4-66638085 UUID is 91b37282-f394-47ca-b89a-3eafaf743215 2026-04-30 08:49:27,091 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '91b37282-f394-47ca-b89a-3eafaf743215', 'name': 'ctest-vn4-66638085', 'tenant_id': 'f6101d36890d4af7acbe8cf18b9c164b', 'project_id': 'f6101d36890d4af7acbe8cf18b9c164b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['de91c723-b68c-49ea-a93c-95d9ec07da03', '319e536c-292d-4e3b-b3d0-4be93472937f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-99137201', 'ctest-vn4-66638085'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-99137201', 'ctest-policy1-18989486']], 'subnet_ipam': [{'subnet_cidr': '199.43.189.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2602:c3ff:d856:fe2d:30a5:319e::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-04-30 08:49:27,251 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-04-30 08:49:27,547 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-04-30 08:49:27,576 - DEBUG - Requesting: http://10.0.0.141:8082/domain/3c3b964b-15ea-41d3-8ed5-71c6292fb419 2026-04-30 08:49:27,587 - DEBUG - Requesting: http://10.0.0.141:8082/project/f6101d36-890d-4af7-acbe-8cf18b9c164b 2026-04-30 08:49:27,657 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/91b37282-f394-47ca-b89a-3eafaf743215 2026-04-30 08:49:27,670 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/91b37282-f394-47ca-b89a-3eafaf743215 2026-04-30 08:49:27,679 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/086caaf4-6fd5-4db7-ade3-d04ed58d4657 2026-04-30 08:49:27,686 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/086caaf4-6fd5-4db7-ade3-d04ed58d4657 2026-04-30 08:49:27,692 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/d19d6eb2-c175-48b1-86bc-101547bd08a0 2026-04-30 08:49:27,698 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-30 08:49:27,698 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/91b37282-f394-47ca-b89a-3eafaf743215 2026-04-30 08:49:27,706 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/086caaf4-6fd5-4db7-ade3-d04ed58d4657 2026-04-30 08:49:27,720 - INFO - Verified VN network id 11 for VN 91b37282-f394-47ca-b89a-3eafaf743215 2026-04-30 08:49:27,720 - INFO - Verifications in API Server for VN ctest-vn4-66638085 passed 2026-04-30 08:49:27,721 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/91b37282-f394-47ca-b89a-3eafaf743215 2026-04-30 08:49:27,729 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/086caaf4-6fd5-4db7-ade3-d04ed58d4657 2026-04-30 08:49:27,735 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/086caaf4-6fd5-4db7-ade3-d04ed58d4657 2026-04-30 08:49:27,742 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/d19d6eb2-c175-48b1-86bc-101547bd08a0 2026-04-30 08:49:27,754 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-99137201:ctest-vn4-66638085', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-99137201', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10498861063088654282', 'uuid-lslong': '13302013373676007957'}, 'enable': 'true', 'created': '2026-04-30T08:49:26', 'last-modified': '2026-04-30T08:49:27', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.687802'} 2026-04-30 08:49:27,760 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-30 08:49:27,760 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-66638085 passed 2026-04-30 08:49:27,760 - DEBUG - ====Verifying policy data for ctest-vn4-66638085 in API_Server ====== 2026-04-30 08:49:27,760 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-04-30 08:49:27,767 - DEBUG - Requesting: http://10.0.0.141:8082/domain/3c3b964b-15ea-41d3-8ed5-71c6292fb419 2026-04-30 08:49:27,778 - DEBUG - Requesting: http://10.0.0.141:8082/project/f6101d36-890d-4af7-acbe-8cf18b9c164b 2026-04-30 08:49:27,852 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/91b37282-f394-47ca-b89a-3eafaf743215 2026-04-30 08:49:27,863 - DEBUG - ==>Verifying data for policy with id: 0b3924f9-493c-43b9-9de9-5c9de888443e, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-99137201', 'ctest-policy1-18989486'] 2026-04-30 08:49:27,863 - INFO - VN ctest-vn4-66638085 Policy verification: verify_vn_policy_in_api_server, status: True 2026-04-30 08:49:27,863 - DEBUG - Verifying the vn in opserver 2026-04-30 08:49:27,863 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-99137201:ctest-vn4-66638085 virtual network link through opserver 10.0.0.141 2026-04-30 08:49:27,863 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2026-04-30 08:49:28,157 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2026-04-30 08:49:28,213 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-99137201:ctest-vn4-66638085', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-99137201:ctest-vn4-66638085?flat'} 2026-04-30 08:49:28,213 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-99137201:ctest-vn4-66638085 is found in opserver 2026-04-30 08:49:28,224 - DEBUG - Do not have enough data to verify VN in agent 2026-04-30 08:49:28,229 - DEBUG - VRF ids for VN ctest-vn4-66638085: {} 2026-04-30 08:49:28,230 - DEBUG - ====Verifying data for ctest-policy1-18989486 in API_Server ====== 2026-04-30 08:49:28,230 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-04-30 08:49:28,235 - DEBUG - Requesting: http://10.0.0.141:8082/domain/3c3b964b-15ea-41d3-8ed5-71c6292fb419 2026-04-30 08:49:28,244 - DEBUG - Requesting: http://10.0.0.141:8082/project/f6101d36-890d-4af7-acbe-8cf18b9c164b 2026-04-30 08:49:28,312 - DEBUG - Requesting: http://10.0.0.141:8082/network-policy/0b3924f9-493c-43b9-9de9-5c9de888443e 2026-04-30 08:49:28,324 - INFO - Verified policy ctest-policy1-18989486 in API Server, Result: True 2026-04-30 08:49:28,324 - INFO - Done with setup and verification, moving onto test .. 2026-04-30 08:49:28,332 - INFO - Deleting VN ctest-vn4-66638085 2026-04-30 08:49:28,440 - DEBUG - Response for deleting network () 2026-04-30 08:49:28,440 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/086caaf4-6fd5-4db7-ade3-d04ed58d4657 2026-04-30 08:49:28,445 - DEBUG - Response Code: 404 2026-04-30 08:49:28,445 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-04-30 08:49:28,450 - DEBUG - Requesting: http://10.0.0.141:8082/domain/3c3b964b-15ea-41d3-8ed5-71c6292fb419 2026-04-30 08:49:28,504 - DEBUG - Requesting: http://10.0.0.141:8082/project/f6101d36-890d-4af7-acbe-8cf18b9c164b 2026-04-30 08:49:28,575 - INFO - Validated that VN ctest-vn4-66638085 is not found in API Server 2026-04-30 08:49:28,587 - DEBUG - VN ctest-vn4-66638085 is not present in Agent 10.0.0.141 2026-04-30 08:49:28,587 - INFO - Validated that VN ctest-vn4-66638085 is not in any agent 2026-04-30 08:49:28,600 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-66638085 info 2026-04-30 08:49:28,627 - INFO - Deleted policy ctest-policy1-18989486 2026-04-30 08:49:28,794 - DEBUG - policy ctest-policy1-18989486 is not found in API Server 2026-04-30 08:49:29,048 - DEBUG - No XMPP flaps were noticed during the test