2026-01-23 10:31:09,648 - INFO - Domain Default found not creating 2026-01-23 10:31:09,835 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-56902061 not found, creating it 2026-01-23 10:31:10,366 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-56902061, ID : 1d03a8b9-7218-403a-b342-672cfb1f375e 2026-01-23 10:31:11,997 - INFO - ================================================================================ 2026-01-23 10:31:11,997 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-23 10:31:13,289 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.193': '0', '10.20.0.254': '0'}, '10.0.0.33': {'10.20.0.193': '0', '10.20.0.129': '0'}} with 2026-01-23 10:31:13,289 - INFO - Initial checks done. Running the testcase now 2026-01-23 10:31:13,289 - INFO - 2026-01-23 10:31:13,289 - INFO - ================================================================================ 2026-01-23 10:31:13,289 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-23 10:31:13,289 - 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-01-23 10:31:14,615 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.193': '0', '10.20.0.254': '0'}, '10.0.0.33': {'10.20.0.193': '0', '10.20.0.129': '0'}} with 2026-01-23 10:31:14,615 - INFO - Initial checks done. Running the testcase now 2026-01-23 10:31:14,615 - INFO - 2026-01-23 10:31:15,012 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-56902061:ctest-vn4-11334107, 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-56902061:ctest-vn4-11334107, 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-56902061:ctest-vn4-11334107, 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-56902061:ctest-vn4-11334107, 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-01-23 10:31:15,637 - DEBUG - Response for create_network : {'network': {'id': '5c162394-0838-4c70-8000-9d486790d486', 'name': 'ctest-vn4-11334107', 'tenant_id': '1d03a8b97218403ab342672cfb1f375e', 'project_id': '1d03a8b97218403ab342672cfb1f375e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-56902061', 'ctest-vn4-11334107'], 'port_security_enabled': True, 'description': ''}} 2026-01-23 10:31:15,943 - DEBUG - Response for create_subnet : {'subnet': {'id': '7a3e659e-3543-4238-b6fd-0a4ece186bfd', 'name': '', 'tenant_id': '1d03a8b97218403ab342672cfb1f375e', 'network_id': '5c162394-0838-4c70-8000-9d486790d486', 'ip_version': 4, 'cidr': '28.170.114.192/26', 'allocation_pools': [{'start': '28.170.114.194', 'end': '28.170.114.254'}], 'gateway_ip': '28.170.114.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '28.170.114.194', 'tags': [], 'project_id': '1d03a8b97218403ab342672cfb1f375e'}} 2026-01-23 10:31:16,210 - DEBUG - Response for create_subnet : {'subnet': {'id': '7b3775c5-407b-4d6a-b84c-dd8bdb3b825a', 'name': '', 'tenant_id': '1d03a8b97218403ab342672cfb1f375e', 'network_id': '5c162394-0838-4c70-8000-9d486790d486', 'ip_version': 6, 'cidr': '3c90:de1e:87ba:bcd5:a258:a4e1::/96', 'allocation_pools': [{'start': '3c90:de1e:87ba:bcd5:a258:a4e1:0:2', 'end': '3c90:de1e:87ba:bcd5:a258:a4e1:ffff:fffe'}], 'gateway_ip': '3c90:de1e:87ba:bcd5:a258:a4e1:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3c90:de1e:87ba:bcd5:a258:a4e1:0:2', 'tags': [], 'project_id': '1d03a8b97218403ab342672cfb1f375e'}} 2026-01-23 10:31:16,246 - INFO - Created VN ctest-vn4-11334107 2026-01-23 10:31:16,256 - DEBUG - VN ctest-vn4-11334107 UUID is 5c162394-0838-4c70-8000-9d486790d486 2026-01-23 10:31:16,504 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5c162394-0838-4c70-8000-9d486790d486', 'name': 'ctest-vn4-11334107', 'tenant_id': '1d03a8b97218403ab342672cfb1f375e', 'project_id': '1d03a8b97218403ab342672cfb1f375e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7a3e659e-3543-4238-b6fd-0a4ece186bfd', '7b3775c5-407b-4d6a-b84c-dd8bdb3b825a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-56902061', 'ctest-vn4-11334107'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-56902061', 'ctest-policy1-46876048']], 'subnet_ipam': [{'subnet_cidr': '28.170.114.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3c90:de1e:87ba:bcd5:a258:a4e1::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-01-23 10:31:16,629 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2026-01-23 10:31:16,934 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2026-01-23 10:31:16,965 - DEBUG - Requesting: http://10.0.0.41:8082/domain/fd2f64e8-f245-459e-b13e-d5898f7f9a94 2026-01-23 10:31:16,983 - DEBUG - Requesting: http://10.0.0.41:8082/project/1d03a8b9-7218-403a-b342-672cfb1f375e 2026-01-23 10:31:17,096 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/5c162394-0838-4c70-8000-9d486790d486 2026-01-23 10:31:17,115 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/5c162394-0838-4c70-8000-9d486790d486 2026-01-23 10:31:17,131 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/1f82a95d-8ca5-4283-b500-b4bc813f09e9 2026-01-23 10:31:17,142 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/1f82a95d-8ca5-4283-b500-b4bc813f09e9 2026-01-23 10:31:17,149 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/e3f1a4cc-163d-4677-8433-add72445a412 2026-01-23 10:31:17,158 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-01-23 10:31:17,158 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/5c162394-0838-4c70-8000-9d486790d486 2026-01-23 10:31:17,168 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/1f82a95d-8ca5-4283-b500-b4bc813f09e9 2026-01-23 10:31:17,201 - INFO - Verified VN network id 11 for VN 5c162394-0838-4c70-8000-9d486790d486 2026-01-23 10:31:17,202 - INFO - Verifications in API Server for VN ctest-vn4-11334107 passed 2026-01-23 10:31:17,202 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/5c162394-0838-4c70-8000-9d486790d486 2026-01-23 10:31:17,212 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/1f82a95d-8ca5-4283-b500-b4bc813f09e9 2026-01-23 10:31:17,222 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/1f82a95d-8ca5-4283-b500-b4bc813f09e9 2026-01-23 10:31:17,231 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/e3f1a4cc-163d-4677-8433-add72445a412 2026-01-23 10:31:17,242 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-56902061:ctest-vn4-11334107', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-56902061', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6635530219677043824', 'uuid-lslong': '9223544971155526790'}, 'enable': 'true', 'created': '2026-01-23T10:31:15', 'last-modified': '2026-01-23T10:31:16', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.780080'} 2026-01-23 10:31:17,248 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-01-23 10:31:17,255 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-56902061:ctest-vn4-11334107', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-56902061', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6635530219677043824', 'uuid-lslong': '9223544971155526790'}, 'enable': 'true', 'created': '2026-01-23T10:31:15', 'last-modified': '2026-01-23T10:31:16', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.796957'} 2026-01-23 10:31:17,263 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-01-23 10:31:17,270 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-56902061:ctest-vn4-11334107', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-56902061', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6635530219677043824', 'uuid-lslong': '9223544971155526790'}, 'enable': 'true', 'created': '2026-01-23T10:31:15', 'last-modified': '2026-01-23T10:31:16', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.820085'} 2026-01-23 10:31:17,276 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-01-23 10:31:17,276 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-11334107 passed 2026-01-23 10:31:17,276 - DEBUG - ====Verifying policy data for ctest-vn4-11334107 in API_Server ====== 2026-01-23 10:31:17,276 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2026-01-23 10:31:17,284 - DEBUG - Requesting: http://10.0.0.41:8082/domain/fd2f64e8-f245-459e-b13e-d5898f7f9a94 2026-01-23 10:31:17,299 - DEBUG - Requesting: http://10.0.0.41:8082/project/1d03a8b9-7218-403a-b342-672cfb1f375e 2026-01-23 10:31:17,402 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/5c162394-0838-4c70-8000-9d486790d486 2026-01-23 10:31:17,418 - DEBUG - ==>Verifying data for policy with id: 0eace76c-ca7e-45b2-ac65-1de1bf697bb3, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-56902061', 'ctest-policy1-46876048'] 2026-01-23 10:31:17,418 - INFO - VN ctest-vn4-11334107 Policy verification: verify_vn_policy_in_api_server, status: True 2026-01-23 10:31:17,418 - DEBUG - Verifying the vn in opserver 2026-01-23 10:31:17,418 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-56902061:ctest-vn4-11334107 virtual network link through opserver 10.0.0.41 2026-01-23 10:31:17,418 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks 2026-01-23 10:31:17,716 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks 2026-01-23 10:31:17,785 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-56902061:ctest-vn4-11334107', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-56902061:ctest-vn4-11334107?flat'} 2026-01-23 10:31:17,785 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-56902061:ctest-vn4-11334107 virtual network link through opserver 10.0.0.27 2026-01-23 10:31:17,785 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2026-01-23 10:31:18,130 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2026-01-23 10:31:18,211 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-56902061:ctest-vn4-11334107', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-56902061:ctest-vn4-11334107?flat'} 2026-01-23 10:31:18,211 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-56902061:ctest-vn4-11334107 virtual network link through opserver 10.0.0.23 2026-01-23 10:31:18,212 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2026-01-23 10:31:18,524 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2026-01-23 10:31:18,591 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-56902061:ctest-vn4-11334107', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-56902061:ctest-vn4-11334107?flat'} 2026-01-23 10:31:18,591 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-56902061:ctest-vn4-11334107 is found in opserver 2026-01-23 10:31:18,618 - DEBUG - Do not have enough data to verify VN in agent 2026-01-23 10:31:18,628 - DEBUG - VRF ids for VN ctest-vn4-11334107: {} 2026-01-23 10:31:18,628 - DEBUG - ====Verifying data for ctest-policy1-46876048 in API_Server ====== 2026-01-23 10:31:18,628 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2026-01-23 10:31:18,634 - DEBUG - Requesting: http://10.0.0.41:8082/domain/fd2f64e8-f245-459e-b13e-d5898f7f9a94 2026-01-23 10:31:18,646 - DEBUG - Requesting: http://10.0.0.41:8082/project/1d03a8b9-7218-403a-b342-672cfb1f375e 2026-01-23 10:31:18,746 - DEBUG - Requesting: http://10.0.0.41:8082/network-policy/0eace76c-ca7e-45b2-ac65-1de1bf697bb3 2026-01-23 10:31:18,758 - INFO - Verified policy ctest-policy1-46876048 in API Server, Result: True 2026-01-23 10:31:18,758 - INFO - Done with setup and verification, moving onto test .. 2026-01-23 10:31:18,770 - INFO - Deleting VN ctest-vn4-11334107 2026-01-23 10:31:18,977 - DEBUG - Response for deleting network () 2026-01-23 10:31:18,977 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/1f82a95d-8ca5-4283-b500-b4bc813f09e9 2026-01-23 10:31:18,982 - DEBUG - Response Code: 404 2026-01-23 10:31:18,982 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2026-01-23 10:31:18,990 - DEBUG - Requesting: http://10.0.0.41:8082/domain/fd2f64e8-f245-459e-b13e-d5898f7f9a94 2026-01-23 10:31:19,007 - DEBUG - Requesting: http://10.0.0.41:8082/project/1d03a8b9-7218-403a-b342-672cfb1f375e 2026-01-23 10:31:19,121 - INFO - Validated that VN ctest-vn4-11334107 is not found in API Server 2026-01-23 10:31:19,133 - DEBUG - VN ctest-vn4-11334107 is not present in Agent 10.0.0.141 2026-01-23 10:31:19,144 - DEBUG - VN ctest-vn4-11334107 is not present in Agent 10.0.0.33 2026-01-23 10:31:19,144 - INFO - Validated that VN ctest-vn4-11334107 is not in any agent 2026-01-23 10:31:19,180 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-11334107 info 2026-01-23 10:31:19,223 - INFO - Deleted policy ctest-policy1-46876048 2026-01-23 10:31:19,406 - DEBUG - policy ctest-policy1-46876048 is not found in API Server 2026-01-23 10:31:20,714 - DEBUG - No XMPP flaps were noticed during the test 2026-01-23 10:31:20,714 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:07] 2026-01-23 10:31:20,714 - INFO - -------------------------------------------------------------------------------- 2026-01-23 10:31:22,007 - DEBUG - No XMPP flaps were noticed during the test 2026-01-23 10:31:22,007 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:11] 2026-01-23 10:31:22,007 - INFO - -------------------------------------------------------------------------------- 2026-01-23 10:31:22,788 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-56902061, ID : 1d03a8b9-7218-403a-b342-672cfb1f375e