2026-06-19 23:19:13,957 - INFO - Domain Default found not creating 2026-06-19 23:19:14,095 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-43753817 not found, creating it 2026-06-19 23:19:14,527 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-43753817, ID : 5b6f99dd-740c-44ad-a4d1-15473666b3ea 2026-06-19 23:19:15,955 - INFO - ================================================================================ 2026-06-19 23:19:15,956 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-19 23:19:16,211 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.14': '0'}} with 2026-06-19 23:19:16,211 - INFO - Initial checks done. Running the testcase now 2026-06-19 23:19:16,211 - INFO - 2026-06-19 23:19:16,211 - INFO - ================================================================================ 2026-06-19 23:19:16,211 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-19 23:19:16,211 - 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-06-19 23:19:16,499 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.14': '0'}} with 2026-06-19 23:19:16,499 - INFO - Initial checks done. Running the testcase now 2026-06-19 23:19:16,499 - INFO - 2026-06-19 23:19:16,857 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-43753817:ctest-vn4-20400160, 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-43753817:ctest-vn4-20400160, 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-43753817:ctest-vn4-20400160, 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-43753817:ctest-vn4-20400160, 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-06-19 23:19:17,327 - DEBUG - Response for create_network : {'network': {'id': '5c5d01cc-de3a-4030-b9ad-422a17cfcbd5', 'name': 'ctest-vn4-20400160', 'tenant_id': '5b6f99dd740c44ada4d115473666b3ea', 'project_id': '5b6f99dd740c44ada4d115473666b3ea', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-43753817', 'ctest-vn4-20400160'], 'port_security_enabled': True, 'description': ''}} 2026-06-19 23:19:17,524 - DEBUG - Response for create_subnet : {'subnet': {'id': '9d94ee2b-bfc4-4838-8ecc-d949093feb0d', 'name': '', 'tenant_id': '5b6f99dd740c44ada4d115473666b3ea', 'network_id': '5c5d01cc-de3a-4030-b9ad-422a17cfcbd5', 'ip_version': 4, 'cidr': '150.235.81.64/26', 'allocation_pools': [{'start': '150.235.81.66', 'end': '150.235.81.126'}], 'gateway_ip': '150.235.81.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '150.235.81.66', 'tags': [], 'project_id': '5b6f99dd740c44ada4d115473666b3ea'}} 2026-06-19 23:19:17,686 - DEBUG - Response for create_subnet : {'subnet': {'id': '69574e67-09e0-4af3-801e-0f522b89acf5', 'name': '', 'tenant_id': '5b6f99dd740c44ada4d115473666b3ea', 'network_id': '5c5d01cc-de3a-4030-b9ad-422a17cfcbd5', 'ip_version': 6, 'cidr': '26ec:4d73:c54e:874b:9a38:e279::/96', 'allocation_pools': [{'start': '26ec:4d73:c54e:874b:9a38:e279:0:2', 'end': '26ec:4d73:c54e:874b:9a38:e279:ffff:fffe'}], 'gateway_ip': '26ec:4d73:c54e:874b:9a38:e279:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '26ec:4d73:c54e:874b:9a38:e279:0:2', 'tags': [], 'project_id': '5b6f99dd740c44ada4d115473666b3ea'}} 2026-06-19 23:19:17,700 - INFO - Created VN ctest-vn4-20400160 2026-06-19 23:19:17,751 - DEBUG - VN ctest-vn4-20400160 UUID is 5c5d01cc-de3a-4030-b9ad-422a17cfcbd5 2026-06-19 23:19:17,922 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5c5d01cc-de3a-4030-b9ad-422a17cfcbd5', 'name': 'ctest-vn4-20400160', 'tenant_id': '5b6f99dd740c44ada4d115473666b3ea', 'project_id': '5b6f99dd740c44ada4d115473666b3ea', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9d94ee2b-bfc4-4838-8ecc-d949093feb0d', '69574e67-09e0-4af3-801e-0f522b89acf5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-43753817', 'ctest-vn4-20400160'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-43753817', 'ctest-policy1-79618654']], 'subnet_ipam': [{'subnet_cidr': '150.235.81.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '26ec:4d73:c54e:874b:9a38:e279::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-06-19 23:19:18,075 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2026-06-19 23:19:18,389 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2026-06-19 23:19:18,410 - DEBUG - Requesting: http://10.0.0.19:8082/domain/05a38af8-62a4-48e1-a1e7-bc5423583c97 2026-06-19 23:19:18,420 - DEBUG - Requesting: http://10.0.0.19:8082/project/5b6f99dd-740c-44ad-a4d1-15473666b3ea 2026-06-19 23:19:18,490 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/5c5d01cc-de3a-4030-b9ad-422a17cfcbd5 2026-06-19 23:19:18,502 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/5c5d01cc-de3a-4030-b9ad-422a17cfcbd5 2026-06-19 23:19:18,510 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/d0b0de12-15ad-417e-adc4-632e335d3103 2026-06-19 23:19:18,517 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/d0b0de12-15ad-417e-adc4-632e335d3103 2026-06-19 23:19:18,523 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/bb5459c8-c83a-4ef6-b7ce-594db029a2fd 2026-06-19 23:19:18,527 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-19 23:19:18,527 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/5c5d01cc-de3a-4030-b9ad-422a17cfcbd5 2026-06-19 23:19:18,535 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/d0b0de12-15ad-417e-adc4-632e335d3103 2026-06-19 23:19:18,546 - INFO - Verified VN network id 11 for VN 5c5d01cc-de3a-4030-b9ad-422a17cfcbd5 2026-06-19 23:19:18,546 - INFO - Verifications in API Server for VN ctest-vn4-20400160 passed 2026-06-19 23:19:18,546 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/5c5d01cc-de3a-4030-b9ad-422a17cfcbd5 2026-06-19 23:19:18,553 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/d0b0de12-15ad-417e-adc4-632e335d3103 2026-06-19 23:19:18,558 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/d0b0de12-15ad-417e-adc4-632e335d3103 2026-06-19 23:19:18,563 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/bb5459c8-c83a-4ef6-b7ce-594db029a2fd 2026-06-19 23:19:18,572 - DEBUG - Control-node 10.0.0.19 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-43753817:ctest-vn4-20400160', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-43753817', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6655477803736776752', 'uuid-lslong': '13379422816543165397'}, 'enable': 'true', 'created': '2026-06-19T23:19:17', 'last-modified': '2026-06-19T23:19:17', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.672379'} 2026-06-19 23:19:18,576 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-19 23:19:18,577 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-20400160 passed 2026-06-19 23:19:18,577 - DEBUG - ====Verifying policy data for ctest-vn4-20400160 in API_Server ====== 2026-06-19 23:19:18,577 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2026-06-19 23:19:18,581 - DEBUG - Requesting: http://10.0.0.19:8082/domain/05a38af8-62a4-48e1-a1e7-bc5423583c97 2026-06-19 23:19:18,590 - DEBUG - Requesting: http://10.0.0.19:8082/project/5b6f99dd-740c-44ad-a4d1-15473666b3ea 2026-06-19 23:19:18,655 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/5c5d01cc-de3a-4030-b9ad-422a17cfcbd5 2026-06-19 23:19:18,664 - DEBUG - ==>Verifying data for policy with id: 1ff1ee14-44ab-4c12-83e6-5a03191287af, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-43753817', 'ctest-policy1-79618654'] 2026-06-19 23:19:18,664 - INFO - VN ctest-vn4-20400160 Policy verification: verify_vn_policy_in_api_server, status: True 2026-06-19 23:19:18,664 - DEBUG - Verifying the vn in opserver 2026-06-19 23:19:18,664 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-43753817:ctest-vn4-20400160 virtual network link through opserver 10.0.0.19 2026-06-19 23:19:18,665 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2026-06-19 23:19:18,979 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2026-06-19 23:19:19,028 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-43753817:ctest-vn4-20400160', 'href': 'http://10.0.0.19:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-43753817:ctest-vn4-20400160?flat'} 2026-06-19 23:19:19,028 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-43753817:ctest-vn4-20400160 is found in opserver 2026-06-19 23:19:19,036 - DEBUG - Do not have enough data to verify VN in agent 2026-06-19 23:19:19,040 - DEBUG - VRF ids for VN ctest-vn4-20400160: {} 2026-06-19 23:19:19,041 - DEBUG - ====Verifying data for ctest-policy1-79618654 in API_Server ====== 2026-06-19 23:19:19,041 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2026-06-19 23:19:19,045 - DEBUG - Requesting: http://10.0.0.19:8082/domain/05a38af8-62a4-48e1-a1e7-bc5423583c97 2026-06-19 23:19:19,056 - DEBUG - Requesting: http://10.0.0.19:8082/project/5b6f99dd-740c-44ad-a4d1-15473666b3ea 2026-06-19 23:19:19,127 - DEBUG - Requesting: http://10.0.0.19:8082/network-policy/1ff1ee14-44ab-4c12-83e6-5a03191287af 2026-06-19 23:19:19,134 - INFO - Verified policy ctest-policy1-79618654 in API Server, Result: True 2026-06-19 23:19:19,134 - INFO - Done with setup and verification, moving onto test .. 2026-06-19 23:19:19,141 - INFO - Deleting VN ctest-vn4-20400160 2026-06-19 23:19:19,249 - DEBUG - Response for deleting network () 2026-06-19 23:19:19,249 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/d0b0de12-15ad-417e-adc4-632e335d3103 2026-06-19 23:19:19,253 - DEBUG - Response Code: 404 2026-06-19 23:19:19,254 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2026-06-19 23:19:19,258 - DEBUG - Requesting: http://10.0.0.19:8082/domain/05a38af8-62a4-48e1-a1e7-bc5423583c97 2026-06-19 23:19:19,311 - DEBUG - Requesting: http://10.0.0.19:8082/project/5b6f99dd-740c-44ad-a4d1-15473666b3ea 2026-06-19 23:19:19,380 - INFO - Validated that VN ctest-vn4-20400160 is not found in API Server 2026-06-19 23:19:19,390 - DEBUG - VN ctest-vn4-20400160 is not present in Agent 10.0.0.19 2026-06-19 23:19:19,390 - INFO - Validated that VN ctest-vn4-20400160 is not in any agent 2026-06-19 23:19:19,403 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-20400160 info 2026-06-19 23:19:19,425 - INFO - Deleted policy ctest-policy1-79618654 2026-06-19 23:19:19,586 - DEBUG - policy ctest-policy1-79618654 is not found in API Server 2026-06-19 23:19:19,839 - DEBUG - No XMPP flaps were noticed during the test 2026-06-19 23:19:19,839 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:03] 2026-06-19 23:19:19,839 - INFO - -------------------------------------------------------------------------------- 2026-06-19 23:19:20,127 - DEBUG - No XMPP flaps were noticed during the test 2026-06-19 23:19:20,127 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2026-06-19 23:19:20,127 - INFO - -------------------------------------------------------------------------------- 2026-06-19 23:19:20,791 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-43753817, ID : 5b6f99dd-740c-44ad-a4d1-15473666b3ea