2026-05-06 10:04:29,087 - INFO - Domain Default found not creating 2026-05-06 10:04:29,260 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-11110659 not found, creating it 2026-05-06 10:04:29,750 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-11110659, ID : 3749e8f4-a754-4ef0-9433-a64475df66d5 2026-05-06 10:04:31,249 - INFO - ================================================================================ 2026-05-06 10:04:31,249 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-05-06 10:04:31,505 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2026-05-06 10:04:31,505 - INFO - Initial checks done. Running the testcase now 2026-05-06 10:04:31,505 - INFO - 2026-05-06 10:04:31,505 - INFO - ================================================================================ 2026-05-06 10:04:31,505 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-05-06 10:04:31,505 - 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-05-06 10:04:31,791 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2026-05-06 10:04:31,791 - INFO - Initial checks done. Running the testcase now 2026-05-06 10:04:31,791 - INFO - 2026-05-06 10:04:32,154 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-11110659:ctest-vn4-39267091, 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-11110659:ctest-vn4-39267091, 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-11110659:ctest-vn4-39267091, 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-11110659:ctest-vn4-39267091, 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-05-06 10:04:32,670 - DEBUG - Response for create_network : {'network': {'id': '0f365fee-5596-456d-ab85-d83df95558cb', 'name': 'ctest-vn4-39267091', 'tenant_id': '3749e8f4a7544ef09433a64475df66d5', 'project_id': '3749e8f4a7544ef09433a64475df66d5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-11110659', 'ctest-vn4-39267091'], 'port_security_enabled': True, 'description': ''}} 2026-05-06 10:04:32,861 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ade6b34e-0b4f-4efc-8861-024c280ad9fb', 'name': '', 'tenant_id': '3749e8f4a7544ef09433a64475df66d5', 'network_id': '0f365fee-5596-456d-ab85-d83df95558cb', 'ip_version': 4, 'cidr': '205.151.205.0/26', 'allocation_pools': [{'start': '205.151.205.2', 'end': '205.151.205.62'}], 'gateway_ip': '205.151.205.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '205.151.205.2', 'tags': [], 'project_id': '3749e8f4a7544ef09433a64475df66d5'}} 2026-05-06 10:04:33,027 - DEBUG - Response for create_subnet : {'subnet': {'id': '67c816c8-bbd2-46db-b808-9a09ff41760c', 'name': '', 'tenant_id': '3749e8f4a7544ef09433a64475df66d5', 'network_id': '0f365fee-5596-456d-ab85-d83df95558cb', 'ip_version': 6, 'cidr': '21de:ad88:8666:e10d:b522:5149::/96', 'allocation_pools': [{'start': '21de:ad88:8666:e10d:b522:5149:0:2', 'end': '21de:ad88:8666:e10d:b522:5149:ffff:fffe'}], 'gateway_ip': '21de:ad88:8666:e10d:b522:5149:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '21de:ad88:8666:e10d:b522:5149:0:2', 'tags': [], 'project_id': '3749e8f4a7544ef09433a64475df66d5'}} 2026-05-06 10:04:33,048 - INFO - Created VN ctest-vn4-39267091 2026-05-06 10:04:33,102 - DEBUG - VN ctest-vn4-39267091 UUID is 0f365fee-5596-456d-ab85-d83df95558cb 2026-05-06 10:04:33,303 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0f365fee-5596-456d-ab85-d83df95558cb', 'name': 'ctest-vn4-39267091', 'tenant_id': '3749e8f4a7544ef09433a64475df66d5', 'project_id': '3749e8f4a7544ef09433a64475df66d5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ade6b34e-0b4f-4efc-8861-024c280ad9fb', '67c816c8-bbd2-46db-b808-9a09ff41760c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-11110659', 'ctest-vn4-39267091'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-11110659', 'ctest-policy1-23739786']], 'subnet_ipam': [{'subnet_cidr': '205.151.205.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '21de:ad88:8666:e10d:b522:5149::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-05-06 10:04:33,466 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-05-06 10:04:33,762 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-05-06 10:04:33,795 - DEBUG - Requesting: http://10.0.0.50:8082/domain/3985a10d-7452-48e5-a2fa-93a3fd231858 2026-05-06 10:04:33,809 - DEBUG - Requesting: http://10.0.0.50:8082/project/3749e8f4-a754-4ef0-9433-a64475df66d5 2026-05-06 10:04:33,884 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/0f365fee-5596-456d-ab85-d83df95558cb 2026-05-06 10:04:33,897 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/0f365fee-5596-456d-ab85-d83df95558cb 2026-05-06 10:04:33,907 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/acacd615-0ee1-4706-9c43-5156b2199ef4 2026-05-06 10:04:33,915 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/acacd615-0ee1-4706-9c43-5156b2199ef4 2026-05-06 10:04:33,921 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/dd7e5463-95e6-4933-84f4-9a26db904d49 2026-05-06 10:04:33,928 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-06 10:04:33,928 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/0f365fee-5596-456d-ab85-d83df95558cb 2026-05-06 10:04:33,937 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/acacd615-0ee1-4706-9c43-5156b2199ef4 2026-05-06 10:04:33,950 - INFO - Verified VN network id 11 for VN 0f365fee-5596-456d-ab85-d83df95558cb 2026-05-06 10:04:33,951 - INFO - Verifications in API Server for VN ctest-vn4-39267091 passed 2026-05-06 10:04:33,951 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/0f365fee-5596-456d-ab85-d83df95558cb 2026-05-06 10:04:33,960 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/acacd615-0ee1-4706-9c43-5156b2199ef4 2026-05-06 10:04:33,966 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/acacd615-0ee1-4706-9c43-5156b2199ef4 2026-05-06 10:04:33,972 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/dd7e5463-95e6-4933-84f4-9a26db904d49 2026-05-06 10:04:33,985 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-11110659:ctest-vn4-39267091', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-11110659', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1096169036554061165', 'uuid-lslong': '12359522513075919051'}, 'enable': 'true', 'created': '2026-05-06T10:04:32', 'last-modified': '2026-05-06T10:04:33', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.707620'} 2026-05-06 10:04:33,991 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-06 10:04:33,991 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-39267091 passed 2026-05-06 10:04:33,991 - DEBUG - ====Verifying policy data for ctest-vn4-39267091 in API_Server ====== 2026-05-06 10:04:33,991 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-05-06 10:04:33,998 - DEBUG - Requesting: http://10.0.0.50:8082/domain/3985a10d-7452-48e5-a2fa-93a3fd231858 2026-05-06 10:04:34,009 - DEBUG - Requesting: http://10.0.0.50:8082/project/3749e8f4-a754-4ef0-9433-a64475df66d5 2026-05-06 10:04:34,083 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/0f365fee-5596-456d-ab85-d83df95558cb 2026-05-06 10:04:34,094 - DEBUG - ==>Verifying data for policy with id: 7a5c0281-0f0b-4e72-b2ef-1f0fc3a82401, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-11110659', 'ctest-policy1-23739786'] 2026-05-06 10:04:34,094 - INFO - VN ctest-vn4-39267091 Policy verification: verify_vn_policy_in_api_server, status: True 2026-05-06 10:04:34,094 - DEBUG - Verifying the vn in opserver 2026-05-06 10:04:34,094 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-11110659:ctest-vn4-39267091 virtual network link through opserver 10.0.0.50 2026-05-06 10:04:34,094 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-05-06 10:04:34,389 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-05-06 10:04:34,454 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-11110659:ctest-vn4-39267091', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-11110659:ctest-vn4-39267091?flat'} 2026-05-06 10:04:34,454 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-11110659:ctest-vn4-39267091 is found in opserver 2026-05-06 10:04:34,465 - DEBUG - Do not have enough data to verify VN in agent 2026-05-06 10:04:34,470 - DEBUG - VRF ids for VN ctest-vn4-39267091: {} 2026-05-06 10:04:34,470 - DEBUG - ====Verifying data for ctest-policy1-23739786 in API_Server ====== 2026-05-06 10:04:34,470 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-05-06 10:04:34,476 - DEBUG - Requesting: http://10.0.0.50:8082/domain/3985a10d-7452-48e5-a2fa-93a3fd231858 2026-05-06 10:04:34,486 - DEBUG - Requesting: http://10.0.0.50:8082/project/3749e8f4-a754-4ef0-9433-a64475df66d5 2026-05-06 10:04:34,559 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/7a5c0281-0f0b-4e72-b2ef-1f0fc3a82401 2026-05-06 10:04:34,568 - INFO - Verified policy ctest-policy1-23739786 in API Server, Result: True 2026-05-06 10:04:34,568 - INFO - Done with setup and verification, moving onto test .. 2026-05-06 10:04:34,575 - INFO - Deleting VN ctest-vn4-39267091 2026-05-06 10:04:34,685 - DEBUG - Response for deleting network () 2026-05-06 10:04:34,685 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/acacd615-0ee1-4706-9c43-5156b2199ef4 2026-05-06 10:04:34,690 - DEBUG - Response Code: 404 2026-05-06 10:04:34,690 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-05-06 10:04:34,695 - DEBUG - Requesting: http://10.0.0.50:8082/domain/3985a10d-7452-48e5-a2fa-93a3fd231858 2026-05-06 10:04:34,752 - DEBUG - Requesting: http://10.0.0.50:8082/project/3749e8f4-a754-4ef0-9433-a64475df66d5 2026-05-06 10:04:34,824 - INFO - Validated that VN ctest-vn4-39267091 is not found in API Server 2026-05-06 10:04:34,833 - DEBUG - VN ctest-vn4-39267091 is not present in Agent 10.0.0.50 2026-05-06 10:04:34,833 - INFO - Validated that VN ctest-vn4-39267091 is not in any agent 2026-05-06 10:04:34,846 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-39267091 info 2026-05-06 10:04:34,871 - INFO - Deleted policy ctest-policy1-23739786 2026-05-06 10:04:35,034 - DEBUG - policy ctest-policy1-23739786 is not found in API Server 2026-05-06 10:04:35,288 - DEBUG - No XMPP flaps were noticed during the test 2026-05-06 10:04:35,288 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-05-06 10:04:35,288 - INFO - -------------------------------------------------------------------------------- 2026-05-06 10:04:35,575 - DEBUG - No XMPP flaps were noticed during the test 2026-05-06 10:04:35,575 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-05-06 10:04:35,575 - INFO - -------------------------------------------------------------------------------- 2026-05-06 10:04:36,262 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-11110659, ID : 3749e8f4-a754-4ef0-9433-a64475df66d5