2025-11-07 09:33:21,164 - INFO - Domain Default found not creating 2025-11-07 09:33:21,331 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-40485730 not found, creating it 2025-11-07 09:33:21,772 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-40485730, ID : 25c81a75-3a7c-4a19-9a99-b5b6db10bf03 2025-11-07 09:33:23,135 - INFO - ================================================================================ 2025-11-07 09:33:23,135 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-07 09:33:23,389 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.254': '0'}} with 2025-11-07 09:33:23,389 - INFO - Initial checks done. Running the testcase now 2025-11-07 09:33:23,389 - INFO - 2025-11-07 09:33:23,389 - INFO - ================================================================================ 2025-11-07 09:33:23,390 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-07 09:33:23,390 - 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-07 09:33:23,682 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.254': '0'}} with 2025-11-07 09:33:23,682 - INFO - Initial checks done. Running the testcase now 2025-11-07 09:33:23,682 - INFO - 2025-11-07 09:33:24,058 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-40485730:ctest-vn4-66322514, 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-40485730:ctest-vn4-66322514, 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-40485730:ctest-vn4-66322514, 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-40485730:ctest-vn4-66322514, 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-07 09:33:24,560 - DEBUG - Response for create_network : {'network': {'id': 'b6a3c4cc-634e-492d-ac55-3fa51cb1e1b9', 'name': 'ctest-vn4-66322514', 'tenant_id': '25c81a753a7c4a199a99b5b6db10bf03', 'project_id': '25c81a753a7c4a199a99b5b6db10bf03', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-40485730', 'ctest-vn4-66322514'], 'port_security_enabled': True, 'description': ''}} 2025-11-07 09:33:24,761 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e184142d-9a19-4792-b032-2180ef4b2019', 'name': '', 'tenant_id': '25c81a753a7c4a199a99b5b6db10bf03', 'network_id': 'b6a3c4cc-634e-492d-ac55-3fa51cb1e1b9', 'ip_version': 4, 'cidr': '65.17.165.128/26', 'allocation_pools': [{'start': '65.17.165.130', 'end': '65.17.165.190'}], 'gateway_ip': '65.17.165.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '65.17.165.130', 'tags': [], 'project_id': '25c81a753a7c4a199a99b5b6db10bf03'}} 2025-11-07 09:33:24,924 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ef15fee7-3600-45c0-b303-1d3ef253e412', 'name': '', 'tenant_id': '25c81a753a7c4a199a99b5b6db10bf03', 'network_id': 'b6a3c4cc-634e-492d-ac55-3fa51cb1e1b9', 'ip_version': 6, 'cidr': '3a27:f368:1962:ccb6:4ea9:ad7b::/96', 'allocation_pools': [{'start': '3a27:f368:1962:ccb6:4ea9:ad7b:0:2', 'end': '3a27:f368:1962:ccb6:4ea9:ad7b:ffff:fffe'}], 'gateway_ip': '3a27:f368:1962:ccb6:4ea9:ad7b:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3a27:f368:1962:ccb6:4ea9:ad7b:0:2', 'tags': [], 'project_id': '25c81a753a7c4a199a99b5b6db10bf03'}} 2025-11-07 09:33:24,944 - INFO - Created VN ctest-vn4-66322514 2025-11-07 09:33:24,996 - DEBUG - VN ctest-vn4-66322514 UUID is b6a3c4cc-634e-492d-ac55-3fa51cb1e1b9 2025-11-07 09:33:25,216 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b6a3c4cc-634e-492d-ac55-3fa51cb1e1b9', 'name': 'ctest-vn4-66322514', 'tenant_id': '25c81a753a7c4a199a99b5b6db10bf03', 'project_id': '25c81a753a7c4a199a99b5b6db10bf03', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e184142d-9a19-4792-b032-2180ef4b2019', 'ef15fee7-3600-45c0-b303-1d3ef253e412'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-40485730', 'ctest-vn4-66322514'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-40485730', 'ctest-policy1-89900001']], 'subnet_ipam': [{'subnet_cidr': '65.17.165.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3a27:f368:1962:ccb6:4ea9:ad7b::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-11-07 09:33:25,376 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-11-07 09:33:25,683 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-11-07 09:33:25,715 - DEBUG - Requesting: http://10.0.0.249:8082/domain/e75be550-1cc2-4097-be55-e97adebf17f3 2025-11-07 09:33:25,725 - DEBUG - Requesting: http://10.0.0.249:8082/project/25c81a75-3a7c-4a19-9a99-b5b6db10bf03 2025-11-07 09:33:25,794 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/b6a3c4cc-634e-492d-ac55-3fa51cb1e1b9 2025-11-07 09:33:25,808 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/b6a3c4cc-634e-492d-ac55-3fa51cb1e1b9 2025-11-07 09:33:25,817 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/cb856400-e315-4d8f-a9cd-0c55f0a4b85b 2025-11-07 09:33:25,825 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/cb856400-e315-4d8f-a9cd-0c55f0a4b85b 2025-11-07 09:33:25,832 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/c045eef2-0bf7-45d4-b405-b6b8e2533942 2025-11-07 09:33:25,839 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-07 09:33:25,839 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/b6a3c4cc-634e-492d-ac55-3fa51cb1e1b9 2025-11-07 09:33:25,850 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/cb856400-e315-4d8f-a9cd-0c55f0a4b85b 2025-11-07 09:33:25,865 - INFO - Verified VN network id 12 for VN b6a3c4cc-634e-492d-ac55-3fa51cb1e1b9 2025-11-07 09:33:25,865 - INFO - Verifications in API Server for VN ctest-vn4-66322514 passed 2025-11-07 09:33:25,865 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/b6a3c4cc-634e-492d-ac55-3fa51cb1e1b9 2025-11-07 09:33:25,875 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/cb856400-e315-4d8f-a9cd-0c55f0a4b85b 2025-11-07 09:33:25,881 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/cb856400-e315-4d8f-a9cd-0c55f0a4b85b 2025-11-07 09:33:25,887 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/c045eef2-0bf7-45d4-b405-b6b8e2533942 2025-11-07 09:33:25,898 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-40485730:ctest-vn4-66322514', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-40485730', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13160578918225168685', 'uuid-lslong': '12417901525927584185'}, 'enable': 'true', 'created': '2025-11-07T09:33:24', 'last-modified': '2025-11-07T09:33:25', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.711702'} 2025-11-07 09:33:25,904 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-07 09:33:25,904 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-66322514 passed 2025-11-07 09:33:25,904 - DEBUG - ====Verifying policy data for ctest-vn4-66322514 in API_Server ====== 2025-11-07 09:33:25,904 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-11-07 09:33:25,908 - DEBUG - Requesting: http://10.0.0.249:8082/domain/e75be550-1cc2-4097-be55-e97adebf17f3 2025-11-07 09:33:25,918 - DEBUG - Requesting: http://10.0.0.249:8082/project/25c81a75-3a7c-4a19-9a99-b5b6db10bf03 2025-11-07 09:33:25,985 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/b6a3c4cc-634e-492d-ac55-3fa51cb1e1b9 2025-11-07 09:33:25,993 - DEBUG - ==>Verifying data for policy with id: e5a917fa-9e0e-41fb-aac1-76ac43dbb39d, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-40485730', 'ctest-policy1-89900001'] 2025-11-07 09:33:25,993 - INFO - VN ctest-vn4-66322514 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-07 09:33:25,993 - DEBUG - Verifying the vn in opserver 2025-11-07 09:33:25,994 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-40485730:ctest-vn4-66322514 virtual network link through opserver 10.0.0.249 2025-11-07 09:33:25,994 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2025-11-07 09:33:26,283 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2025-11-07 09:33:26,334 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-40485730:ctest-vn4-66322514', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-40485730:ctest-vn4-66322514?flat'} 2025-11-07 09:33:26,334 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-40485730:ctest-vn4-66322514 is found in opserver 2025-11-07 09:33:26,343 - DEBUG - Do not have enough data to verify VN in agent 2025-11-07 09:33:26,347 - DEBUG - VRF ids for VN ctest-vn4-66322514: {} 2025-11-07 09:33:26,347 - DEBUG - ====Verifying data for ctest-policy1-89900001 in API_Server ====== 2025-11-07 09:33:26,347 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-11-07 09:33:26,351 - DEBUG - Requesting: http://10.0.0.249:8082/domain/e75be550-1cc2-4097-be55-e97adebf17f3 2025-11-07 09:33:26,360 - DEBUG - Requesting: http://10.0.0.249:8082/project/25c81a75-3a7c-4a19-9a99-b5b6db10bf03 2025-11-07 09:33:26,430 - DEBUG - Requesting: http://10.0.0.249:8082/network-policy/e5a917fa-9e0e-41fb-aac1-76ac43dbb39d 2025-11-07 09:33:26,439 - INFO - Verified policy ctest-policy1-89900001 in API Server, Result: True 2025-11-07 09:33:26,439 - INFO - Done with setup and verification, moving onto test .. 2025-11-07 09:33:26,446 - INFO - Deleting VN ctest-vn4-66322514 2025-11-07 09:33:26,620 - DEBUG - Response for deleting network () 2025-11-07 09:33:26,620 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/cb856400-e315-4d8f-a9cd-0c55f0a4b85b 2025-11-07 09:33:26,625 - DEBUG - Response Code: 404 2025-11-07 09:33:26,625 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-11-07 09:33:26,629 - DEBUG - Requesting: http://10.0.0.249:8082/domain/e75be550-1cc2-4097-be55-e97adebf17f3 2025-11-07 09:33:26,681 - DEBUG - Requesting: http://10.0.0.249:8082/project/25c81a75-3a7c-4a19-9a99-b5b6db10bf03 2025-11-07 09:33:26,753 - INFO - Validated that VN ctest-vn4-66322514 is not found in API Server 2025-11-07 09:33:26,763 - DEBUG - VN ctest-vn4-66322514 is not present in Agent 10.0.0.249 2025-11-07 09:33:26,763 - INFO - Validated that VN ctest-vn4-66322514 is not in any agent 2025-11-07 09:33:26,775 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-66322514 info 2025-11-07 09:33:26,798 - INFO - Deleted policy ctest-policy1-89900001 2025-11-07 09:33:26,964 - DEBUG - policy ctest-policy1-89900001 is not found in API Server 2025-11-07 09:33:27,234 - DEBUG - No XMPP flaps were noticed during the test