2026-02-12 02:14:56,254 - INFO - Domain Default found not creating 2026-02-12 02:14:56,445 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-53279747 not found, creating it 2026-02-12 02:14:56,925 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-53279747, ID : 2e94ddaf-a210-4ad4-9ca2-f0418300a69d 2026-02-12 02:14:58,573 - INFO - ================================================================================ 2026-02-12 02:14:58,574 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-12 02:14:58,844 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.209': '0'}} with 2026-02-12 02:14:58,845 - INFO - Initial checks done. Running the testcase now 2026-02-12 02:14:58,845 - INFO - 2026-02-12 02:14:58,845 - INFO - ================================================================================ 2026-02-12 02:14:58,845 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-12 02:14:58,845 - 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-12 02:14:59,138 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.209': '0'}} with 2026-02-12 02:14:59,138 - INFO - Initial checks done. Running the testcase now 2026-02-12 02:14:59,139 - INFO - 2026-02-12 02:14:59,538 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-53279747:ctest-vn4-76700738, 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-53279747:ctest-vn4-76700738, 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-53279747:ctest-vn4-76700738, 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-53279747:ctest-vn4-76700738, 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-12 02:15:00,064 - DEBUG - Response for create_network : {'network': {'id': '0c0dcf33-40cf-4439-b1d4-09d9846367dc', 'name': 'ctest-vn4-76700738', 'tenant_id': '2e94ddafa2104ad49ca2f0418300a69d', 'project_id': '2e94ddafa2104ad49ca2f0418300a69d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-53279747', 'ctest-vn4-76700738'], 'port_security_enabled': True, 'description': ''}} 2026-02-12 02:15:00,252 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e0dd7f49-499a-481a-a57a-af6eb81d872c', 'name': '', 'tenant_id': '2e94ddafa2104ad49ca2f0418300a69d', 'network_id': '0c0dcf33-40cf-4439-b1d4-09d9846367dc', 'ip_version': 4, 'cidr': '66.105.74.0/26', 'allocation_pools': [{'start': '66.105.74.2', 'end': '66.105.74.62'}], 'gateway_ip': '66.105.74.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '66.105.74.2', 'tags': [], 'project_id': '2e94ddafa2104ad49ca2f0418300a69d'}} 2026-02-12 02:15:00,467 - DEBUG - Response for create_subnet : {'subnet': {'id': '5a02bbb4-361d-46f7-858d-e227a7a66ceb', 'name': '', 'tenant_id': '2e94ddafa2104ad49ca2f0418300a69d', 'network_id': '0c0dcf33-40cf-4439-b1d4-09d9846367dc', 'ip_version': 6, 'cidr': '2ba4:dddf:7b23:b56f:d434:ad1c::/96', 'allocation_pools': [{'start': '2ba4:dddf:7b23:b56f:d434:ad1c:0:2', 'end': '2ba4:dddf:7b23:b56f:d434:ad1c:ffff:fffe'}], 'gateway_ip': '2ba4:dddf:7b23:b56f:d434:ad1c:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2ba4:dddf:7b23:b56f:d434:ad1c:0:2', 'tags': [], 'project_id': '2e94ddafa2104ad49ca2f0418300a69d'}} 2026-02-12 02:15:00,488 - INFO - Created VN ctest-vn4-76700738 2026-02-12 02:15:00,543 - DEBUG - VN ctest-vn4-76700738 UUID is 0c0dcf33-40cf-4439-b1d4-09d9846367dc 2026-02-12 02:15:00,760 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0c0dcf33-40cf-4439-b1d4-09d9846367dc', 'name': 'ctest-vn4-76700738', 'tenant_id': '2e94ddafa2104ad49ca2f0418300a69d', 'project_id': '2e94ddafa2104ad49ca2f0418300a69d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e0dd7f49-499a-481a-a57a-af6eb81d872c', '5a02bbb4-361d-46f7-858d-e227a7a66ceb'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-53279747', 'ctest-vn4-76700738'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-53279747', 'ctest-policy1-40728732']], 'subnet_ipam': [{'subnet_cidr': '66.105.74.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2ba4:dddf:7b23:b56f:d434:ad1c::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-12 02:15:00,923 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2026-02-12 02:15:01,262 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2026-02-12 02:15:01,296 - DEBUG - Requesting: http://10.0.0.19:8082/domain/f07acf09-857e-4488-a4a9-04717b0b3406 2026-02-12 02:15:01,309 - DEBUG - Requesting: http://10.0.0.19:8082/project/2e94ddaf-a210-4ad4-9ca2-f0418300a69d 2026-02-12 02:15:01,386 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/0c0dcf33-40cf-4439-b1d4-09d9846367dc 2026-02-12 02:15:01,399 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/0c0dcf33-40cf-4439-b1d4-09d9846367dc 2026-02-12 02:15:01,409 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/4a227fc9-bffc-404f-9538-0bfa738cc95d 2026-02-12 02:15:01,417 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/4a227fc9-bffc-404f-9538-0bfa738cc95d 2026-02-12 02:15:01,424 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/fd289638-2c89-41ad-9ad3-8df2e40b834f 2026-02-12 02:15:01,431 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-12 02:15:01,431 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/0c0dcf33-40cf-4439-b1d4-09d9846367dc 2026-02-12 02:15:01,442 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/4a227fc9-bffc-404f-9538-0bfa738cc95d 2026-02-12 02:15:01,459 - INFO - Verified VN network id 11 for VN 0c0dcf33-40cf-4439-b1d4-09d9846367dc 2026-02-12 02:15:01,459 - INFO - Verifications in API Server for VN ctest-vn4-76700738 passed 2026-02-12 02:15:01,459 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/0c0dcf33-40cf-4439-b1d4-09d9846367dc 2026-02-12 02:15:01,470 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/4a227fc9-bffc-404f-9538-0bfa738cc95d 2026-02-12 02:15:01,478 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/4a227fc9-bffc-404f-9538-0bfa738cc95d 2026-02-12 02:15:01,487 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/fd289638-2c89-41ad-9ad3-8df2e40b834f 2026-02-12 02:15:01,500 - DEBUG - Control-node 10.0.0.19 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-53279747:ctest-vn4-76700738', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-53279747', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '868578122189980729', 'uuid-lslong': '12813877669609564124'}, 'enable': 'true', 'created': '2026-02-12T02:15:00', 'last-modified': '2026-02-12T02:15:00', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.766593'} 2026-02-12 02:15:01,506 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-12 02:15:01,506 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-76700738 passed 2026-02-12 02:15:01,506 - DEBUG - ====Verifying policy data for ctest-vn4-76700738 in API_Server ====== 2026-02-12 02:15:01,507 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2026-02-12 02:15:01,513 - DEBUG - Requesting: http://10.0.0.19:8082/domain/f07acf09-857e-4488-a4a9-04717b0b3406 2026-02-12 02:15:01,523 - DEBUG - Requesting: http://10.0.0.19:8082/project/2e94ddaf-a210-4ad4-9ca2-f0418300a69d 2026-02-12 02:15:01,600 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/0c0dcf33-40cf-4439-b1d4-09d9846367dc 2026-02-12 02:15:01,614 - DEBUG - ==>Verifying data for policy with id: 729ebd29-c803-48d1-b31b-62f82246937b, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-53279747', 'ctest-policy1-40728732'] 2026-02-12 02:15:01,614 - INFO - VN ctest-vn4-76700738 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-12 02:15:01,614 - DEBUG - Verifying the vn in opserver 2026-02-12 02:15:01,614 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-53279747:ctest-vn4-76700738 virtual network link through opserver 10.0.0.19 2026-02-12 02:15:01,614 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2026-02-12 02:15:01,949 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2026-02-12 02:15:02,026 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-53279747:ctest-vn4-76700738', 'href': 'http://10.0.0.19:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-53279747:ctest-vn4-76700738?flat'} 2026-02-12 02:15:02,026 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-53279747:ctest-vn4-76700738 is found in opserver 2026-02-12 02:15:02,036 - DEBUG - Do not have enough data to verify VN in agent 2026-02-12 02:15:02,040 - DEBUG - VRF ids for VN ctest-vn4-76700738: {} 2026-02-12 02:15:02,041 - DEBUG - ====Verifying data for ctest-policy1-40728732 in API_Server ====== 2026-02-12 02:15:02,041 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2026-02-12 02:15:02,046 - DEBUG - Requesting: http://10.0.0.19:8082/domain/f07acf09-857e-4488-a4a9-04717b0b3406 2026-02-12 02:15:02,057 - DEBUG - Requesting: http://10.0.0.19:8082/project/2e94ddaf-a210-4ad4-9ca2-f0418300a69d 2026-02-12 02:15:02,130 - DEBUG - Requesting: http://10.0.0.19:8082/network-policy/729ebd29-c803-48d1-b31b-62f82246937b 2026-02-12 02:15:02,140 - INFO - Verified policy ctest-policy1-40728732 in API Server, Result: True 2026-02-12 02:15:02,141 - INFO - Done with setup and verification, moving onto test .. 2026-02-12 02:15:02,149 - INFO - Deleting VN ctest-vn4-76700738 2026-02-12 02:15:02,266 - DEBUG - Response for deleting network () 2026-02-12 02:15:02,266 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/4a227fc9-bffc-404f-9538-0bfa738cc95d 2026-02-12 02:15:02,272 - DEBUG - Response Code: 404 2026-02-12 02:15:02,272 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2026-02-12 02:15:02,277 - DEBUG - Requesting: http://10.0.0.19:8082/domain/f07acf09-857e-4488-a4a9-04717b0b3406 2026-02-12 02:15:02,333 - DEBUG - Requesting: http://10.0.0.19:8082/project/2e94ddaf-a210-4ad4-9ca2-f0418300a69d 2026-02-12 02:15:02,408 - INFO - Validated that VN ctest-vn4-76700738 is not found in API Server 2026-02-12 02:15:02,421 - DEBUG - VN ctest-vn4-76700738 is not present in Agent 10.0.0.19 2026-02-12 02:15:02,422 - INFO - Validated that VN ctest-vn4-76700738 is not in any agent 2026-02-12 02:15:02,436 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-76700738 info 2026-02-12 02:15:02,461 - INFO - Deleted policy ctest-policy1-40728732 2026-02-12 02:15:02,627 - DEBUG - policy ctest-policy1-40728732 is not found in API Server 2026-02-12 02:15:02,880 - DEBUG - No XMPP flaps were noticed during the test 2026-02-12 02:15:02,881 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-02-12 02:15:02,881 - INFO - -------------------------------------------------------------------------------- 2026-02-12 02:15:03,168 - DEBUG - No XMPP flaps were noticed during the test 2026-02-12 02:15:03,168 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2026-02-12 02:15:03,168 - INFO - -------------------------------------------------------------------------------- 2026-02-12 02:15:03,922 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-53279747, ID : 2e94ddaf-a210-4ad4-9ca2-f0418300a69d