2026-02-16 02:26:09,040 - INFO - Domain Default found not creating 2026-02-16 02:26:09,234 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-51706645 not found, creating it 2026-02-16 02:26:09,795 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-51706645, ID : f4ed4a20-1c14-41cc-bcae-91ac40674afc 2026-02-16 02:26:11,277 - INFO - ================================================================================ 2026-02-16 02:26:11,277 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-16 02:26:12,544 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0', '10.20.0.129': '0'}, '10.0.0.65': {'10.20.0.129': '0', '10.20.0.254': '0'}} with 2026-02-16 02:26:12,544 - INFO - Initial checks done. Running the testcase now 2026-02-16 02:26:12,544 - INFO - 2026-02-16 02:26:12,545 - INFO - ================================================================================ 2026-02-16 02:26:12,545 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-16 02:26:12,545 - 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-16 02:26:13,805 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0', '10.20.0.129': '0'}, '10.0.0.65': {'10.20.0.129': '0', '10.20.0.254': '0'}} with 2026-02-16 02:26:13,805 - INFO - Initial checks done. Running the testcase now 2026-02-16 02:26:13,805 - INFO - 2026-02-16 02:26:14,165 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-51706645:ctest-vn4-04933344, 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-51706645:ctest-vn4-04933344, 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-51706645:ctest-vn4-04933344, 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-51706645:ctest-vn4-04933344, 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-16 02:26:14,758 - DEBUG - Response for create_network : {'network': {'id': '25dd7ed3-3039-4ad7-917a-0cd7fa2ea4e4', 'name': 'ctest-vn4-04933344', 'tenant_id': 'f4ed4a201c1441ccbcae91ac40674afc', 'project_id': 'f4ed4a201c1441ccbcae91ac40674afc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-51706645', 'ctest-vn4-04933344'], 'port_security_enabled': True, 'description': ''}} 2026-02-16 02:26:15,021 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b4227c1a-95dd-4658-8287-abd22c69661f', 'name': '', 'tenant_id': 'f4ed4a201c1441ccbcae91ac40674afc', 'network_id': '25dd7ed3-3039-4ad7-917a-0cd7fa2ea4e4', 'ip_version': 4, 'cidr': '103.167.206.64/26', 'allocation_pools': [{'start': '103.167.206.66', 'end': '103.167.206.126'}], 'gateway_ip': '103.167.206.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '103.167.206.66', 'tags': [], 'project_id': 'f4ed4a201c1441ccbcae91ac40674afc'}} 2026-02-16 02:26:15,228 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c475b7fc-19e2-446a-a7bb-a16cda6b6bc1', 'name': '', 'tenant_id': 'f4ed4a201c1441ccbcae91ac40674afc', 'network_id': '25dd7ed3-3039-4ad7-917a-0cd7fa2ea4e4', 'ip_version': 6, 'cidr': '318d:bb79:ba7c:4052:d054:2ac7::/96', 'allocation_pools': [{'start': '318d:bb79:ba7c:4052:d054:2ac7:0:2', 'end': '318d:bb79:ba7c:4052:d054:2ac7:ffff:fffe'}], 'gateway_ip': '318d:bb79:ba7c:4052:d054:2ac7:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '318d:bb79:ba7c:4052:d054:2ac7:0:2', 'tags': [], 'project_id': 'f4ed4a201c1441ccbcae91ac40674afc'}} 2026-02-16 02:26:15,249 - INFO - Created VN ctest-vn4-04933344 2026-02-16 02:26:15,259 - DEBUG - VN ctest-vn4-04933344 UUID is 25dd7ed3-3039-4ad7-917a-0cd7fa2ea4e4 2026-02-16 02:26:15,459 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '25dd7ed3-3039-4ad7-917a-0cd7fa2ea4e4', 'name': 'ctest-vn4-04933344', 'tenant_id': 'f4ed4a201c1441ccbcae91ac40674afc', 'project_id': 'f4ed4a201c1441ccbcae91ac40674afc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b4227c1a-95dd-4658-8287-abd22c69661f', 'c475b7fc-19e2-446a-a7bb-a16cda6b6bc1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-51706645', 'ctest-vn4-04933344'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-51706645', 'ctest-policy1-93869305']], 'subnet_ipam': [{'subnet_cidr': '103.167.206.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '318d:bb79:ba7c:4052:d054:2ac7::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-16 02:26:15,576 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2026-02-16 02:26:15,872 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2026-02-16 02:26:15,906 - DEBUG - Requesting: http://10.0.0.27:8082/domain/026ea67f-9b7a-4f1c-a755-90b25d4ac1dc 2026-02-16 02:26:15,923 - DEBUG - Requesting: http://10.0.0.27:8082/project/f4ed4a20-1c14-41cc-bcae-91ac40674afc 2026-02-16 02:26:16,009 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/25dd7ed3-3039-4ad7-917a-0cd7fa2ea4e4 2026-02-16 02:26:16,023 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/25dd7ed3-3039-4ad7-917a-0cd7fa2ea4e4 2026-02-16 02:26:16,033 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/19636491-58d2-47a1-8a96-deb6e5d4c46b 2026-02-16 02:26:16,041 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/19636491-58d2-47a1-8a96-deb6e5d4c46b 2026-02-16 02:26:16,049 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/87cf482a-8bb8-43b6-ad14-3250a028aabb 2026-02-16 02:26:16,055 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-16 02:26:16,056 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/25dd7ed3-3039-4ad7-917a-0cd7fa2ea4e4 2026-02-16 02:26:16,067 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/19636491-58d2-47a1-8a96-deb6e5d4c46b 2026-02-16 02:26:16,082 - INFO - Verified VN network id 14 for VN 25dd7ed3-3039-4ad7-917a-0cd7fa2ea4e4 2026-02-16 02:26:16,082 - INFO - Verifications in API Server for VN ctest-vn4-04933344 passed 2026-02-16 02:26:16,083 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/25dd7ed3-3039-4ad7-917a-0cd7fa2ea4e4 2026-02-16 02:26:16,095 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/19636491-58d2-47a1-8a96-deb6e5d4c46b 2026-02-16 02:26:16,104 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/19636491-58d2-47a1-8a96-deb6e5d4c46b 2026-02-16 02:26:16,111 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/87cf482a-8bb8-43b6-ad14-3250a028aabb 2026-02-16 02:26:16,123 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-51706645:ctest-vn4-04933344', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-51706645', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2728476394768648919', 'uuid-lslong': '10482705204413113572'}, 'enable': 'true', 'created': '2026-02-16T02:26:14', 'last-modified': '2026-02-16T02:26:15', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.701165'} 2026-02-16 02:26:16,128 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-16 02:26:16,133 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-51706645:ctest-vn4-04933344', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-51706645', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2728476394768648919', 'uuid-lslong': '10482705204413113572'}, 'enable': 'true', 'created': '2026-02-16T02:26:14', 'last-modified': '2026-02-16T02:26:15', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.711948'} 2026-02-16 02:26:16,138 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-16 02:26:16,143 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-51706645:ctest-vn4-04933344', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-51706645', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2728476394768648919', 'uuid-lslong': '10482705204413113572'}, 'enable': 'true', 'created': '2026-02-16T02:26:14', 'last-modified': '2026-02-16T02:26:15', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.723828'} 2026-02-16 02:26:16,150 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-16 02:26:16,150 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-04933344 passed 2026-02-16 02:26:16,151 - DEBUG - ====Verifying policy data for ctest-vn4-04933344 in API_Server ====== 2026-02-16 02:26:16,151 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2026-02-16 02:26:16,157 - DEBUG - Requesting: http://10.0.0.27:8082/domain/026ea67f-9b7a-4f1c-a755-90b25d4ac1dc 2026-02-16 02:26:16,167 - DEBUG - Requesting: http://10.0.0.27:8082/project/f4ed4a20-1c14-41cc-bcae-91ac40674afc 2026-02-16 02:26:16,264 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/25dd7ed3-3039-4ad7-917a-0cd7fa2ea4e4 2026-02-16 02:26:16,280 - DEBUG - ==>Verifying data for policy with id: 07641d86-faa2-4816-8745-7c957473b593, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-51706645', 'ctest-policy1-93869305'] 2026-02-16 02:26:16,280 - INFO - VN ctest-vn4-04933344 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-16 02:26:16,280 - DEBUG - Verifying the vn in opserver 2026-02-16 02:26:16,280 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-51706645:ctest-vn4-04933344 virtual network link through opserver 10.0.0.27 2026-02-16 02:26:16,281 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2026-02-16 02:26:16,596 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2026-02-16 02:26:16,662 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-51706645:ctest-vn4-04933344', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-51706645:ctest-vn4-04933344?flat'} 2026-02-16 02:26:16,662 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-51706645:ctest-vn4-04933344 virtual network link through opserver 10.0.0.50 2026-02-16 02:26:16,662 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-02-16 02:26:16,973 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-02-16 02:26:17,054 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-51706645:ctest-vn4-04933344', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-51706645:ctest-vn4-04933344?flat'} 2026-02-16 02:26:17,054 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-51706645:ctest-vn4-04933344 virtual network link through opserver 10.0.0.23 2026-02-16 02:26:17,054 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2026-02-16 02:26:17,373 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2026-02-16 02:26:17,496 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-51706645:ctest-vn4-04933344', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-51706645:ctest-vn4-04933344?flat'} 2026-02-16 02:26:17,496 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-51706645:ctest-vn4-04933344 is found in opserver 2026-02-16 02:26:17,518 - DEBUG - Do not have enough data to verify VN in agent 2026-02-16 02:26:17,529 - DEBUG - VRF ids for VN ctest-vn4-04933344: {} 2026-02-16 02:26:17,529 - DEBUG - ====Verifying data for ctest-policy1-93869305 in API_Server ====== 2026-02-16 02:26:17,529 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2026-02-16 02:26:17,535 - DEBUG - Requesting: http://10.0.0.27:8082/domain/026ea67f-9b7a-4f1c-a755-90b25d4ac1dc 2026-02-16 02:26:17,548 - DEBUG - Requesting: http://10.0.0.27:8082/project/f4ed4a20-1c14-41cc-bcae-91ac40674afc 2026-02-16 02:26:17,651 - DEBUG - Requesting: http://10.0.0.27:8082/network-policy/07641d86-faa2-4816-8745-7c957473b593 2026-02-16 02:26:17,667 - INFO - Verified policy ctest-policy1-93869305 in API Server, Result: True 2026-02-16 02:26:17,668 - INFO - Done with setup and verification, moving onto test .. 2026-02-16 02:26:17,679 - INFO - Deleting VN ctest-vn4-04933344 2026-02-16 02:26:17,851 - DEBUG - Response for deleting network () 2026-02-16 02:26:17,851 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/19636491-58d2-47a1-8a96-deb6e5d4c46b 2026-02-16 02:26:17,856 - DEBUG - Response Code: 404 2026-02-16 02:26:17,856 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2026-02-16 02:26:17,868 - DEBUG - Requesting: http://10.0.0.27:8082/domain/026ea67f-9b7a-4f1c-a755-90b25d4ac1dc 2026-02-16 02:26:17,886 - DEBUG - Requesting: http://10.0.0.27:8082/project/f4ed4a20-1c14-41cc-bcae-91ac40674afc 2026-02-16 02:26:17,988 - INFO - Validated that VN ctest-vn4-04933344 is not found in API Server 2026-02-16 02:26:18,000 - DEBUG - VN ctest-vn4-04933344 is not present in Agent 10.0.0.38 2026-02-16 02:26:18,010 - DEBUG - VN ctest-vn4-04933344 is not present in Agent 10.0.0.65 2026-02-16 02:26:18,010 - INFO - Validated that VN ctest-vn4-04933344 is not in any agent 2026-02-16 02:26:18,047 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-04933344 info 2026-02-16 02:26:18,097 - INFO - Deleted policy ctest-policy1-93869305 2026-02-16 02:26:18,302 - DEBUG - policy ctest-policy1-93869305 is not found in API Server 2026-02-16 02:26:19,575 - DEBUG - No XMPP flaps were noticed during the test 2026-02-16 02:26:19,575 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:07] 2026-02-16 02:26:19,575 - INFO - -------------------------------------------------------------------------------- 2026-02-16 02:26:20,855 - DEBUG - No XMPP flaps were noticed during the test 2026-02-16 02:26:20,855 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:09] 2026-02-16 02:26:20,856 - INFO - -------------------------------------------------------------------------------- 2026-02-16 02:26:21,549 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-51706645, ID : f4ed4a20-1c14-41cc-bcae-91ac40674afc