2026-01-15 02:14:02,461 - INFO - Domain Default found not creating 2026-01-15 02:14:02,611 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-88560809 not found, creating it 2026-01-15 02:14:03,041 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-88560809, ID : 264a1f85-25c0-48bb-a60c-67a249552d89 2026-01-15 02:14:04,473 - INFO - ================================================================================ 2026-01-15 02:14:04,473 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-15 02:14:04,727 - DEBUG - Nothing to compare xmpp stats {'10.0.0.241': {'10.20.0.253': '0'}} with 2026-01-15 02:14:04,727 - INFO - Initial checks done. Running the testcase now 2026-01-15 02:14:04,727 - INFO - 2026-01-15 02:14:04,727 - INFO - ================================================================================ 2026-01-15 02:14:04,727 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-15 02:14:04,727 - 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-15 02:14:05,020 - DEBUG - Nothing to compare xmpp stats {'10.0.0.241': {'10.20.0.253': '0'}} with 2026-01-15 02:14:05,020 - INFO - Initial checks done. Running the testcase now 2026-01-15 02:14:05,020 - INFO - 2026-01-15 02:14:05,374 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-88560809:ctest-vn4-75336280, 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-88560809:ctest-vn4-75336280, 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-88560809:ctest-vn4-75336280, 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-88560809:ctest-vn4-75336280, 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-15 02:14:05,880 - DEBUG - Response for create_network : {'network': {'id': 'd14b44e2-f158-4153-8c71-d11b6060adf6', 'name': 'ctest-vn4-75336280', 'tenant_id': '264a1f8525c048bba60c67a249552d89', 'project_id': '264a1f8525c048bba60c67a249552d89', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-88560809', 'ctest-vn4-75336280'], 'port_security_enabled': True, 'description': ''}} 2026-01-15 02:14:06,082 - DEBUG - Response for create_subnet : {'subnet': {'id': '6b5eb3f2-ecdb-409d-888b-64126b465acd', 'name': '', 'tenant_id': '264a1f8525c048bba60c67a249552d89', 'network_id': 'd14b44e2-f158-4153-8c71-d11b6060adf6', 'ip_version': 4, 'cidr': '60.162.36.128/26', 'allocation_pools': [{'start': '60.162.36.130', 'end': '60.162.36.190'}], 'gateway_ip': '60.162.36.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '60.162.36.130', 'tags': [], 'project_id': '264a1f8525c048bba60c67a249552d89'}} 2026-01-15 02:14:06,270 - DEBUG - Response for create_subnet : {'subnet': {'id': '35fbe217-a1bc-4fff-9f68-24e742dc6797', 'name': '', 'tenant_id': '264a1f8525c048bba60c67a249552d89', 'network_id': 'd14b44e2-f158-4153-8c71-d11b6060adf6', 'ip_version': 6, 'cidr': '2f11:c3cc:349f:3c28:ba73:3911::/96', 'allocation_pools': [{'start': '2f11:c3cc:349f:3c28:ba73:3911:0:2', 'end': '2f11:c3cc:349f:3c28:ba73:3911:ffff:fffe'}], 'gateway_ip': '2f11:c3cc:349f:3c28:ba73:3911:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2f11:c3cc:349f:3c28:ba73:3911:0:2', 'tags': [], 'project_id': '264a1f8525c048bba60c67a249552d89'}} 2026-01-15 02:14:06,287 - INFO - Created VN ctest-vn4-75336280 2026-01-15 02:14:06,338 - DEBUG - VN ctest-vn4-75336280 UUID is d14b44e2-f158-4153-8c71-d11b6060adf6 2026-01-15 02:14:06,586 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd14b44e2-f158-4153-8c71-d11b6060adf6', 'name': 'ctest-vn4-75336280', 'tenant_id': '264a1f8525c048bba60c67a249552d89', 'project_id': '264a1f8525c048bba60c67a249552d89', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6b5eb3f2-ecdb-409d-888b-64126b465acd', '35fbe217-a1bc-4fff-9f68-24e742dc6797'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-88560809', 'ctest-vn4-75336280'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-88560809', 'ctest-policy1-08029623']], 'subnet_ipam': [{'subnet_cidr': '60.162.36.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2f11:c3cc:349f:3c28:ba73:3911::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-01-15 02:14:06,754 - DEBUG - Requesting: http://10.0.0.241:8082/domains 2026-01-15 02:14:07,045 - DEBUG - Requesting: http://10.0.0.241:8082/domains 2026-01-15 02:14:07,077 - DEBUG - Requesting: http://10.0.0.241:8082/domain/9b74440b-35e0-4ba6-8740-85a215f286a0 2026-01-15 02:14:07,088 - DEBUG - Requesting: http://10.0.0.241:8082/project/264a1f85-25c0-48bb-a60c-67a249552d89 2026-01-15 02:14:07,155 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/d14b44e2-f158-4153-8c71-d11b6060adf6 2026-01-15 02:14:07,166 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/d14b44e2-f158-4153-8c71-d11b6060adf6 2026-01-15 02:14:07,174 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/04fa56d9-9f5f-491c-aec2-baecfacad965 2026-01-15 02:14:07,180 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/04fa56d9-9f5f-491c-aec2-baecfacad965 2026-01-15 02:14:07,186 - DEBUG - Requesting: http://10.0.0.241:8082/route-target/aea71e65-9f9c-42fc-9c2d-8438849f4628 2026-01-15 02:14:07,191 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-15 02:14:07,191 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/d14b44e2-f158-4153-8c71-d11b6060adf6 2026-01-15 02:14:07,199 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/04fa56d9-9f5f-491c-aec2-baecfacad965 2026-01-15 02:14:07,220 - INFO - Verified VN network id 9 for VN d14b44e2-f158-4153-8c71-d11b6060adf6 2026-01-15 02:14:07,220 - INFO - Verifications in API Server for VN ctest-vn4-75336280 passed 2026-01-15 02:14:07,220 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/d14b44e2-f158-4153-8c71-d11b6060adf6 2026-01-15 02:14:07,228 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/04fa56d9-9f5f-491c-aec2-baecfacad965 2026-01-15 02:14:07,234 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/04fa56d9-9f5f-491c-aec2-baecfacad965 2026-01-15 02:14:07,239 - DEBUG - Requesting: http://10.0.0.241:8082/route-target/aea71e65-9f9c-42fc-9c2d-8438849f4628 2026-01-15 02:14:07,248 - DEBUG - Control-node 10.0.0.241 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-88560809:ctest-vn4-75336280', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-88560809', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15081223518682628435', 'uuid-lslong': '10120099753189486070'}, 'enable': 'true', 'created': '2026-01-15T02:14:05', 'last-modified': '2026-01-15T02:14:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.689132'} 2026-01-15 02:14:07,254 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-15 02:14:07,254 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-75336280 passed 2026-01-15 02:14:07,255 - DEBUG - ====Verifying policy data for ctest-vn4-75336280 in API_Server ====== 2026-01-15 02:14:07,255 - DEBUG - Requesting: http://10.0.0.241:8082/domains 2026-01-15 02:14:07,259 - DEBUG - Requesting: http://10.0.0.241:8082/domain/9b74440b-35e0-4ba6-8740-85a215f286a0 2026-01-15 02:14:07,269 - DEBUG - Requesting: http://10.0.0.241:8082/project/264a1f85-25c0-48bb-a60c-67a249552d89 2026-01-15 02:14:07,338 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/d14b44e2-f158-4153-8c71-d11b6060adf6 2026-01-15 02:14:07,346 - DEBUG - ==>Verifying data for policy with id: f78c4d66-751d-41e6-906c-afee10304da7, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-88560809', 'ctest-policy1-08029623'] 2026-01-15 02:14:07,346 - INFO - VN ctest-vn4-75336280 Policy verification: verify_vn_policy_in_api_server, status: True 2026-01-15 02:14:07,346 - DEBUG - Verifying the vn in opserver 2026-01-15 02:14:07,346 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-88560809:ctest-vn4-75336280 virtual network link through opserver 10.0.0.241 2026-01-15 02:14:07,347 - DEBUG - Requesting: http://10.0.0.241:8081/analytics/uves/virtual-networks 2026-01-15 02:14:07,642 - DEBUG - Requesting: http://10.0.0.241:8081/analytics/uves/virtual-networks 2026-01-15 02:14:07,700 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-88560809:ctest-vn4-75336280', 'href': 'http://10.0.0.241:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-88560809:ctest-vn4-75336280?flat'} 2026-01-15 02:14:07,700 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-88560809:ctest-vn4-75336280 is found in opserver 2026-01-15 02:14:07,710 - DEBUG - Do not have enough data to verify VN in agent 2026-01-15 02:14:07,713 - DEBUG - VRF ids for VN ctest-vn4-75336280: {} 2026-01-15 02:14:07,714 - DEBUG - ====Verifying data for ctest-policy1-08029623 in API_Server ====== 2026-01-15 02:14:07,714 - DEBUG - Requesting: http://10.0.0.241:8082/domains 2026-01-15 02:14:07,718 - DEBUG - Requesting: http://10.0.0.241:8082/domain/9b74440b-35e0-4ba6-8740-85a215f286a0 2026-01-15 02:14:07,727 - DEBUG - Requesting: http://10.0.0.241:8082/project/264a1f85-25c0-48bb-a60c-67a249552d89 2026-01-15 02:14:07,793 - DEBUG - Requesting: http://10.0.0.241:8082/network-policy/f78c4d66-751d-41e6-906c-afee10304da7 2026-01-15 02:14:07,802 - INFO - Verified policy ctest-policy1-08029623 in API Server, Result: True 2026-01-15 02:14:07,802 - INFO - Done with setup and verification, moving onto test .. 2026-01-15 02:14:07,808 - INFO - Deleting VN ctest-vn4-75336280 2026-01-15 02:14:07,912 - DEBUG - Response for deleting network () 2026-01-15 02:14:07,912 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/04fa56d9-9f5f-491c-aec2-baecfacad965 2026-01-15 02:14:07,916 - DEBUG - Response Code: 404 2026-01-15 02:14:07,916 - DEBUG - Requesting: http://10.0.0.241:8082/domains 2026-01-15 02:14:07,921 - DEBUG - Requesting: http://10.0.0.241:8082/domain/9b74440b-35e0-4ba6-8740-85a215f286a0 2026-01-15 02:14:07,974 - DEBUG - Requesting: http://10.0.0.241:8082/project/264a1f85-25c0-48bb-a60c-67a249552d89 2026-01-15 02:14:08,043 - INFO - Validated that VN ctest-vn4-75336280 is not found in API Server 2026-01-15 02:14:08,052 - DEBUG - VN ctest-vn4-75336280 is not present in Agent 10.0.0.241 2026-01-15 02:14:08,052 - INFO - Validated that VN ctest-vn4-75336280 is not in any agent 2026-01-15 02:14:08,066 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-75336280 info 2026-01-15 02:14:08,088 - INFO - Deleted policy ctest-policy1-08029623 2026-01-15 02:14:08,249 - DEBUG - policy ctest-policy1-08029623 is not found in API Server 2026-01-15 02:14:08,503 - DEBUG - No XMPP flaps were noticed during the test