2026-05-14 10:34:17,064 - INFO - Domain Default found not creating 2026-05-14 10:34:17,262 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-03956805 not found, creating it 2026-05-14 10:34:17,714 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-03956805, ID : 78af19fd-584b-406a-aa38-a35d0499d710 2026-05-14 10:34:19,408 - INFO - ================================================================================ 2026-05-14 10:34:19,408 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-05-14 10:34:19,687 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2026-05-14 10:34:19,687 - INFO - Initial checks done. Running the testcase now 2026-05-14 10:34:19,688 - INFO - 2026-05-14 10:34:19,688 - INFO - ================================================================================ 2026-05-14 10:34:19,688 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-05-14 10:34:19,688 - 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-14 10:34:19,993 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2026-05-14 10:34:19,993 - INFO - Initial checks done. Running the testcase now 2026-05-14 10:34:19,994 - INFO - 2026-05-14 10:34:20,438 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-03956805:ctest-vn4-98110106, 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-03956805:ctest-vn4-98110106, 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-03956805:ctest-vn4-98110106, 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-03956805:ctest-vn4-98110106, 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-14 10:34:21,086 - DEBUG - Response for create_network : {'network': {'id': '73e6846c-1255-40a4-9dc1-0db6d3adab4d', 'name': 'ctest-vn4-98110106', 'tenant_id': '78af19fd584b406aaa38a35d0499d710', 'project_id': '78af19fd584b406aaa38a35d0499d710', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-03956805', 'ctest-vn4-98110106'], 'port_security_enabled': True, 'description': ''}} 2026-05-14 10:34:21,340 - DEBUG - Response for create_subnet : {'subnet': {'id': '0f4ea1b7-12f2-435f-9c4a-19d697c8a3e7', 'name': '', 'tenant_id': '78af19fd584b406aaa38a35d0499d710', 'network_id': '73e6846c-1255-40a4-9dc1-0db6d3adab4d', 'ip_version': 4, 'cidr': '24.70.134.64/26', 'allocation_pools': [{'start': '24.70.134.66', 'end': '24.70.134.126'}], 'gateway_ip': '24.70.134.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '24.70.134.66', 'tags': [], 'project_id': '78af19fd584b406aaa38a35d0499d710'}} 2026-05-14 10:34:21,574 - DEBUG - Response for create_subnet : {'subnet': {'id': '8354ea8e-2512-4042-a091-98833368ddb5', 'name': '', 'tenant_id': '78af19fd584b406aaa38a35d0499d710', 'network_id': '73e6846c-1255-40a4-9dc1-0db6d3adab4d', 'ip_version': 6, 'cidr': '26af:d320:668e:ce84:e3ee:97e4::/96', 'allocation_pools': [{'start': '26af:d320:668e:ce84:e3ee:97e4:0:2', 'end': '26af:d320:668e:ce84:e3ee:97e4:ffff:fffe'}], 'gateway_ip': '26af:d320:668e:ce84:e3ee:97e4:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '26af:d320:668e:ce84:e3ee:97e4:0:2', 'tags': [], 'project_id': '78af19fd584b406aaa38a35d0499d710'}} 2026-05-14 10:34:21,609 - INFO - Created VN ctest-vn4-98110106 2026-05-14 10:34:21,672 - DEBUG - VN ctest-vn4-98110106 UUID is 73e6846c-1255-40a4-9dc1-0db6d3adab4d 2026-05-14 10:34:21,980 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '73e6846c-1255-40a4-9dc1-0db6d3adab4d', 'name': 'ctest-vn4-98110106', 'tenant_id': '78af19fd584b406aaa38a35d0499d710', 'project_id': '78af19fd584b406aaa38a35d0499d710', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0f4ea1b7-12f2-435f-9c4a-19d697c8a3e7', '8354ea8e-2512-4042-a091-98833368ddb5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-03956805', 'ctest-vn4-98110106'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-03956805', 'ctest-policy1-84941075']], 'subnet_ipam': [{'subnet_cidr': '24.70.134.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '26af:d320:668e:ce84:e3ee:97e4::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-05-14 10:34:22,152 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-05-14 10:34:22,500 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-05-14 10:34:22,557 - DEBUG - Requesting: http://10.0.0.50:8082/domain/5f904339-0c5d-4c99-956c-fc475be2323a 2026-05-14 10:34:22,578 - DEBUG - Requesting: http://10.0.0.50:8082/project/78af19fd-584b-406a-aa38-a35d0499d710 2026-05-14 10:34:22,685 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/73e6846c-1255-40a4-9dc1-0db6d3adab4d 2026-05-14 10:34:22,707 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/73e6846c-1255-40a4-9dc1-0db6d3adab4d 2026-05-14 10:34:22,723 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/147c0a87-6340-4a9b-9d9b-1d4899e9276e 2026-05-14 10:34:22,735 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/147c0a87-6340-4a9b-9d9b-1d4899e9276e 2026-05-14 10:34:22,748 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/f812dc52-73bf-4824-8ace-5adfd9bb39ef 2026-05-14 10:34:22,761 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-14 10:34:22,761 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/73e6846c-1255-40a4-9dc1-0db6d3adab4d 2026-05-14 10:34:22,780 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/147c0a87-6340-4a9b-9d9b-1d4899e9276e 2026-05-14 10:34:22,807 - INFO - Verified VN network id 12 for VN 73e6846c-1255-40a4-9dc1-0db6d3adab4d 2026-05-14 10:34:22,808 - INFO - Verifications in API Server for VN ctest-vn4-98110106 passed 2026-05-14 10:34:22,808 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/73e6846c-1255-40a4-9dc1-0db6d3adab4d 2026-05-14 10:34:22,829 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/147c0a87-6340-4a9b-9d9b-1d4899e9276e 2026-05-14 10:34:22,842 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/147c0a87-6340-4a9b-9d9b-1d4899e9276e 2026-05-14 10:34:22,854 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/f812dc52-73bf-4824-8ace-5adfd9bb39ef 2026-05-14 10:34:22,877 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-03956805:ctest-vn4-98110106', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-03956805', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8351508158704074916', 'uuid-lslong': '11367382013346425677'}, 'enable': 'true', 'created': '2026-05-14T10:34:21', 'last-modified': '2026-05-14T10:34:21', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.950808'} 2026-05-14 10:34:22,890 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-14 10:34:22,890 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-98110106 passed 2026-05-14 10:34:22,891 - DEBUG - ====Verifying policy data for ctest-vn4-98110106 in API_Server ====== 2026-05-14 10:34:22,891 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-05-14 10:34:22,902 - DEBUG - Requesting: http://10.0.0.50:8082/domain/5f904339-0c5d-4c99-956c-fc475be2323a 2026-05-14 10:34:22,921 - DEBUG - Requesting: http://10.0.0.50:8082/project/78af19fd-584b-406a-aa38-a35d0499d710 2026-05-14 10:34:23,026 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/73e6846c-1255-40a4-9dc1-0db6d3adab4d 2026-05-14 10:34:23,044 - DEBUG - ==>Verifying data for policy with id: b8269ec1-21c2-4dae-a960-35fbae0e08af, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-03956805', 'ctest-policy1-84941075'] 2026-05-14 10:34:23,044 - INFO - VN ctest-vn4-98110106 Policy verification: verify_vn_policy_in_api_server, status: True 2026-05-14 10:34:23,044 - DEBUG - Verifying the vn in opserver 2026-05-14 10:34:23,044 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-03956805:ctest-vn4-98110106 virtual network link through opserver 10.0.0.50 2026-05-14 10:34:23,045 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-05-14 10:34:23,444 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-05-14 10:34:23,571 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-03956805:ctest-vn4-98110106', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-03956805:ctest-vn4-98110106?flat'} 2026-05-14 10:34:23,571 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-03956805:ctest-vn4-98110106 is found in opserver 2026-05-14 10:34:23,591 - DEBUG - Do not have enough data to verify VN in agent 2026-05-14 10:34:23,601 - DEBUG - VRF ids for VN ctest-vn4-98110106: {} 2026-05-14 10:34:23,602 - DEBUG - ====Verifying data for ctest-policy1-84941075 in API_Server ====== 2026-05-14 10:34:23,602 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-05-14 10:34:23,614 - DEBUG - Requesting: http://10.0.0.50:8082/domain/5f904339-0c5d-4c99-956c-fc475be2323a 2026-05-14 10:34:23,637 - DEBUG - Requesting: http://10.0.0.50:8082/project/78af19fd-584b-406a-aa38-a35d0499d710 2026-05-14 10:34:23,745 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/b8269ec1-21c2-4dae-a960-35fbae0e08af 2026-05-14 10:34:23,764 - INFO - Verified policy ctest-policy1-84941075 in API Server, Result: True 2026-05-14 10:34:23,764 - INFO - Done with setup and verification, moving onto test .. 2026-05-14 10:34:23,780 - INFO - Deleting VN ctest-vn4-98110106 2026-05-14 10:34:24,053 - DEBUG - Response for deleting network () 2026-05-14 10:34:24,054 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/147c0a87-6340-4a9b-9d9b-1d4899e9276e 2026-05-14 10:34:24,065 - DEBUG - Response Code: 404 2026-05-14 10:34:24,065 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-05-14 10:34:24,078 - DEBUG - Requesting: http://10.0.0.50:8082/domain/5f904339-0c5d-4c99-956c-fc475be2323a 2026-05-14 10:34:24,099 - DEBUG - Requesting: http://10.0.0.50:8082/project/78af19fd-584b-406a-aa38-a35d0499d710 2026-05-14 10:34:24,195 - INFO - Validated that VN ctest-vn4-98110106 is not found in API Server 2026-05-14 10:34:24,212 - DEBUG - VN ctest-vn4-98110106 is not present in Agent 10.0.0.50 2026-05-14 10:34:24,212 - INFO - Validated that VN ctest-vn4-98110106 is not in any agent 2026-05-14 10:34:24,238 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-98110106 info 2026-05-14 10:34:24,293 - INFO - Deleted policy ctest-policy1-84941075 2026-05-14 10:34:24,491 - DEBUG - policy ctest-policy1-84941075 is not found in API Server 2026-05-14 10:34:24,781 - DEBUG - No XMPP flaps were noticed during the test
2026-05-14 10:34:24,781 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-05-14 10:34:24,781 - INFO - -------------------------------------------------------------------------------- 2026-05-14 10:34:25,092 - DEBUG - No XMPP flaps were noticed during the test
2026-05-14 10:34:25,092 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:06]
2026-05-14 10:34:25,092 - INFO - -------------------------------------------------------------------------------- 2026-05-14 10:34:25,940 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-03956805, ID : 78af19fd-584b-406a-aa38-a35d0499d710