2025-10-13 13:02:29,615 - INFO - Domain Default found not creating 2025-10-13 13:02:29,783 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-77262961 not found, creating it 2025-10-13 13:02:30,335 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-77262961, ID : 8f40c108-598d-4d70-b388-759353ee42b9 2025-10-13 13:02:31,987 - INFO - ================================================================================ 2025-10-13 13:02:31,987 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-13 13:02:32,257 - DEBUG - Nothing to compare xmpp stats {'10.0.0.241': {'10.20.0.192': '0'}} with 2025-10-13 13:02:32,257 - INFO - Initial checks done. Running the testcase now 2025-10-13 13:02:32,257 - INFO - 2025-10-13 13:02:32,257 - INFO - ================================================================================ 2025-10-13 13:02:32,258 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-13 13:02:32,258 - 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-13 13:02:32,541 - DEBUG - Nothing to compare xmpp stats {'10.0.0.241': {'10.20.0.192': '0'}} with 2025-10-13 13:02:32,541 - INFO - Initial checks done. Running the testcase now 2025-10-13 13:02:32,541 - INFO - 2025-10-13 13:02:32,945 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-77262961:ctest-vn4-64081230, 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-77262961:ctest-vn4-64081230, 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-77262961:ctest-vn4-64081230, 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-77262961:ctest-vn4-64081230, 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-13 13:02:33,486 - DEBUG - Response for create_network : {'network': {'id': '0f4f0595-81d7-450b-b844-3843a714b8a5', 'name': 'ctest-vn4-64081230', 'tenant_id': '8f40c108598d4d70b388759353ee42b9', 'project_id': '8f40c108598d4d70b388759353ee42b9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-77262961', 'ctest-vn4-64081230'], 'port_security_enabled': True, 'description': ''}} 2025-10-13 13:02:33,673 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a4ca1cc4-edd6-4190-b0fe-f5e4120baab4', 'name': '', 'tenant_id': '8f40c108598d4d70b388759353ee42b9', 'network_id': '0f4f0595-81d7-450b-b844-3843a714b8a5', 'ip_version': 4, 'cidr': '96.118.7.64/26', 'allocation_pools': [{'start': '96.118.7.66', 'end': '96.118.7.126'}], 'gateway_ip': '96.118.7.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '96.118.7.66', 'tags': [], 'project_id': '8f40c108598d4d70b388759353ee42b9'}} 2025-10-13 13:02:33,883 - DEBUG - Response for create_subnet : {'subnet': {'id': '1de8ce3f-c6bb-40dc-95b8-8ed411a4a59d', 'name': '', 'tenant_id': '8f40c108598d4d70b388759353ee42b9', 'network_id': '0f4f0595-81d7-450b-b844-3843a714b8a5', 'ip_version': 6, 'cidr': '249e:5b72:5ee4:fa35:6231:6718::/96', 'allocation_pools': [{'start': '249e:5b72:5ee4:fa35:6231:6718:0:2', 'end': '249e:5b72:5ee4:fa35:6231:6718:ffff:fffe'}], 'gateway_ip': '249e:5b72:5ee4:fa35:6231:6718:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '249e:5b72:5ee4:fa35:6231:6718:0:2', 'tags': [], 'project_id': '8f40c108598d4d70b388759353ee42b9'}} 2025-10-13 13:02:33,906 - INFO - Created VN ctest-vn4-64081230 2025-10-13 13:02:33,960 - DEBUG - VN ctest-vn4-64081230 UUID is 0f4f0595-81d7-450b-b844-3843a714b8a5 2025-10-13 13:02:34,195 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0f4f0595-81d7-450b-b844-3843a714b8a5', 'name': 'ctest-vn4-64081230', 'tenant_id': '8f40c108598d4d70b388759353ee42b9', 'project_id': '8f40c108598d4d70b388759353ee42b9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a4ca1cc4-edd6-4190-b0fe-f5e4120baab4', '1de8ce3f-c6bb-40dc-95b8-8ed411a4a59d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-77262961', 'ctest-vn4-64081230'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-77262961', 'ctest-policy1-44917570']], 'subnet_ipam': [{'subnet_cidr': '96.118.7.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '249e:5b72:5ee4:fa35:6231:6718::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-13 13:02:34,376 - DEBUG - Requesting: http://10.0.0.241:8082/domains 2025-10-13 13:02:34,715 - DEBUG - Requesting: http://10.0.0.241:8082/domains 2025-10-13 13:02:34,752 - DEBUG - Requesting: http://10.0.0.241:8082/domain/c8632d8b-e5be-4178-a615-2469af6995f4 2025-10-13 13:02:34,766 - DEBUG - Requesting: http://10.0.0.241:8082/project/8f40c108-598d-4d70-b388-759353ee42b9 2025-10-13 13:02:34,854 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/0f4f0595-81d7-450b-b844-3843a714b8a5 2025-10-13 13:02:34,871 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/0f4f0595-81d7-450b-b844-3843a714b8a5 2025-10-13 13:02:34,883 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/575ad4da-75e9-4a6e-86e4-7aab9afab37d 2025-10-13 13:02:34,891 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/575ad4da-75e9-4a6e-86e4-7aab9afab37d 2025-10-13 13:02:34,898 - DEBUG - Requesting: http://10.0.0.241:8082/route-target/a2f42e67-3149-48d2-b06e-e7407f5ce27c 2025-10-13 13:02:34,906 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-13 13:02:34,906 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/0f4f0595-81d7-450b-b844-3843a714b8a5 2025-10-13 13:02:34,916 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/575ad4da-75e9-4a6e-86e4-7aab9afab37d 2025-10-13 13:02:34,936 - INFO - Verified VN network id 10 for VN 0f4f0595-81d7-450b-b844-3843a714b8a5 2025-10-13 13:02:34,937 - INFO - Verifications in API Server for VN ctest-vn4-64081230 passed 2025-10-13 13:02:34,938 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/0f4f0595-81d7-450b-b844-3843a714b8a5 2025-10-13 13:02:34,949 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/575ad4da-75e9-4a6e-86e4-7aab9afab37d 2025-10-13 13:02:34,956 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/575ad4da-75e9-4a6e-86e4-7aab9afab37d 2025-10-13 13:02:34,964 - DEBUG - Requesting: http://10.0.0.241:8082/route-target/a2f42e67-3149-48d2-b06e-e7407f5ce27c 2025-10-13 13:02:34,978 - DEBUG - Control-node 10.0.0.241 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-77262961:ctest-vn4-64081230', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-77262961', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1103106573415695627', 'uuid-lslong': '13277799464612182181'}, 'enable': 'true', 'created': '2025-10-13T13:02:33', 'last-modified': '2025-10-13T13:02:34', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.810380'} 2025-10-13 13:02:34,984 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-13 13:02:34,984 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-64081230 passed 2025-10-13 13:02:34,984 - DEBUG - ====Verifying policy data for ctest-vn4-64081230 in API_Server ====== 2025-10-13 13:02:34,984 - DEBUG - Requesting: http://10.0.0.241:8082/domains 2025-10-13 13:02:34,990 - DEBUG - Requesting: http://10.0.0.241:8082/domain/c8632d8b-e5be-4178-a615-2469af6995f4 2025-10-13 13:02:35,003 - DEBUG - Requesting: http://10.0.0.241:8082/project/8f40c108-598d-4d70-b388-759353ee42b9 2025-10-13 13:02:35,081 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/0f4f0595-81d7-450b-b844-3843a714b8a5 2025-10-13 13:02:35,093 - DEBUG - ==>Verifying data for policy with id: 280ea519-3428-4cd5-b1c4-f2497ab11f67, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-77262961', 'ctest-policy1-44917570'] 2025-10-13 13:02:35,094 - INFO - VN ctest-vn4-64081230 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-13 13:02:35,094 - DEBUG - Verifying the vn in opserver 2025-10-13 13:02:35,094 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-77262961:ctest-vn4-64081230 virtual network link through opserver 10.0.0.241 2025-10-13 13:02:35,094 - DEBUG - Requesting: http://10.0.0.241:8081/analytics/uves/virtual-networks 2025-10-13 13:02:35,436 - DEBUG - Requesting: http://10.0.0.241:8081/analytics/uves/virtual-networks 2025-10-13 13:02:35,506 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-77262961:ctest-vn4-64081230', 'href': 'http://10.0.0.241:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-77262961:ctest-vn4-64081230?flat'} 2025-10-13 13:02:35,506 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-77262961:ctest-vn4-64081230 is found in opserver 2025-10-13 13:02:35,517 - DEBUG - Do not have enough data to verify VN in agent 2025-10-13 13:02:35,524 - DEBUG - VRF ids for VN ctest-vn4-64081230: {} 2025-10-13 13:02:35,525 - DEBUG - ====Verifying data for ctest-policy1-44917570 in API_Server ====== 2025-10-13 13:02:35,525 - DEBUG - Requesting: http://10.0.0.241:8082/domains 2025-10-13 13:02:35,531 - DEBUG - Requesting: http://10.0.0.241:8082/domain/c8632d8b-e5be-4178-a615-2469af6995f4 2025-10-13 13:02:35,546 - DEBUG - Requesting: http://10.0.0.241:8082/project/8f40c108-598d-4d70-b388-759353ee42b9 2025-10-13 13:02:35,624 - DEBUG - Requesting: http://10.0.0.241:8082/network-policy/280ea519-3428-4cd5-b1c4-f2497ab11f67 2025-10-13 13:02:35,636 - INFO - Verified policy ctest-policy1-44917570 in API Server, Result: True 2025-10-13 13:02:35,636 - INFO - Done with setup and verification, moving onto test .. 2025-10-13 13:02:35,646 - INFO - Deleting VN ctest-vn4-64081230 2025-10-13 13:02:35,785 - DEBUG - Response for deleting network () 2025-10-13 13:02:35,786 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/575ad4da-75e9-4a6e-86e4-7aab9afab37d 2025-10-13 13:02:35,791 - DEBUG - Response Code: 404 2025-10-13 13:02:35,792 - DEBUG - Requesting: http://10.0.0.241:8082/domains 2025-10-13 13:02:35,798 - DEBUG - Requesting: http://10.0.0.241:8082/domain/c8632d8b-e5be-4178-a615-2469af6995f4 2025-10-13 13:02:35,853 - DEBUG - Requesting: http://10.0.0.241:8082/project/8f40c108-598d-4d70-b388-759353ee42b9 2025-10-13 13:02:35,930 - INFO - Validated that VN ctest-vn4-64081230 is not found in API Server 2025-10-13 13:02:35,941 - DEBUG - VN ctest-vn4-64081230 is not present in Agent 10.0.0.241 2025-10-13 13:02:35,941 - INFO - Validated that VN ctest-vn4-64081230 is not in any agent 2025-10-13 13:02:35,957 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-64081230 info 2025-10-13 13:02:35,994 - INFO - Deleted policy ctest-policy1-44917570 2025-10-13 13:02:36,167 - DEBUG - policy ctest-policy1-44917570 is not found in API Server 2025-10-13 13:02:36,421 - DEBUG - No XMPP flaps were noticed during the test