2026-05-04 02:11:35,051 - INFO - Domain Default found not creating 2026-05-04 02:11:35,232 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-33095794 not found, creating it 2026-05-04 02:11:35,704 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-33095794, ID : b76f0a5b-1fd2-46a2-9bab-e6d0b3e6ef8b 2026-05-04 02:11:37,232 - INFO - ================================================================================ 2026-05-04 02:11:37,232 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-05-04 02:11:37,487 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with 2026-05-04 02:11:37,487 - INFO - Initial checks done. Running the testcase now 2026-05-04 02:11:37,487 - INFO - 2026-05-04 02:11:37,487 - INFO - ================================================================================ 2026-05-04 02:11:37,487 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-05-04 02:11:37,487 - 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. 2026-05-04 02:11:37,786 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with 2026-05-04 02:11:37,787 - INFO - Initial checks done. Running the testcase now 2026-05-04 02:11:37,787 - INFO - 2026-05-04 02:11:38,149 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-33095794:ctest-vn4-94547979, 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-33095794:ctest-vn4-94547979, 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-33095794:ctest-vn4-94547979, 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-33095794:ctest-vn4-94547979, 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] 2026-05-04 02:11:38,679 - DEBUG - Response for create_network : {'network': {'id': 'fab1c020-c423-4492-a463-80f522607df4', 'name': 'ctest-vn4-94547979', 'tenant_id': 'b76f0a5b1fd246a29babe6d0b3e6ef8b', 'project_id': 'b76f0a5b1fd246a29babe6d0b3e6ef8b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-33095794', 'ctest-vn4-94547979'], 'port_security_enabled': True, 'description': ''}} 2026-05-04 02:11:38,897 - DEBUG - Response for create_subnet : {'subnet': {'id': '575e24db-12bd-4407-ab15-abf82320f78d', 'name': '', 'tenant_id': 'b76f0a5b1fd246a29babe6d0b3e6ef8b', 'network_id': 'fab1c020-c423-4492-a463-80f522607df4', 'ip_version': 4, 'cidr': '190.223.159.128/26', 'allocation_pools': [{'start': '190.223.159.130', 'end': '190.223.159.190'}], 'gateway_ip': '190.223.159.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '190.223.159.130', 'tags': [], 'project_id': 'b76f0a5b1fd246a29babe6d0b3e6ef8b'}} 2026-05-04 02:11:39,067 - DEBUG - Response for create_subnet : {'subnet': {'id': '8a70fb27-3870-4f91-8a98-73c20f3cb974', 'name': '', 'tenant_id': 'b76f0a5b1fd246a29babe6d0b3e6ef8b', 'network_id': 'fab1c020-c423-4492-a463-80f522607df4', 'ip_version': 6, 'cidr': '2453:874:2cf8:885a:3c23:9c6b::/96', 'allocation_pools': [{'start': '2453:874:2cf8:885a:3c23:9c6b:0:2', 'end': '2453:874:2cf8:885a:3c23:9c6b:ffff:fffe'}], 'gateway_ip': '2453:874:2cf8:885a:3c23:9c6b:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2453:874:2cf8:885a:3c23:9c6b:0:2', 'tags': [], 'project_id': 'b76f0a5b1fd246a29babe6d0b3e6ef8b'}} 2026-05-04 02:11:39,090 - INFO - Created VN ctest-vn4-94547979 2026-05-04 02:11:39,146 - DEBUG - VN ctest-vn4-94547979 UUID is fab1c020-c423-4492-a463-80f522607df4 2026-05-04 02:11:39,393 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'fab1c020-c423-4492-a463-80f522607df4', 'name': 'ctest-vn4-94547979', 'tenant_id': 'b76f0a5b1fd246a29babe6d0b3e6ef8b', 'project_id': 'b76f0a5b1fd246a29babe6d0b3e6ef8b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['575e24db-12bd-4407-ab15-abf82320f78d', '8a70fb27-3870-4f91-8a98-73c20f3cb974'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-33095794', 'ctest-vn4-94547979'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-33095794', 'ctest-policy1-91172657']], 'subnet_ipam': [{'subnet_cidr': '190.223.159.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2453:874:2cf8:885a:3c23:9c6b::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-05-04 02:11:39,574 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-05-04 02:11:39,877 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-05-04 02:11:39,912 - DEBUG - Requesting: http://10.0.0.33:8082/domain/5048bc41-f41f-4082-8e88-2243b78708f3 2026-05-04 02:11:39,925 - DEBUG - Requesting: http://10.0.0.33:8082/project/b76f0a5b-1fd2-46a2-9bab-e6d0b3e6ef8b 2026-05-04 02:11:40,009 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/fab1c020-c423-4492-a463-80f522607df4 2026-05-04 02:11:40,021 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/fab1c020-c423-4492-a463-80f522607df4 2026-05-04 02:11:40,032 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/1a1b428a-53e7-4413-bfd8-6d4e0f122da1 2026-05-04 02:11:40,043 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/1a1b428a-53e7-4413-bfd8-6d4e0f122da1 2026-05-04 02:11:40,052 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/9bd95e19-e2dd-4546-9c8c-1f9333a12ba4 2026-05-04 02:11:40,059 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-04 02:11:40,060 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/fab1c020-c423-4492-a463-80f522607df4 2026-05-04 02:11:40,072 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/1a1b428a-53e7-4413-bfd8-6d4e0f122da1 2026-05-04 02:11:40,091 - INFO - Verified VN network id 11 for VN fab1c020-c423-4492-a463-80f522607df4 2026-05-04 02:11:40,091 - INFO - Verifications in API Server for VN ctest-vn4-94547979 passed 2026-05-04 02:11:40,091 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/fab1c020-c423-4492-a463-80f522607df4 2026-05-04 02:11:40,101 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/1a1b428a-53e7-4413-bfd8-6d4e0f122da1 2026-05-04 02:11:40,109 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/1a1b428a-53e7-4413-bfd8-6d4e0f122da1 2026-05-04 02:11:40,117 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/9bd95e19-e2dd-4546-9c8c-1f9333a12ba4 2026-05-04 02:11:40,131 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-33095794:ctest-vn4-94547979', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-33095794', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18064430827321902226', 'uuid-lslong': '11845453235246628340'}, 'enable': 'true', 'created': '2026-05-04T02:11:38', 'last-modified': '2026-05-04T02:11:39', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.768489'} 2026-05-04 02:11:40,137 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-04 02:11:40,137 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-94547979 passed 2026-05-04 02:11:40,138 - DEBUG - ====Verifying policy data for ctest-vn4-94547979 in API_Server ====== 2026-05-04 02:11:40,138 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-05-04 02:11:40,143 - DEBUG - Requesting: http://10.0.0.33:8082/domain/5048bc41-f41f-4082-8e88-2243b78708f3 2026-05-04 02:11:40,155 - DEBUG - Requesting: http://10.0.0.33:8082/project/b76f0a5b-1fd2-46a2-9bab-e6d0b3e6ef8b 2026-05-04 02:11:40,235 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/fab1c020-c423-4492-a463-80f522607df4 2026-05-04 02:11:40,249 - DEBUG - ==>Verifying data for policy with id: 4ec35ae7-8615-4d24-85c7-3787b106218c, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-33095794', 'ctest-policy1-91172657'] 2026-05-04 02:11:40,249 - INFO - VN ctest-vn4-94547979 Policy verification: verify_vn_policy_in_api_server, status: True 2026-05-04 02:11:40,250 - DEBUG - Verifying the vn in opserver 2026-05-04 02:11:40,250 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-33095794:ctest-vn4-94547979 virtual network link through opserver 10.0.0.33 2026-05-04 02:11:40,250 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-05-04 02:11:40,549 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-05-04 02:11:40,612 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-33095794:ctest-vn4-94547979', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-33095794:ctest-vn4-94547979?flat'} 2026-05-04 02:11:40,612 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-33095794:ctest-vn4-94547979 is found in opserver 2026-05-04 02:11:40,622 - DEBUG - Do not have enough data to verify VN in agent 2026-05-04 02:11:40,627 - DEBUG - VRF ids for VN ctest-vn4-94547979: {} 2026-05-04 02:11:40,627 - DEBUG - ====Verifying data for ctest-policy1-91172657 in API_Server ====== 2026-05-04 02:11:40,627 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-05-04 02:11:40,633 - DEBUG - Requesting: http://10.0.0.33:8082/domain/5048bc41-f41f-4082-8e88-2243b78708f3 2026-05-04 02:11:40,644 - DEBUG - Requesting: http://10.0.0.33:8082/project/b76f0a5b-1fd2-46a2-9bab-e6d0b3e6ef8b 2026-05-04 02:11:40,718 - DEBUG - Requesting: http://10.0.0.33:8082/network-policy/4ec35ae7-8615-4d24-85c7-3787b106218c 2026-05-04 02:11:40,731 - INFO - Verified policy ctest-policy1-91172657 in API Server, Result: True 2026-05-04 02:11:40,731 - INFO - Done with setup and verification, moving onto test .. 2026-05-04 02:11:40,739 - INFO - Deleting VN ctest-vn4-94547979 2026-05-04 02:11:40,871 - DEBUG - Response for deleting network () 2026-05-04 02:11:40,871 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/1a1b428a-53e7-4413-bfd8-6d4e0f122da1 2026-05-04 02:11:40,876 - DEBUG - Response Code: 404 2026-05-04 02:11:40,877 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-05-04 02:11:40,882 - DEBUG - Requesting: http://10.0.0.33:8082/domain/5048bc41-f41f-4082-8e88-2243b78708f3 2026-05-04 02:11:40,935 - DEBUG - Requesting: http://10.0.0.33:8082/project/b76f0a5b-1fd2-46a2-9bab-e6d0b3e6ef8b 2026-05-04 02:11:41,005 - INFO - Validated that VN ctest-vn4-94547979 is not found in API Server 2026-05-04 02:11:41,015 - DEBUG - VN ctest-vn4-94547979 is not present in Agent 10.0.0.33 2026-05-04 02:11:41,015 - INFO - Validated that VN ctest-vn4-94547979 is not in any agent 2026-05-04 02:11:41,029 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-94547979 info 2026-05-04 02:11:41,054 - INFO - Deleted policy ctest-policy1-91172657 2026-05-04 02:11:41,221 - DEBUG - policy ctest-policy1-91172657 is not found in API Server 2026-05-04 02:11:41,474 - DEBUG - No XMPP flaps were noticed during the test 2026-05-04 02:11:41,474 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-05-04 02:11:41,475 - INFO - -------------------------------------------------------------------------------- 2026-05-04 02:11:41,762 - DEBUG - No XMPP flaps were noticed during the test 2026-05-04 02:11:41,763 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-05-04 02:11:41,763 - INFO - -------------------------------------------------------------------------------- 2026-05-04 02:11:42,445 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-33095794, ID : b76f0a5b-1fd2-46a2-9bab-e6d0b3e6ef8b