2025-12-31 03:31:43,185 - INFO - Domain Default found not creating 2025-12-31 03:31:43,348 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-71397023 not found, creating it 2025-12-31 03:31:43,817 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-71397023, ID : 358fb365-2168-40be-873e-576627df3dae 2025-12-31 03:31:45,357 - INFO - ================================================================================ 2025-12-31 03:31:45,357 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-12-31 03:31:45,609 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.14': '0'}} with 2025-12-31 03:31:45,609 - INFO - Initial checks done. Running the testcase now 2025-12-31 03:31:45,609 - INFO - 2025-12-31 03:31:45,609 - INFO - ================================================================================ 2025-12-31 03:31:45,609 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-12-31 03:31:45,609 - 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-12-31 03:31:45,896 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.14': '0'}} with 2025-12-31 03:31:45,896 - INFO - Initial checks done. Running the testcase now 2025-12-31 03:31:45,897 - INFO - 2025-12-31 03:31:46,244 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-71397023:ctest-vn4-94500222, 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-71397023:ctest-vn4-94500222, 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-71397023:ctest-vn4-94500222, 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-71397023:ctest-vn4-94500222, 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-12-31 03:31:46,745 - DEBUG - Response for create_network : {'network': {'id': '4b8b75dd-7eff-4bc8-b13e-21f7b26052f1', 'name': 'ctest-vn4-94500222', 'tenant_id': '358fb365216840be873e576627df3dae', 'project_id': '358fb365216840be873e576627df3dae', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-71397023', 'ctest-vn4-94500222'], 'port_security_enabled': True, 'description': ''}} 2025-12-31 03:31:46,956 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fd83e76b-eafe-40f4-a85f-633505064b30', 'name': '', 'tenant_id': '358fb365216840be873e576627df3dae', 'network_id': '4b8b75dd-7eff-4bc8-b13e-21f7b26052f1', 'ip_version': 4, 'cidr': '172.143.217.64/26', 'allocation_pools': [{'start': '172.143.217.66', 'end': '172.143.217.126'}], 'gateway_ip': '172.143.217.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '172.143.217.66', 'tags': [], 'project_id': '358fb365216840be873e576627df3dae'}} 2025-12-31 03:31:47,155 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a1c0e4fa-c61b-4ae8-8ba3-c6d6875a4d4f', 'name': '', 'tenant_id': '358fb365216840be873e576627df3dae', 'network_id': '4b8b75dd-7eff-4bc8-b13e-21f7b26052f1', 'ip_version': 6, 'cidr': '3319:dd56:1290:ecb5:f3c0:2f75::/96', 'allocation_pools': [{'start': '3319:dd56:1290:ecb5:f3c0:2f75:0:2', 'end': '3319:dd56:1290:ecb5:f3c0:2f75:ffff:fffe'}], 'gateway_ip': '3319:dd56:1290:ecb5:f3c0:2f75:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3319:dd56:1290:ecb5:f3c0:2f75:0:2', 'tags': [], 'project_id': '358fb365216840be873e576627df3dae'}} 2025-12-31 03:31:47,174 - INFO - Created VN ctest-vn4-94500222 2025-12-31 03:31:47,228 - DEBUG - VN ctest-vn4-94500222 UUID is 4b8b75dd-7eff-4bc8-b13e-21f7b26052f1 2025-12-31 03:31:47,431 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4b8b75dd-7eff-4bc8-b13e-21f7b26052f1', 'name': 'ctest-vn4-94500222', 'tenant_id': '358fb365216840be873e576627df3dae', 'project_id': '358fb365216840be873e576627df3dae', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['fd83e76b-eafe-40f4-a85f-633505064b30', 'a1c0e4fa-c61b-4ae8-8ba3-c6d6875a4d4f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-71397023', 'ctest-vn4-94500222'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-71397023', 'ctest-policy1-52369988']], 'subnet_ipam': [{'subnet_cidr': '172.143.217.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3319:dd56:1290:ecb5:f3c0:2f75::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-12-31 03:31:47,592 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-12-31 03:31:47,884 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-12-31 03:31:47,913 - DEBUG - Requesting: http://10.0.0.38:8082/domain/4329cd02-8fb7-471f-be73-16477e19c45e 2025-12-31 03:31:47,925 - DEBUG - Requesting: http://10.0.0.38:8082/project/358fb365-2168-40be-873e-576627df3dae 2025-12-31 03:31:47,999 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/4b8b75dd-7eff-4bc8-b13e-21f7b26052f1 2025-12-31 03:31:48,010 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/4b8b75dd-7eff-4bc8-b13e-21f7b26052f1 2025-12-31 03:31:48,020 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5cb1162b-f5ee-4f67-94c7-12872d50935f 2025-12-31 03:31:48,028 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5cb1162b-f5ee-4f67-94c7-12872d50935f 2025-12-31 03:31:48,035 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/7a884a71-a7cc-4c38-afac-f967f0453b98 2025-12-31 03:31:48,041 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-31 03:31:48,041 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/4b8b75dd-7eff-4bc8-b13e-21f7b26052f1 2025-12-31 03:31:48,051 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5cb1162b-f5ee-4f67-94c7-12872d50935f 2025-12-31 03:31:48,065 - INFO - Verified VN network id 11 for VN 4b8b75dd-7eff-4bc8-b13e-21f7b26052f1 2025-12-31 03:31:48,065 - INFO - Verifications in API Server for VN ctest-vn4-94500222 passed 2025-12-31 03:31:48,065 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/4b8b75dd-7eff-4bc8-b13e-21f7b26052f1 2025-12-31 03:31:48,075 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5cb1162b-f5ee-4f67-94c7-12872d50935f 2025-12-31 03:31:48,082 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5cb1162b-f5ee-4f67-94c7-12872d50935f 2025-12-31 03:31:48,089 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/7a884a71-a7cc-4c38-afac-f967f0453b98 2025-12-31 03:31:48,102 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-71397023:ctest-vn4-94500222', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-71397023', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5443574168786258888', 'uuid-lslong': '12771682941002601201'}, 'enable': 'true', 'created': '2025-12-31T03:31:46', 'last-modified': '2025-12-31T03:31:47', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.698870'} 2025-12-31 03:31:48,108 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-31 03:31:48,108 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-94500222 passed 2025-12-31 03:31:48,109 - DEBUG - ====Verifying policy data for ctest-vn4-94500222 in API_Server ====== 2025-12-31 03:31:48,109 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-12-31 03:31:48,114 - DEBUG - Requesting: http://10.0.0.38:8082/domain/4329cd02-8fb7-471f-be73-16477e19c45e 2025-12-31 03:31:48,123 - DEBUG - Requesting: http://10.0.0.38:8082/project/358fb365-2168-40be-873e-576627df3dae 2025-12-31 03:31:48,197 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/4b8b75dd-7eff-4bc8-b13e-21f7b26052f1 2025-12-31 03:31:48,208 - DEBUG - ==>Verifying data for policy with id: 1afebb57-6853-47c6-bd1a-823102f94825, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-71397023', 'ctest-policy1-52369988'] 2025-12-31 03:31:48,208 - INFO - VN ctest-vn4-94500222 Policy verification: verify_vn_policy_in_api_server, status: True 2025-12-31 03:31:48,208 - DEBUG - Verifying the vn in opserver 2025-12-31 03:31:48,208 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-71397023:ctest-vn4-94500222 virtual network link through opserver 10.0.0.38 2025-12-31 03:31:48,208 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-12-31 03:31:48,508 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-12-31 03:31:48,569 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-71397023:ctest-vn4-94500222', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-71397023:ctest-vn4-94500222?flat'} 2025-12-31 03:31:48,569 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-71397023:ctest-vn4-94500222 is found in opserver 2025-12-31 03:31:48,578 - DEBUG - Do not have enough data to verify VN in agent 2025-12-31 03:31:48,582 - DEBUG - VRF ids for VN ctest-vn4-94500222: {} 2025-12-31 03:31:48,583 - DEBUG - ====Verifying data for ctest-policy1-52369988 in API_Server ====== 2025-12-31 03:31:48,583 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-12-31 03:31:48,588 - DEBUG - Requesting: http://10.0.0.38:8082/domain/4329cd02-8fb7-471f-be73-16477e19c45e 2025-12-31 03:31:48,600 - DEBUG - Requesting: http://10.0.0.38:8082/project/358fb365-2168-40be-873e-576627df3dae 2025-12-31 03:31:48,667 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/1afebb57-6853-47c6-bd1a-823102f94825 2025-12-31 03:31:48,676 - INFO - Verified policy ctest-policy1-52369988 in API Server, Result: True 2025-12-31 03:31:48,676 - INFO - Done with setup and verification, moving onto test .. 2025-12-31 03:31:48,683 - INFO - Deleting VN ctest-vn4-94500222 2025-12-31 03:31:48,794 - DEBUG - Response for deleting network () 2025-12-31 03:31:48,794 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5cb1162b-f5ee-4f67-94c7-12872d50935f 2025-12-31 03:31:48,799 - DEBUG - Response Code: 404 2025-12-31 03:31:48,799 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-12-31 03:31:48,804 - DEBUG - Requesting: http://10.0.0.38:8082/domain/4329cd02-8fb7-471f-be73-16477e19c45e 2025-12-31 03:31:48,856 - DEBUG - Requesting: http://10.0.0.38:8082/project/358fb365-2168-40be-873e-576627df3dae 2025-12-31 03:31:48,923 - INFO - Validated that VN ctest-vn4-94500222 is not found in API Server 2025-12-31 03:31:48,932 - DEBUG - VN ctest-vn4-94500222 is not present in Agent 10.0.0.38 2025-12-31 03:31:48,932 - INFO - Validated that VN ctest-vn4-94500222 is not in any agent 2025-12-31 03:31:48,947 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-94500222 info 2025-12-31 03:31:48,969 - INFO - Deleted policy ctest-policy1-52369988 2025-12-31 03:31:49,136 - DEBUG - policy ctest-policy1-52369988 is not found in API Server 2025-12-31 03:31:49,389 - DEBUG - No XMPP flaps were noticed during the test