2026-02-23 02:25:59,797 - INFO - Domain Default found not creating 2026-02-23 02:25:59,987 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-69742198 not found, creating it 2026-02-23 02:26:00,544 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-69742198, ID : ed9f06c4-ccb4-4748-8723-ea448ca1faa6 2026-02-23 02:26:02,194 - INFO - ================================================================================ 2026-02-23 02:26:02,194 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-23 02:26:03,453 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.193': '0', '10.20.0.25': '0'}, '10.0.0.65': {'10.20.0.254': '0', '10.20.0.193': '0'}} with 2026-02-23 02:26:03,453 - INFO - Initial checks done. Running the testcase now 2026-02-23 02:26:03,453 - INFO - 2026-02-23 02:26:03,453 - INFO - ================================================================================ 2026-02-23 02:26:03,453 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-23 02:26:03,453 - 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-02-23 02:26:04,740 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.193': '0', '10.20.0.25': '0'}, '10.0.0.65': {'10.20.0.254': '0', '10.20.0.193': '0'}} with 2026-02-23 02:26:04,740 - INFO - Initial checks done. Running the testcase now 2026-02-23 02:26:04,741 - INFO - 2026-02-23 02:26:05,113 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-69742198:ctest-vn4-26298391, 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-69742198:ctest-vn4-26298391, 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-69742198:ctest-vn4-26298391, 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-69742198:ctest-vn4-26298391, 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-02-23 02:26:05,702 - DEBUG - Response for create_network : {'network': {'id': 'bd88115b-0580-42a8-b09a-5145ee175c02', 'name': 'ctest-vn4-26298391', 'tenant_id': 'ed9f06c4ccb447488723ea448ca1faa6', 'project_id': 'ed9f06c4ccb447488723ea448ca1faa6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-69742198', 'ctest-vn4-26298391'], 'port_security_enabled': True, 'description': ''}} 2026-02-23 02:26:05,983 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ef7a4409-a61c-4934-ab6f-c01f7f21f578', 'name': '', 'tenant_id': 'ed9f06c4ccb447488723ea448ca1faa6', 'network_id': 'bd88115b-0580-42a8-b09a-5145ee175c02', 'ip_version': 4, 'cidr': '218.125.137.128/26', 'allocation_pools': [{'start': '218.125.137.130', 'end': '218.125.137.190'}], 'gateway_ip': '218.125.137.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '218.125.137.130', 'tags': [], 'project_id': 'ed9f06c4ccb447488723ea448ca1faa6'}} 2026-02-23 02:26:06,252 - DEBUG - Response for create_subnet : {'subnet': {'id': '09b76434-f473-4949-a454-c31b20bc408a', 'name': '', 'tenant_id': 'ed9f06c4ccb447488723ea448ca1faa6', 'network_id': 'bd88115b-0580-42a8-b09a-5145ee175c02', 'ip_version': 6, 'cidr': '3e49:f19f:e634:2779:d503:b227::/96', 'allocation_pools': [{'start': '3e49:f19f:e634:2779:d503:b227:0:2', 'end': '3e49:f19f:e634:2779:d503:b227:ffff:fffe'}], 'gateway_ip': '3e49:f19f:e634:2779:d503:b227:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3e49:f19f:e634:2779:d503:b227:0:2', 'tags': [], 'project_id': 'ed9f06c4ccb447488723ea448ca1faa6'}} 2026-02-23 02:26:06,290 - INFO - Created VN ctest-vn4-26298391 2026-02-23 02:26:06,301 - DEBUG - VN ctest-vn4-26298391 UUID is bd88115b-0580-42a8-b09a-5145ee175c02 2026-02-23 02:26:06,523 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'bd88115b-0580-42a8-b09a-5145ee175c02', 'name': 'ctest-vn4-26298391', 'tenant_id': 'ed9f06c4ccb447488723ea448ca1faa6', 'project_id': 'ed9f06c4ccb447488723ea448ca1faa6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ef7a4409-a61c-4934-ab6f-c01f7f21f578', '09b76434-f473-4949-a454-c31b20bc408a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-69742198', 'ctest-vn4-26298391'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-69742198', 'ctest-policy1-80645332']], 'subnet_ipam': [{'subnet_cidr': '218.125.137.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3e49:f19f:e634:2779:d503:b227::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-23 02:26:06,624 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-02-23 02:26:06,938 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-02-23 02:26:06,973 - DEBUG - Requesting: http://10.0.0.242:8082/domain/e1cc6957-1fd1-4e0a-8f60-be32b1950cd6 2026-02-23 02:26:06,991 - DEBUG - Requesting: http://10.0.0.242:8082/project/ed9f06c4-ccb4-4748-8723-ea448ca1faa6 2026-02-23 02:26:07,091 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/bd88115b-0580-42a8-b09a-5145ee175c02 2026-02-23 02:26:07,106 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/bd88115b-0580-42a8-b09a-5145ee175c02 2026-02-23 02:26:07,117 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/365cd1ad-265d-4c33-af5a-077a6065dcc7 2026-02-23 02:26:07,125 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/365cd1ad-265d-4c33-af5a-077a6065dcc7 2026-02-23 02:26:07,134 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/be96870f-2993-49e2-85a2-7ac53cc1f3b9 2026-02-23 02:26:07,143 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-23 02:26:07,143 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/bd88115b-0580-42a8-b09a-5145ee175c02 2026-02-23 02:26:07,154 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/365cd1ad-265d-4c33-af5a-077a6065dcc7 2026-02-23 02:26:07,169 - INFO - Verified VN network id 15 for VN bd88115b-0580-42a8-b09a-5145ee175c02 2026-02-23 02:26:07,169 - INFO - Verifications in API Server for VN ctest-vn4-26298391 passed 2026-02-23 02:26:07,169 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/bd88115b-0580-42a8-b09a-5145ee175c02 2026-02-23 02:26:07,180 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/365cd1ad-265d-4c33-af5a-077a6065dcc7 2026-02-23 02:26:07,188 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/365cd1ad-265d-4c33-af5a-077a6065dcc7 2026-02-23 02:26:07,195 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/be96870f-2993-49e2-85a2-7ac53cc1f3b9 2026-02-23 02:26:07,208 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-69742198:ctest-vn4-26298391', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-69742198', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13657184952633017000', 'uuid-lslong': '12725573057877859330'}, 'enable': 'true', 'created': '2026-02-23T02:26:05', 'last-modified': '2026-02-23T02:26:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.742768'} 2026-02-23 02:26:07,214 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-23 02:26:07,219 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-69742198:ctest-vn4-26298391', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-69742198', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13657184952633017000', 'uuid-lslong': '12725573057877859330'}, 'enable': 'true', 'created': '2026-02-23T02:26:05', 'last-modified': '2026-02-23T02:26:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.735246'} 2026-02-23 02:26:07,225 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-23 02:26:07,231 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-69742198:ctest-vn4-26298391', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-69742198', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13657184952633017000', 'uuid-lslong': '12725573057877859330'}, 'enable': 'true', 'created': '2026-02-23T02:26:05', 'last-modified': '2026-02-23T02:26:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.741727'} 2026-02-23 02:26:07,237 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-23 02:26:07,237 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-26298391 passed 2026-02-23 02:26:07,237 - DEBUG - ====Verifying policy data for ctest-vn4-26298391 in API_Server ====== 2026-02-23 02:26:07,237 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-02-23 02:26:07,244 - DEBUG - Requesting: http://10.0.0.242:8082/domain/e1cc6957-1fd1-4e0a-8f60-be32b1950cd6 2026-02-23 02:26:07,256 - DEBUG - Requesting: http://10.0.0.242:8082/project/ed9f06c4-ccb4-4748-8723-ea448ca1faa6 2026-02-23 02:26:07,350 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/bd88115b-0580-42a8-b09a-5145ee175c02 2026-02-23 02:26:07,364 - DEBUG - ==>Verifying data for policy with id: 00778d39-6ee3-4fd2-a2be-3fd09ca04704, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-69742198', 'ctest-policy1-80645332'] 2026-02-23 02:26:07,364 - INFO - VN ctest-vn4-26298391 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-23 02:26:07,364 - DEBUG - Verifying the vn in opserver 2026-02-23 02:26:07,364 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-69742198:ctest-vn4-26298391 virtual network link through opserver 10.0.0.242 2026-02-23 02:26:07,365 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2026-02-23 02:26:07,679 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2026-02-23 02:26:07,763 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-69742198:ctest-vn4-26298391', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-69742198:ctest-vn4-26298391?flat'} 2026-02-23 02:26:07,763 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-69742198:ctest-vn4-26298391 virtual network link through opserver 10.0.0.50 2026-02-23 02:26:07,763 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-02-23 02:26:08,067 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-02-23 02:26:08,134 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-69742198:ctest-vn4-26298391', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-69742198:ctest-vn4-26298391?flat'} 2026-02-23 02:26:08,134 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-69742198:ctest-vn4-26298391 virtual network link through opserver 10.0.0.23 2026-02-23 02:26:08,134 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2026-02-23 02:26:08,461 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2026-02-23 02:26:08,528 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-69742198:ctest-vn4-26298391', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-69742198:ctest-vn4-26298391?flat'} 2026-02-23 02:26:08,528 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-69742198:ctest-vn4-26298391 is found in opserver 2026-02-23 02:26:08,550 - DEBUG - Do not have enough data to verify VN in agent 2026-02-23 02:26:08,560 - DEBUG - VRF ids for VN ctest-vn4-26298391: {} 2026-02-23 02:26:08,561 - DEBUG - ====Verifying data for ctest-policy1-80645332 in API_Server ====== 2026-02-23 02:26:08,561 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-02-23 02:26:08,573 - DEBUG - Requesting: http://10.0.0.242:8082/domain/e1cc6957-1fd1-4e0a-8f60-be32b1950cd6 2026-02-23 02:26:08,585 - DEBUG - Requesting: http://10.0.0.242:8082/project/ed9f06c4-ccb4-4748-8723-ea448ca1faa6 2026-02-23 02:26:08,695 - DEBUG - Requesting: http://10.0.0.242:8082/network-policy/00778d39-6ee3-4fd2-a2be-3fd09ca04704 2026-02-23 02:26:08,704 - INFO - Verified policy ctest-policy1-80645332 in API Server, Result: True 2026-02-23 02:26:08,704 - INFO - Done with setup and verification, moving onto test .. 2026-02-23 02:26:08,715 - INFO - Deleting VN ctest-vn4-26298391 2026-02-23 02:26:08,888 - DEBUG - Response for deleting network () 2026-02-23 02:26:08,888 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/365cd1ad-265d-4c33-af5a-077a6065dcc7 2026-02-23 02:26:08,894 - DEBUG - Response Code: 404 2026-02-23 02:26:08,894 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-02-23 02:26:08,901 - DEBUG - Requesting: http://10.0.0.242:8082/domain/e1cc6957-1fd1-4e0a-8f60-be32b1950cd6 2026-02-23 02:26:08,916 - DEBUG - Requesting: http://10.0.0.242:8082/project/ed9f06c4-ccb4-4748-8723-ea448ca1faa6 2026-02-23 02:26:09,014 - INFO - Validated that VN ctest-vn4-26298391 is not found in API Server 2026-02-23 02:26:09,025 - DEBUG - VN ctest-vn4-26298391 is not present in Agent 10.0.0.141 2026-02-23 02:26:09,035 - DEBUG - VN ctest-vn4-26298391 is not present in Agent 10.0.0.65 2026-02-23 02:26:09,035 - INFO - Validated that VN ctest-vn4-26298391 is not in any agent 2026-02-23 02:26:09,065 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-26298391 info 2026-02-23 02:26:09,100 - INFO - Deleted policy ctest-policy1-80645332 2026-02-23 02:26:09,304 - DEBUG - policy ctest-policy1-80645332 is not found in API Server 2026-02-23 02:26:10,581 - DEBUG - No XMPP flaps were noticed during the test 2026-02-23 02:26:10,581 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:07] 2026-02-23 02:26:10,581 - INFO - -------------------------------------------------------------------------------- 2026-02-23 02:26:11,853 - DEBUG - No XMPP flaps were noticed during the test 2026-02-23 02:26:11,853 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:09] 2026-02-23 02:26:11,853 - INFO - -------------------------------------------------------------------------------- 2026-02-23 02:26:12,574 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-69742198, ID : ed9f06c4-ccb4-4748-8723-ea448ca1faa6