2026-05-29 12:58:54,649 - INFO - Domain Default found not creating 2026-05-29 12:58:54,818 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-30722918 not found, creating it 2026-05-29 12:58:55,299 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-30722918, ID : 2618a1f2-8f47-4c72-91c9-93c3f77b4ea9 2026-05-29 12:58:56,785 - INFO - ================================================================================ 2026-05-29 12:58:56,785 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-05-29 12:58:57,047 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.254': '0'}} with 2026-05-29 12:58:57,047 - INFO - Initial checks done. Running the testcase now 2026-05-29 12:58:57,047 - INFO - 2026-05-29 12:58:57,048 - INFO - ================================================================================ 2026-05-29 12:58:57,048 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-05-29 12:58:57,048 - 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-05-29 12:58:57,343 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.254': '0'}} with 2026-05-29 12:58:57,343 - INFO - Initial checks done. Running the testcase now 2026-05-29 12:58:57,343 - INFO - 2026-05-29 12:58:57,733 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-30722918:ctest-vn4-72615300, 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-30722918:ctest-vn4-72615300, 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-30722918:ctest-vn4-72615300, 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-30722918:ctest-vn4-72615300, 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-05-29 12:58:58,252 - DEBUG - Response for create_network : {'network': {'id': 'fefb520a-9dfc-4a03-a4bc-91539837802b', 'name': 'ctest-vn4-72615300', 'tenant_id': '2618a1f28f474c7291c993c3f77b4ea9', 'project_id': '2618a1f28f474c7291c993c3f77b4ea9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-30722918', 'ctest-vn4-72615300'], 'port_security_enabled': True, 'description': ''}} 2026-05-29 12:58:58,436 - DEBUG - Response for create_subnet : {'subnet': {'id': '95c3d6ff-c6de-4c31-a0f2-2fe95479400c', 'name': '', 'tenant_id': '2618a1f28f474c7291c993c3f77b4ea9', 'network_id': 'fefb520a-9dfc-4a03-a4bc-91539837802b', 'ip_version': 4, 'cidr': '199.37.220.64/26', 'allocation_pools': [{'start': '199.37.220.66', 'end': '199.37.220.126'}], 'gateway_ip': '199.37.220.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '199.37.220.66', 'tags': [], 'project_id': '2618a1f28f474c7291c993c3f77b4ea9'}} 2026-05-29 12:58:58,586 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd48bb01f-30e4-4224-a40f-6e8573f64f34', 'name': '', 'tenant_id': '2618a1f28f474c7291c993c3f77b4ea9', 'network_id': 'fefb520a-9dfc-4a03-a4bc-91539837802b', 'ip_version': 6, 'cidr': '2dd1:8380:907b:a739:3a6a:fdd2::/96', 'allocation_pools': [{'start': '2dd1:8380:907b:a739:3a6a:fdd2:0:2', 'end': '2dd1:8380:907b:a739:3a6a:fdd2:ffff:fffe'}], 'gateway_ip': '2dd1:8380:907b:a739:3a6a:fdd2:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2dd1:8380:907b:a739:3a6a:fdd2:0:2', 'tags': [], 'project_id': '2618a1f28f474c7291c993c3f77b4ea9'}} 2026-05-29 12:58:58,606 - INFO - Created VN ctest-vn4-72615300 2026-05-29 12:58:58,658 - DEBUG - VN ctest-vn4-72615300 UUID is fefb520a-9dfc-4a03-a4bc-91539837802b 2026-05-29 12:58:58,857 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'fefb520a-9dfc-4a03-a4bc-91539837802b', 'name': 'ctest-vn4-72615300', 'tenant_id': '2618a1f28f474c7291c993c3f77b4ea9', 'project_id': '2618a1f28f474c7291c993c3f77b4ea9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['95c3d6ff-c6de-4c31-a0f2-2fe95479400c', 'd48bb01f-30e4-4224-a40f-6e8573f64f34'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-30722918', 'ctest-vn4-72615300'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-30722918', 'ctest-policy1-36122755']], 'subnet_ipam': [{'subnet_cidr': '199.37.220.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2dd1:8380:907b:a739:3a6a:fdd2::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-05-29 12:58:59,018 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-05-29 12:58:59,308 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-05-29 12:58:59,337 - DEBUG - Requesting: http://10.0.0.33:8082/domain/85a7a162-38a2-4247-9a3b-f3e8e668adc5 2026-05-29 12:58:59,350 - DEBUG - Requesting: http://10.0.0.33:8082/project/2618a1f2-8f47-4c72-91c9-93c3f77b4ea9 2026-05-29 12:58:59,419 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/fefb520a-9dfc-4a03-a4bc-91539837802b 2026-05-29 12:58:59,430 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/fefb520a-9dfc-4a03-a4bc-91539837802b 2026-05-29 12:58:59,440 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/9890f119-b9a5-4eb3-b994-cf36f456e879 2026-05-29 12:58:59,449 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/9890f119-b9a5-4eb3-b994-cf36f456e879 2026-05-29 12:58:59,455 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/c04af9f3-a5fb-4ea2-9372-896882aa2d96 2026-05-29 12:58:59,461 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-29 12:58:59,461 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/fefb520a-9dfc-4a03-a4bc-91539837802b 2026-05-29 12:58:59,469 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/9890f119-b9a5-4eb3-b994-cf36f456e879 2026-05-29 12:58:59,482 - INFO - Verified VN network id 11 for VN fefb520a-9dfc-4a03-a4bc-91539837802b 2026-05-29 12:58:59,482 - INFO - Verifications in API Server for VN ctest-vn4-72615300 passed 2026-05-29 12:58:59,483 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/fefb520a-9dfc-4a03-a4bc-91539837802b 2026-05-29 12:58:59,491 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/9890f119-b9a5-4eb3-b994-cf36f456e879 2026-05-29 12:58:59,498 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/9890f119-b9a5-4eb3-b994-cf36f456e879 2026-05-29 12:58:59,504 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/c04af9f3-a5fb-4ea2-9372-896882aa2d96 2026-05-29 12:58:59,515 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-30722918:ctest-vn4-72615300', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-30722918', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18373369310341777923', 'uuid-lslong': '11870522506063872043'}, 'enable': 'true', 'created': '2026-05-29T12:58:58', 'last-modified': '2026-05-29T12:58:58', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.687927'} 2026-05-29 12:58:59,521 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-29 12:58:59,521 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-72615300 passed 2026-05-29 12:58:59,521 - DEBUG - ====Verifying policy data for ctest-vn4-72615300 in API_Server ====== 2026-05-29 12:58:59,521 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-05-29 12:58:59,527 - DEBUG - Requesting: http://10.0.0.33:8082/domain/85a7a162-38a2-4247-9a3b-f3e8e668adc5 2026-05-29 12:58:59,539 - DEBUG - Requesting: http://10.0.0.33:8082/project/2618a1f2-8f47-4c72-91c9-93c3f77b4ea9 2026-05-29 12:58:59,614 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/fefb520a-9dfc-4a03-a4bc-91539837802b 2026-05-29 12:58:59,626 - DEBUG - ==>Verifying data for policy with id: 991baf28-8678-4c39-af54-3c4a1af99cd4, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-30722918', 'ctest-policy1-36122755'] 2026-05-29 12:58:59,626 - INFO - VN ctest-vn4-72615300 Policy verification: verify_vn_policy_in_api_server, status: True 2026-05-29 12:58:59,626 - DEBUG - Verifying the vn in opserver 2026-05-29 12:58:59,626 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-30722918:ctest-vn4-72615300 virtual network link through opserver 10.0.0.33 2026-05-29 12:58:59,626 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-05-29 12:58:59,927 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-05-29 12:58:59,996 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-30722918:ctest-vn4-72615300', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-30722918:ctest-vn4-72615300?flat'} 2026-05-29 12:58:59,996 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-30722918:ctest-vn4-72615300 is found in opserver 2026-05-29 12:59:00,006 - DEBUG - Do not have enough data to verify VN in agent 2026-05-29 12:59:00,010 - DEBUG - VRF ids for VN ctest-vn4-72615300: {} 2026-05-29 12:59:00,011 - DEBUG - ====Verifying data for ctest-policy1-36122755 in API_Server ====== 2026-05-29 12:59:00,011 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-05-29 12:59:00,016 - DEBUG - Requesting: http://10.0.0.33:8082/domain/85a7a162-38a2-4247-9a3b-f3e8e668adc5 2026-05-29 12:59:00,026 - DEBUG - Requesting: http://10.0.0.33:8082/project/2618a1f2-8f47-4c72-91c9-93c3f77b4ea9 2026-05-29 12:59:00,096 - DEBUG - Requesting: http://10.0.0.33:8082/network-policy/991baf28-8678-4c39-af54-3c4a1af99cd4 2026-05-29 12:59:00,106 - INFO - Verified policy ctest-policy1-36122755 in API Server, Result: True 2026-05-29 12:59:00,106 - INFO - Done with setup and verification, moving onto test .. 2026-05-29 12:59:00,115 - INFO - Deleting VN ctest-vn4-72615300 2026-05-29 12:59:00,231 - DEBUG - Response for deleting network () 2026-05-29 12:59:00,232 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/9890f119-b9a5-4eb3-b994-cf36f456e879 2026-05-29 12:59:00,236 - DEBUG - Response Code: 404 2026-05-29 12:59:00,236 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-05-29 12:59:00,241 - DEBUG - Requesting: http://10.0.0.33:8082/domain/85a7a162-38a2-4247-9a3b-f3e8e668adc5 2026-05-29 12:59:00,295 - DEBUG - Requesting: http://10.0.0.33:8082/project/2618a1f2-8f47-4c72-91c9-93c3f77b4ea9 2026-05-29 12:59:00,362 - INFO - Validated that VN ctest-vn4-72615300 is not found in API Server 2026-05-29 12:59:00,371 - DEBUG - VN ctest-vn4-72615300 is not present in Agent 10.0.0.33 2026-05-29 12:59:00,371 - INFO - Validated that VN ctest-vn4-72615300 is not in any agent 2026-05-29 12:59:00,388 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-72615300 info 2026-05-29 12:59:00,409 - INFO - Deleted policy ctest-policy1-36122755 2026-05-29 12:59:00,569 - DEBUG - policy ctest-policy1-36122755 is not found in API Server 2026-05-29 12:59:00,831 - DEBUG - No XMPP flaps were noticed during the test