2026-02-12 02:13:19,674 - INFO - Domain Default found not creating 2026-02-12 02:13:19,853 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-94247963 not found, creating it 2026-02-12 02:13:20,331 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-94247963, ID : 938db033-41f4-4076-a241-fc69ce6b7894 2026-02-12 02:13:21,833 - INFO - ================================================================================ 2026-02-12 02:13:21,833 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-12 02:13:22,093 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.129': '0'}} with 2026-02-12 02:13:22,093 - INFO - Initial checks done. Running the testcase now 2026-02-12 02:13:22,094 - INFO - 2026-02-12 02:13:22,094 - INFO - ================================================================================ 2026-02-12 02:13:22,094 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-12 02:13:22,094 - 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-12 02:13:22,380 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.129': '0'}} with 2026-02-12 02:13:22,380 - INFO - Initial checks done. Running the testcase now 2026-02-12 02:13:22,380 - INFO - 2026-02-12 02:13:22,783 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-94247963:ctest-vn4-62192641, 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-94247963:ctest-vn4-62192641, 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-94247963:ctest-vn4-62192641, 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-94247963:ctest-vn4-62192641, 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-12 02:13:23,303 - DEBUG - Response for create_network : {'network': {'id': 'dbc874a4-563e-4e16-969e-74b8717e3bd5', 'name': 'ctest-vn4-62192641', 'tenant_id': '938db03341f44076a241fc69ce6b7894', 'project_id': '938db03341f44076a241fc69ce6b7894', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-94247963', 'ctest-vn4-62192641'], 'port_security_enabled': True, 'description': ''}} 2026-02-12 02:13:23,499 - DEBUG - Response for create_subnet : {'subnet': {'id': '57fb5cd0-8e17-4c0b-a744-63afe4bb3fa8', 'name': '', 'tenant_id': '938db03341f44076a241fc69ce6b7894', 'network_id': 'dbc874a4-563e-4e16-969e-74b8717e3bd5', 'ip_version': 4, 'cidr': '57.170.45.128/26', 'allocation_pools': [{'start': '57.170.45.130', 'end': '57.170.45.190'}], 'gateway_ip': '57.170.45.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '57.170.45.130', 'tags': [], 'project_id': '938db03341f44076a241fc69ce6b7894'}} 2026-02-12 02:13:23,645 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b18c8a8c-4187-48ec-aa7c-7242027494ba', 'name': '', 'tenant_id': '938db03341f44076a241fc69ce6b7894', 'network_id': 'dbc874a4-563e-4e16-969e-74b8717e3bd5', 'ip_version': 6, 'cidr': '3a67:c2df:3311:f0e:34be:d30d::/96', 'allocation_pools': [{'start': '3a67:c2df:3311:f0e:34be:d30d:0:2', 'end': '3a67:c2df:3311:f0e:34be:d30d:ffff:fffe'}], 'gateway_ip': '3a67:c2df:3311:f0e:34be:d30d:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3a67:c2df:3311:f0e:34be:d30d:0:2', 'tags': [], 'project_id': '938db03341f44076a241fc69ce6b7894'}} 2026-02-12 02:13:23,664 - INFO - Created VN ctest-vn4-62192641 2026-02-12 02:13:23,719 - DEBUG - VN ctest-vn4-62192641 UUID is dbc874a4-563e-4e16-969e-74b8717e3bd5 2026-02-12 02:13:23,918 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'dbc874a4-563e-4e16-969e-74b8717e3bd5', 'name': 'ctest-vn4-62192641', 'tenant_id': '938db03341f44076a241fc69ce6b7894', 'project_id': '938db03341f44076a241fc69ce6b7894', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['57fb5cd0-8e17-4c0b-a744-63afe4bb3fa8', 'b18c8a8c-4187-48ec-aa7c-7242027494ba'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-94247963', 'ctest-vn4-62192641'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-94247963', 'ctest-policy1-35062522']], 'subnet_ipam': [{'subnet_cidr': '57.170.45.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3a67:c2df:3311:f0e:34be:d30d::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-12 02:13:24,084 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-02-12 02:13:24,381 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-02-12 02:13:24,413 - DEBUG - Requesting: http://10.0.0.249:8082/domain/b6ccdabb-a28d-4002-93fc-d3c908e88e15 2026-02-12 02:13:24,423 - DEBUG - Requesting: http://10.0.0.249:8082/project/938db033-41f4-4076-a241-fc69ce6b7894 2026-02-12 02:13:24,497 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/dbc874a4-563e-4e16-969e-74b8717e3bd5 2026-02-12 02:13:24,508 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/dbc874a4-563e-4e16-969e-74b8717e3bd5 2026-02-12 02:13:24,517 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/6602b5f5-aa9c-4601-b1b0-00d121f2ac01 2026-02-12 02:13:24,524 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/6602b5f5-aa9c-4601-b1b0-00d121f2ac01 2026-02-12 02:13:24,531 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/e52066df-378d-4ce7-90f5-f4c877c96295 2026-02-12 02:13:24,537 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-12 02:13:24,537 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/dbc874a4-563e-4e16-969e-74b8717e3bd5 2026-02-12 02:13:24,548 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/6602b5f5-aa9c-4601-b1b0-00d121f2ac01 2026-02-12 02:13:24,563 - INFO - Verified VN network id 12 for VN dbc874a4-563e-4e16-969e-74b8717e3bd5 2026-02-12 02:13:24,563 - INFO - Verifications in API Server for VN ctest-vn4-62192641 passed 2026-02-12 02:13:24,563 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/dbc874a4-563e-4e16-969e-74b8717e3bd5 2026-02-12 02:13:24,572 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/6602b5f5-aa9c-4601-b1b0-00d121f2ac01 2026-02-12 02:13:24,578 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/6602b5f5-aa9c-4601-b1b0-00d121f2ac01 2026-02-12 02:13:24,584 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/e52066df-378d-4ce7-90f5-f4c877c96295 2026-02-12 02:13:24,595 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-94247963:ctest-vn4-62192641', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-94247963', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15837036338818731542', 'uuid-lslong': '10853240487536376789'}, 'enable': 'true', 'created': '2026-02-12T02:13:23', 'last-modified': '2026-02-12T02:13:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.702822'} 2026-02-12 02:13:24,601 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-12 02:13:24,602 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-62192641 passed 2026-02-12 02:13:24,602 - DEBUG - ====Verifying policy data for ctest-vn4-62192641 in API_Server ====== 2026-02-12 02:13:24,602 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-02-12 02:13:24,607 - DEBUG - Requesting: http://10.0.0.249:8082/domain/b6ccdabb-a28d-4002-93fc-d3c908e88e15 2026-02-12 02:13:24,618 - DEBUG - Requesting: http://10.0.0.249:8082/project/938db033-41f4-4076-a241-fc69ce6b7894 2026-02-12 02:13:24,683 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/dbc874a4-563e-4e16-969e-74b8717e3bd5 2026-02-12 02:13:24,692 - DEBUG - ==>Verifying data for policy with id: ca698a37-70be-41dd-a1b4-3990b0a74ef4, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-94247963', 'ctest-policy1-35062522'] 2026-02-12 02:13:24,692 - INFO - VN ctest-vn4-62192641 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-12 02:13:24,692 - DEBUG - Verifying the vn in opserver 2026-02-12 02:13:24,692 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-94247963:ctest-vn4-62192641 virtual network link through opserver 10.0.0.249 2026-02-12 02:13:24,692 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2026-02-12 02:13:24,992 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2026-02-12 02:13:25,063 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-94247963:ctest-vn4-62192641', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-94247963:ctest-vn4-62192641?flat'} 2026-02-12 02:13:25,063 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-94247963:ctest-vn4-62192641 is found in opserver 2026-02-12 02:13:25,072 - DEBUG - Do not have enough data to verify VN in agent 2026-02-12 02:13:25,077 - DEBUG - VRF ids for VN ctest-vn4-62192641: {} 2026-02-12 02:13:25,078 - DEBUG - ====Verifying data for ctest-policy1-35062522 in API_Server ====== 2026-02-12 02:13:25,078 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-02-12 02:13:25,085 - DEBUG - Requesting: http://10.0.0.249:8082/domain/b6ccdabb-a28d-4002-93fc-d3c908e88e15 2026-02-12 02:13:25,095 - DEBUG - Requesting: http://10.0.0.249:8082/project/938db033-41f4-4076-a241-fc69ce6b7894 2026-02-12 02:13:25,170 - DEBUG - Requesting: http://10.0.0.249:8082/network-policy/ca698a37-70be-41dd-a1b4-3990b0a74ef4 2026-02-12 02:13:25,179 - INFO - Verified policy ctest-policy1-35062522 in API Server, Result: True 2026-02-12 02:13:25,179 - INFO - Done with setup and verification, moving onto test .. 2026-02-12 02:13:25,186 - INFO - Deleting VN ctest-vn4-62192641 2026-02-12 02:13:25,308 - DEBUG - Response for deleting network () 2026-02-12 02:13:25,308 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/6602b5f5-aa9c-4601-b1b0-00d121f2ac01 2026-02-12 02:13:25,316 - DEBUG - Response Code: 404 2026-02-12 02:13:25,316 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-02-12 02:13:25,322 - DEBUG - Requesting: http://10.0.0.249:8082/domain/b6ccdabb-a28d-4002-93fc-d3c908e88e15 2026-02-12 02:13:25,377 - DEBUG - Requesting: http://10.0.0.249:8082/project/938db033-41f4-4076-a241-fc69ce6b7894 2026-02-12 02:13:25,454 - INFO - Validated that VN ctest-vn4-62192641 is not found in API Server 2026-02-12 02:13:25,463 - DEBUG - VN ctest-vn4-62192641 is not present in Agent 10.0.0.249 2026-02-12 02:13:25,463 - INFO - Validated that VN ctest-vn4-62192641 is not in any agent 2026-02-12 02:13:25,477 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-62192641 info 2026-02-12 02:13:25,504 - INFO - Deleted policy ctest-policy1-35062522 2026-02-12 02:13:25,668 - DEBUG - policy ctest-policy1-35062522 is not found in API Server 2026-02-12 02:13:25,925 - DEBUG - No XMPP flaps were noticed during the test
2026-02-12 02:13:25,925 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:03]
2026-02-12 02:13:25,925 - INFO - -------------------------------------------------------------------------------- 2026-02-12 02:13:26,228 - DEBUG - No XMPP flaps were noticed during the test
2026-02-12 02:13:26,228 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-02-12 02:13:26,228 - INFO - -------------------------------------------------------------------------------- 2026-02-12 02:13:26,943 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-94247963, ID : 938db033-41f4-4076-a241-fc69ce6b7894