2026-03-26 06:11:02,802 - INFO - Domain Default found not creating 2026-03-26 06:11:03,039 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-94995797 not found, creating it 2026-03-26 06:11:03,627 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-94995797, ID : d4057f82-0eee-418b-aeab-4b10d9cf6955 2026-03-26 06:11:05,425 - INFO - ================================================================================ 2026-03-26 06:11:05,426 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-26 06:11:06,768 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0', '10.20.0.254': '0'}, '10.0.0.249': {'10.20.0.17': '0', '10.20.0.14': '0'}} with 2026-03-26 06:11:06,768 - INFO - Initial checks done. Running the testcase now 2026-03-26 06:11:06,769 - INFO - 2026-03-26 06:11:06,769 - INFO - ================================================================================ 2026-03-26 06:11:06,769 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-26 06:11:06,769 - 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-03-26 06:11:08,109 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0', '10.20.0.254': '0'}, '10.0.0.249': {'10.20.0.17': '0', '10.20.0.14': '0'}} with 2026-03-26 06:11:08,110 - INFO - Initial checks done. Running the testcase now 2026-03-26 06:11:08,110 - INFO - 2026-03-26 06:11:08,534 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-94995797:ctest-vn4-29123584, 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-94995797:ctest-vn4-29123584, 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-94995797:ctest-vn4-29123584, 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-94995797:ctest-vn4-29123584, 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-03-26 06:11:09,269 - DEBUG - Response for create_network : {'network': {'id': '53a472b0-9193-4d57-bf51-30672bdd7e17', 'name': 'ctest-vn4-29123584', 'tenant_id': 'd4057f820eee418baeab4b10d9cf6955', 'project_id': 'd4057f820eee418baeab4b10d9cf6955', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-94995797', 'ctest-vn4-29123584'], 'port_security_enabled': True, 'description': ''}} 2026-03-26 06:11:09,688 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b56c3289-fcf0-4cdd-95fa-a22d7638a326', 'name': '', 'tenant_id': 'd4057f820eee418baeab4b10d9cf6955', 'network_id': '53a472b0-9193-4d57-bf51-30672bdd7e17', 'ip_version': 4, 'cidr': '6.155.113.64/26', 'allocation_pools': [{'start': '6.155.113.66', 'end': '6.155.113.126'}], 'gateway_ip': '6.155.113.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '6.155.113.66', 'tags': [], 'project_id': 'd4057f820eee418baeab4b10d9cf6955'}} 2026-03-26 06:11:09,975 - DEBUG - Response for create_subnet : {'subnet': {'id': '9e3a1216-1281-4b95-bdcb-c97861726849', 'name': '', 'tenant_id': 'd4057f820eee418baeab4b10d9cf6955', 'network_id': '53a472b0-9193-4d57-bf51-30672bdd7e17', 'ip_version': 6, 'cidr': '312b:893f:ef3c:f57a:54fa:37f5::/96', 'allocation_pools': [{'start': '312b:893f:ef3c:f57a:54fa:37f5:0:2', 'end': '312b:893f:ef3c:f57a:54fa:37f5:ffff:fffe'}], 'gateway_ip': '312b:893f:ef3c:f57a:54fa:37f5:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '312b:893f:ef3c:f57a:54fa:37f5:0:2', 'tags': [], 'project_id': 'd4057f820eee418baeab4b10d9cf6955'}} 2026-03-26 06:11:10,005 - INFO - Created VN ctest-vn4-29123584 2026-03-26 06:11:10,019 - DEBUG - VN ctest-vn4-29123584 UUID is 53a472b0-9193-4d57-bf51-30672bdd7e17 2026-03-26 06:11:10,299 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '53a472b0-9193-4d57-bf51-30672bdd7e17', 'name': 'ctest-vn4-29123584', 'tenant_id': 'd4057f820eee418baeab4b10d9cf6955', 'project_id': 'd4057f820eee418baeab4b10d9cf6955', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b56c3289-fcf0-4cdd-95fa-a22d7638a326', '9e3a1216-1281-4b95-bdcb-c97861726849'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-94995797', 'ctest-vn4-29123584'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-94995797', 'ctest-policy1-60724703']], 'subnet_ipam': [{'subnet_cidr': '6.155.113.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '312b:893f:ef3c:f57a:54fa:37f5::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-03-26 06:11:10,414 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-03-26 06:11:10,762 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-03-26 06:11:10,803 - DEBUG - Requesting: http://10.0.0.38:8082/domain/da4d30e0-25e9-49cd-94d8-93ff5a173387 2026-03-26 06:11:10,820 - DEBUG - Requesting: http://10.0.0.38:8082/project/d4057f82-0eee-418b-aeab-4b10d9cf6955 2026-03-26 06:11:10,925 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/53a472b0-9193-4d57-bf51-30672bdd7e17 2026-03-26 06:11:10,957 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/53a472b0-9193-4d57-bf51-30672bdd7e17 2026-03-26 06:11:10,972 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/0e38962c-b050-4b65-a21b-41b9c6675536 2026-03-26 06:11:10,984 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/0e38962c-b050-4b65-a21b-41b9c6675536 2026-03-26 06:11:10,994 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/ac811736-6a7f-4d09-aef5-e16b81487ecd 2026-03-26 06:11:11,002 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-03-26 06:11:11,003 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/53a472b0-9193-4d57-bf51-30672bdd7e17 2026-03-26 06:11:11,014 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/0e38962c-b050-4b65-a21b-41b9c6675536 2026-03-26 06:11:11,034 - INFO - Verified VN network id 11 for VN 53a472b0-9193-4d57-bf51-30672bdd7e17 2026-03-26 06:11:11,034 - INFO - Verifications in API Server for VN ctest-vn4-29123584 passed 2026-03-26 06:11:11,034 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/53a472b0-9193-4d57-bf51-30672bdd7e17 2026-03-26 06:11:11,050 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/0e38962c-b050-4b65-a21b-41b9c6675536 2026-03-26 06:11:11,060 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/0e38962c-b050-4b65-a21b-41b9c6675536 2026-03-26 06:11:11,069 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/ac811736-6a7f-4d09-aef5-e16b81487ecd 2026-03-26 06:11:11,084 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-94995797:ctest-vn4-29123584', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-94995797', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6027068304010726743', 'uuid-lslong': '13785853154033499671'}, 'enable': 'true', 'created': '2026-03-26T06:11:09', 'last-modified': '2026-03-26T06:11:10', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.863119'} 2026-03-26 06:11:11,091 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-03-26 06:11:11,098 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-94995797:ctest-vn4-29123584', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-94995797', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6027068304010726743', 'uuid-lslong': '13785853154033499671'}, 'enable': 'true', 'created': '2026-03-26T06:11:09', 'last-modified': '2026-03-26T06:11:10', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.883606'} 2026-03-26 06:11:11,105 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-03-26 06:11:11,112 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-94995797:ctest-vn4-29123584', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-94995797', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6027068304010726743', 'uuid-lslong': '13785853154033499671'}, 'enable': 'true', 'created': '2026-03-26T06:11:09', 'last-modified': '2026-03-26T06:11:10', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.892037'} 2026-03-26 06:11:11,118 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-03-26 06:11:11,118 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-29123584 passed 2026-03-26 06:11:11,119 - DEBUG - ====Verifying policy data for ctest-vn4-29123584 in API_Server ====== 2026-03-26 06:11:11,119 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-03-26 06:11:11,126 - DEBUG - Requesting: http://10.0.0.38:8082/domain/da4d30e0-25e9-49cd-94d8-93ff5a173387 2026-03-26 06:11:11,139 - DEBUG - Requesting: http://10.0.0.38:8082/project/d4057f82-0eee-418b-aeab-4b10d9cf6955 2026-03-26 06:11:11,234 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/53a472b0-9193-4d57-bf51-30672bdd7e17 2026-03-26 06:11:11,248 - DEBUG - ==>Verifying data for policy with id: 0bb74c2b-2d74-48a1-9d05-ed199685c052, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-94995797', 'ctest-policy1-60724703'] 2026-03-26 06:11:11,248 - INFO - VN ctest-vn4-29123584 Policy verification: verify_vn_policy_in_api_server, status: True 2026-03-26 06:11:11,248 - DEBUG - Verifying the vn in opserver 2026-03-26 06:11:11,248 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-94995797:ctest-vn4-29123584 virtual network link through opserver 10.0.0.38 2026-03-26 06:11:11,248 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-03-26 06:11:11,597 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-03-26 06:11:11,684 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-94995797:ctest-vn4-29123584', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-94995797:ctest-vn4-29123584?flat'} 2026-03-26 06:11:11,684 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-94995797:ctest-vn4-29123584 virtual network link through opserver 10.0.0.242 2026-03-26 06:11:11,684 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2026-03-26 06:11:12,027 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2026-03-26 06:11:12,183 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-94995797:ctest-vn4-29123584', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-94995797:ctest-vn4-29123584?flat'} 2026-03-26 06:11:12,183 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-94995797:ctest-vn4-29123584 virtual network link through opserver 10.0.0.33 2026-03-26 06:11:12,183 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-03-26 06:11:12,542 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-03-26 06:11:12,665 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-94995797:ctest-vn4-29123584', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-94995797:ctest-vn4-29123584?flat'} 2026-03-26 06:11:12,665 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-94995797:ctest-vn4-29123584 is found in opserver 2026-03-26 06:11:12,710 - DEBUG - Do not have enough data to verify VN in agent 2026-03-26 06:11:12,729 - DEBUG - VRF ids for VN ctest-vn4-29123584: {} 2026-03-26 06:11:12,730 - DEBUG - ====Verifying data for ctest-policy1-60724703 in API_Server ====== 2026-03-26 06:11:12,730 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-03-26 06:11:12,742 - DEBUG - Requesting: http://10.0.0.38:8082/domain/da4d30e0-25e9-49cd-94d8-93ff5a173387 2026-03-26 06:11:12,763 - DEBUG - Requesting: http://10.0.0.38:8082/project/d4057f82-0eee-418b-aeab-4b10d9cf6955 2026-03-26 06:11:12,899 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/0bb74c2b-2d74-48a1-9d05-ed199685c052 2026-03-26 06:11:12,913 - INFO - Verified policy ctest-policy1-60724703 in API Server, Result: True 2026-03-26 06:11:12,913 - INFO - Done with setup and verification, moving onto test .. 2026-03-26 06:11:12,931 - INFO - Deleting VN ctest-vn4-29123584 2026-03-26 06:11:13,217 - DEBUG - Response for deleting network () 2026-03-26 06:11:13,217 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/0e38962c-b050-4b65-a21b-41b9c6675536 2026-03-26 06:11:13,230 - DEBUG - Response Code: 404 2026-03-26 06:11:13,230 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-03-26 06:11:13,241 - DEBUG - Requesting: http://10.0.0.38:8082/domain/da4d30e0-25e9-49cd-94d8-93ff5a173387 2026-03-26 06:11:13,258 - DEBUG - Requesting: http://10.0.0.38:8082/project/d4057f82-0eee-418b-aeab-4b10d9cf6955 2026-03-26 06:11:13,367 - INFO - Validated that VN ctest-vn4-29123584 is not found in API Server 2026-03-26 06:11:13,380 - DEBUG - VN ctest-vn4-29123584 is not present in Agent 10.0.0.22 2026-03-26 06:11:13,393 - DEBUG - VN ctest-vn4-29123584 is not present in Agent 10.0.0.249 2026-03-26 06:11:13,393 - INFO - Validated that VN ctest-vn4-29123584 is not in any agent 2026-03-26 06:11:13,431 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-29123584 info 2026-03-26 06:11:13,481 - INFO - Deleted policy ctest-policy1-60724703 2026-03-26 06:11:13,698 - DEBUG - policy ctest-policy1-60724703 is not found in API Server 2026-03-26 06:11:15,067 - DEBUG - No XMPP flaps were noticed during the test 2026-03-26 06:11:15,067 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:09] 2026-03-26 06:11:15,068 - INFO - -------------------------------------------------------------------------------- 2026-03-26 06:11:16,418 - DEBUG - No XMPP flaps were noticed during the test 2026-03-26 06:11:16,418 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:11] 2026-03-26 06:11:16,418 - INFO - -------------------------------------------------------------------------------- 2026-03-26 06:11:17,907 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-94995797, ID : d4057f82-0eee-418b-aeab-4b10d9cf6955