2026-04-22 15:55:29,891 - INFO - Domain Default found not creating 2026-04-22 15:55:30,070 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-55059249 not found, creating it 2026-04-22 15:55:30,536 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-55059249, ID : 4ea2be63-b3fa-42f8-b4a6-4613453544cd 2026-04-22 15:55:32,088 - INFO - ================================================================================ 2026-04-22 15:55:32,088 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-04-22 15:55:32,346 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.17': '0'}} with 2026-04-22 15:55:32,346 - INFO - Initial checks done. Running the testcase now 2026-04-22 15:55:32,346 - INFO - 2026-04-22 15:55:32,347 - INFO - ================================================================================ 2026-04-22 15:55:32,347 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-04-22 15:55:32,347 - 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-22 15:55:32,637 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.17': '0'}} with 2026-04-22 15:55:32,637 - INFO - Initial checks done. Running the testcase now 2026-04-22 15:55:32,637 - INFO - 2026-04-22 15:55:33,003 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-55059249:ctest-vn4-04929062, 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-55059249:ctest-vn4-04929062, 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-55059249:ctest-vn4-04929062, 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-55059249:ctest-vn4-04929062, 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-22 15:55:33,679 - DEBUG - Response for create_network : {'network': {'id': '47cb536a-0eaf-4c25-9a2f-8a292f84e16a', 'name': 'ctest-vn4-04929062', 'tenant_id': '4ea2be63b3fa42f8b4a64613453544cd', 'project_id': '4ea2be63b3fa42f8b4a64613453544cd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-55059249', 'ctest-vn4-04929062'], 'port_security_enabled': True, 'description': ''}} 2026-04-22 15:55:33,866 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f940567a-3d29-4879-bef0-24d551282f70', 'name': '', 'tenant_id': '4ea2be63b3fa42f8b4a64613453544cd', 'network_id': '47cb536a-0eaf-4c25-9a2f-8a292f84e16a', 'ip_version': 4, 'cidr': '112.212.239.0/26', 'allocation_pools': [{'start': '112.212.239.2', 'end': '112.212.239.62'}], 'gateway_ip': '112.212.239.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '112.212.239.2', 'tags': [], 'project_id': '4ea2be63b3fa42f8b4a64613453544cd'}} 2026-04-22 15:55:34,048 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd037ad76-8772-4609-bf63-bc740e30ed89', 'name': '', 'tenant_id': '4ea2be63b3fa42f8b4a64613453544cd', 'network_id': '47cb536a-0eaf-4c25-9a2f-8a292f84e16a', 'ip_version': 6, 'cidr': '3412:c0ba:2c3c:4c31:9607:5505::/96', 'allocation_pools': [{'start': '3412:c0ba:2c3c:4c31:9607:5505:0:2', 'end': '3412:c0ba:2c3c:4c31:9607:5505:ffff:fffe'}], 'gateway_ip': '3412:c0ba:2c3c:4c31:9607:5505:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3412:c0ba:2c3c:4c31:9607:5505:0:2', 'tags': [], 'project_id': '4ea2be63b3fa42f8b4a64613453544cd'}} 2026-04-22 15:55:34,074 - INFO - Created VN ctest-vn4-04929062 2026-04-22 15:55:34,128 - DEBUG - VN ctest-vn4-04929062 UUID is 47cb536a-0eaf-4c25-9a2f-8a292f84e16a 2026-04-22 15:55:34,317 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '47cb536a-0eaf-4c25-9a2f-8a292f84e16a', 'name': 'ctest-vn4-04929062', 'tenant_id': '4ea2be63b3fa42f8b4a64613453544cd', 'project_id': '4ea2be63b3fa42f8b4a64613453544cd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f940567a-3d29-4879-bef0-24d551282f70', 'd037ad76-8772-4609-bf63-bc740e30ed89'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-55059249', 'ctest-vn4-04929062'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-55059249', 'ctest-policy1-85171946']], 'subnet_ipam': [{'subnet_cidr': '112.212.239.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3412:c0ba:2c3c:4c31:9607:5505::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-04-22 15:55:34,472 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-04-22 15:55:34,775 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-04-22 15:55:34,811 - DEBUG - Requesting: http://10.0.0.249:8082/domain/c8c6278b-eebf-4dff-9adc-a925962521ad 2026-04-22 15:55:34,823 - DEBUG - Requesting: http://10.0.0.249:8082/project/4ea2be63-b3fa-42f8-b4a6-4613453544cd 2026-04-22 15:55:34,893 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/47cb536a-0eaf-4c25-9a2f-8a292f84e16a 2026-04-22 15:55:34,904 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/47cb536a-0eaf-4c25-9a2f-8a292f84e16a 2026-04-22 15:55:34,913 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/e9ae2c81-3b0e-409d-afd4-8d3c9478dfdf 2026-04-22 15:55:34,919 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/e9ae2c81-3b0e-409d-afd4-8d3c9478dfdf 2026-04-22 15:55:34,926 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/9c20f989-9370-4976-9efa-977556ec302e 2026-04-22 15:55:34,931 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-22 15:55:34,932 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/47cb536a-0eaf-4c25-9a2f-8a292f84e16a 2026-04-22 15:55:34,940 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/e9ae2c81-3b0e-409d-afd4-8d3c9478dfdf 2026-04-22 15:55:34,952 - INFO - Verified VN network id 11 for VN 47cb536a-0eaf-4c25-9a2f-8a292f84e16a 2026-04-22 15:55:34,952 - INFO - Verifications in API Server for VN ctest-vn4-04929062 passed 2026-04-22 15:55:34,952 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/47cb536a-0eaf-4c25-9a2f-8a292f84e16a 2026-04-22 15:55:34,961 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/e9ae2c81-3b0e-409d-afd4-8d3c9478dfdf 2026-04-22 15:55:34,968 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/e9ae2c81-3b0e-409d-afd4-8d3c9478dfdf 2026-04-22 15:55:34,974 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/9c20f989-9370-4976-9efa-977556ec302e 2026-04-22 15:55:34,985 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-55059249:ctest-vn4-04929062', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-55059249', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5173320311943154725', 'uuid-lslong': '11110250715241832810'}, 'enable': 'true', 'created': '2026-04-22T15:55:33', 'last-modified': '2026-04-22T15:55:34', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.685645'} 2026-04-22 15:55:34,994 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-22 15:55:34,994 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-04929062 passed 2026-04-22 15:55:34,995 - DEBUG - ====Verifying policy data for ctest-vn4-04929062 in API_Server ====== 2026-04-22 15:55:34,995 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-04-22 15:55:35,001 - DEBUG - Requesting: http://10.0.0.249:8082/domain/c8c6278b-eebf-4dff-9adc-a925962521ad 2026-04-22 15:55:35,013 - DEBUG - Requesting: http://10.0.0.249:8082/project/4ea2be63-b3fa-42f8-b4a6-4613453544cd 2026-04-22 15:55:35,079 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/47cb536a-0eaf-4c25-9a2f-8a292f84e16a 2026-04-22 15:55:35,089 - DEBUG - ==>Verifying data for policy with id: 9c5162a1-ac85-414a-b0df-3d481ee28e53, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-55059249', 'ctest-policy1-85171946'] 2026-04-22 15:55:35,089 - INFO - VN ctest-vn4-04929062 Policy verification: verify_vn_policy_in_api_server, status: True 2026-04-22 15:55:35,089 - DEBUG - Verifying the vn in opserver 2026-04-22 15:55:35,089 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-55059249:ctest-vn4-04929062 virtual network link through opserver 10.0.0.249 2026-04-22 15:55:35,089 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2026-04-22 15:55:35,387 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2026-04-22 15:55:35,447 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-55059249:ctest-vn4-04929062', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-55059249:ctest-vn4-04929062?flat'} 2026-04-22 15:55:35,447 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-55059249:ctest-vn4-04929062 is found in opserver 2026-04-22 15:55:35,459 - DEBUG - Do not have enough data to verify VN in agent 2026-04-22 15:55:35,464 - DEBUG - VRF ids for VN ctest-vn4-04929062: {} 2026-04-22 15:55:35,464 - DEBUG - ====Verifying data for ctest-policy1-85171946 in API_Server ====== 2026-04-22 15:55:35,464 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-04-22 15:55:35,470 - DEBUG - Requesting: http://10.0.0.249:8082/domain/c8c6278b-eebf-4dff-9adc-a925962521ad 2026-04-22 15:55:35,479 - DEBUG - Requesting: http://10.0.0.249:8082/project/4ea2be63-b3fa-42f8-b4a6-4613453544cd 2026-04-22 15:55:35,547 - DEBUG - Requesting: http://10.0.0.249:8082/network-policy/9c5162a1-ac85-414a-b0df-3d481ee28e53 2026-04-22 15:55:35,556 - INFO - Verified policy ctest-policy1-85171946 in API Server, Result: True 2026-04-22 15:55:35,556 - INFO - Done with setup and verification, moving onto test .. 2026-04-22 15:55:35,565 - INFO - Deleting VN ctest-vn4-04929062 2026-04-22 15:55:35,706 - DEBUG - Response for deleting network () 2026-04-22 15:55:35,707 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/e9ae2c81-3b0e-409d-afd4-8d3c9478dfdf 2026-04-22 15:55:35,711 - DEBUG - Response Code: 404 2026-04-22 15:55:35,711 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-04-22 15:55:35,715 - DEBUG - Requesting: http://10.0.0.249:8082/domain/c8c6278b-eebf-4dff-9adc-a925962521ad 2026-04-22 15:55:35,768 - DEBUG - Requesting: http://10.0.0.249:8082/project/4ea2be63-b3fa-42f8-b4a6-4613453544cd 2026-04-22 15:55:35,837 - INFO - Validated that VN ctest-vn4-04929062 is not found in API Server 2026-04-22 15:55:35,845 - DEBUG - VN ctest-vn4-04929062 is not present in Agent 10.0.0.249 2026-04-22 15:55:35,845 - INFO - Validated that VN ctest-vn4-04929062 is not in any agent 2026-04-22 15:55:35,858 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-04929062 info 2026-04-22 15:55:35,883 - INFO - Deleted policy ctest-policy1-85171946 2026-04-22 15:55:36,047 - DEBUG - policy ctest-policy1-85171946 is not found in API Server 2026-04-22 15:55:36,304 - DEBUG - No XMPP flaps were noticed during the test