2026-02-03 13:18:12,365 - INFO - Domain Default found not creating 2026-02-03 13:18:12,556 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-56262330 not found, creating it 2026-02-03 13:18:13,034 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-56262330, ID : e69ca78c-59de-48b2-8796-86247d2d0b78 2026-02-03 13:18:14,535 - INFO - ================================================================================ 2026-02-03 13:18:14,535 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-03 13:18:14,797 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.17': '0'}} with 2026-02-03 13:18:14,797 - INFO - Initial checks done. Running the testcase now 2026-02-03 13:18:14,797 - INFO - 2026-02-03 13:18:14,797 - INFO - ================================================================================ 2026-02-03 13:18:14,797 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-03 13:18:14,797 - 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-02-03 13:18:15,088 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.17': '0'}} with 2026-02-03 13:18:15,088 - INFO - Initial checks done. Running the testcase now 2026-02-03 13:18:15,088 - INFO - 2026-02-03 13:18:15,451 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-56262330:ctest-vn4-08648733, 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-56262330:ctest-vn4-08648733, 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-56262330:ctest-vn4-08648733, 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-56262330:ctest-vn4-08648733, 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-02-03 13:18:15,976 - DEBUG - Response for create_network : {'network': {'id': 'ac907b2a-3305-49b7-ac58-7845845a052f', 'name': 'ctest-vn4-08648733', 'tenant_id': 'e69ca78c59de48b2879686247d2d0b78', 'project_id': 'e69ca78c59de48b2879686247d2d0b78', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-56262330', 'ctest-vn4-08648733'], 'port_security_enabled': True, 'description': ''}} 2026-02-03 13:18:16,195 - DEBUG - Response for create_subnet : {'subnet': {'id': 'be8cdc72-6780-4f2d-b9ca-e48ce366b0b0', 'name': '', 'tenant_id': 'e69ca78c59de48b2879686247d2d0b78', 'network_id': 'ac907b2a-3305-49b7-ac58-7845845a052f', 'ip_version': 4, 'cidr': '102.81.193.128/26', 'allocation_pools': [{'start': '102.81.193.130', 'end': '102.81.193.190'}], 'gateway_ip': '102.81.193.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '102.81.193.130', 'tags': [], 'project_id': 'e69ca78c59de48b2879686247d2d0b78'}} 2026-02-03 13:18:16,348 - DEBUG - Response for create_subnet : {'subnet': {'id': '517026db-daa2-40aa-9f1c-f836188b258a', 'name': '', 'tenant_id': 'e69ca78c59de48b2879686247d2d0b78', 'network_id': 'ac907b2a-3305-49b7-ac58-7845845a052f', 'ip_version': 6, 'cidr': '2280:fa12:7c1b:370e:2a68:96a9::/96', 'allocation_pools': [{'start': '2280:fa12:7c1b:370e:2a68:96a9:0:2', 'end': '2280:fa12:7c1b:370e:2a68:96a9:ffff:fffe'}], 'gateway_ip': '2280:fa12:7c1b:370e:2a68:96a9:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2280:fa12:7c1b:370e:2a68:96a9:0:2', 'tags': [], 'project_id': 'e69ca78c59de48b2879686247d2d0b78'}} 2026-02-03 13:18:16,369 - INFO - Created VN ctest-vn4-08648733 2026-02-03 13:18:16,423 - DEBUG - VN ctest-vn4-08648733 UUID is ac907b2a-3305-49b7-ac58-7845845a052f 2026-02-03 13:18:16,624 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ac907b2a-3305-49b7-ac58-7845845a052f', 'name': 'ctest-vn4-08648733', 'tenant_id': 'e69ca78c59de48b2879686247d2d0b78', 'project_id': 'e69ca78c59de48b2879686247d2d0b78', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['be8cdc72-6780-4f2d-b9ca-e48ce366b0b0', '517026db-daa2-40aa-9f1c-f836188b258a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-56262330', 'ctest-vn4-08648733'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-56262330', 'ctest-policy1-00183027']], 'subnet_ipam': [{'subnet_cidr': '102.81.193.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2280:fa12:7c1b:370e:2a68:96a9::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-03 13:18:16,787 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2026-02-03 13:18:17,080 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2026-02-03 13:18:17,119 - DEBUG - Requesting: http://10.0.0.19:8082/domain/3ddc8fb3-d1db-4ec7-851f-2656a45886cc 2026-02-03 13:18:17,133 - DEBUG - Requesting: http://10.0.0.19:8082/project/e69ca78c-59de-48b2-8796-86247d2d0b78 2026-02-03 13:18:17,202 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/ac907b2a-3305-49b7-ac58-7845845a052f 2026-02-03 13:18:17,213 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/ac907b2a-3305-49b7-ac58-7845845a052f 2026-02-03 13:18:17,222 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/81c12c1d-738c-4003-8d75-57d68cec85dc 2026-02-03 13:18:17,228 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/81c12c1d-738c-4003-8d75-57d68cec85dc 2026-02-03 13:18:17,234 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/6b75eb00-5ab6-41c0-b9b9-b123d31eb4f4 2026-02-03 13:18:17,241 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-03 13:18:17,241 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/ac907b2a-3305-49b7-ac58-7845845a052f 2026-02-03 13:18:17,253 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/81c12c1d-738c-4003-8d75-57d68cec85dc 2026-02-03 13:18:17,269 - INFO - Verified VN network id 10 for VN ac907b2a-3305-49b7-ac58-7845845a052f 2026-02-03 13:18:17,270 - INFO - Verifications in API Server for VN ctest-vn4-08648733 passed 2026-02-03 13:18:17,270 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/ac907b2a-3305-49b7-ac58-7845845a052f 2026-02-03 13:18:17,279 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/81c12c1d-738c-4003-8d75-57d68cec85dc 2026-02-03 13:18:17,286 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/81c12c1d-738c-4003-8d75-57d68cec85dc 2026-02-03 13:18:17,293 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/6b75eb00-5ab6-41c0-b9b9-b123d31eb4f4 2026-02-03 13:18:17,306 - DEBUG - Control-node 10.0.0.19 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-56262330:ctest-vn4-08648733', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-56262330', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12434573992344766903', 'uuid-lslong': '12418808212442711343'}, 'enable': 'true', 'created': '2026-02-03T13:18:15', 'last-modified': '2026-02-03T13:18:16', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.702722'} 2026-02-03 13:18:17,313 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-03 13:18:17,313 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-08648733 passed 2026-02-03 13:18:17,313 - DEBUG - ====Verifying policy data for ctest-vn4-08648733 in API_Server ====== 2026-02-03 13:18:17,313 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2026-02-03 13:18:17,319 - DEBUG - Requesting: http://10.0.0.19:8082/domain/3ddc8fb3-d1db-4ec7-851f-2656a45886cc 2026-02-03 13:18:17,331 - DEBUG - Requesting: http://10.0.0.19:8082/project/e69ca78c-59de-48b2-8796-86247d2d0b78 2026-02-03 13:18:17,403 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/ac907b2a-3305-49b7-ac58-7845845a052f 2026-02-03 13:18:17,413 - DEBUG - ==>Verifying data for policy with id: 6f8faa63-2bd1-45b9-b050-ade61e29cc72, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-56262330', 'ctest-policy1-00183027'] 2026-02-03 13:18:17,413 - INFO - VN ctest-vn4-08648733 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-03 13:18:17,413 - DEBUG - Verifying the vn in opserver 2026-02-03 13:18:17,413 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-56262330:ctest-vn4-08648733 virtual network link through opserver 10.0.0.19 2026-02-03 13:18:17,413 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2026-02-03 13:18:17,709 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2026-02-03 13:18:17,782 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-56262330:ctest-vn4-08648733', 'href': 'http://10.0.0.19:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-56262330:ctest-vn4-08648733?flat'} 2026-02-03 13:18:17,782 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-56262330:ctest-vn4-08648733 is found in opserver 2026-02-03 13:18:17,795 - DEBUG - Do not have enough data to verify VN in agent 2026-02-03 13:18:17,801 - DEBUG - VRF ids for VN ctest-vn4-08648733: {} 2026-02-03 13:18:17,801 - DEBUG - ====Verifying data for ctest-policy1-00183027 in API_Server ====== 2026-02-03 13:18:17,801 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2026-02-03 13:18:17,807 - DEBUG - Requesting: http://10.0.0.19:8082/domain/3ddc8fb3-d1db-4ec7-851f-2656a45886cc 2026-02-03 13:18:17,818 - DEBUG - Requesting: http://10.0.0.19:8082/project/e69ca78c-59de-48b2-8796-86247d2d0b78 2026-02-03 13:18:17,889 - DEBUG - Requesting: http://10.0.0.19:8082/network-policy/6f8faa63-2bd1-45b9-b050-ade61e29cc72 2026-02-03 13:18:17,899 - INFO - Verified policy ctest-policy1-00183027 in API Server, Result: True 2026-02-03 13:18:17,899 - INFO - Done with setup and verification, moving onto test .. 2026-02-03 13:18:17,909 - INFO - Deleting VN ctest-vn4-08648733 2026-02-03 13:18:18,192 - DEBUG - Response for deleting network () 2026-02-03 13:18:18,192 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/81c12c1d-738c-4003-8d75-57d68cec85dc 2026-02-03 13:18:18,202 - DEBUG - Response Code: 404 2026-02-03 13:18:18,202 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2026-02-03 13:18:18,209 - DEBUG - Requesting: http://10.0.0.19:8082/domain/3ddc8fb3-d1db-4ec7-851f-2656a45886cc 2026-02-03 13:18:18,272 - DEBUG - Requesting: http://10.0.0.19:8082/project/e69ca78c-59de-48b2-8796-86247d2d0b78 2026-02-03 13:18:18,373 - INFO - Validated that VN ctest-vn4-08648733 is not found in API Server 2026-02-03 13:18:18,394 - DEBUG - VN ctest-vn4-08648733 is not present in Agent 10.0.0.19 2026-02-03 13:18:18,394 - INFO - Validated that VN ctest-vn4-08648733 is not in any agent 2026-02-03 13:18:18,415 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-08648733 info 2026-02-03 13:18:18,467 - INFO - Deleted policy ctest-policy1-00183027 2026-02-03 13:18:18,643 - DEBUG - policy ctest-policy1-00183027 is not found in API Server 2026-02-03 13:18:18,897 - DEBUG - No XMPP flaps were noticed during the test
2026-02-03 13:18:18,897 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-02-03 13:18:18,897 - INFO - -------------------------------------------------------------------------------- 2026-02-03 13:18:19,184 - DEBUG - No XMPP flaps were noticed during the test
2026-02-03 13:18:19,184 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-02-03 13:18:19,184 - INFO - -------------------------------------------------------------------------------- 2026-02-03 13:18:19,907 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-56262330, ID : e69ca78c-59de-48b2-8796-86247d2d0b78