2025-11-05 18:45:23,861 - INFO - Domain Default found not creating 2025-11-05 18:45:23,990 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-75904289 not found, creating it 2025-11-05 18:45:24,404 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-75904289, ID : 7183aed3-d584-4deb-9bfd-90cb89bb61f9 2025-11-05 18:45:25,773 - INFO - ================================================================================ 2025-11-05 18:45:25,773 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-05 18:45:26,027 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.18': '0'}} with 2025-11-05 18:45:26,028 - INFO - Initial checks done. Running the testcase now 2025-11-05 18:45:26,028 - INFO - 2025-11-05 18:45:26,028 - INFO - ================================================================================ 2025-11-05 18:45:26,028 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-05 18:45:26,028 - 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-05 18:45:26,314 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.18': '0'}} with 2025-11-05 18:45:26,315 - INFO - Initial checks done. Running the testcase now 2025-11-05 18:45:26,315 - INFO - 2025-11-05 18:45:26,654 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-75904289:ctest-vn4-23488471, 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-75904289:ctest-vn4-23488471, 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-75904289:ctest-vn4-23488471, 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-75904289:ctest-vn4-23488471, 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-05 18:45:27,142 - DEBUG - Response for create_network : {'network': {'id': '4bf4895f-81ad-4b6c-aabc-a56f81a4b4d0', 'name': 'ctest-vn4-23488471', 'tenant_id': '7183aed3d5844deb9bfd90cb89bb61f9', 'project_id': '7183aed3d5844deb9bfd90cb89bb61f9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-75904289', 'ctest-vn4-23488471'], 'port_security_enabled': True, 'description': ''}} 2025-11-05 18:45:27,320 - DEBUG - Response for create_subnet : {'subnet': {'id': '4c0578d1-e9c5-4bcf-aa12-3d7ab726d443', 'name': '', 'tenant_id': '7183aed3d5844deb9bfd90cb89bb61f9', 'network_id': '4bf4895f-81ad-4b6c-aabc-a56f81a4b4d0', 'ip_version': 4, 'cidr': '120.130.216.0/26', 'allocation_pools': [{'start': '120.130.216.2', 'end': '120.130.216.62'}], 'gateway_ip': '120.130.216.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '120.130.216.2', 'tags': [], 'project_id': '7183aed3d5844deb9bfd90cb89bb61f9'}} 2025-11-05 18:45:27,516 - DEBUG - Response for create_subnet : {'subnet': {'id': '9d653321-4221-464f-b083-e4f359b26160', 'name': '', 'tenant_id': '7183aed3d5844deb9bfd90cb89bb61f9', 'network_id': '4bf4895f-81ad-4b6c-aabc-a56f81a4b4d0', 'ip_version': 6, 'cidr': '2657:272b:13a4:ae3d:b677:98fa::/96', 'allocation_pools': [{'start': '2657:272b:13a4:ae3d:b677:98fa:0:2', 'end': '2657:272b:13a4:ae3d:b677:98fa:ffff:fffe'}], 'gateway_ip': '2657:272b:13a4:ae3d:b677:98fa:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2657:272b:13a4:ae3d:b677:98fa:0:2', 'tags': [], 'project_id': '7183aed3d5844deb9bfd90cb89bb61f9'}} 2025-11-05 18:45:27,534 - INFO - Created VN ctest-vn4-23488471 2025-11-05 18:45:27,582 - DEBUG - VN ctest-vn4-23488471 UUID is 4bf4895f-81ad-4b6c-aabc-a56f81a4b4d0 2025-11-05 18:45:27,758 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4bf4895f-81ad-4b6c-aabc-a56f81a4b4d0', 'name': 'ctest-vn4-23488471', 'tenant_id': '7183aed3d5844deb9bfd90cb89bb61f9', 'project_id': '7183aed3d5844deb9bfd90cb89bb61f9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4c0578d1-e9c5-4bcf-aa12-3d7ab726d443', '9d653321-4221-464f-b083-e4f359b26160'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-75904289', 'ctest-vn4-23488471'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-75904289', 'ctest-policy1-59330567']], 'subnet_ipam': [{'subnet_cidr': '120.130.216.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2657:272b:13a4:ae3d:b677:98fa::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-11-05 18:45:27,930 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-11-05 18:45:28,224 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-11-05 18:45:28,249 - DEBUG - Requesting: http://10.0.0.38:8082/domain/147c2e0b-2a9e-4f2c-b88a-f26243a86f30 2025-11-05 18:45:28,260 - DEBUG - Requesting: http://10.0.0.38:8082/project/7183aed3-d584-4deb-9bfd-90cb89bb61f9 2025-11-05 18:45:28,330 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/4bf4895f-81ad-4b6c-aabc-a56f81a4b4d0 2025-11-05 18:45:28,340 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/4bf4895f-81ad-4b6c-aabc-a56f81a4b4d0 2025-11-05 18:45:28,348 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2cd3c942-a7de-435b-80f3-1aaa75d4710a 2025-11-05 18:45:28,354 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2cd3c942-a7de-435b-80f3-1aaa75d4710a 2025-11-05 18:45:28,360 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/b730a193-7013-40e6-b0df-903e0002398b 2025-11-05 18:45:28,365 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-05 18:45:28,365 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/4bf4895f-81ad-4b6c-aabc-a56f81a4b4d0 2025-11-05 18:45:28,373 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2cd3c942-a7de-435b-80f3-1aaa75d4710a 2025-11-05 18:45:28,384 - INFO - Verified VN network id 12 for VN 4bf4895f-81ad-4b6c-aabc-a56f81a4b4d0 2025-11-05 18:45:28,385 - INFO - Verifications in API Server for VN ctest-vn4-23488471 passed 2025-11-05 18:45:28,385 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/4bf4895f-81ad-4b6c-aabc-a56f81a4b4d0 2025-11-05 18:45:28,393 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2cd3c942-a7de-435b-80f3-1aaa75d4710a 2025-11-05 18:45:28,399 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2cd3c942-a7de-435b-80f3-1aaa75d4710a 2025-11-05 18:45:28,405 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/b730a193-7013-40e6-b0df-903e0002398b 2025-11-05 18:45:28,415 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-75904289:ctest-vn4-23488471', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-75904289', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5473150490452511596', 'uuid-lslong': '12302890180404360400'}, 'enable': 'true', 'created': '2025-11-05T18:45:27', 'last-modified': '2025-11-05T18:45:27', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.681295'} 2025-11-05 18:45:28,420 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-05 18:45:28,420 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-23488471 passed 2025-11-05 18:45:28,420 - DEBUG - ====Verifying policy data for ctest-vn4-23488471 in API_Server ====== 2025-11-05 18:45:28,420 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-11-05 18:45:28,425 - DEBUG - Requesting: http://10.0.0.38:8082/domain/147c2e0b-2a9e-4f2c-b88a-f26243a86f30 2025-11-05 18:45:28,434 - DEBUG - Requesting: http://10.0.0.38:8082/project/7183aed3-d584-4deb-9bfd-90cb89bb61f9 2025-11-05 18:45:28,502 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/4bf4895f-81ad-4b6c-aabc-a56f81a4b4d0 2025-11-05 18:45:28,510 - DEBUG - ==>Verifying data for policy with id: e3abc424-3fa6-4505-afa4-97df7aa76ab4, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-75904289', 'ctest-policy1-59330567'] 2025-11-05 18:45:28,510 - INFO - VN ctest-vn4-23488471 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-05 18:45:28,510 - DEBUG - Verifying the vn in opserver 2025-11-05 18:45:28,510 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-75904289:ctest-vn4-23488471 virtual network link through opserver 10.0.0.38 2025-11-05 18:45:28,510 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-11-05 18:45:28,799 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-11-05 18:45:28,849 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-75904289:ctest-vn4-23488471', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-75904289:ctest-vn4-23488471?flat'} 2025-11-05 18:45:28,849 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-75904289:ctest-vn4-23488471 is found in opserver 2025-11-05 18:45:28,858 - DEBUG - Do not have enough data to verify VN in agent 2025-11-05 18:45:28,862 - DEBUG - VRF ids for VN ctest-vn4-23488471: {} 2025-11-05 18:45:28,862 - DEBUG - ====Verifying data for ctest-policy1-59330567 in API_Server ====== 2025-11-05 18:45:28,863 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-11-05 18:45:28,867 - DEBUG - Requesting: http://10.0.0.38:8082/domain/147c2e0b-2a9e-4f2c-b88a-f26243a86f30 2025-11-05 18:45:28,877 - DEBUG - Requesting: http://10.0.0.38:8082/project/7183aed3-d584-4deb-9bfd-90cb89bb61f9 2025-11-05 18:45:28,940 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/e3abc424-3fa6-4505-afa4-97df7aa76ab4 2025-11-05 18:45:28,949 - INFO - Verified policy ctest-policy1-59330567 in API Server, Result: True 2025-11-05 18:45:28,949 - INFO - Done with setup and verification, moving onto test .. 2025-11-05 18:45:28,959 - INFO - Deleting VN ctest-vn4-23488471 2025-11-05 18:45:29,066 - DEBUG - Response for deleting network () 2025-11-05 18:45:29,066 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2cd3c942-a7de-435b-80f3-1aaa75d4710a 2025-11-05 18:45:29,070 - DEBUG - Response Code: 404 2025-11-05 18:45:29,070 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-11-05 18:45:29,075 - DEBUG - Requesting: http://10.0.0.38:8082/domain/147c2e0b-2a9e-4f2c-b88a-f26243a86f30 2025-11-05 18:45:29,130 - DEBUG - Requesting: http://10.0.0.38:8082/project/7183aed3-d584-4deb-9bfd-90cb89bb61f9 2025-11-05 18:45:29,201 - INFO - Validated that VN ctest-vn4-23488471 is not found in API Server 2025-11-05 18:45:29,211 - DEBUG - VN ctest-vn4-23488471 is not present in Agent 10.0.0.38 2025-11-05 18:45:29,211 - INFO - Validated that VN ctest-vn4-23488471 is not in any agent 2025-11-05 18:45:29,228 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-23488471 info 2025-11-05 18:45:29,253 - INFO - Deleted policy ctest-policy1-59330567 2025-11-05 18:45:29,414 - DEBUG - policy ctest-policy1-59330567 is not found in API Server 2025-11-05 18:45:29,666 - DEBUG - No XMPP flaps were noticed during the test