2025-12-19 16:21:09,467 - INFO - Domain Default found not creating 2025-12-19 16:21:09,831 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-29619113 not found, creating it 2025-12-19 16:21:10,503 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-29619113, ID : 0f3c1edd-8a2f-4706-ae61-ed1719aa9e72 2025-12-19 16:21:12,583 - INFO - ================================================================================ 2025-12-19 16:21:12,583 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-12-19 16:21:12,892 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with 2025-12-19 16:21:12,892 - INFO - Initial checks done. Running the testcase now 2025-12-19 16:21:12,892 - INFO - 2025-12-19 16:21:12,892 - INFO - ================================================================================ 2025-12-19 16:21:12,892 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-12-19 16:21:12,892 - 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-19 16:21:13,221 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with 2025-12-19 16:21:13,222 - INFO - Initial checks done. Running the testcase now 2025-12-19 16:21:13,222 - INFO - 2025-12-19 16:21:13,666 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-29619113:ctest-vn4-84419495, 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-29619113:ctest-vn4-84419495, 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-29619113:ctest-vn4-84419495, 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-29619113:ctest-vn4-84419495, 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-19 16:21:14,323 - DEBUG - Response for create_network : {'network': {'id': 'bdbc43f2-6319-408c-8b07-d2f2a3ef2fd6', 'name': 'ctest-vn4-84419495', 'tenant_id': '0f3c1edd8a2f4706ae61ed1719aa9e72', 'project_id': '0f3c1edd8a2f4706ae61ed1719aa9e72', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-29619113', 'ctest-vn4-84419495'], 'port_security_enabled': True, 'description': ''}} 2025-12-19 16:21:14,489 - DEBUG - Response for create_subnet : {'subnet': {'id': '49cfb668-4ebe-45df-a1d9-83b1683d7f74', 'name': '', 'tenant_id': '0f3c1edd8a2f4706ae61ed1719aa9e72', 'network_id': 'bdbc43f2-6319-408c-8b07-d2f2a3ef2fd6', 'ip_version': 4, 'cidr': '97.4.163.64/26', 'allocation_pools': [{'start': '97.4.163.66', 'end': '97.4.163.126'}], 'gateway_ip': '97.4.163.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '97.4.163.66', 'tags': [], 'project_id': '0f3c1edd8a2f4706ae61ed1719aa9e72'}} 2025-12-19 16:21:14,696 - DEBUG - Response for create_subnet : {'subnet': {'id': '73f53153-4043-4cfd-b746-33f597bd7438', 'name': '', 'tenant_id': '0f3c1edd8a2f4706ae61ed1719aa9e72', 'network_id': 'bdbc43f2-6319-408c-8b07-d2f2a3ef2fd6', 'ip_version': 6, 'cidr': '39dc:ecf3:6c92:a894:7180:86c::/96', 'allocation_pools': [{'start': '39dc:ecf3:6c92:a894:7180:86c:0:2', 'end': '39dc:ecf3:6c92:a894:7180:86c:ffff:fffe'}], 'gateway_ip': '39dc:ecf3:6c92:a894:7180:86c:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '39dc:ecf3:6c92:a894:7180:86c:0:2', 'tags': [], 'project_id': '0f3c1edd8a2f4706ae61ed1719aa9e72'}} 2025-12-19 16:21:14,728 - INFO - Created VN ctest-vn4-84419495 2025-12-19 16:21:14,788 - DEBUG - VN ctest-vn4-84419495 UUID is bdbc43f2-6319-408c-8b07-d2f2a3ef2fd6 2025-12-19 16:21:15,102 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'bdbc43f2-6319-408c-8b07-d2f2a3ef2fd6', 'name': 'ctest-vn4-84419495', 'tenant_id': '0f3c1edd8a2f4706ae61ed1719aa9e72', 'project_id': '0f3c1edd8a2f4706ae61ed1719aa9e72', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['49cfb668-4ebe-45df-a1d9-83b1683d7f74', '73f53153-4043-4cfd-b746-33f597bd7438'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-29619113', 'ctest-vn4-84419495'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-29619113', 'ctest-policy1-24795587']], 'subnet_ipam': [{'subnet_cidr': '97.4.163.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '39dc:ecf3:6c92:a894:7180:86c::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-12-19 16:21:15,284 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-12-19 16:21:15,594 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-12-19 16:21:15,662 - DEBUG - Requesting: http://10.0.0.33:8082/domain/e51db401-bbc5-49a2-84d3-da17407b2094 2025-12-19 16:21:15,684 - DEBUG - Requesting: http://10.0.0.33:8082/project/0f3c1edd-8a2f-4706-ae61-ed1719aa9e72 2025-12-19 16:21:15,781 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/bdbc43f2-6319-408c-8b07-d2f2a3ef2fd6 2025-12-19 16:21:15,799 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/bdbc43f2-6319-408c-8b07-d2f2a3ef2fd6 2025-12-19 16:21:15,814 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/f95720f5-8c57-4ed2-a88f-281da42ea38f 2025-12-19 16:21:15,825 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/f95720f5-8c57-4ed2-a88f-281da42ea38f 2025-12-19 16:21:15,836 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/4a883be6-3196-4497-abc8-8a578ce6b031 2025-12-19 16:21:15,847 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-19 16:21:15,847 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/bdbc43f2-6319-408c-8b07-d2f2a3ef2fd6 2025-12-19 16:21:15,867 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/f95720f5-8c57-4ed2-a88f-281da42ea38f 2025-12-19 16:21:15,897 - INFO - Verified VN network id 11 for VN bdbc43f2-6319-408c-8b07-d2f2a3ef2fd6 2025-12-19 16:21:15,897 - INFO - Verifications in API Server for VN ctest-vn4-84419495 passed 2025-12-19 16:21:15,897 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/bdbc43f2-6319-408c-8b07-d2f2a3ef2fd6 2025-12-19 16:21:15,912 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/f95720f5-8c57-4ed2-a88f-281da42ea38f 2025-12-19 16:21:15,923 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/f95720f5-8c57-4ed2-a88f-281da42ea38f 2025-12-19 16:21:15,935 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/4a883be6-3196-4497-abc8-8a578ce6b031 2025-12-19 16:21:15,957 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-29619113:ctest-vn4-84419495', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-29619113', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13671877277113729164', 'uuid-lslong': '10018207835683237846'}, 'enable': 'true', 'created': '2025-12-19T16:21:14', 'last-modified': '2025-12-19T16:21:15', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.898232'} 2025-12-19 16:21:15,968 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-19 16:21:15,968 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-84419495 passed 2025-12-19 16:21:15,968 - DEBUG - ====Verifying policy data for ctest-vn4-84419495 in API_Server ====== 2025-12-19 16:21:15,968 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-12-19 16:21:15,977 - DEBUG - Requesting: http://10.0.0.33:8082/domain/e51db401-bbc5-49a2-84d3-da17407b2094 2025-12-19 16:21:15,994 - DEBUG - Requesting: http://10.0.0.33:8082/project/0f3c1edd-8a2f-4706-ae61-ed1719aa9e72 2025-12-19 16:21:16,073 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/bdbc43f2-6319-408c-8b07-d2f2a3ef2fd6 2025-12-19 16:21:16,087 - DEBUG - ==>Verifying data for policy with id: e67bfa60-f4e5-4493-a189-48a659467e1c, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-29619113', 'ctest-policy1-24795587'] 2025-12-19 16:21:16,087 - INFO - VN ctest-vn4-84419495 Policy verification: verify_vn_policy_in_api_server, status: True 2025-12-19 16:21:16,087 - DEBUG - Verifying the vn in opserver 2025-12-19 16:21:16,087 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-29619113:ctest-vn4-84419495 virtual network link through opserver 10.0.0.33 2025-12-19 16:21:16,087 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-12-19 16:21:16,410 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-12-19 16:21:16,514 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-29619113:ctest-vn4-84419495', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-29619113:ctest-vn4-84419495?flat'} 2025-12-19 16:21:16,514 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-29619113:ctest-vn4-84419495 is found in opserver 2025-12-19 16:21:16,531 - DEBUG - Do not have enough data to verify VN in agent 2025-12-19 16:21:16,539 - DEBUG - VRF ids for VN ctest-vn4-84419495: {} 2025-12-19 16:21:16,540 - DEBUG - ====Verifying data for ctest-policy1-24795587 in API_Server ====== 2025-12-19 16:21:16,540 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-12-19 16:21:16,552 - DEBUG - Requesting: http://10.0.0.33:8082/domain/e51db401-bbc5-49a2-84d3-da17407b2094 2025-12-19 16:21:16,571 - DEBUG - Requesting: http://10.0.0.33:8082/project/0f3c1edd-8a2f-4706-ae61-ed1719aa9e72 2025-12-19 16:21:16,679 - DEBUG - Requesting: http://10.0.0.33:8082/network-policy/e67bfa60-f4e5-4493-a189-48a659467e1c 2025-12-19 16:21:16,692 - INFO - Verified policy ctest-policy1-24795587 in API Server, Result: True 2025-12-19 16:21:16,693 - INFO - Done with setup and verification, moving onto test .. 2025-12-19 16:21:16,705 - INFO - Deleting VN ctest-vn4-84419495 2025-12-19 16:21:16,859 - DEBUG - Response for deleting network () 2025-12-19 16:21:16,859 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/f95720f5-8c57-4ed2-a88f-281da42ea38f 2025-12-19 16:21:16,864 - DEBUG - Response Code: 404 2025-12-19 16:21:16,864 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-12-19 16:21:16,870 - DEBUG - Requesting: http://10.0.0.33:8082/domain/e51db401-bbc5-49a2-84d3-da17407b2094 2025-12-19 16:21:16,925 - DEBUG - Requesting: http://10.0.0.33:8082/project/0f3c1edd-8a2f-4706-ae61-ed1719aa9e72 2025-12-19 16:21:17,011 - INFO - Validated that VN ctest-vn4-84419495 is not found in API Server 2025-12-19 16:21:17,030 - DEBUG - VN ctest-vn4-84419495 is not present in Agent 10.0.0.33 2025-12-19 16:21:17,030 - INFO - Validated that VN ctest-vn4-84419495 is not in any agent 2025-12-19 16:21:17,052 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-84419495 info 2025-12-19 16:21:17,090 - INFO - Deleted policy ctest-policy1-24795587 2025-12-19 16:21:17,263 - DEBUG - policy ctest-policy1-24795587 is not found in API Server 2025-12-19 16:21:17,574 - DEBUG - No XMPP flaps were noticed during the test