2026-04-28 12:38:44,458 - INFO - Domain Default found not creating 2026-04-28 12:38:44,665 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-38980597 not found, creating it 2026-04-28 12:38:45,229 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-38980597, ID : b0d4796b-08e7-4c85-aeef-7f385a6f319e 2026-04-28 12:38:46,825 - INFO - ================================================================================ 2026-04-28 12:38:46,826 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-04-28 12:38:47,091 - DEBUG - Nothing to compare xmpp stats {'10.0.0.130': {'10.20.0.17': '0'}} with 2026-04-28 12:38:47,091 - INFO - Initial checks done. Running the testcase now 2026-04-28 12:38:47,092 - INFO - 2026-04-28 12:38:47,092 - INFO - ================================================================================ 2026-04-28 12:38:47,092 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-04-28 12:38:47,092 - 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-04-28 12:38:47,377 - DEBUG - Nothing to compare xmpp stats {'10.0.0.130': {'10.20.0.17': '0'}} with 2026-04-28 12:38:47,377 - INFO - Initial checks done. Running the testcase now 2026-04-28 12:38:47,377 - INFO - 2026-04-28 12:38:47,752 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-38980597:ctest-vn4-41280036, 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-38980597:ctest-vn4-41280036, 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-38980597:ctest-vn4-41280036, 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-38980597:ctest-vn4-41280036, 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-04-28 12:38:48,304 - DEBUG - Response for create_network : {'network': {'id': 'fcaeb63f-0f67-4c1b-ad77-e30c230f3b43', 'name': 'ctest-vn4-41280036', 'tenant_id': 'b0d4796b08e74c85aeef7f385a6f319e', 'project_id': 'b0d4796b08e74c85aeef7f385a6f319e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-38980597', 'ctest-vn4-41280036'], 'port_security_enabled': True, 'description': ''}} 2026-04-28 12:38:48,511 - DEBUG - Response for create_subnet : {'subnet': {'id': '4e62e268-4a7f-453b-bd2c-05f2dde0a25f', 'name': '', 'tenant_id': 'b0d4796b08e74c85aeef7f385a6f319e', 'network_id': 'fcaeb63f-0f67-4c1b-ad77-e30c230f3b43', 'ip_version': 4, 'cidr': '13.9.205.0/26', 'allocation_pools': [{'start': '13.9.205.2', 'end': '13.9.205.62'}], 'gateway_ip': '13.9.205.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '13.9.205.2', 'tags': [], 'project_id': 'b0d4796b08e74c85aeef7f385a6f319e'}} 2026-04-28 12:38:48,664 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a94bad66-beb7-4394-8423-30a65e248793', 'name': '', 'tenant_id': 'b0d4796b08e74c85aeef7f385a6f319e', 'network_id': 'fcaeb63f-0f67-4c1b-ad77-e30c230f3b43', 'ip_version': 6, 'cidr': '220a:1d78:2d77:55fe:7950:7639::/96', 'allocation_pools': [{'start': '220a:1d78:2d77:55fe:7950:7639:0:2', 'end': '220a:1d78:2d77:55fe:7950:7639:ffff:fffe'}], 'gateway_ip': '220a:1d78:2d77:55fe:7950:7639:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '220a:1d78:2d77:55fe:7950:7639:0:2', 'tags': [], 'project_id': 'b0d4796b08e74c85aeef7f385a6f319e'}} 2026-04-28 12:38:48,686 - INFO - Created VN ctest-vn4-41280036 2026-04-28 12:38:48,740 - DEBUG - VN ctest-vn4-41280036 UUID is fcaeb63f-0f67-4c1b-ad77-e30c230f3b43 2026-04-28 12:38:48,951 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'fcaeb63f-0f67-4c1b-ad77-e30c230f3b43', 'name': 'ctest-vn4-41280036', 'tenant_id': 'b0d4796b08e74c85aeef7f385a6f319e', 'project_id': 'b0d4796b08e74c85aeef7f385a6f319e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4e62e268-4a7f-453b-bd2c-05f2dde0a25f', 'a94bad66-beb7-4394-8423-30a65e248793'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-38980597', 'ctest-vn4-41280036'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-38980597', 'ctest-policy1-64104338']], 'subnet_ipam': [{'subnet_cidr': '13.9.205.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '220a:1d78:2d77:55fe:7950:7639::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-04-28 12:38:49,115 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2026-04-28 12:38:49,418 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2026-04-28 12:38:49,451 - DEBUG - Requesting: http://10.0.0.130:8082/domain/a5b38a94-9228-4ad4-b5e2-711d788871c0 2026-04-28 12:38:49,466 - DEBUG - Requesting: http://10.0.0.130:8082/project/b0d4796b-08e7-4c85-aeef-7f385a6f319e 2026-04-28 12:38:49,547 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/fcaeb63f-0f67-4c1b-ad77-e30c230f3b43 2026-04-28 12:38:49,563 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/fcaeb63f-0f67-4c1b-ad77-e30c230f3b43 2026-04-28 12:38:49,574 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/f70e2238-6e9e-4525-af75-175885ad815a 2026-04-28 12:38:49,583 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/f70e2238-6e9e-4525-af75-175885ad815a 2026-04-28 12:38:49,591 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/736ddf07-553a-42ce-81d6-02387b102d8b 2026-04-28 12:38:49,599 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-28 12:38:49,599 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/fcaeb63f-0f67-4c1b-ad77-e30c230f3b43 2026-04-28 12:38:49,611 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/f70e2238-6e9e-4525-af75-175885ad815a 2026-04-28 12:38:49,629 - INFO - Verified VN network id 12 for VN fcaeb63f-0f67-4c1b-ad77-e30c230f3b43 2026-04-28 12:38:49,629 - INFO - Verifications in API Server for VN ctest-vn4-41280036 passed 2026-04-28 12:38:49,630 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/fcaeb63f-0f67-4c1b-ad77-e30c230f3b43 2026-04-28 12:38:49,641 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/f70e2238-6e9e-4525-af75-175885ad815a 2026-04-28 12:38:49,649 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/f70e2238-6e9e-4525-af75-175885ad815a 2026-04-28 12:38:49,660 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/736ddf07-553a-42ce-81d6-02387b102d8b 2026-04-28 12:38:49,676 - DEBUG - Control-node 10.0.0.130 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-38980597:ctest-vn4-41280036', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-38980597', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18207690725463116827', 'uuid-lslong': '12499708932057414467'}, 'enable': 'true', 'created': '2026-04-28T12:38:48', 'last-modified': '2026-04-28T12:38:48', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.751505'} 2026-04-28 12:38:49,685 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-28 12:38:49,685 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-41280036 passed 2026-04-28 12:38:49,685 - DEBUG - ====Verifying policy data for ctest-vn4-41280036 in API_Server ====== 2026-04-28 12:38:49,685 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2026-04-28 12:38:49,692 - DEBUG - Requesting: http://10.0.0.130:8082/domain/a5b38a94-9228-4ad4-b5e2-711d788871c0 2026-04-28 12:38:49,706 - DEBUG - Requesting: http://10.0.0.130:8082/project/b0d4796b-08e7-4c85-aeef-7f385a6f319e 2026-04-28 12:38:49,784 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/fcaeb63f-0f67-4c1b-ad77-e30c230f3b43 2026-04-28 12:38:49,794 - DEBUG - ==>Verifying data for policy with id: 393db9d8-e588-47d0-932b-f72b7671d453, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-38980597', 'ctest-policy1-64104338'] 2026-04-28 12:38:49,794 - INFO - VN ctest-vn4-41280036 Policy verification: verify_vn_policy_in_api_server, status: True 2026-04-28 12:38:49,794 - DEBUG - Verifying the vn in opserver 2026-04-28 12:38:49,794 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-38980597:ctest-vn4-41280036 virtual network link through opserver 10.0.0.130 2026-04-28 12:38:49,795 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks 2026-04-28 12:38:50,090 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks 2026-04-28 12:38:50,161 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-38980597:ctest-vn4-41280036', 'href': 'http://10.0.0.130:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-38980597:ctest-vn4-41280036?flat'} 2026-04-28 12:38:50,161 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-38980597:ctest-vn4-41280036 is found in opserver 2026-04-28 12:38:50,171 - DEBUG - Do not have enough data to verify VN in agent 2026-04-28 12:38:50,176 - DEBUG - VRF ids for VN ctest-vn4-41280036: {} 2026-04-28 12:38:50,176 - DEBUG - ====Verifying data for ctest-policy1-64104338 in API_Server ====== 2026-04-28 12:38:50,176 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2026-04-28 12:38:50,182 - DEBUG - Requesting: http://10.0.0.130:8082/domain/a5b38a94-9228-4ad4-b5e2-711d788871c0 2026-04-28 12:38:50,195 - DEBUG - Requesting: http://10.0.0.130:8082/project/b0d4796b-08e7-4c85-aeef-7f385a6f319e 2026-04-28 12:38:50,271 - DEBUG - Requesting: http://10.0.0.130:8082/network-policy/393db9d8-e588-47d0-932b-f72b7671d453 2026-04-28 12:38:50,281 - INFO - Verified policy ctest-policy1-64104338 in API Server, Result: True 2026-04-28 12:38:50,281 - INFO - Done with setup and verification, moving onto test .. 2026-04-28 12:38:50,289 - INFO - Deleting VN ctest-vn4-41280036 2026-04-28 12:38:50,418 - DEBUG - Response for deleting network () 2026-04-28 12:38:50,418 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/f70e2238-6e9e-4525-af75-175885ad815a 2026-04-28 12:38:50,423 - DEBUG - Response Code: 404 2026-04-28 12:38:50,423 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2026-04-28 12:38:50,429 - DEBUG - Requesting: http://10.0.0.130:8082/domain/a5b38a94-9228-4ad4-b5e2-711d788871c0 2026-04-28 12:38:50,480 - DEBUG - Requesting: http://10.0.0.130:8082/project/b0d4796b-08e7-4c85-aeef-7f385a6f319e 2026-04-28 12:38:50,554 - INFO - Validated that VN ctest-vn4-41280036 is not found in API Server 2026-04-28 12:38:50,563 - DEBUG - VN ctest-vn4-41280036 is not present in Agent 10.0.0.130 2026-04-28 12:38:50,563 - INFO - Validated that VN ctest-vn4-41280036 is not in any agent 2026-04-28 12:38:50,576 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-41280036 info 2026-04-28 12:38:50,604 - INFO - Deleted policy ctest-policy1-64104338 2026-04-28 12:38:50,767 - DEBUG - policy ctest-policy1-64104338 is not found in API Server 2026-04-28 12:38:51,026 - DEBUG - No XMPP flaps were noticed during the test