2025-10-16 10:42:33,728 - INFO - Domain Default found not creating 2025-10-16 10:42:33,887 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-86351652 not found, creating it 2025-10-16 10:42:34,329 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-86351652, ID : 646eddca-4ad3-47fc-85d0-a41a2e918a2c 2025-10-16 10:42:35,884 - INFO - ================================================================================ 2025-10-16 10:42:35,885 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-16 10:42:36,138 - DEBUG - Nothing to compare xmpp stats {'10.0.0.48': {'10.20.0.18': '0'}} with 2025-10-16 10:42:36,138 - INFO - Initial checks done. Running the testcase now 2025-10-16 10:42:36,138 - INFO - 2025-10-16 10:42:36,138 - INFO - ================================================================================ 2025-10-16 10:42:36,138 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-16 10:42:36,138 - 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-16 10:42:36,424 - DEBUG - Nothing to compare xmpp stats {'10.0.0.48': {'10.20.0.18': '0'}} with 2025-10-16 10:42:36,425 - INFO - Initial checks done. Running the testcase now 2025-10-16 10:42:36,425 - INFO - 2025-10-16 10:42:36,817 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-86351652:ctest-vn4-46183099, 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-86351652:ctest-vn4-46183099, 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-86351652:ctest-vn4-46183099, 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-86351652:ctest-vn4-46183099, 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-16 10:42:37,339 - DEBUG - Response for create_network : {'network': {'id': '9322cf47-234f-486c-93e7-12b5f19adaf6', 'name': 'ctest-vn4-46183099', 'tenant_id': '646eddca4ad347fc85d0a41a2e918a2c', 'project_id': '646eddca4ad347fc85d0a41a2e918a2c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-86351652', 'ctest-vn4-46183099'], 'port_security_enabled': True, 'description': ''}} 2025-10-16 10:42:37,514 - DEBUG - Response for create_subnet : {'subnet': {'id': '09d2812b-500a-4899-a121-38d507d101ec', 'name': '', 'tenant_id': '646eddca4ad347fc85d0a41a2e918a2c', 'network_id': '9322cf47-234f-486c-93e7-12b5f19adaf6', 'ip_version': 4, 'cidr': '35.175.65.0/26', 'allocation_pools': [{'start': '35.175.65.2', 'end': '35.175.65.62'}], 'gateway_ip': '35.175.65.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '35.175.65.2', 'tags': [], 'project_id': '646eddca4ad347fc85d0a41a2e918a2c'}} 2025-10-16 10:42:37,674 - DEBUG - Response for create_subnet : {'subnet': {'id': '428bec65-b985-4ab0-84f0-c935c9d4f45c', 'name': '', 'tenant_id': '646eddca4ad347fc85d0a41a2e918a2c', 'network_id': '9322cf47-234f-486c-93e7-12b5f19adaf6', 'ip_version': 6, 'cidr': '3f23:691d:be5a:8da4:1265:fe5f::/96', 'allocation_pools': [{'start': '3f23:691d:be5a:8da4:1265:fe5f:0:2', 'end': '3f23:691d:be5a:8da4:1265:fe5f:ffff:fffe'}], 'gateway_ip': '3f23:691d:be5a:8da4:1265:fe5f:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3f23:691d:be5a:8da4:1265:fe5f:0:2', 'tags': [], 'project_id': '646eddca4ad347fc85d0a41a2e918a2c'}} 2025-10-16 10:42:37,692 - INFO - Created VN ctest-vn4-46183099 2025-10-16 10:42:37,748 - DEBUG - VN ctest-vn4-46183099 UUID is 9322cf47-234f-486c-93e7-12b5f19adaf6 2025-10-16 10:42:37,933 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9322cf47-234f-486c-93e7-12b5f19adaf6', 'name': 'ctest-vn4-46183099', 'tenant_id': '646eddca4ad347fc85d0a41a2e918a2c', 'project_id': '646eddca4ad347fc85d0a41a2e918a2c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['09d2812b-500a-4899-a121-38d507d101ec', '428bec65-b985-4ab0-84f0-c935c9d4f45c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-86351652', 'ctest-vn4-46183099'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-86351652', 'ctest-policy1-94650211']], 'subnet_ipam': [{'subnet_cidr': '35.175.65.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3f23:691d:be5a:8da4:1265:fe5f::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-16 10:42:38,100 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2025-10-16 10:42:38,433 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2025-10-16 10:42:38,461 - DEBUG - Requesting: http://10.0.0.48:8082/domain/f30d30e0-e9b8-4d0f-89b0-ef3c94d4c289 2025-10-16 10:42:38,473 - DEBUG - Requesting: http://10.0.0.48:8082/project/646eddca-4ad3-47fc-85d0-a41a2e918a2c 2025-10-16 10:42:38,542 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/9322cf47-234f-486c-93e7-12b5f19adaf6 2025-10-16 10:42:38,553 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/9322cf47-234f-486c-93e7-12b5f19adaf6 2025-10-16 10:42:38,563 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/35687439-5e26-4f6c-83c2-9f15bb05d489 2025-10-16 10:42:38,569 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/35687439-5e26-4f6c-83c2-9f15bb05d489 2025-10-16 10:42:38,577 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/810ed0a5-9586-403b-8fac-47322e2c80bd 2025-10-16 10:42:38,583 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-16 10:42:38,584 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/9322cf47-234f-486c-93e7-12b5f19adaf6 2025-10-16 10:42:38,593 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/35687439-5e26-4f6c-83c2-9f15bb05d489 2025-10-16 10:42:38,606 - INFO - Verified VN network id 11 for VN 9322cf47-234f-486c-93e7-12b5f19adaf6 2025-10-16 10:42:38,606 - INFO - Verifications in API Server for VN ctest-vn4-46183099 passed 2025-10-16 10:42:38,606 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/9322cf47-234f-486c-93e7-12b5f19adaf6 2025-10-16 10:42:38,616 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/35687439-5e26-4f6c-83c2-9f15bb05d489 2025-10-16 10:42:38,622 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/35687439-5e26-4f6c-83c2-9f15bb05d489 2025-10-16 10:42:38,629 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/810ed0a5-9586-403b-8fac-47322e2c80bd 2025-10-16 10:42:38,641 - DEBUG - Control-node 10.0.0.48 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-86351652:ctest-vn4-46183099', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-86351652', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10602264377225594988', 'uuid-lslong': '10657507615847406326'}, 'enable': 'true', 'created': '2025-10-16T10:42:37', 'last-modified': '2025-10-16T10:42:37', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.725430'} 2025-10-16 10:42:38,647 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-16 10:42:38,647 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-46183099 passed 2025-10-16 10:42:38,647 - DEBUG - ====Verifying policy data for ctest-vn4-46183099 in API_Server ====== 2025-10-16 10:42:38,647 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2025-10-16 10:42:38,652 - DEBUG - Requesting: http://10.0.0.48:8082/domain/f30d30e0-e9b8-4d0f-89b0-ef3c94d4c289 2025-10-16 10:42:38,664 - DEBUG - Requesting: http://10.0.0.48:8082/project/646eddca-4ad3-47fc-85d0-a41a2e918a2c 2025-10-16 10:42:38,736 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/9322cf47-234f-486c-93e7-12b5f19adaf6 2025-10-16 10:42:38,747 - DEBUG - ==>Verifying data for policy with id: 69fe59bb-2f6a-4e42-a061-de38727f0aae, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-86351652', 'ctest-policy1-94650211'] 2025-10-16 10:42:38,747 - INFO - VN ctest-vn4-46183099 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-16 10:42:38,747 - DEBUG - Verifying the vn in opserver 2025-10-16 10:42:38,747 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-86351652:ctest-vn4-46183099 virtual network link through opserver 10.0.0.48 2025-10-16 10:42:38,747 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks 2025-10-16 10:42:39,082 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks 2025-10-16 10:42:39,143 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-86351652:ctest-vn4-46183099', 'href': 'http://10.0.0.48:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-86351652:ctest-vn4-46183099?flat'} 2025-10-16 10:42:39,143 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-86351652:ctest-vn4-46183099 is found in opserver 2025-10-16 10:42:39,153 - DEBUG - Do not have enough data to verify VN in agent 2025-10-16 10:42:39,158 - DEBUG - VRF ids for VN ctest-vn4-46183099: {} 2025-10-16 10:42:39,158 - DEBUG - ====Verifying data for ctest-policy1-94650211 in API_Server ====== 2025-10-16 10:42:39,159 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2025-10-16 10:42:39,165 - DEBUG - Requesting: http://10.0.0.48:8082/domain/f30d30e0-e9b8-4d0f-89b0-ef3c94d4c289 2025-10-16 10:42:39,178 - DEBUG - Requesting: http://10.0.0.48:8082/project/646eddca-4ad3-47fc-85d0-a41a2e918a2c 2025-10-16 10:42:39,251 - DEBUG - Requesting: http://10.0.0.48:8082/network-policy/69fe59bb-2f6a-4e42-a061-de38727f0aae 2025-10-16 10:42:39,260 - INFO - Verified policy ctest-policy1-94650211 in API Server, Result: True 2025-10-16 10:42:39,260 - INFO - Done with setup and verification, moving onto test .. 2025-10-16 10:42:39,269 - INFO - Deleting VN ctest-vn4-46183099 2025-10-16 10:42:39,381 - DEBUG - Response for deleting network () 2025-10-16 10:42:39,381 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/35687439-5e26-4f6c-83c2-9f15bb05d489 2025-10-16 10:42:39,385 - DEBUG - Response Code: 404 2025-10-16 10:42:39,386 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2025-10-16 10:42:39,390 - DEBUG - Requesting: http://10.0.0.48:8082/domain/f30d30e0-e9b8-4d0f-89b0-ef3c94d4c289 2025-10-16 10:42:39,441 - DEBUG - Requesting: http://10.0.0.48:8082/project/646eddca-4ad3-47fc-85d0-a41a2e918a2c 2025-10-16 10:42:39,509 - INFO - Validated that VN ctest-vn4-46183099 is not found in API Server 2025-10-16 10:42:39,519 - DEBUG - VN ctest-vn4-46183099 is not present in Agent 10.0.0.48 2025-10-16 10:42:39,519 - INFO - Validated that VN ctest-vn4-46183099 is not in any agent 2025-10-16 10:42:39,534 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-46183099 info 2025-10-16 10:42:39,558 - INFO - Deleted policy ctest-policy1-94650211 2025-10-16 10:42:39,727 - DEBUG - policy ctest-policy1-94650211 is not found in API Server 2025-10-16 10:42:39,984 - DEBUG - No XMPP flaps were noticed during the test