2026-11-02 09:38:08,867 - INFO - Domain Default found not creating 2026-11-02 09:38:09,092 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-66099990 not found, creating it 2026-11-02 09:38:09,603 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-66099990, ID : b3f03e60-6568-4568-8f7c-10ff33944d7a 2026-11-02 09:38:11,452 - INFO - ================================================================================ 2026-11-02 09:38:11,452 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-11-02 09:38:11,714 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.25': '0'}} with 2026-11-02 09:38:11,714 - INFO - Initial checks done. Running the testcase now 2026-11-02 09:38:11,714 - INFO - 2026-11-02 09:38:11,714 - INFO - ================================================================================ 2026-11-02 09:38:11,714 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-11-02 09:38:11,714 - 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-11-02 09:38:12,006 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.25': '0'}} with 2026-11-02 09:38:12,006 - INFO - Initial checks done. Running the testcase now 2026-11-02 09:38:12,006 - INFO - 2026-11-02 09:38:12,464 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-66099990:ctest-vn4-62021182, 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-66099990:ctest-vn4-62021182, 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-66099990:ctest-vn4-62021182, 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-66099990:ctest-vn4-62021182, 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-11-02 09:38:13,020 - DEBUG - Response for create_network : {'network': {'id': 'c94db4cc-c21a-4bca-9309-917eb14a3a0d', 'name': 'ctest-vn4-62021182', 'tenant_id': 'b3f03e60656845688f7c10ff33944d7a', 'project_id': 'b3f03e60656845688f7c10ff33944d7a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-66099990', 'ctest-vn4-62021182'], 'port_security_enabled': True, 'description': ''}} 2026-11-02 09:38:13,257 - DEBUG - Response for create_subnet : {'subnet': {'id': 'bb942c68-1cde-43f9-8fb7-174b7653f92d', 'name': '', 'tenant_id': 'b3f03e60656845688f7c10ff33944d7a', 'network_id': 'c94db4cc-c21a-4bca-9309-917eb14a3a0d', 'ip_version': 4, 'cidr': '191.19.27.192/26', 'allocation_pools': [{'start': '191.19.27.194', 'end': '191.19.27.254'}], 'gateway_ip': '191.19.27.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '191.19.27.194', 'tags': [], 'project_id': 'b3f03e60656845688f7c10ff33944d7a'}} 2026-11-02 09:38:13,497 - DEBUG - Response for create_subnet : {'subnet': {'id': '6f801679-9756-4dba-b2c3-6b4e91bb0bfc', 'name': '', 'tenant_id': 'b3f03e60656845688f7c10ff33944d7a', 'network_id': 'c94db4cc-c21a-4bca-9309-917eb14a3a0d', 'ip_version': 6, 'cidr': '212b:4781:6e12:fb93:6a01:70c1::/96', 'allocation_pools': [{'start': '212b:4781:6e12:fb93:6a01:70c1:0:2', 'end': '212b:4781:6e12:fb93:6a01:70c1:ffff:fffe'}], 'gateway_ip': '212b:4781:6e12:fb93:6a01:70c1:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '212b:4781:6e12:fb93:6a01:70c1:0:2', 'tags': [], 'project_id': 'b3f03e60656845688f7c10ff33944d7a'}} 2026-11-02 09:38:13,519 - INFO - Created VN ctest-vn4-62021182 2026-11-02 09:38:13,575 - DEBUG - VN ctest-vn4-62021182 UUID is c94db4cc-c21a-4bca-9309-917eb14a3a0d 2026-11-02 09:38:13,817 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c94db4cc-c21a-4bca-9309-917eb14a3a0d', 'name': 'ctest-vn4-62021182', 'tenant_id': 'b3f03e60656845688f7c10ff33944d7a', 'project_id': 'b3f03e60656845688f7c10ff33944d7a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['bb942c68-1cde-43f9-8fb7-174b7653f92d', '6f801679-9756-4dba-b2c3-6b4e91bb0bfc'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-66099990', 'ctest-vn4-62021182'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-66099990', 'ctest-policy1-17517285']], 'subnet_ipam': [{'subnet_cidr': '191.19.27.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '212b:4781:6e12:fb93:6a01:70c1::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-11-02 09:38:13,983 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-11-02 09:38:14,384 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-11-02 09:38:14,414 - DEBUG - Requesting: http://10.0.0.50:8082/domain/348ed8a9-05a8-4032-a039-1797e1d52a38 2026-11-02 09:38:14,431 - DEBUG - Requesting: http://10.0.0.50:8082/project/b3f03e60-6568-4568-8f7c-10ff33944d7a 2026-11-02 09:38:14,513 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/c94db4cc-c21a-4bca-9309-917eb14a3a0d 2026-11-02 09:38:14,529 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/c94db4cc-c21a-4bca-9309-917eb14a3a0d 2026-11-02 09:38:14,545 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/7f634288-991f-4822-8f67-c6fb410b9476 2026-11-02 09:38:14,555 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/7f634288-991f-4822-8f67-c6fb410b9476 2026-11-02 09:38:14,563 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/6d657063-a1fb-4c70-81c0-c84abc2a0272 2026-11-02 09:38:14,573 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-11-02 09:38:14,573 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/c94db4cc-c21a-4bca-9309-917eb14a3a0d 2026-11-02 09:38:14,588 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/7f634288-991f-4822-8f67-c6fb410b9476 2026-11-02 09:38:14,607 - INFO - Verified VN network id 12 for VN c94db4cc-c21a-4bca-9309-917eb14a3a0d 2026-11-02 09:38:14,607 - INFO - Verifications in API Server for VN ctest-vn4-62021182 passed 2026-11-02 09:38:14,607 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/c94db4cc-c21a-4bca-9309-917eb14a3a0d 2026-11-02 09:38:14,621 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/7f634288-991f-4822-8f67-c6fb410b9476 2026-11-02 09:38:14,630 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/7f634288-991f-4822-8f67-c6fb410b9476 2026-11-02 09:38:14,637 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/6d657063-a1fb-4c70-81c0-c84abc2a0272 2026-11-02 09:38:14,653 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-66099990:ctest-vn4-62021182', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-66099990', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14505448766353066954', 'uuid-lslong': '10595159571692141069'}, 'enable': 'true', 'created': '2026-11-02T09:38:12', 'last-modified': '2026-11-02T09:38:13', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.876166'} 2026-11-02 09:38:14,662 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-11-02 09:38:14,662 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-62021182 passed 2026-11-02 09:38:14,662 - DEBUG - ====Verifying policy data for ctest-vn4-62021182 in API_Server ====== 2026-11-02 09:38:14,662 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-11-02 09:38:14,669 - DEBUG - Requesting: http://10.0.0.50:8082/domain/348ed8a9-05a8-4032-a039-1797e1d52a38 2026-11-02 09:38:14,681 - DEBUG - Requesting: http://10.0.0.50:8082/project/b3f03e60-6568-4568-8f7c-10ff33944d7a 2026-11-02 09:38:14,757 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/c94db4cc-c21a-4bca-9309-917eb14a3a0d 2026-11-02 09:38:14,768 - DEBUG - ==>Verifying data for policy with id: aaed621c-1df5-4cf5-9dd7-7b2428d6222f, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-66099990', 'ctest-policy1-17517285'] 2026-11-02 09:38:14,768 - INFO - VN ctest-vn4-62021182 Policy verification: verify_vn_policy_in_api_server, status: True 2026-11-02 09:38:14,768 - DEBUG - Verifying the vn in opserver 2026-11-02 09:38:14,768 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-66099990:ctest-vn4-62021182 virtual network link through opserver 10.0.0.50 2026-11-02 09:38:14,769 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-11-02 09:38:15,139 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-11-02 09:38:15,200 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-66099990:ctest-vn4-62021182', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-66099990:ctest-vn4-62021182?flat'} 2026-11-02 09:38:15,200 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-66099990:ctest-vn4-62021182 is found in opserver 2026-11-02 09:38:15,211 - DEBUG - Do not have enough data to verify VN in agent 2026-11-02 09:38:15,217 - DEBUG - VRF ids for VN ctest-vn4-62021182: {} 2026-11-02 09:38:15,218 - DEBUG - ====Verifying data for ctest-policy1-17517285 in API_Server ====== 2026-11-02 09:38:15,218 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-11-02 09:38:15,225 - DEBUG - Requesting: http://10.0.0.50:8082/domain/348ed8a9-05a8-4032-a039-1797e1d52a38 2026-11-02 09:38:15,239 - DEBUG - Requesting: http://10.0.0.50:8082/project/b3f03e60-6568-4568-8f7c-10ff33944d7a 2026-11-02 09:38:15,312 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/aaed621c-1df5-4cf5-9dd7-7b2428d6222f 2026-11-02 09:38:15,325 - INFO - Verified policy ctest-policy1-17517285 in API Server, Result: True 2026-11-02 09:38:15,325 - INFO - Done with setup and verification, moving onto test .. 2026-11-02 09:38:15,336 - INFO - Deleting VN ctest-vn4-62021182 2026-11-02 09:38:15,472 - DEBUG - Response for deleting network () 2026-11-02 09:38:15,472 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/7f634288-991f-4822-8f67-c6fb410b9476 2026-11-02 09:38:15,478 - DEBUG - Response Code: 404 2026-11-02 09:38:15,478 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-11-02 09:38:15,485 - DEBUG - Requesting: http://10.0.0.50:8082/domain/348ed8a9-05a8-4032-a039-1797e1d52a38 2026-11-02 09:38:15,542 - DEBUG - Requesting: http://10.0.0.50:8082/project/b3f03e60-6568-4568-8f7c-10ff33944d7a 2026-11-02 09:38:15,623 - INFO - Validated that VN ctest-vn4-62021182 is not found in API Server 2026-11-02 09:38:15,636 - DEBUG - VN ctest-vn4-62021182 is not present in Agent 10.0.0.50 2026-11-02 09:38:15,636 - INFO - Validated that VN ctest-vn4-62021182 is not in any agent 2026-11-02 09:38:15,659 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-62021182 info 2026-11-02 09:38:15,692 - INFO - Deleted policy ctest-policy1-17517285 2026-11-02 09:38:15,875 - DEBUG - policy ctest-policy1-17517285 is not found in API Server 2026-11-02 09:38:16,144 - DEBUG - No XMPP flaps were noticed during the test