2026-01-28 16:45:33,461 - INFO - Domain Default found not creating 2026-01-28 16:45:33,653 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-43228470 not found, creating it 2026-01-28 16:45:34,129 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-43228470, ID : 62fabc99-ade0-4fda-b51a-a0a97fe46f08 2026-01-28 16:45:35,701 - INFO - ================================================================================ 2026-01-28 16:45:35,701 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-28 16:45:35,961 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.254': '0'}} with 2026-01-28 16:45:35,961 - INFO - Initial checks done. Running the testcase now 2026-01-28 16:45:35,961 - INFO - 2026-01-28 16:45:35,961 - INFO - ================================================================================ 2026-01-28 16:45:35,961 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-28 16:45:35,961 - 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-28 16:45:36,263 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.254': '0'}} with 2026-01-28 16:45:36,263 - INFO - Initial checks done. Running the testcase now 2026-01-28 16:45:36,263 - INFO - 2026-01-28 16:45:36,638 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-43228470:ctest-vn4-86198613, 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-43228470:ctest-vn4-86198613, 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-43228470:ctest-vn4-86198613, 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-43228470:ctest-vn4-86198613, 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-28 16:45:37,172 - DEBUG - Response for create_network : {'network': {'id': '7a517e62-9fde-4cfd-8f9f-60ce45e14c92', 'name': 'ctest-vn4-86198613', 'tenant_id': '62fabc99ade04fdab51aa0a97fe46f08', 'project_id': '62fabc99ade04fdab51aa0a97fe46f08', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-43228470', 'ctest-vn4-86198613'], 'port_security_enabled': True, 'description': ''}} 2026-01-28 16:45:37,394 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f0460c46-659b-43d5-86b5-ae4b0d96527a', 'name': '', 'tenant_id': '62fabc99ade04fdab51aa0a97fe46f08', 'network_id': '7a517e62-9fde-4cfd-8f9f-60ce45e14c92', 'ip_version': 4, 'cidr': '8.129.100.64/26', 'allocation_pools': [{'start': '8.129.100.66', 'end': '8.129.100.126'}], 'gateway_ip': '8.129.100.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '8.129.100.66', 'tags': [], 'project_id': '62fabc99ade04fdab51aa0a97fe46f08'}} 2026-01-28 16:45:37,578 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd6ecce50-ec2a-4e78-8b8b-213f18fb33b4', 'name': '', 'tenant_id': '62fabc99ade04fdab51aa0a97fe46f08', 'network_id': '7a517e62-9fde-4cfd-8f9f-60ce45e14c92', 'ip_version': 6, 'cidr': '2841:f05f:8421:6672:9329:10d7::/96', 'allocation_pools': [{'start': '2841:f05f:8421:6672:9329:10d7:0:2', 'end': '2841:f05f:8421:6672:9329:10d7:ffff:fffe'}], 'gateway_ip': '2841:f05f:8421:6672:9329:10d7:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2841:f05f:8421:6672:9329:10d7:0:2', 'tags': [], 'project_id': '62fabc99ade04fdab51aa0a97fe46f08'}} 2026-01-28 16:45:37,600 - INFO - Created VN ctest-vn4-86198613 2026-01-28 16:45:37,654 - DEBUG - VN ctest-vn4-86198613 UUID is 7a517e62-9fde-4cfd-8f9f-60ce45e14c92 2026-01-28 16:45:37,906 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7a517e62-9fde-4cfd-8f9f-60ce45e14c92', 'name': 'ctest-vn4-86198613', 'tenant_id': '62fabc99ade04fdab51aa0a97fe46f08', 'project_id': '62fabc99ade04fdab51aa0a97fe46f08', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f0460c46-659b-43d5-86b5-ae4b0d96527a', 'd6ecce50-ec2a-4e78-8b8b-213f18fb33b4'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-43228470', 'ctest-vn4-86198613'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-43228470', 'ctest-policy1-41498054']], 'subnet_ipam': [{'subnet_cidr': '8.129.100.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2841:f05f:8421:6672:9329:10d7::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-01-28 16:45:38,078 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-01-28 16:45:38,380 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-01-28 16:45:38,419 - DEBUG - Requesting: http://10.0.0.50:8082/domain/b7596d14-9252-4884-981b-3fc17ef7553c 2026-01-28 16:45:38,436 - DEBUG - Requesting: http://10.0.0.50:8082/project/62fabc99-ade0-4fda-b51a-a0a97fe46f08 2026-01-28 16:45:38,512 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/7a517e62-9fde-4cfd-8f9f-60ce45e14c92 2026-01-28 16:45:38,528 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/7a517e62-9fde-4cfd-8f9f-60ce45e14c92 2026-01-28 16:45:38,543 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/095c46fd-ef96-4ded-a245-47749760f46f 2026-01-28 16:45:38,555 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/095c46fd-ef96-4ded-a245-47749760f46f 2026-01-28 16:45:38,565 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/4be09ef5-94f1-45e4-a143-dbc25aee995e 2026-01-28 16:45:38,573 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-28 16:45:38,573 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/7a517e62-9fde-4cfd-8f9f-60ce45e14c92 2026-01-28 16:45:38,583 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/095c46fd-ef96-4ded-a245-47749760f46f 2026-01-28 16:45:38,599 - INFO - Verified VN network id 11 for VN 7a517e62-9fde-4cfd-8f9f-60ce45e14c92 2026-01-28 16:45:38,599 - INFO - Verifications in API Server for VN ctest-vn4-86198613 passed 2026-01-28 16:45:38,600 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/7a517e62-9fde-4cfd-8f9f-60ce45e14c92 2026-01-28 16:45:38,611 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/095c46fd-ef96-4ded-a245-47749760f46f 2026-01-28 16:45:38,619 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/095c46fd-ef96-4ded-a245-47749760f46f 2026-01-28 16:45:38,637 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/4be09ef5-94f1-45e4-a143-dbc25aee995e 2026-01-28 16:45:38,653 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-43228470:ctest-vn4-86198613', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-43228470', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8813964907794812157', 'uuid-lslong': '10349096907772611730'}, 'enable': 'true', 'created': '2026-01-28T16:45:37', 'last-modified': '2026-01-28T16:45:37', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.795275'} 2026-01-28 16:45:38,660 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-28 16:45:38,661 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-86198613 passed 2026-01-28 16:45:38,661 - DEBUG - ====Verifying policy data for ctest-vn4-86198613 in API_Server ====== 2026-01-28 16:45:38,661 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-01-28 16:45:38,667 - DEBUG - Requesting: http://10.0.0.50:8082/domain/b7596d14-9252-4884-981b-3fc17ef7553c 2026-01-28 16:45:38,679 - DEBUG - Requesting: http://10.0.0.50:8082/project/62fabc99-ade0-4fda-b51a-a0a97fe46f08 2026-01-28 16:45:38,759 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/7a517e62-9fde-4cfd-8f9f-60ce45e14c92 2026-01-28 16:45:38,772 - DEBUG - ==>Verifying data for policy with id: 42469c62-8392-4b84-a5c0-d8899535de47, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-43228470', 'ctest-policy1-41498054'] 2026-01-28 16:45:38,772 - INFO - VN ctest-vn4-86198613 Policy verification: verify_vn_policy_in_api_server, status: True 2026-01-28 16:45:38,772 - DEBUG - Verifying the vn in opserver 2026-01-28 16:45:38,772 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-43228470:ctest-vn4-86198613 virtual network link through opserver 10.0.0.50 2026-01-28 16:45:38,772 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-01-28 16:45:39,067 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-01-28 16:45:39,147 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-43228470:ctest-vn4-86198613', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-43228470:ctest-vn4-86198613?flat'} 2026-01-28 16:45:39,147 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-43228470:ctest-vn4-86198613 is found in opserver 2026-01-28 16:45:39,159 - DEBUG - Do not have enough data to verify VN in agent 2026-01-28 16:45:39,164 - DEBUG - VRF ids for VN ctest-vn4-86198613: {} 2026-01-28 16:45:39,164 - DEBUG - ====Verifying data for ctest-policy1-41498054 in API_Server ====== 2026-01-28 16:45:39,165 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-01-28 16:45:39,171 - DEBUG - Requesting: http://10.0.0.50:8082/domain/b7596d14-9252-4884-981b-3fc17ef7553c 2026-01-28 16:45:39,184 - DEBUG - Requesting: http://10.0.0.50:8082/project/62fabc99-ade0-4fda-b51a-a0a97fe46f08 2026-01-28 16:45:39,259 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/42469c62-8392-4b84-a5c0-d8899535de47 2026-01-28 16:45:39,270 - INFO - Verified policy ctest-policy1-41498054 in API Server, Result: True 2026-01-28 16:45:39,270 - INFO - Done with setup and verification, moving onto test .. 2026-01-28 16:45:39,278 - INFO - Deleting VN ctest-vn4-86198613 2026-01-28 16:45:39,449 - DEBUG - Response for deleting network () 2026-01-28 16:45:39,449 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/095c46fd-ef96-4ded-a245-47749760f46f 2026-01-28 16:45:39,455 - DEBUG - Response Code: 404 2026-01-28 16:45:39,455 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-01-28 16:45:39,462 - DEBUG - Requesting: http://10.0.0.50:8082/domain/b7596d14-9252-4884-981b-3fc17ef7553c 2026-01-28 16:45:39,520 - DEBUG - Requesting: http://10.0.0.50:8082/project/62fabc99-ade0-4fda-b51a-a0a97fe46f08 2026-01-28 16:45:39,597 - INFO - Validated that VN ctest-vn4-86198613 is not found in API Server 2026-01-28 16:45:39,611 - DEBUG - VN ctest-vn4-86198613 is not present in Agent 10.0.0.50 2026-01-28 16:45:39,611 - INFO - Validated that VN ctest-vn4-86198613 is not in any agent 2026-01-28 16:45:39,632 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-86198613 info 2026-01-28 16:45:39,662 - INFO - Deleted policy ctest-policy1-41498054 2026-01-28 16:45:39,830 - DEBUG - policy ctest-policy1-41498054 is not found in API Server 2026-01-28 16:45:40,087 - DEBUG - No XMPP flaps were noticed during the test
2026-01-28 16:45:40,087 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-01-28 16:45:40,087 - INFO - -------------------------------------------------------------------------------- 2026-01-28 16:45:40,384 - DEBUG - No XMPP flaps were noticed during the test
2026-01-28 16:45:40,384 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-01-28 16:45:40,384 - INFO - -------------------------------------------------------------------------------- 2026-01-28 16:45:41,123 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-43228470, ID : 62fabc99-ade0-4fda-b51a-a0a97fe46f08