2026-01-04 09:27:37,231 - INFO - Domain Default found not creating 2026-01-04 09:27:37,397 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-13058039 not found, creating it 2026-01-04 09:27:37,867 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-13058039, ID : 81372eac-0079-4d9f-9733-bbaea34ca4df 2026-01-04 09:27:39,318 - INFO - ================================================================================ 2026-01-04 09:27:39,318 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-04 09:27:39,573 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.14': '0'}} with 2026-01-04 09:27:39,573 - INFO - Initial checks done. Running the testcase now 2026-01-04 09:27:39,573 - INFO - 2026-01-04 09:27:39,573 - INFO - ================================================================================ 2026-01-04 09:27:39,573 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-04 09:27:39,573 - 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-01-04 09:27:39,860 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.14': '0'}} with 2026-01-04 09:27:39,861 - INFO - Initial checks done. Running the testcase now 2026-01-04 09:27:39,861 - INFO - 2026-01-04 09:27:40,213 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-13058039:ctest-vn4-52771664, 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-13058039:ctest-vn4-52771664, 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-13058039:ctest-vn4-52771664, 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-13058039:ctest-vn4-52771664, 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-01-04 09:27:40,713 - DEBUG - Response for create_network : {'network': {'id': 'e544b825-3be0-446b-8f25-642d888652c4', 'name': 'ctest-vn4-52771664', 'tenant_id': '81372eac00794d9f9733bbaea34ca4df', 'project_id': '81372eac00794d9f9733bbaea34ca4df', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-13058039', 'ctest-vn4-52771664'], 'port_security_enabled': True, 'description': ''}} 2026-01-04 09:27:40,907 - DEBUG - Response for create_subnet : {'subnet': {'id': '0cb406b8-26b5-4786-af50-6604805591d7', 'name': '', 'tenant_id': '81372eac00794d9f9733bbaea34ca4df', 'network_id': 'e544b825-3be0-446b-8f25-642d888652c4', 'ip_version': 4, 'cidr': '180.181.206.128/26', 'allocation_pools': [{'start': '180.181.206.130', 'end': '180.181.206.190'}], 'gateway_ip': '180.181.206.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '180.181.206.130', 'tags': [], 'project_id': '81372eac00794d9f9733bbaea34ca4df'}} 2026-01-04 09:27:41,067 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f19b01e7-da3e-46ad-bb55-0f6448259a19', 'name': '', 'tenant_id': '81372eac00794d9f9733bbaea34ca4df', 'network_id': 'e544b825-3be0-446b-8f25-642d888652c4', 'ip_version': 6, 'cidr': '21cb:59b6:a28b:8997:baf8:accb::/96', 'allocation_pools': [{'start': '21cb:59b6:a28b:8997:baf8:accb:0:2', 'end': '21cb:59b6:a28b:8997:baf8:accb:ffff:fffe'}], 'gateway_ip': '21cb:59b6:a28b:8997:baf8:accb:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '21cb:59b6:a28b:8997:baf8:accb:0:2', 'tags': [], 'project_id': '81372eac00794d9f9733bbaea34ca4df'}} 2026-01-04 09:27:41,085 - INFO - Created VN ctest-vn4-52771664 2026-01-04 09:27:41,136 - DEBUG - VN ctest-vn4-52771664 UUID is e544b825-3be0-446b-8f25-642d888652c4 2026-01-04 09:27:41,322 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e544b825-3be0-446b-8f25-642d888652c4', 'name': 'ctest-vn4-52771664', 'tenant_id': '81372eac00794d9f9733bbaea34ca4df', 'project_id': '81372eac00794d9f9733bbaea34ca4df', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0cb406b8-26b5-4786-af50-6604805591d7', 'f19b01e7-da3e-46ad-bb55-0f6448259a19'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-13058039', 'ctest-vn4-52771664'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-13058039', 'ctest-policy1-79333736']], 'subnet_ipam': [{'subnet_cidr': '180.181.206.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '21cb:59b6:a28b:8997:baf8:accb::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-01-04 09:27:41,488 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-01-04 09:27:41,780 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-01-04 09:27:41,810 - DEBUG - Requesting: http://10.0.0.38:8082/domain/d993a3c5-68ca-42fa-808a-52f2da0babd0 2026-01-04 09:27:41,822 - DEBUG - Requesting: http://10.0.0.38:8082/project/81372eac-0079-4d9f-9733-bbaea34ca4df 2026-01-04 09:27:41,891 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e544b825-3be0-446b-8f25-642d888652c4 2026-01-04 09:27:41,902 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e544b825-3be0-446b-8f25-642d888652c4 2026-01-04 09:27:41,912 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/fe174d59-ac09-4661-8e30-5848c6d6421f 2026-01-04 09:27:41,918 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/fe174d59-ac09-4661-8e30-5848c6d6421f 2026-01-04 09:27:41,924 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/a2b7a397-9427-481f-a65f-8b14d81fd86e 2026-01-04 09:27:41,930 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-04 09:27:41,930 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e544b825-3be0-446b-8f25-642d888652c4 2026-01-04 09:27:41,937 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/fe174d59-ac09-4661-8e30-5848c6d6421f 2026-01-04 09:27:41,948 - INFO - Verified VN network id 11 for VN e544b825-3be0-446b-8f25-642d888652c4 2026-01-04 09:27:41,948 - INFO - Verifications in API Server for VN ctest-vn4-52771664 passed 2026-01-04 09:27:41,948 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e544b825-3be0-446b-8f25-642d888652c4 2026-01-04 09:27:41,956 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/fe174d59-ac09-4661-8e30-5848c6d6421f 2026-01-04 09:27:41,961 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/fe174d59-ac09-4661-8e30-5848c6d6421f 2026-01-04 09:27:41,966 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/a2b7a397-9427-481f-a65f-8b14d81fd86e 2026-01-04 09:27:41,975 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-13058039:ctest-vn4-52771664', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-13058039', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16520531803159676011', 'uuid-lslong': '10314760668288799428'}, 'enable': 'true', 'created': '2026-01-04T09:27:40', 'last-modified': '2026-01-04T09:27:41', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.680982'} 2026-01-04 09:27:41,980 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-04 09:27:41,981 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-52771664 passed 2026-01-04 09:27:41,981 - DEBUG - ====Verifying policy data for ctest-vn4-52771664 in API_Server ====== 2026-01-04 09:27:41,981 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-01-04 09:27:41,986 - DEBUG - Requesting: http://10.0.0.38:8082/domain/d993a3c5-68ca-42fa-808a-52f2da0babd0 2026-01-04 09:27:41,994 - DEBUG - Requesting: http://10.0.0.38:8082/project/81372eac-0079-4d9f-9733-bbaea34ca4df 2026-01-04 09:27:42,062 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e544b825-3be0-446b-8f25-642d888652c4 2026-01-04 09:27:42,070 - DEBUG - ==>Verifying data for policy with id: 1115f1a0-756b-42de-b9d4-c0d8cc8cb841, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-13058039', 'ctest-policy1-79333736'] 2026-01-04 09:27:42,070 - INFO - VN ctest-vn4-52771664 Policy verification: verify_vn_policy_in_api_server, status: True 2026-01-04 09:27:42,071 - DEBUG - Verifying the vn in opserver 2026-01-04 09:27:42,071 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-13058039:ctest-vn4-52771664 virtual network link through opserver 10.0.0.38 2026-01-04 09:27:42,071 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-01-04 09:27:42,362 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-01-04 09:27:42,423 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-13058039:ctest-vn4-52771664', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-13058039:ctest-vn4-52771664?flat'} 2026-01-04 09:27:42,423 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-13058039:ctest-vn4-52771664 is found in opserver 2026-01-04 09:27:42,432 - DEBUG - Do not have enough data to verify VN in agent 2026-01-04 09:27:42,436 - DEBUG - VRF ids for VN ctest-vn4-52771664: {} 2026-01-04 09:27:42,436 - DEBUG - ====Verifying data for ctest-policy1-79333736 in API_Server ====== 2026-01-04 09:27:42,437 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-01-04 09:27:42,442 - DEBUG - Requesting: http://10.0.0.38:8082/domain/d993a3c5-68ca-42fa-808a-52f2da0babd0 2026-01-04 09:27:42,451 - DEBUG - Requesting: http://10.0.0.38:8082/project/81372eac-0079-4d9f-9733-bbaea34ca4df 2026-01-04 09:27:42,517 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/1115f1a0-756b-42de-b9d4-c0d8cc8cb841 2026-01-04 09:27:42,526 - INFO - Verified policy ctest-policy1-79333736 in API Server, Result: True 2026-01-04 09:27:42,526 - INFO - Done with setup and verification, moving onto test .. 2026-01-04 09:27:42,532 - INFO - Deleting VN ctest-vn4-52771664 2026-01-04 09:27:42,647 - DEBUG - Response for deleting network () 2026-01-04 09:27:42,647 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/fe174d59-ac09-4661-8e30-5848c6d6421f 2026-01-04 09:27:42,652 - DEBUG - Response Code: 404 2026-01-04 09:27:42,652 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-01-04 09:27:42,657 - DEBUG - Requesting: http://10.0.0.38:8082/domain/d993a3c5-68ca-42fa-808a-52f2da0babd0 2026-01-04 09:27:42,709 - DEBUG - Requesting: http://10.0.0.38:8082/project/81372eac-0079-4d9f-9733-bbaea34ca4df 2026-01-04 09:27:42,776 - INFO - Validated that VN ctest-vn4-52771664 is not found in API Server 2026-01-04 09:27:42,784 - DEBUG - VN ctest-vn4-52771664 is not present in Agent 10.0.0.38 2026-01-04 09:27:42,784 - INFO - Validated that VN ctest-vn4-52771664 is not in any agent 2026-01-04 09:27:42,797 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-52771664 info 2026-01-04 09:27:42,819 - INFO - Deleted policy ctest-policy1-79333736 2026-01-04 09:27:42,988 - DEBUG - policy ctest-policy1-79333736 is not found in API Server 2026-01-04 09:27:43,241 - DEBUG - No XMPP flaps were noticed during the test 2026-01-04 09:27:43,241 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-01-04 09:27:43,241 - INFO - -------------------------------------------------------------------------------- 2026-01-04 09:27:43,529 - DEBUG - No XMPP flaps were noticed during the test 2026-01-04 09:27:43,529 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-01-04 09:27:43,529 - INFO - -------------------------------------------------------------------------------- 2026-01-04 09:27:44,197 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-13058039, ID : 81372eac-0079-4d9f-9733-bbaea34ca4df