2025-12-10 17:05:37,919 - INFO - Domain Default found not creating 2025-12-10 17:05:38,062 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-34395591 not found, creating it 2025-12-10 17:05:38,498 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-34395591, ID : ebd2b6a1-b902-4bbb-bf5e-420efbe95baf 2025-12-10 17:05:39,913 - INFO - ================================================================================ 2025-12-10 17:05:39,914 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-12-10 17:05:40,177 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.193': '0'}} with 2025-12-10 17:05:40,177 - INFO - Initial checks done. Running the testcase now 2025-12-10 17:05:40,178 - INFO - 2025-12-10 17:05:40,178 - INFO - ================================================================================ 2025-12-10 17:05:40,178 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-12-10 17:05:40,178 - 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-10 17:05:40,469 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.193': '0'}} with 2025-12-10 17:05:40,469 - INFO - Initial checks done. Running the testcase now 2025-12-10 17:05:40,469 - INFO - 2025-12-10 17:05:40,817 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-34395591:ctest-vn4-23160853, 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-34395591:ctest-vn4-23160853, 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-34395591:ctest-vn4-23160853, 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-34395591:ctest-vn4-23160853, 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-10 17:05:41,307 - DEBUG - Response for create_network : {'network': {'id': '32cd3a18-8153-4007-9ba9-0aad62d57272', 'name': 'ctest-vn4-23160853', 'tenant_id': 'ebd2b6a1b9024bbbbf5e420efbe95baf', 'project_id': 'ebd2b6a1b9024bbbbf5e420efbe95baf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-34395591', 'ctest-vn4-23160853'], 'port_security_enabled': True, 'description': ''}} 2025-12-10 17:05:41,450 - DEBUG - Response for create_subnet : {'subnet': {'id': '42f2a508-5563-4105-b0f7-a6d1cafe2715', 'name': '', 'tenant_id': 'ebd2b6a1b9024bbbbf5e420efbe95baf', 'network_id': '32cd3a18-8153-4007-9ba9-0aad62d57272', 'ip_version': 4, 'cidr': '177.19.35.64/26', 'allocation_pools': [{'start': '177.19.35.66', 'end': '177.19.35.126'}], 'gateway_ip': '177.19.35.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '177.19.35.66', 'tags': [], 'project_id': 'ebd2b6a1b9024bbbbf5e420efbe95baf'}} 2025-12-10 17:05:41,638 - DEBUG - Response for create_subnet : {'subnet': {'id': '029513c5-b200-456f-958f-081f72cef561', 'name': '', 'tenant_id': 'ebd2b6a1b9024bbbbf5e420efbe95baf', 'network_id': '32cd3a18-8153-4007-9ba9-0aad62d57272', 'ip_version': 6, 'cidr': '31ec:79ff:4e22:a667:8f4c:19cb::/96', 'allocation_pools': [{'start': '31ec:79ff:4e22:a667:8f4c:19cb:0:2', 'end': '31ec:79ff:4e22:a667:8f4c:19cb:ffff:fffe'}], 'gateway_ip': '31ec:79ff:4e22:a667:8f4c:19cb:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '31ec:79ff:4e22:a667:8f4c:19cb:0:2', 'tags': [], 'project_id': 'ebd2b6a1b9024bbbbf5e420efbe95baf'}} 2025-12-10 17:05:41,659 - INFO - Created VN ctest-vn4-23160853 2025-12-10 17:05:41,709 - DEBUG - VN ctest-vn4-23160853 UUID is 32cd3a18-8153-4007-9ba9-0aad62d57272 2025-12-10 17:05:41,897 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '32cd3a18-8153-4007-9ba9-0aad62d57272', 'name': 'ctest-vn4-23160853', 'tenant_id': 'ebd2b6a1b9024bbbbf5e420efbe95baf', 'project_id': 'ebd2b6a1b9024bbbbf5e420efbe95baf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['42f2a508-5563-4105-b0f7-a6d1cafe2715', '029513c5-b200-456f-958f-081f72cef561'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-34395591', 'ctest-vn4-23160853'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-34395591', 'ctest-policy1-57737107']], 'subnet_ipam': [{'subnet_cidr': '177.19.35.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '31ec:79ff:4e22:a667:8f4c:19cb::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-12-10 17:05:42,109 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-12-10 17:05:42,399 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-12-10 17:05:42,426 - DEBUG - Requesting: http://10.0.0.141:8082/domain/012a191c-4dbe-4738-824a-1fb29bb5bf4c 2025-12-10 17:05:42,436 - DEBUG - Requesting: http://10.0.0.141:8082/project/ebd2b6a1-b902-4bbb-bf5e-420efbe95baf 2025-12-10 17:05:42,509 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/32cd3a18-8153-4007-9ba9-0aad62d57272 2025-12-10 17:05:42,519 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/32cd3a18-8153-4007-9ba9-0aad62d57272 2025-12-10 17:05:42,527 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/9d25cd42-1767-49a6-9343-fc85e1e3c8d9 2025-12-10 17:05:42,532 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/9d25cd42-1767-49a6-9343-fc85e1e3c8d9 2025-12-10 17:05:42,538 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/c0465daa-d43f-4c39-8b41-99a99652b379 2025-12-10 17:05:42,543 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-10 17:05:42,543 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/32cd3a18-8153-4007-9ba9-0aad62d57272 2025-12-10 17:05:42,551 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/9d25cd42-1767-49a6-9343-fc85e1e3c8d9 2025-12-10 17:05:42,561 - INFO - Verified VN network id 12 for VN 32cd3a18-8153-4007-9ba9-0aad62d57272 2025-12-10 17:05:42,561 - INFO - Verifications in API Server for VN ctest-vn4-23160853 passed 2025-12-10 17:05:42,561 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/32cd3a18-8153-4007-9ba9-0aad62d57272 2025-12-10 17:05:42,568 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/9d25cd42-1767-49a6-9343-fc85e1e3c8d9 2025-12-10 17:05:42,573 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/9d25cd42-1767-49a6-9343-fc85e1e3c8d9 2025-12-10 17:05:42,578 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/c0465daa-d43f-4c39-8b41-99a99652b379 2025-12-10 17:05:42,587 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-34395591:ctest-vn4-23160853', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-34395591', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3660645949045424135', 'uuid-lslong': '11216508086746706546'}, 'enable': 'true', 'created': '2025-12-10T17:05:41', 'last-modified': '2025-12-10T17:05:41', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.714928'} 2025-12-10 17:05:42,591 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-10 17:05:42,591 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-23160853 passed 2025-12-10 17:05:42,592 - DEBUG - ====Verifying policy data for ctest-vn4-23160853 in API_Server ====== 2025-12-10 17:05:42,592 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-12-10 17:05:42,596 - DEBUG - Requesting: http://10.0.0.141:8082/domain/012a191c-4dbe-4738-824a-1fb29bb5bf4c 2025-12-10 17:05:42,604 - DEBUG - Requesting: http://10.0.0.141:8082/project/ebd2b6a1-b902-4bbb-bf5e-420efbe95baf 2025-12-10 17:05:42,670 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/32cd3a18-8153-4007-9ba9-0aad62d57272 2025-12-10 17:05:42,679 - DEBUG - ==>Verifying data for policy with id: c1d83aa9-eba8-4c48-a157-8017e7ecbdc2, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-34395591', 'ctest-policy1-57737107'] 2025-12-10 17:05:42,679 - INFO - VN ctest-vn4-23160853 Policy verification: verify_vn_policy_in_api_server, status: True 2025-12-10 17:05:42,679 - DEBUG - Verifying the vn in opserver 2025-12-10 17:05:42,679 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-34395591:ctest-vn4-23160853 virtual network link through opserver 10.0.0.141 2025-12-10 17:05:42,679 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2025-12-10 17:05:42,973 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2025-12-10 17:05:43,027 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-34395591:ctest-vn4-23160853', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-34395591:ctest-vn4-23160853?flat'} 2025-12-10 17:05:43,027 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-34395591:ctest-vn4-23160853 is found in opserver 2025-12-10 17:05:43,036 - DEBUG - Do not have enough data to verify VN in agent 2025-12-10 17:05:43,040 - DEBUG - VRF ids for VN ctest-vn4-23160853: {} 2025-12-10 17:05:43,040 - DEBUG - ====Verifying data for ctest-policy1-57737107 in API_Server ====== 2025-12-10 17:05:43,040 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-12-10 17:05:43,045 - DEBUG - Requesting: http://10.0.0.141:8082/domain/012a191c-4dbe-4738-824a-1fb29bb5bf4c 2025-12-10 17:05:43,054 - DEBUG - Requesting: http://10.0.0.141:8082/project/ebd2b6a1-b902-4bbb-bf5e-420efbe95baf 2025-12-10 17:05:43,121 - DEBUG - Requesting: http://10.0.0.141:8082/network-policy/c1d83aa9-eba8-4c48-a157-8017e7ecbdc2 2025-12-10 17:05:43,129 - INFO - Verified policy ctest-policy1-57737107 in API Server, Result: True 2025-12-10 17:05:43,129 - INFO - Done with setup and verification, moving onto test .. 2025-12-10 17:05:43,135 - INFO - Deleting VN ctest-vn4-23160853 2025-12-10 17:05:43,221 - DEBUG - Response for deleting network () 2025-12-10 17:05:43,222 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/9d25cd42-1767-49a6-9343-fc85e1e3c8d9 2025-12-10 17:05:43,225 - DEBUG - Response Code: 404 2025-12-10 17:05:43,225 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-12-10 17:05:43,229 - DEBUG - Requesting: http://10.0.0.141:8082/domain/012a191c-4dbe-4738-824a-1fb29bb5bf4c 2025-12-10 17:05:43,281 - DEBUG - Requesting: http://10.0.0.141:8082/project/ebd2b6a1-b902-4bbb-bf5e-420efbe95baf 2025-12-10 17:05:43,348 - INFO - Validated that VN ctest-vn4-23160853 is not found in API Server 2025-12-10 17:05:43,357 - DEBUG - VN ctest-vn4-23160853 is not present in Agent 10.0.0.141 2025-12-10 17:05:43,357 - INFO - Validated that VN ctest-vn4-23160853 is not in any agent 2025-12-10 17:05:43,370 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-23160853 info 2025-12-10 17:05:43,388 - INFO - Deleted policy ctest-policy1-57737107 2025-12-10 17:05:43,549 - DEBUG - policy ctest-policy1-57737107 is not found in API Server 2025-12-10 17:05:43,801 - DEBUG - No XMPP flaps were noticed during the test