2026-08-24 02:57:23,431 - INFO - Domain Default found not creating 2026-08-24 02:57:23,883 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-44239191 not found, creating it 2026-08-24 02:57:24,517 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-44239191, ID : 6ab77d87-b0b5-4329-8efa-28f7e82f05e1 2026-08-24 02:57:26,187 - INFO - ================================================================================ 2026-08-24 02:57:26,187 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-08-24 02:57:27,496 - DEBUG - Nothing to compare xmpp stats {'10.0.0.162': {'10.20.0.254': '0', '10.20.0.14': '0'}, '10.0.0.185': {'10.20.0.25': '0', '10.20.0.14': '0'}} with 2026-08-24 02:57:27,496 - INFO - Initial checks done. Running the testcase now 2026-08-24 02:57:27,496 - INFO - 2026-08-24 02:57:27,496 - INFO - ================================================================================ 2026-08-24 02:57:27,496 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-08-24 02:57:27,496 - 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-08-24 02:57:28,787 - DEBUG - Nothing to compare xmpp stats {'10.0.0.162': {'10.20.0.254': '0', '10.20.0.14': '0'}, '10.0.0.185': {'10.20.0.25': '0', '10.20.0.14': '0'}} with 2026-08-24 02:57:28,787 - INFO - Initial checks done. Running the testcase now 2026-08-24 02:57:28,787 - INFO - 2026-08-24 02:57:29,180 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-44239191:ctest-vn4-98250066, 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-44239191:ctest-vn4-98250066, 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-44239191:ctest-vn4-98250066, 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-44239191:ctest-vn4-98250066, 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-08-24 02:57:29,907 - DEBUG - Response for create_network : {'network': {'id': 'ef11d64b-dbe0-47ac-8175-280cae1a127f', 'name': 'ctest-vn4-98250066', 'tenant_id': '6ab77d87b0b543298efa28f7e82f05e1', 'project_id': '6ab77d87b0b543298efa28f7e82f05e1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-44239191', 'ctest-vn4-98250066'], 'port_security_enabled': True, 'description': ''}} 2026-08-24 02:57:30,211 - DEBUG - Response for create_subnet : {'subnet': {'id': '42e2c213-7014-4e66-afc7-b66975eea6df', 'name': '', 'tenant_id': '6ab77d87b0b543298efa28f7e82f05e1', 'network_id': 'ef11d64b-dbe0-47ac-8175-280cae1a127f', 'ip_version': 4, 'cidr': '47.215.27.192/26', 'allocation_pools': [{'start': '47.215.27.194', 'end': '47.215.27.254'}], 'gateway_ip': '47.215.27.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '47.215.27.194', 'tags': [], 'project_id': '6ab77d87b0b543298efa28f7e82f05e1'}} 2026-08-24 02:57:30,486 - DEBUG - Response for create_subnet : {'subnet': {'id': '2959734d-daef-485b-935c-d3ed53774b60', 'name': '', 'tenant_id': '6ab77d87b0b543298efa28f7e82f05e1', 'network_id': 'ef11d64b-dbe0-47ac-8175-280cae1a127f', 'ip_version': 6, 'cidr': '3934:25da:5ffc:794:5d2:701c::/96', 'allocation_pools': [{'start': '3934:25da:5ffc:794:5d2:701c:0:2', 'end': '3934:25da:5ffc:794:5d2:701c:ffff:fffe'}], 'gateway_ip': '3934:25da:5ffc:794:5d2:701c:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3934:25da:5ffc:794:5d2:701c:0:2', 'tags': [], 'project_id': '6ab77d87b0b543298efa28f7e82f05e1'}} 2026-08-24 02:57:30,519 - INFO - Created VN ctest-vn4-98250066 2026-08-24 02:57:30,536 - DEBUG - VN ctest-vn4-98250066 UUID is ef11d64b-dbe0-47ac-8175-280cae1a127f 2026-08-24 02:57:30,809 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ef11d64b-dbe0-47ac-8175-280cae1a127f', 'name': 'ctest-vn4-98250066', 'tenant_id': '6ab77d87b0b543298efa28f7e82f05e1', 'project_id': '6ab77d87b0b543298efa28f7e82f05e1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['42e2c213-7014-4e66-afc7-b66975eea6df', '2959734d-daef-485b-935c-d3ed53774b60'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-44239191', 'ctest-vn4-98250066'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-44239191', 'ctest-policy1-04766125']], 'subnet_ipam': [{'subnet_cidr': '47.215.27.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3934:25da:5ffc:794:5d2:701c::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-08-24 02:57:30,920 - DEBUG - Requesting: http://10.0.0.190:8082/domains 2026-08-24 02:57:31,256 - DEBUG - Requesting: http://10.0.0.190:8082/domains 2026-08-24 02:57:31,286 - DEBUG - Requesting: http://10.0.0.190:8082/domain/a2bfd9a2-e8fd-4333-9d61-3cfdf889946b 2026-08-24 02:57:31,306 - DEBUG - Requesting: http://10.0.0.190:8082/project/6ab77d87-b0b5-4329-8efa-28f7e82f05e1 2026-08-24 02:57:31,411 - DEBUG - Requesting: http://10.0.0.190:8082/virtual-network/ef11d64b-dbe0-47ac-8175-280cae1a127f 2026-08-24 02:57:31,428 - DEBUG - Requesting: http://10.0.0.190:8082/virtual-network/ef11d64b-dbe0-47ac-8175-280cae1a127f 2026-08-24 02:57:31,441 - DEBUG - Requesting: http://10.0.0.190:8082/routing-instance/1bc52061-ab34-4e90-ad74-a9c16f6978e7 2026-08-24 02:57:31,452 - DEBUG - Requesting: http://10.0.0.190:8082/routing-instance/1bc52061-ab34-4e90-ad74-a9c16f6978e7 2026-08-24 02:57:31,462 - DEBUG - Requesting: http://10.0.0.190:8082/route-target/f52df3d4-9049-4612-8fdc-31c96138010c 2026-08-24 02:57:31,473 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-08-24 02:57:31,474 - DEBUG - Requesting: http://10.0.0.190:8082/virtual-network/ef11d64b-dbe0-47ac-8175-280cae1a127f 2026-08-24 02:57:31,490 - DEBUG - Requesting: http://10.0.0.190:8082/routing-instance/1bc52061-ab34-4e90-ad74-a9c16f6978e7 2026-08-24 02:57:31,511 - INFO - Verified VN network id 15 for VN ef11d64b-dbe0-47ac-8175-280cae1a127f 2026-08-24 02:57:31,511 - INFO - Verifications in API Server for VN ctest-vn4-98250066 passed 2026-08-24 02:57:31,512 - DEBUG - Requesting: http://10.0.0.190:8082/virtual-network/ef11d64b-dbe0-47ac-8175-280cae1a127f 2026-08-24 02:57:31,524 - DEBUG - Requesting: http://10.0.0.190:8082/routing-instance/1bc52061-ab34-4e90-ad74-a9c16f6978e7 2026-08-24 02:57:31,534 - DEBUG - Requesting: http://10.0.0.190:8082/routing-instance/1bc52061-ab34-4e90-ad74-a9c16f6978e7 2026-08-24 02:57:31,544 - DEBUG - Requesting: http://10.0.0.190:8082/route-target/f52df3d4-9049-4612-8fdc-31c96138010c 2026-08-24 02:57:31,562 - DEBUG - Control-node 10.0.0.190 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-44239191:ctest-vn4-98250066', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-44239191', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17226785670968657836', 'uuid-lslong': '9328406238093513343'}, 'enable': 'true', 'created': '2026-08-24T02:57:29', 'last-modified': '2026-08-24T02:57:30', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.821297'} 2026-08-24 02:57:31,569 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-08-24 02:57:31,576 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-44239191:ctest-vn4-98250066', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-44239191', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17226785670968657836', 'uuid-lslong': '9328406238093513343'}, 'enable': 'true', 'created': '2026-08-24T02:57:29', 'last-modified': '2026-08-24T02:57:30', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.836904'} 2026-08-24 02:57:31,586 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-08-24 02:57:31,597 - DEBUG - Control-node 10.0.0.191 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-44239191:ctest-vn4-98250066', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-44239191', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17226785670968657836', 'uuid-lslong': '9328406238093513343'}, 'enable': 'true', 'created': '2026-08-24T02:57:29', 'last-modified': '2026-08-24T02:57:30', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.847409'} 2026-08-24 02:57:31,604 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-08-24 02:57:31,604 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-98250066 passed 2026-08-24 02:57:31,604 - DEBUG - ====Verifying policy data for ctest-vn4-98250066 in API_Server ====== 2026-08-24 02:57:31,604 - DEBUG - Requesting: http://10.0.0.190:8082/domains 2026-08-24 02:57:31,611 - DEBUG - Requesting: http://10.0.0.190:8082/domain/a2bfd9a2-e8fd-4333-9d61-3cfdf889946b 2026-08-24 02:57:31,623 - DEBUG - Requesting: http://10.0.0.190:8082/project/6ab77d87-b0b5-4329-8efa-28f7e82f05e1 2026-08-24 02:57:31,719 - DEBUG - Requesting: http://10.0.0.190:8082/virtual-network/ef11d64b-dbe0-47ac-8175-280cae1a127f 2026-08-24 02:57:31,742 - DEBUG - ==>Verifying data for policy with id: 0377e418-5079-44e1-b16c-f7dd57b0201e, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-44239191', 'ctest-policy1-04766125'] 2026-08-24 02:57:31,742 - INFO - VN ctest-vn4-98250066 Policy verification: verify_vn_policy_in_api_server, status: True 2026-08-24 02:57:31,743 - DEBUG - Verifying the vn in opserver 2026-08-24 02:57:31,743 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-44239191:ctest-vn4-98250066 virtual network link through opserver 10.0.0.190 2026-08-24 02:57:31,743 - DEBUG - Requesting: http://10.0.0.190:8081/analytics/uves/virtual-networks 2026-08-24 02:57:32,113 - DEBUG - Requesting: http://10.0.0.190:8081/analytics/uves/virtual-networks 2026-08-24 02:57:32,198 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-44239191:ctest-vn4-98250066', 'href': 'http://10.0.0.190:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-44239191:ctest-vn4-98250066?flat'} 2026-08-24 02:57:32,198 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-44239191:ctest-vn4-98250066 virtual network link through opserver 10.0.0.50 2026-08-24 02:57:32,198 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-08-24 02:57:32,578 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-08-24 02:57:32,697 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-44239191:ctest-vn4-98250066', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-44239191:ctest-vn4-98250066?flat'} 2026-08-24 02:57:32,697 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-44239191:ctest-vn4-98250066 virtual network link through opserver 10.0.0.191 2026-08-24 02:57:32,697 - DEBUG - Requesting: http://10.0.0.191:8081/analytics/uves/virtual-networks 2026-08-24 02:57:33,053 - DEBUG - Requesting: http://10.0.0.191:8081/analytics/uves/virtual-networks 2026-08-24 02:57:33,115 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-44239191:ctest-vn4-98250066', 'href': 'http://10.0.0.191:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-44239191:ctest-vn4-98250066?flat'} 2026-08-24 02:57:33,115 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-44239191:ctest-vn4-98250066 is found in opserver 2026-08-24 02:57:33,140 - DEBUG - Do not have enough data to verify VN in agent 2026-08-24 02:57:33,155 - DEBUG - VRF ids for VN ctest-vn4-98250066: {} 2026-08-24 02:57:33,155 - DEBUG - ====Verifying data for ctest-policy1-04766125 in API_Server ====== 2026-08-24 02:57:33,155 - DEBUG - Requesting: http://10.0.0.190:8082/domains 2026-08-24 02:57:33,164 - DEBUG - Requesting: http://10.0.0.190:8082/domain/a2bfd9a2-e8fd-4333-9d61-3cfdf889946b 2026-08-24 02:57:33,178 - DEBUG - Requesting: http://10.0.0.190:8082/project/6ab77d87-b0b5-4329-8efa-28f7e82f05e1 2026-08-24 02:57:33,292 - DEBUG - Requesting: http://10.0.0.190:8082/network-policy/0377e418-5079-44e1-b16c-f7dd57b0201e 2026-08-24 02:57:33,307 - INFO - Verified policy ctest-policy1-04766125 in API Server, Result: True 2026-08-24 02:57:33,307 - INFO - Done with setup and verification, moving onto test .. 2026-08-24 02:57:33,319 - INFO - Deleting VN ctest-vn4-98250066 2026-08-24 02:57:33,562 - DEBUG - Response for deleting network () 2026-08-24 02:57:33,562 - DEBUG - Requesting: http://10.0.0.190:8082/routing-instance/1bc52061-ab34-4e90-ad74-a9c16f6978e7 2026-08-24 02:57:33,571 - DEBUG - Response Code: 404 2026-08-24 02:57:33,571 - DEBUG - Requesting: http://10.0.0.190:8082/domains 2026-08-24 02:57:33,582 - DEBUG - Requesting: http://10.0.0.190:8082/domain/a2bfd9a2-e8fd-4333-9d61-3cfdf889946b 2026-08-24 02:57:33,605 - DEBUG - Requesting: http://10.0.0.190:8082/project/6ab77d87-b0b5-4329-8efa-28f7e82f05e1 2026-08-24 02:57:33,747 - INFO - Validated that VN ctest-vn4-98250066 is not found in API Server 2026-08-24 02:57:33,762 - DEBUG - VN ctest-vn4-98250066 is not present in Agent 10.0.0.162 2026-08-24 02:57:33,775 - DEBUG - VN ctest-vn4-98250066 is not present in Agent 10.0.0.185 2026-08-24 02:57:33,775 - INFO - Validated that VN ctest-vn4-98250066 is not in any agent 2026-08-24 02:57:33,811 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-98250066 info 2026-08-24 02:57:33,862 - INFO - Deleted policy ctest-policy1-04766125 2026-08-24 02:57:34,067 - DEBUG - policy ctest-policy1-04766125 is not found in API Server 2026-08-24 02:57:35,354 - DEBUG - No XMPP flaps were noticed during the test