2025-11-13 11:03:53,594 - INFO - Domain Default found not creating 2025-11-13 11:03:53,773 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-22953643 not found, creating it 2025-11-13 11:03:54,213 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-22953643, ID : 48a71e94-0df3-4a49-a510-62effb06f7bd 2025-11-13 11:03:55,667 - INFO - ================================================================================ 2025-11-13 11:03:55,667 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-13 11:03:55,919 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2025-11-13 11:03:55,919 - INFO - Initial checks done. Running the testcase now 2025-11-13 11:03:55,919 - INFO - 2025-11-13 11:03:55,920 - INFO - ================================================================================ 2025-11-13 11:03:55,920 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-13 11:03:55,920 - 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. 2025-11-13 11:03:56,210 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2025-11-13 11:03:56,210 - INFO - Initial checks done. Running the testcase now 2025-11-13 11:03:56,211 - INFO - 2025-11-13 11:03:56,598 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-22953643:ctest-vn4-39660572, 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-22953643:ctest-vn4-39660572, 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-22953643:ctest-vn4-39660572, 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-22953643:ctest-vn4-39660572, 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] 2025-11-13 11:03:57,106 - DEBUG - Response for create_network : {'network': {'id': 'a995b8eb-8570-407a-ae99-e73933252014', 'name': 'ctest-vn4-39660572', 'tenant_id': '48a71e940df34a49a51062effb06f7bd', 'project_id': '48a71e940df34a49a51062effb06f7bd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-22953643', 'ctest-vn4-39660572'], 'port_security_enabled': True, 'description': ''}} 2025-11-13 11:03:57,252 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fb2cc237-038e-406c-abdc-a5f03cd5ac51', 'name': '', 'tenant_id': '48a71e940df34a49a51062effb06f7bd', 'network_id': 'a995b8eb-8570-407a-ae99-e73933252014', 'ip_version': 4, 'cidr': '174.237.194.0/26', 'allocation_pools': [{'start': '174.237.194.2', 'end': '174.237.194.62'}], 'gateway_ip': '174.237.194.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '174.237.194.2', 'tags': [], 'project_id': '48a71e940df34a49a51062effb06f7bd'}} 2025-11-13 11:03:57,437 - DEBUG - Response for create_subnet : {'subnet': {'id': '258c35e8-f71a-4c4d-ac29-8362dd5c0e39', 'name': '', 'tenant_id': '48a71e940df34a49a51062effb06f7bd', 'network_id': 'a995b8eb-8570-407a-ae99-e73933252014', 'ip_version': 6, 'cidr': '2d3d:993d:6c4d:d72f:9e2c:bab9::/96', 'allocation_pools': [{'start': '2d3d:993d:6c4d:d72f:9e2c:bab9:0:2', 'end': '2d3d:993d:6c4d:d72f:9e2c:bab9:ffff:fffe'}], 'gateway_ip': '2d3d:993d:6c4d:d72f:9e2c:bab9:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2d3d:993d:6c4d:d72f:9e2c:bab9:0:2', 'tags': [], 'project_id': '48a71e940df34a49a51062effb06f7bd'}} 2025-11-13 11:03:57,459 - INFO - Created VN ctest-vn4-39660572 2025-11-13 11:03:57,514 - DEBUG - VN ctest-vn4-39660572 UUID is a995b8eb-8570-407a-ae99-e73933252014 2025-11-13 11:03:57,712 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a995b8eb-8570-407a-ae99-e73933252014', 'name': 'ctest-vn4-39660572', 'tenant_id': '48a71e940df34a49a51062effb06f7bd', 'project_id': '48a71e940df34a49a51062effb06f7bd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['fb2cc237-038e-406c-abdc-a5f03cd5ac51', '258c35e8-f71a-4c4d-ac29-8362dd5c0e39'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-22953643', 'ctest-vn4-39660572'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-22953643', 'ctest-policy1-11399623']], 'subnet_ipam': [{'subnet_cidr': '174.237.194.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2d3d:993d:6c4d:d72f:9e2c:bab9::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-11-13 11:03:57,874 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-11-13 11:03:58,166 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-11-13 11:03:58,199 - DEBUG - Requesting: http://10.0.0.50:8082/domain/3921acc6-de55-45a3-ac43-ed1ba5566efa 2025-11-13 11:03:58,212 - DEBUG - Requesting: http://10.0.0.50:8082/project/48a71e94-0df3-4a49-a510-62effb06f7bd 2025-11-13 11:03:58,286 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a995b8eb-8570-407a-ae99-e73933252014 2025-11-13 11:03:58,298 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a995b8eb-8570-407a-ae99-e73933252014 2025-11-13 11:03:58,308 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/0ad0e6b2-2bf6-460b-aff8-22553029f8cc 2025-11-13 11:03:58,316 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/0ad0e6b2-2bf6-460b-aff8-22553029f8cc 2025-11-13 11:03:58,323 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/1f35c604-f42f-4555-992c-49a87872eba5 2025-11-13 11:03:58,330 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-13 11:03:58,331 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a995b8eb-8570-407a-ae99-e73933252014 2025-11-13 11:03:58,340 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/0ad0e6b2-2bf6-460b-aff8-22553029f8cc 2025-11-13 11:03:58,355 - INFO - Verified VN network id 11 for VN a995b8eb-8570-407a-ae99-e73933252014 2025-11-13 11:03:58,355 - INFO - Verifications in API Server for VN ctest-vn4-39660572 passed 2025-11-13 11:03:58,355 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a995b8eb-8570-407a-ae99-e73933252014 2025-11-13 11:03:58,365 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/0ad0e6b2-2bf6-460b-aff8-22553029f8cc 2025-11-13 11:03:58,372 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/0ad0e6b2-2bf6-460b-aff8-22553029f8cc 2025-11-13 11:03:58,379 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/1f35c604-f42f-4555-992c-49a87872eba5 2025-11-13 11:03:58,392 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-22953643:ctest-vn4-39660572', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-22953643', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12219876485635260538', 'uuid-lslong': '12581341266893414420'}, 'enable': 'true', 'created': '2025-11-13T11:03:57', 'last-modified': '2025-11-13T11:03:57', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.700330'} 2025-11-13 11:03:58,398 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-13 11:03:58,398 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-39660572 passed 2025-11-13 11:03:58,398 - DEBUG - ====Verifying policy data for ctest-vn4-39660572 in API_Server ====== 2025-11-13 11:03:58,398 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-11-13 11:03:58,404 - DEBUG - Requesting: http://10.0.0.50:8082/domain/3921acc6-de55-45a3-ac43-ed1ba5566efa 2025-11-13 11:03:58,416 - DEBUG - Requesting: http://10.0.0.50:8082/project/48a71e94-0df3-4a49-a510-62effb06f7bd 2025-11-13 11:03:58,482 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a995b8eb-8570-407a-ae99-e73933252014 2025-11-13 11:03:58,491 - DEBUG - ==>Verifying data for policy with id: 7149c14d-d31c-44e2-90b3-151c6b07f5e3, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-22953643', 'ctest-policy1-11399623'] 2025-11-13 11:03:58,491 - INFO - VN ctest-vn4-39660572 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-13 11:03:58,491 - DEBUG - Verifying the vn in opserver 2025-11-13 11:03:58,491 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-22953643:ctest-vn4-39660572 virtual network link through opserver 10.0.0.50 2025-11-13 11:03:58,491 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-11-13 11:03:58,784 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-11-13 11:03:58,849 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-22953643:ctest-vn4-39660572', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-22953643:ctest-vn4-39660572?flat'} 2025-11-13 11:03:58,849 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-22953643:ctest-vn4-39660572 is found in opserver 2025-11-13 11:03:58,859 - DEBUG - Do not have enough data to verify VN in agent 2025-11-13 11:03:58,864 - DEBUG - VRF ids for VN ctest-vn4-39660572: {} 2025-11-13 11:03:58,865 - DEBUG - ====Verifying data for ctest-policy1-11399623 in API_Server ====== 2025-11-13 11:03:58,865 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-11-13 11:03:58,872 - DEBUG - Requesting: http://10.0.0.50:8082/domain/3921acc6-de55-45a3-ac43-ed1ba5566efa 2025-11-13 11:03:58,883 - DEBUG - Requesting: http://10.0.0.50:8082/project/48a71e94-0df3-4a49-a510-62effb06f7bd 2025-11-13 11:03:58,953 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/7149c14d-d31c-44e2-90b3-151c6b07f5e3 2025-11-13 11:03:58,963 - INFO - Verified policy ctest-policy1-11399623 in API Server, Result: True 2025-11-13 11:03:58,963 - INFO - Done with setup and verification, moving onto test .. 2025-11-13 11:03:58,972 - INFO - Deleting VN ctest-vn4-39660572 2025-11-13 11:03:59,110 - DEBUG - Response for deleting network () 2025-11-13 11:03:59,110 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/0ad0e6b2-2bf6-460b-aff8-22553029f8cc 2025-11-13 11:03:59,118 - DEBUG - Response Code: 404 2025-11-13 11:03:59,118 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-11-13 11:03:59,124 - DEBUG - Requesting: http://10.0.0.50:8082/domain/3921acc6-de55-45a3-ac43-ed1ba5566efa 2025-11-13 11:03:59,179 - DEBUG - Requesting: http://10.0.0.50:8082/project/48a71e94-0df3-4a49-a510-62effb06f7bd 2025-11-13 11:03:59,251 - INFO - Validated that VN ctest-vn4-39660572 is not found in API Server 2025-11-13 11:03:59,261 - DEBUG - VN ctest-vn4-39660572 is not present in Agent 10.0.0.50 2025-11-13 11:03:59,261 - INFO - Validated that VN ctest-vn4-39660572 is not in any agent 2025-11-13 11:03:59,274 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-39660572 info 2025-11-13 11:03:59,307 - INFO - Deleted policy ctest-policy1-11399623 2025-11-13 11:03:59,474 - DEBUG - policy ctest-policy1-11399623 is not found in API Server 2025-11-13 11:03:59,732 - DEBUG - No XMPP flaps were noticed during the test