2026-06-18 09:38:49,756 - INFO - Domain Default found not creating 2026-06-18 09:38:49,911 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-34114604 not found, creating it 2026-06-18 09:38:50,376 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-34114604, ID : 3cee56c2-b503-4ecd-a28f-78ff37a5056a 2026-06-18 09:38:51,821 - INFO - ================================================================================ 2026-06-18 09:38:51,821 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-18 09:38:52,077 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2026-06-18 09:38:52,078 - INFO - Initial checks done. Running the testcase now 2026-06-18 09:38:52,078 - INFO - 2026-06-18 09:38:52,078 - INFO - ================================================================================ 2026-06-18 09:38:52,078 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-18 09:38:52,078 - 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-06-18 09:38:52,368 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2026-06-18 09:38:52,369 - INFO - Initial checks done. Running the testcase now 2026-06-18 09:38:52,369 - INFO - 2026-06-18 09:38:52,732 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-34114604:ctest-vn4-70393938, 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-34114604:ctest-vn4-70393938, 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-34114604:ctest-vn4-70393938, 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-34114604:ctest-vn4-70393938, 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-06-18 09:38:53,228 - DEBUG - Response for create_network : {'network': {'id': '7e50a658-6403-413c-a2a3-e196636211e8', 'name': 'ctest-vn4-70393938', 'tenant_id': '3cee56c2b5034ecda28f78ff37a5056a', 'project_id': '3cee56c2b5034ecda28f78ff37a5056a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-34114604', 'ctest-vn4-70393938'], 'port_security_enabled': True, 'description': ''}} 2026-06-18 09:38:53,405 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ad66899f-89de-4b12-8e73-72f67987f090', 'name': '', 'tenant_id': '3cee56c2b5034ecda28f78ff37a5056a', 'network_id': '7e50a658-6403-413c-a2a3-e196636211e8', 'ip_version': 4, 'cidr': '81.138.50.64/26', 'allocation_pools': [{'start': '81.138.50.66', 'end': '81.138.50.126'}], 'gateway_ip': '81.138.50.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '81.138.50.66', 'tags': [], 'project_id': '3cee56c2b5034ecda28f78ff37a5056a'}} 2026-06-18 09:38:53,607 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c6da998e-2472-4549-ab43-444ff99393e2', 'name': '', 'tenant_id': '3cee56c2b5034ecda28f78ff37a5056a', 'network_id': '7e50a658-6403-413c-a2a3-e196636211e8', 'ip_version': 6, 'cidr': '3445:3df2:3823:ebb1:e519:6a91::/96', 'allocation_pools': [{'start': '3445:3df2:3823:ebb1:e519:6a91:0:2', 'end': '3445:3df2:3823:ebb1:e519:6a91:ffff:fffe'}], 'gateway_ip': '3445:3df2:3823:ebb1:e519:6a91:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3445:3df2:3823:ebb1:e519:6a91:0:2', 'tags': [], 'project_id': '3cee56c2b5034ecda28f78ff37a5056a'}} 2026-06-18 09:38:53,623 - INFO - Created VN ctest-vn4-70393938 2026-06-18 09:38:53,676 - DEBUG - VN ctest-vn4-70393938 UUID is 7e50a658-6403-413c-a2a3-e196636211e8 2026-06-18 09:38:53,854 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7e50a658-6403-413c-a2a3-e196636211e8', 'name': 'ctest-vn4-70393938', 'tenant_id': '3cee56c2b5034ecda28f78ff37a5056a', 'project_id': '3cee56c2b5034ecda28f78ff37a5056a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ad66899f-89de-4b12-8e73-72f67987f090', 'c6da998e-2472-4549-ab43-444ff99393e2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-34114604', 'ctest-vn4-70393938'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-34114604', 'ctest-policy1-01580938']], 'subnet_ipam': [{'subnet_cidr': '81.138.50.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3445:3df2:3823:ebb1:e519:6a91::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-06-18 09:38:54,012 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-06-18 09:38:54,328 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-06-18 09:38:54,352 - DEBUG - Requesting: http://10.0.0.50:8082/domain/728ec705-d720-4c84-aef2-4f5e2dccf844 2026-06-18 09:38:54,363 - DEBUG - Requesting: http://10.0.0.50:8082/project/3cee56c2-b503-4ecd-a28f-78ff37a5056a 2026-06-18 09:38:54,434 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/7e50a658-6403-413c-a2a3-e196636211e8 2026-06-18 09:38:54,444 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/7e50a658-6403-413c-a2a3-e196636211e8 2026-06-18 09:38:54,454 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/154908f0-e93f-4db4-b53b-ca50c936bc97 2026-06-18 09:38:54,461 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/154908f0-e93f-4db4-b53b-ca50c936bc97 2026-06-18 09:38:54,467 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/be51a4b2-dd9a-4cf8-aca3-93e9af39614f 2026-06-18 09:38:54,473 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-18 09:38:54,474 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/7e50a658-6403-413c-a2a3-e196636211e8 2026-06-18 09:38:54,483 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/154908f0-e93f-4db4-b53b-ca50c936bc97 2026-06-18 09:38:54,497 - INFO - Verified VN network id 12 for VN 7e50a658-6403-413c-a2a3-e196636211e8 2026-06-18 09:38:54,497 - INFO - Verifications in API Server for VN ctest-vn4-70393938 passed 2026-06-18 09:38:54,498 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/7e50a658-6403-413c-a2a3-e196636211e8 2026-06-18 09:38:54,507 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/154908f0-e93f-4db4-b53b-ca50c936bc97 2026-06-18 09:38:54,513 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/154908f0-e93f-4db4-b53b-ca50c936bc97 2026-06-18 09:38:54,518 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/be51a4b2-dd9a-4cf8-aca3-93e9af39614f 2026-06-18 09:38:54,529 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-34114604:ctest-vn4-70393938', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-34114604', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9101957745481040188', 'uuid-lslong': '11719458691376878056'}, 'enable': 'true', 'created': '2026-06-18T09:38:53', 'last-modified': '2026-06-18T09:38:53', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.706100'} 2026-06-18 09:38:54,534 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-18 09:38:54,534 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-70393938 passed 2026-06-18 09:38:54,534 - DEBUG - ====Verifying policy data for ctest-vn4-70393938 in API_Server ====== 2026-06-18 09:38:54,534 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-06-18 09:38:54,539 - DEBUG - Requesting: http://10.0.0.50:8082/domain/728ec705-d720-4c84-aef2-4f5e2dccf844 2026-06-18 09:38:54,549 - DEBUG - Requesting: http://10.0.0.50:8082/project/3cee56c2-b503-4ecd-a28f-78ff37a5056a 2026-06-18 09:38:54,617 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/7e50a658-6403-413c-a2a3-e196636211e8 2026-06-18 09:38:54,626 - DEBUG - ==>Verifying data for policy with id: 1d61e9e9-b5b6-45c6-9aac-51cd640f42f1, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-34114604', 'ctest-policy1-01580938'] 2026-06-18 09:38:54,626 - INFO - VN ctest-vn4-70393938 Policy verification: verify_vn_policy_in_api_server, status: True 2026-06-18 09:38:54,626 - DEBUG - Verifying the vn in opserver 2026-06-18 09:38:54,626 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-34114604:ctest-vn4-70393938 virtual network link through opserver 10.0.0.50 2026-06-18 09:38:54,626 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-06-18 09:38:54,947 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-06-18 09:38:55,003 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-34114604:ctest-vn4-70393938', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-34114604:ctest-vn4-70393938?flat'} 2026-06-18 09:38:55,003 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-34114604:ctest-vn4-70393938 is found in opserver 2026-06-18 09:38:55,012 - DEBUG - Do not have enough data to verify VN in agent 2026-06-18 09:38:55,016 - DEBUG - VRF ids for VN ctest-vn4-70393938: {} 2026-06-18 09:38:55,016 - DEBUG - ====Verifying data for ctest-policy1-01580938 in API_Server ====== 2026-06-18 09:38:55,016 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-06-18 09:38:55,021 - DEBUG - Requesting: http://10.0.0.50:8082/domain/728ec705-d720-4c84-aef2-4f5e2dccf844 2026-06-18 09:38:55,031 - DEBUG - Requesting: http://10.0.0.50:8082/project/3cee56c2-b503-4ecd-a28f-78ff37a5056a 2026-06-18 09:38:55,098 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/1d61e9e9-b5b6-45c6-9aac-51cd640f42f1 2026-06-18 09:38:55,109 - INFO - Verified policy ctest-policy1-01580938 in API Server, Result: True 2026-06-18 09:38:55,109 - INFO - Done with setup and verification, moving onto test .. 2026-06-18 09:38:55,117 - INFO - Deleting VN ctest-vn4-70393938 2026-06-18 09:38:55,233 - DEBUG - Response for deleting network () 2026-06-18 09:38:55,233 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/154908f0-e93f-4db4-b53b-ca50c936bc97 2026-06-18 09:38:55,238 - DEBUG - Response Code: 404 2026-06-18 09:38:55,238 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-06-18 09:38:55,244 - DEBUG - Requesting: http://10.0.0.50:8082/domain/728ec705-d720-4c84-aef2-4f5e2dccf844 2026-06-18 09:38:55,297 - DEBUG - Requesting: http://10.0.0.50:8082/project/3cee56c2-b503-4ecd-a28f-78ff37a5056a 2026-06-18 09:38:55,368 - INFO - Validated that VN ctest-vn4-70393938 is not found in API Server 2026-06-18 09:38:55,377 - DEBUG - VN ctest-vn4-70393938 is not present in Agent 10.0.0.50 2026-06-18 09:38:55,377 - INFO - Validated that VN ctest-vn4-70393938 is not in any agent 2026-06-18 09:38:55,392 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-70393938 info 2026-06-18 09:38:55,416 - INFO - Deleted policy ctest-policy1-01580938 2026-06-18 09:38:55,579 - DEBUG - policy ctest-policy1-01580938 is not found in API Server 2026-06-18 09:38:55,832 - DEBUG - No XMPP flaps were noticed during the test