2026-08-14 14:32:41,693 - INFO - Domain Default found not creating 2026-08-14 14:32:41,877 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-24153811 not found, creating it 2026-08-14 14:32:42,417 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-24153811, ID : b856bc51-f959-442f-ad55-d6524aa63203 2026-08-14 14:32:44,108 - INFO - ================================================================================ 2026-08-14 14:32:44,109 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-08-14 14:32:44,383 - DEBUG - Nothing to compare xmpp stats {'10.0.0.162': {'10.20.0.25': '0'}} with 2026-08-14 14:32:44,383 - INFO - Initial checks done. Running the testcase now 2026-08-14 14:32:44,383 - INFO - 2026-08-14 14:32:44,383 - INFO - ================================================================================ 2026-08-14 14:32:44,383 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-08-14 14:32:44,383 - 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-08-14 14:32:44,676 - DEBUG - Nothing to compare xmpp stats {'10.0.0.162': {'10.20.0.25': '0'}} with 2026-08-14 14:32:44,676 - INFO - Initial checks done. Running the testcase now 2026-08-14 14:32:44,676 - INFO - 2026-08-14 14:32:45,073 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-24153811:ctest-vn4-05680387, 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-24153811:ctest-vn4-05680387, 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-24153811:ctest-vn4-05680387, 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-24153811:ctest-vn4-05680387, 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-08-14 14:32:45,610 - DEBUG - Response for create_network : {'network': {'id': '89bdde12-8242-44ea-b7a0-960e14e084ab', 'name': 'ctest-vn4-05680387', 'tenant_id': 'b856bc51f959442fad55d6524aa63203', 'project_id': 'b856bc51f959442fad55d6524aa63203', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-24153811', 'ctest-vn4-05680387'], 'port_security_enabled': True, 'description': ''}} 2026-08-14 14:32:45,827 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b9f0e5bb-0105-4943-a222-a4376a762812', 'name': '', 'tenant_id': 'b856bc51f959442fad55d6524aa63203', 'network_id': '89bdde12-8242-44ea-b7a0-960e14e084ab', 'ip_version': 4, 'cidr': '117.153.173.64/26', 'allocation_pools': [{'start': '117.153.173.66', 'end': '117.153.173.126'}], 'gateway_ip': '117.153.173.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '117.153.173.66', 'tags': [], 'project_id': 'b856bc51f959442fad55d6524aa63203'}} 2026-08-14 14:32:45,975 - DEBUG - Response for create_subnet : {'subnet': {'id': '8088fe08-74af-4a7b-8a63-c12594f25a8c', 'name': '', 'tenant_id': 'b856bc51f959442fad55d6524aa63203', 'network_id': '89bdde12-8242-44ea-b7a0-960e14e084ab', 'ip_version': 6, 'cidr': '3371:91fd:6e2:3eda:1282:439d::/96', 'allocation_pools': [{'start': '3371:91fd:6e2:3eda:1282:439d:0:2', 'end': '3371:91fd:6e2:3eda:1282:439d:ffff:fffe'}], 'gateway_ip': '3371:91fd:6e2:3eda:1282:439d:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3371:91fd:6e2:3eda:1282:439d:0:2', 'tags': [], 'project_id': 'b856bc51f959442fad55d6524aa63203'}} 2026-08-14 14:32:45,996 - INFO - Created VN ctest-vn4-05680387 2026-08-14 14:32:46,051 - DEBUG - VN ctest-vn4-05680387 UUID is 89bdde12-8242-44ea-b7a0-960e14e084ab 2026-08-14 14:32:46,268 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '89bdde12-8242-44ea-b7a0-960e14e084ab', 'name': 'ctest-vn4-05680387', 'tenant_id': 'b856bc51f959442fad55d6524aa63203', 'project_id': 'b856bc51f959442fad55d6524aa63203', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b9f0e5bb-0105-4943-a222-a4376a762812', '8088fe08-74af-4a7b-8a63-c12594f25a8c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-24153811', 'ctest-vn4-05680387'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-24153811', 'ctest-policy1-45854471']], 'subnet_ipam': [{'subnet_cidr': '117.153.173.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3371:91fd:6e2:3eda:1282:439d::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-08-14 14:32:46,427 - DEBUG - Requesting: http://10.0.0.162:8082/domains 2026-08-14 14:32:46,774 - DEBUG - Requesting: http://10.0.0.162:8082/domains 2026-08-14 14:32:46,805 - DEBUG - Requesting: http://10.0.0.162:8082/domain/88d3cb76-5edf-4ed0-86e5-0ea9caa7bd56 2026-08-14 14:32:46,820 - DEBUG - Requesting: http://10.0.0.162:8082/project/b856bc51-f959-442f-ad55-d6524aa63203 2026-08-14 14:32:46,897 - DEBUG - Requesting: http://10.0.0.162:8082/virtual-network/89bdde12-8242-44ea-b7a0-960e14e084ab 2026-08-14 14:32:46,911 - DEBUG - Requesting: http://10.0.0.162:8082/virtual-network/89bdde12-8242-44ea-b7a0-960e14e084ab 2026-08-14 14:32:46,923 - DEBUG - Requesting: http://10.0.0.162:8082/routing-instance/7d952dde-f0a6-4194-bcf7-2751c142851a 2026-08-14 14:32:46,931 - DEBUG - Requesting: http://10.0.0.162:8082/routing-instance/7d952dde-f0a6-4194-bcf7-2751c142851a 2026-08-14 14:32:46,939 - DEBUG - Requesting: http://10.0.0.162:8082/route-target/4c3c1a72-6b18-4fc3-872c-98f37a99a00d 2026-08-14 14:32:46,946 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-08-14 14:32:46,946 - DEBUG - Requesting: http://10.0.0.162:8082/virtual-network/89bdde12-8242-44ea-b7a0-960e14e084ab 2026-08-14 14:32:46,957 - DEBUG - Requesting: http://10.0.0.162:8082/routing-instance/7d952dde-f0a6-4194-bcf7-2751c142851a 2026-08-14 14:32:46,973 - INFO - Verified VN network id 12 for VN 89bdde12-8242-44ea-b7a0-960e14e084ab 2026-08-14 14:32:46,974 - INFO - Verifications in API Server for VN ctest-vn4-05680387 passed 2026-08-14 14:32:46,974 - DEBUG - Requesting: http://10.0.0.162:8082/virtual-network/89bdde12-8242-44ea-b7a0-960e14e084ab 2026-08-14 14:32:46,984 - DEBUG - Requesting: http://10.0.0.162:8082/routing-instance/7d952dde-f0a6-4194-bcf7-2751c142851a 2026-08-14 14:32:46,995 - DEBUG - Requesting: http://10.0.0.162:8082/routing-instance/7d952dde-f0a6-4194-bcf7-2751c142851a 2026-08-14 14:32:47,004 - DEBUG - Requesting: http://10.0.0.162:8082/route-target/4c3c1a72-6b18-4fc3-872c-98f37a99a00d 2026-08-14 14:32:47,019 - DEBUG - Control-node 10.0.0.162 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-24153811:ctest-vn4-05680387', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-24153811', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9925333324870599914', 'uuid-lslong': '13231740692438484139'}, 'enable': 'true', 'created': '2026-08-14T14:32:45', 'last-modified': '2026-08-14T14:32:46', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.783295'} 2026-08-14 14:32:47,028 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-08-14 14:32:47,028 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-05680387 passed 2026-08-14 14:32:47,028 - DEBUG - ====Verifying policy data for ctest-vn4-05680387 in API_Server ====== 2026-08-14 14:32:47,028 - DEBUG - Requesting: http://10.0.0.162:8082/domains 2026-08-14 14:32:47,035 - DEBUG - Requesting: http://10.0.0.162:8082/domain/88d3cb76-5edf-4ed0-86e5-0ea9caa7bd56 2026-08-14 14:32:47,046 - DEBUG - Requesting: http://10.0.0.162:8082/project/b856bc51-f959-442f-ad55-d6524aa63203 2026-08-14 14:32:47,118 - DEBUG - Requesting: http://10.0.0.162:8082/virtual-network/89bdde12-8242-44ea-b7a0-960e14e084ab 2026-08-14 14:32:47,129 - DEBUG - ==>Verifying data for policy with id: 03ae868e-fc2f-4802-ac1e-e932ab840d97, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-24153811', 'ctest-policy1-45854471'] 2026-08-14 14:32:47,129 - INFO - VN ctest-vn4-05680387 Policy verification: verify_vn_policy_in_api_server, status: True 2026-08-14 14:32:47,129 - DEBUG - Verifying the vn in opserver 2026-08-14 14:32:47,129 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-24153811:ctest-vn4-05680387 virtual network link through opserver 10.0.0.162 2026-08-14 14:32:47,130 - DEBUG - Requesting: http://10.0.0.162:8081/analytics/uves/virtual-networks 2026-08-14 14:32:47,451 - DEBUG - Requesting: http://10.0.0.162:8081/analytics/uves/virtual-networks 2026-08-14 14:32:47,502 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-24153811:ctest-vn4-05680387', 'href': 'http://10.0.0.162:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-24153811:ctest-vn4-05680387?flat'} 2026-08-14 14:32:47,502 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-24153811:ctest-vn4-05680387 is found in opserver 2026-08-14 14:32:47,514 - DEBUG - Do not have enough data to verify VN in agent 2026-08-14 14:32:47,520 - DEBUG - VRF ids for VN ctest-vn4-05680387: {} 2026-08-14 14:32:47,520 - DEBUG - ====Verifying data for ctest-policy1-45854471 in API_Server ====== 2026-08-14 14:32:47,520 - DEBUG - Requesting: http://10.0.0.162:8082/domains 2026-08-14 14:32:47,527 - DEBUG - Requesting: http://10.0.0.162:8082/domain/88d3cb76-5edf-4ed0-86e5-0ea9caa7bd56 2026-08-14 14:32:47,539 - DEBUG - Requesting: http://10.0.0.162:8082/project/b856bc51-f959-442f-ad55-d6524aa63203 2026-08-14 14:32:47,613 - DEBUG - Requesting: http://10.0.0.162:8082/network-policy/03ae868e-fc2f-4802-ac1e-e932ab840d97 2026-08-14 14:32:47,623 - INFO - Verified policy ctest-policy1-45854471 in API Server, Result: True 2026-08-14 14:32:47,623 - INFO - Done with setup and verification, moving onto test .. 2026-08-14 14:32:47,632 - INFO - Deleting VN ctest-vn4-05680387 2026-08-14 14:32:47,776 - DEBUG - Response for deleting network () 2026-08-14 14:32:47,776 - DEBUG - Requesting: http://10.0.0.162:8082/routing-instance/7d952dde-f0a6-4194-bcf7-2751c142851a 2026-08-14 14:32:47,782 - DEBUG - Response Code: 404 2026-08-14 14:32:47,782 - DEBUG - Requesting: http://10.0.0.162:8082/domains 2026-08-14 14:32:47,788 - DEBUG - Requesting: http://10.0.0.162:8082/domain/88d3cb76-5edf-4ed0-86e5-0ea9caa7bd56 2026-08-14 14:32:47,846 - DEBUG - Requesting: http://10.0.0.162:8082/project/b856bc51-f959-442f-ad55-d6524aa63203 2026-08-14 14:32:47,921 - INFO - Validated that VN ctest-vn4-05680387 is not found in API Server 2026-08-14 14:32:47,933 - DEBUG - VN ctest-vn4-05680387 is not present in Agent 10.0.0.162 2026-08-14 14:32:47,933 - INFO - Validated that VN ctest-vn4-05680387 is not in any agent 2026-08-14 14:32:47,951 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-05680387 info 2026-08-14 14:32:47,978 - INFO - Deleted policy ctest-policy1-45854471 2026-08-14 14:32:48,147 - DEBUG - policy ctest-policy1-45854471 is not found in API Server 2026-08-14 14:32:48,401 - DEBUG - No XMPP flaps were noticed during the test
2026-08-14 14:32:48,401 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-08-14 14:32:48,401 - INFO - -------------------------------------------------------------------------------- 2026-08-14 14:32:48,692 - DEBUG - No XMPP flaps were noticed during the test
2026-08-14 14:32:48,692 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-08-14 14:32:48,693 - INFO - -------------------------------------------------------------------------------- 2026-08-14 14:32:49,411 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-24153811, ID : b856bc51-f959-442f-ad55-d6524aa63203