2026-04-23 02:25:23,613 - INFO - Domain Default found not creating 2026-04-23 02:25:23,784 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-31311090 not found, creating it 2026-04-23 02:25:24,369 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-31311090, ID : d803d077-f30d-4967-a4e4-82906cbfc869 2026-04-23 02:25:25,927 - INFO - ================================================================================ 2026-04-23 02:25:25,927 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-04-23 02:25:26,186 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.201': '0'}} with 2026-04-23 02:25:26,186 - INFO - Initial checks done. Running the testcase now 2026-04-23 02:25:26,186 - INFO - 2026-04-23 02:25:26,186 - INFO - ================================================================================ 2026-04-23 02:25:26,186 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-04-23 02:25:26,186 - 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-23 02:25:26,482 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.201': '0'}} with 2026-04-23 02:25:26,482 - INFO - Initial checks done. Running the testcase now 2026-04-23 02:25:26,482 - INFO - 2026-04-23 02:25:26,843 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-31311090:ctest-vn4-35249702, 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-31311090:ctest-vn4-35249702, 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-31311090:ctest-vn4-35249702, 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-31311090:ctest-vn4-35249702, 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-23 02:25:27,369 - DEBUG - Response for create_network : {'network': {'id': '1aad92a0-a62b-400e-90a0-747dd65d5510', 'name': 'ctest-vn4-35249702', 'tenant_id': 'd803d077f30d4967a4e482906cbfc869', 'project_id': 'd803d077f30d4967a4e482906cbfc869', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-31311090', 'ctest-vn4-35249702'], 'port_security_enabled': True, 'description': ''}} 2026-04-23 02:25:27,581 - DEBUG - Response for create_subnet : {'subnet': {'id': 'eabcad92-bdbf-4b83-9b7b-286b9c0c7150', 'name': '', 'tenant_id': 'd803d077f30d4967a4e482906cbfc869', 'network_id': '1aad92a0-a62b-400e-90a0-747dd65d5510', 'ip_version': 4, 'cidr': '222.125.189.128/26', 'allocation_pools': [{'start': '222.125.189.130', 'end': '222.125.189.190'}], 'gateway_ip': '222.125.189.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '222.125.189.130', 'tags': [], 'project_id': 'd803d077f30d4967a4e482906cbfc869'}} 2026-04-23 02:25:27,739 - DEBUG - Response for create_subnet : {'subnet': {'id': '89d78d27-817a-4b3a-82dc-e1b4105339e0', 'name': '', 'tenant_id': 'd803d077f30d4967a4e482906cbfc869', 'network_id': '1aad92a0-a62b-400e-90a0-747dd65d5510', 'ip_version': 6, 'cidr': '3668:5a56:e392:7117:f0bc:13a4::/96', 'allocation_pools': [{'start': '3668:5a56:e392:7117:f0bc:13a4:0:2', 'end': '3668:5a56:e392:7117:f0bc:13a4:ffff:fffe'}], 'gateway_ip': '3668:5a56:e392:7117:f0bc:13a4:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3668:5a56:e392:7117:f0bc:13a4:0:2', 'tags': [], 'project_id': 'd803d077f30d4967a4e482906cbfc869'}} 2026-04-23 02:25:27,760 - INFO - Created VN ctest-vn4-35249702 2026-04-23 02:25:27,812 - DEBUG - VN ctest-vn4-35249702 UUID is 1aad92a0-a62b-400e-90a0-747dd65d5510 2026-04-23 02:25:28,007 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1aad92a0-a62b-400e-90a0-747dd65d5510', 'name': 'ctest-vn4-35249702', 'tenant_id': 'd803d077f30d4967a4e482906cbfc869', 'project_id': 'd803d077f30d4967a4e482906cbfc869', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['eabcad92-bdbf-4b83-9b7b-286b9c0c7150', '89d78d27-817a-4b3a-82dc-e1b4105339e0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-31311090', 'ctest-vn4-35249702'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-31311090', 'ctest-policy1-76773964']], 'subnet_ipam': [{'subnet_cidr': '222.125.189.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3668:5a56:e392:7117:f0bc:13a4::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-04-23 02:25:28,188 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-04-23 02:25:28,483 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-04-23 02:25:28,511 - DEBUG - Requesting: http://10.0.0.50:8082/domain/8c1e14a9-fffe-4d1c-80d6-8d1fc14152e5 2026-04-23 02:25:28,522 - DEBUG - Requesting: http://10.0.0.50:8082/project/d803d077-f30d-4967-a4e4-82906cbfc869 2026-04-23 02:25:28,596 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/1aad92a0-a62b-400e-90a0-747dd65d5510 2026-04-23 02:25:28,607 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/1aad92a0-a62b-400e-90a0-747dd65d5510 2026-04-23 02:25:28,617 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/847b5038-ad81-4249-bdad-baf9569c6a08 2026-04-23 02:25:28,623 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/847b5038-ad81-4249-bdad-baf9569c6a08 2026-04-23 02:25:28,628 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/d2258932-ee2e-4c91-b3c3-822407020ebb 2026-04-23 02:25:28,635 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-23 02:25:28,635 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/1aad92a0-a62b-400e-90a0-747dd65d5510 2026-04-23 02:25:28,643 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/847b5038-ad81-4249-bdad-baf9569c6a08 2026-04-23 02:25:28,656 - INFO - Verified VN network id 10 for VN 1aad92a0-a62b-400e-90a0-747dd65d5510 2026-04-23 02:25:28,656 - INFO - Verifications in API Server for VN ctest-vn4-35249702 passed 2026-04-23 02:25:28,656 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/1aad92a0-a62b-400e-90a0-747dd65d5510 2026-04-23 02:25:28,664 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/847b5038-ad81-4249-bdad-baf9569c6a08 2026-04-23 02:25:28,670 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/847b5038-ad81-4249-bdad-baf9569c6a08 2026-04-23 02:25:28,675 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/d2258932-ee2e-4c91-b3c3-822407020ebb 2026-04-23 02:25:28,685 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-31311090:ctest-vn4-35249702', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-31311090', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1922353834637344782', 'uuid-lslong': '10421457621551502608'}, 'enable': 'true', 'created': '2026-04-23T02:25:27', 'last-modified': '2026-04-23T02:25:27', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.705501'} 2026-04-23 02:25:28,691 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-23 02:25:28,691 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-35249702 passed 2026-04-23 02:25:28,691 - DEBUG - ====Verifying policy data for ctest-vn4-35249702 in API_Server ====== 2026-04-23 02:25:28,691 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-04-23 02:25:28,696 - DEBUG - Requesting: http://10.0.0.50:8082/domain/8c1e14a9-fffe-4d1c-80d6-8d1fc14152e5 2026-04-23 02:25:28,708 - DEBUG - Requesting: http://10.0.0.50:8082/project/d803d077-f30d-4967-a4e4-82906cbfc869 2026-04-23 02:25:28,781 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/1aad92a0-a62b-400e-90a0-747dd65d5510 2026-04-23 02:25:28,791 - DEBUG - ==>Verifying data for policy with id: 68067279-fc9f-4a6b-91ef-c0e04d3641be, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-31311090', 'ctest-policy1-76773964'] 2026-04-23 02:25:28,791 - INFO - VN ctest-vn4-35249702 Policy verification: verify_vn_policy_in_api_server, status: True 2026-04-23 02:25:28,791 - DEBUG - Verifying the vn in opserver 2026-04-23 02:25:28,791 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-31311090:ctest-vn4-35249702 virtual network link through opserver 10.0.0.50 2026-04-23 02:25:28,791 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-04-23 02:25:29,100 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-04-23 02:25:29,466 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-31311090:ctest-vn4-35249702', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-31311090:ctest-vn4-35249702?flat'} 2026-04-23 02:25:29,466 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-31311090:ctest-vn4-35249702 is found in opserver 2026-04-23 02:25:29,477 - DEBUG - Do not have enough data to verify VN in agent 2026-04-23 02:25:29,482 - DEBUG - VRF ids for VN ctest-vn4-35249702: {} 2026-04-23 02:25:29,482 - DEBUG - ====Verifying data for ctest-policy1-76773964 in API_Server ====== 2026-04-23 02:25:29,482 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-04-23 02:25:29,493 - DEBUG - Requesting: http://10.0.0.50:8082/domain/8c1e14a9-fffe-4d1c-80d6-8d1fc14152e5 2026-04-23 02:25:29,509 - DEBUG - Requesting: http://10.0.0.50:8082/project/d803d077-f30d-4967-a4e4-82906cbfc869 2026-04-23 02:25:29,584 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/68067279-fc9f-4a6b-91ef-c0e04d3641be 2026-04-23 02:25:29,593 - INFO - Verified policy ctest-policy1-76773964 in API Server, Result: True 2026-04-23 02:25:29,593 - INFO - Done with setup and verification, moving onto test .. 2026-04-23 02:25:29,603 - INFO - Deleting VN ctest-vn4-35249702 2026-04-23 02:25:29,731 - DEBUG - Response for deleting network () 2026-04-23 02:25:29,731 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/847b5038-ad81-4249-bdad-baf9569c6a08 2026-04-23 02:25:29,735 - DEBUG - Response Code: 404 2026-04-23 02:25:29,736 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-04-23 02:25:29,740 - DEBUG - Requesting: http://10.0.0.50:8082/domain/8c1e14a9-fffe-4d1c-80d6-8d1fc14152e5 2026-04-23 02:25:29,792 - DEBUG - Requesting: http://10.0.0.50:8082/project/d803d077-f30d-4967-a4e4-82906cbfc869 2026-04-23 02:25:29,864 - INFO - Validated that VN ctest-vn4-35249702 is not found in API Server 2026-04-23 02:25:29,875 - DEBUG - VN ctest-vn4-35249702 is not present in Agent 10.0.0.50 2026-04-23 02:25:29,875 - INFO - Validated that VN ctest-vn4-35249702 is not in any agent 2026-04-23 02:25:29,891 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-35249702 info 2026-04-23 02:25:29,915 - INFO - Deleted policy ctest-policy1-76773964 2026-04-23 02:25:30,080 - DEBUG - policy ctest-policy1-76773964 is not found in API Server 2026-04-23 02:25:30,337 - DEBUG - No XMPP flaps were noticed during the test
2026-04-23 02:25:30,337 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-04-23 02:25:30,338 - INFO - -------------------------------------------------------------------------------- 2026-04-23 02:25:30,628 - DEBUG - No XMPP flaps were noticed during the test
2026-04-23 02:25:30,629 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-04-23 02:25:30,629 - INFO - -------------------------------------------------------------------------------- 2026-04-23 02:25:31,337 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-31311090, ID : d803d077-f30d-4967-a4e4-82906cbfc869