2025-10-31 19:41:01,524 - INFO - Domain Default found not creating 2025-10-31 19:41:01,817 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-85709460 not found, creating it 2025-10-31 19:41:02,493 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-85709460, ID : 30396ad9-7a03-423f-abab-ce9d71728bcb 2025-10-31 19:41:04,421 - INFO - ================================================================================ 2025-10-31 19:41:04,421 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-31 19:41:04,748 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.254': '0'}} with 2025-10-31 19:41:04,748 - INFO - Initial checks done. Running the testcase now 2025-10-31 19:41:04,749 - INFO - 2025-10-31 19:41:04,749 - INFO - ================================================================================ 2025-10-31 19:41:04,749 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-31 19:41:04,749 - 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-10-31 19:41:05,088 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.254': '0'}} with 2025-10-31 19:41:05,088 - INFO - Initial checks done. Running the testcase now 2025-10-31 19:41:05,088 - INFO - 2025-10-31 19:41:05,542 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-85709460:ctest-vn4-31812986, 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-85709460:ctest-vn4-31812986, 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-85709460:ctest-vn4-31812986, 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-85709460:ctest-vn4-31812986, 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-10-31 19:41:06,240 - DEBUG - Response for create_network : {'network': {'id': '87b6ab07-ec35-4e1d-9064-ac505e2e66f4', 'name': 'ctest-vn4-31812986', 'tenant_id': '30396ad97a03423fababce9d71728bcb', 'project_id': '30396ad97a03423fababce9d71728bcb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-85709460', 'ctest-vn4-31812986'], 'port_security_enabled': True, 'description': ''}} 2025-10-31 19:41:06,456 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fb5eb783-7d87-4b82-a6d7-fc3e6cd405ff', 'name': '', 'tenant_id': '30396ad97a03423fababce9d71728bcb', 'network_id': '87b6ab07-ec35-4e1d-9064-ac505e2e66f4', 'ip_version': 4, 'cidr': '137.188.194.192/26', 'allocation_pools': [{'start': '137.188.194.194', 'end': '137.188.194.254'}], 'gateway_ip': '137.188.194.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '137.188.194.194', 'tags': [], 'project_id': '30396ad97a03423fababce9d71728bcb'}} 2025-10-31 19:41:06,725 - DEBUG - Response for create_subnet : {'subnet': {'id': '77e7ed18-de6d-4478-bef7-fc0b2063f901', 'name': '', 'tenant_id': '30396ad97a03423fababce9d71728bcb', 'network_id': '87b6ab07-ec35-4e1d-9064-ac505e2e66f4', 'ip_version': 6, 'cidr': '3c14:ad6a:5ea3:b48f:4d72:73a5::/96', 'allocation_pools': [{'start': '3c14:ad6a:5ea3:b48f:4d72:73a5:0:2', 'end': '3c14:ad6a:5ea3:b48f:4d72:73a5:ffff:fffe'}], 'gateway_ip': '3c14:ad6a:5ea3:b48f:4d72:73a5:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3c14:ad6a:5ea3:b48f:4d72:73a5:0:2', 'tags': [], 'project_id': '30396ad97a03423fababce9d71728bcb'}} 2025-10-31 19:41:06,760 - INFO - Created VN ctest-vn4-31812986 2025-10-31 19:41:06,814 - DEBUG - VN ctest-vn4-31812986 UUID is 87b6ab07-ec35-4e1d-9064-ac505e2e66f4 2025-10-31 19:41:07,191 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '87b6ab07-ec35-4e1d-9064-ac505e2e66f4', 'name': 'ctest-vn4-31812986', 'tenant_id': '30396ad97a03423fababce9d71728bcb', 'project_id': '30396ad97a03423fababce9d71728bcb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['fb5eb783-7d87-4b82-a6d7-fc3e6cd405ff', '77e7ed18-de6d-4478-bef7-fc0b2063f901'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-85709460', 'ctest-vn4-31812986'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-85709460', 'ctest-policy1-73256171']], 'subnet_ipam': [{'subnet_cidr': '137.188.194.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3c14:ad6a:5ea3:b48f:4d72:73a5::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-31 19:41:07,374 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-10-31 19:41:07,720 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-10-31 19:41:07,787 - DEBUG - Requesting: http://10.0.0.249:8082/domain/e0f21c43-19d6-4a96-94a3-3251ed820390 2025-10-31 19:41:07,805 - DEBUG - Requesting: http://10.0.0.249:8082/project/30396ad9-7a03-423f-abab-ce9d71728bcb 2025-10-31 19:41:07,914 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/87b6ab07-ec35-4e1d-9064-ac505e2e66f4 2025-10-31 19:41:07,933 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/87b6ab07-ec35-4e1d-9064-ac505e2e66f4 2025-10-31 19:41:07,948 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/327caf18-ef33-4998-a94a-6531aa7c1c99 2025-10-31 19:41:07,960 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/327caf18-ef33-4998-a94a-6531aa7c1c99 2025-10-31 19:41:07,970 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/e2127e39-3a15-43af-9f1e-aa763c67c2e2 2025-10-31 19:41:07,978 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-31 19:41:07,978 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/87b6ab07-ec35-4e1d-9064-ac505e2e66f4 2025-10-31 19:41:07,991 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/327caf18-ef33-4998-a94a-6531aa7c1c99 2025-10-31 19:41:08,012 - INFO - Verified VN network id 11 for VN 87b6ab07-ec35-4e1d-9064-ac505e2e66f4 2025-10-31 19:41:08,013 - INFO - Verifications in API Server for VN ctest-vn4-31812986 passed 2025-10-31 19:41:08,013 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/87b6ab07-ec35-4e1d-9064-ac505e2e66f4 2025-10-31 19:41:08,030 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/327caf18-ef33-4998-a94a-6531aa7c1c99 2025-10-31 19:41:08,041 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/327caf18-ef33-4998-a94a-6531aa7c1c99 2025-10-31 19:41:08,059 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/e2127e39-3a15-43af-9f1e-aa763c67c2e2 2025-10-31 19:41:08,079 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-85709460:ctest-vn4-31812986', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-85709460', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9779191691397647901', 'uuid-lslong': '10404630500310148852'}, 'enable': 'true', 'created': '2025-10-31T19:41:06', 'last-modified': '2025-10-31T19:41:07', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.945535'} 2025-10-31 19:41:08,088 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-31 19:41:08,088 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-31812986 passed 2025-10-31 19:41:08,088 - DEBUG - ====Verifying policy data for ctest-vn4-31812986 in API_Server ====== 2025-10-31 19:41:08,088 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-10-31 19:41:08,094 - DEBUG - Requesting: http://10.0.0.249:8082/domain/e0f21c43-19d6-4a96-94a3-3251ed820390 2025-10-31 19:41:08,107 - DEBUG - Requesting: http://10.0.0.249:8082/project/30396ad9-7a03-423f-abab-ce9d71728bcb 2025-10-31 19:41:08,196 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/87b6ab07-ec35-4e1d-9064-ac505e2e66f4 2025-10-31 19:41:08,212 - DEBUG - ==>Verifying data for policy with id: 104c879e-05e3-401d-9f7e-a38de4ace70b, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-85709460', 'ctest-policy1-73256171'] 2025-10-31 19:41:08,213 - INFO - VN ctest-vn4-31812986 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-31 19:41:08,213 - DEBUG - Verifying the vn in opserver 2025-10-31 19:41:08,213 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-85709460:ctest-vn4-31812986 virtual network link through opserver 10.0.0.249 2025-10-31 19:41:08,213 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2025-10-31 19:41:08,507 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2025-10-31 19:41:08,586 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-85709460:ctest-vn4-31812986', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-85709460:ctest-vn4-31812986?flat'} 2025-10-31 19:41:08,586 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-85709460:ctest-vn4-31812986 is found in opserver 2025-10-31 19:41:08,614 - DEBUG - Do not have enough data to verify VN in agent 2025-10-31 19:41:08,625 - DEBUG - VRF ids for VN ctest-vn4-31812986: {} 2025-10-31 19:41:08,626 - DEBUG - ====Verifying data for ctest-policy1-73256171 in API_Server ====== 2025-10-31 19:41:08,626 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-10-31 19:41:08,636 - DEBUG - Requesting: http://10.0.0.249:8082/domain/e0f21c43-19d6-4a96-94a3-3251ed820390 2025-10-31 19:41:08,656 - DEBUG - Requesting: http://10.0.0.249:8082/project/30396ad9-7a03-423f-abab-ce9d71728bcb 2025-10-31 19:41:08,743 - DEBUG - Requesting: http://10.0.0.249:8082/network-policy/104c879e-05e3-401d-9f7e-a38de4ace70b 2025-10-31 19:41:08,775 - INFO - Verified policy ctest-policy1-73256171 in API Server, Result: True 2025-10-31 19:41:08,775 - INFO - Done with setup and verification, moving onto test .. 2025-10-31 19:41:08,788 - INFO - Deleting VN ctest-vn4-31812986 2025-10-31 19:41:08,935 - DEBUG - Response for deleting network () 2025-10-31 19:41:08,935 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/327caf18-ef33-4998-a94a-6531aa7c1c99 2025-10-31 19:41:08,944 - DEBUG - Response Code: 404 2025-10-31 19:41:08,944 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-10-31 19:41:08,951 - DEBUG - Requesting: http://10.0.0.249:8082/domain/e0f21c43-19d6-4a96-94a3-3251ed820390 2025-10-31 19:41:09,004 - DEBUG - Requesting: http://10.0.0.249:8082/project/30396ad9-7a03-423f-abab-ce9d71728bcb 2025-10-31 19:41:09,085 - INFO - Validated that VN ctest-vn4-31812986 is not found in API Server 2025-10-31 19:41:09,102 - DEBUG - VN ctest-vn4-31812986 is not present in Agent 10.0.0.249 2025-10-31 19:41:09,102 - INFO - Validated that VN ctest-vn4-31812986 is not in any agent 2025-10-31 19:41:09,120 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-31812986 info 2025-10-31 19:41:09,158 - INFO - Deleted policy ctest-policy1-73256171 2025-10-31 19:41:09,342 - DEBUG - policy ctest-policy1-73256171 is not found in API Server 2025-10-31 19:41:09,652 - DEBUG - No XMPP flaps were noticed during the test