2026-01-30 11:16:57,661 - INFO - Domain Default found not creating 2026-01-30 11:16:57,831 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-70731496 not found, creating it 2026-01-30 11:16:58,344 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-70731496, ID : 443d7083-5e0e-4816-a28e-3079728b1dc5 2026-01-30 11:16:59,861 - INFO - ================================================================================ 2026-01-30 11:16:59,861 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-30 11:17:00,113 - DEBUG - Nothing to compare xmpp stats {'10.0.0.152': {'10.20.0.17': '0'}} with 2026-01-30 11:17:00,113 - INFO - Initial checks done. Running the testcase now 2026-01-30 11:17:00,113 - INFO - 2026-01-30 11:17:00,114 - INFO - ================================================================================ 2026-01-30 11:17:00,114 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-30 11:17:00,114 - 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-30 11:17:00,405 - DEBUG - Nothing to compare xmpp stats {'10.0.0.152': {'10.20.0.17': '0'}} with 2026-01-30 11:17:00,405 - INFO - Initial checks done. Running the testcase now 2026-01-30 11:17:00,405 - INFO - 2026-01-30 11:17:00,756 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-70731496:ctest-vn4-94413366, 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-70731496:ctest-vn4-94413366, 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-70731496:ctest-vn4-94413366, 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-70731496:ctest-vn4-94413366, 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-30 11:17:01,305 - DEBUG - Response for create_network : {'network': {'id': '12717815-b755-4907-a95e-d78ee52d84ba', 'name': 'ctest-vn4-94413366', 'tenant_id': '443d70835e0e4816a28e3079728b1dc5', 'project_id': '443d70835e0e4816a28e3079728b1dc5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-70731496', 'ctest-vn4-94413366'], 'port_security_enabled': True, 'description': ''}} 2026-01-30 11:17:01,452 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e9632f42-f844-4bf4-af1a-bd7cacad24d2', 'name': '', 'tenant_id': '443d70835e0e4816a28e3079728b1dc5', 'network_id': '12717815-b755-4907-a95e-d78ee52d84ba', 'ip_version': 4, 'cidr': '64.114.202.128/26', 'allocation_pools': [{'start': '64.114.202.130', 'end': '64.114.202.190'}], 'gateway_ip': '64.114.202.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '64.114.202.130', 'tags': [], 'project_id': '443d70835e0e4816a28e3079728b1dc5'}} 2026-01-30 11:17:01,644 - DEBUG - Response for create_subnet : {'subnet': {'id': '20f3a50c-2e0f-4df2-b104-ba10bab7fc17', 'name': '', 'tenant_id': '443d70835e0e4816a28e3079728b1dc5', 'network_id': '12717815-b755-4907-a95e-d78ee52d84ba', 'ip_version': 6, 'cidr': '2c37:fe2:158e:37bc:947b:ee85::/96', 'allocation_pools': [{'start': '2c37:fe2:158e:37bc:947b:ee85:0:2', 'end': '2c37:fe2:158e:37bc:947b:ee85:ffff:fffe'}], 'gateway_ip': '2c37:fe2:158e:37bc:947b:ee85:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2c37:fe2:158e:37bc:947b:ee85:0:2', 'tags': [], 'project_id': '443d70835e0e4816a28e3079728b1dc5'}} 2026-01-30 11:17:01,663 - INFO - Created VN ctest-vn4-94413366 2026-01-30 11:17:01,712 - DEBUG - VN ctest-vn4-94413366 UUID is 12717815-b755-4907-a95e-d78ee52d84ba 2026-01-30 11:17:01,919 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '12717815-b755-4907-a95e-d78ee52d84ba', 'name': 'ctest-vn4-94413366', 'tenant_id': '443d70835e0e4816a28e3079728b1dc5', 'project_id': '443d70835e0e4816a28e3079728b1dc5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e9632f42-f844-4bf4-af1a-bd7cacad24d2', '20f3a50c-2e0f-4df2-b104-ba10bab7fc17'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-70731496', 'ctest-vn4-94413366'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-70731496', 'ctest-policy1-95149637']], 'subnet_ipam': [{'subnet_cidr': '64.114.202.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2c37:fe2:158e:37bc:947b:ee85::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-01-30 11:17:02,080 - DEBUG - Requesting: http://10.0.0.152:8082/domains 2026-01-30 11:17:02,375 - DEBUG - Requesting: http://10.0.0.152:8082/domains 2026-01-30 11:17:02,406 - DEBUG - Requesting: http://10.0.0.152:8082/domain/17af5ad7-091d-4686-b5b9-c1b22be15218 2026-01-30 11:17:02,419 - DEBUG - Requesting: http://10.0.0.152:8082/project/443d7083-5e0e-4816-a28e-3079728b1dc5 2026-01-30 11:17:02,495 - DEBUG - Requesting: http://10.0.0.152:8082/virtual-network/12717815-b755-4907-a95e-d78ee52d84ba 2026-01-30 11:17:02,509 - DEBUG - Requesting: http://10.0.0.152:8082/virtual-network/12717815-b755-4907-a95e-d78ee52d84ba 2026-01-30 11:17:02,518 - DEBUG - Requesting: http://10.0.0.152:8082/routing-instance/7d48458d-e566-4563-ad0c-f48885831cac 2026-01-30 11:17:02,524 - DEBUG - Requesting: http://10.0.0.152:8082/routing-instance/7d48458d-e566-4563-ad0c-f48885831cac 2026-01-30 11:17:02,531 - DEBUG - Requesting: http://10.0.0.152:8082/route-target/79b75713-9253-418a-8f50-6a0cef0a6aca 2026-01-30 11:17:02,537 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-30 11:17:02,537 - DEBUG - Requesting: http://10.0.0.152:8082/virtual-network/12717815-b755-4907-a95e-d78ee52d84ba 2026-01-30 11:17:02,545 - DEBUG - Requesting: http://10.0.0.152:8082/routing-instance/7d48458d-e566-4563-ad0c-f48885831cac 2026-01-30 11:17:02,558 - INFO - Verified VN network id 12 for VN 12717815-b755-4907-a95e-d78ee52d84ba 2026-01-30 11:17:02,558 - INFO - Verifications in API Server for VN ctest-vn4-94413366 passed 2026-01-30 11:17:02,558 - DEBUG - Requesting: http://10.0.0.152:8082/virtual-network/12717815-b755-4907-a95e-d78ee52d84ba 2026-01-30 11:17:02,568 - DEBUG - Requesting: http://10.0.0.152:8082/routing-instance/7d48458d-e566-4563-ad0c-f48885831cac 2026-01-30 11:17:02,576 - DEBUG - Requesting: http://10.0.0.152:8082/routing-instance/7d48458d-e566-4563-ad0c-f48885831cac 2026-01-30 11:17:02,583 - DEBUG - Requesting: http://10.0.0.152:8082/route-target/79b75713-9253-418a-8f50-6a0cef0a6aca 2026-01-30 11:17:02,594 - DEBUG - Control-node 10.0.0.152 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-70731496:ctest-vn4-94413366', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-70731496', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1328975399716473095', 'uuid-lslong': '12204429048950916282'}, 'enable': 'true', 'created': '2026-01-30T11:17:01', 'last-modified': '2026-01-30T11:17:01', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.705446'} 2026-01-30 11:17:02,600 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-30 11:17:02,600 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-94413366 passed 2026-01-30 11:17:02,600 - DEBUG - ====Verifying policy data for ctest-vn4-94413366 in API_Server ====== 2026-01-30 11:17:02,601 - DEBUG - Requesting: http://10.0.0.152:8082/domains 2026-01-30 11:17:02,606 - DEBUG - Requesting: http://10.0.0.152:8082/domain/17af5ad7-091d-4686-b5b9-c1b22be15218 2026-01-30 11:17:02,618 - DEBUG - Requesting: http://10.0.0.152:8082/project/443d7083-5e0e-4816-a28e-3079728b1dc5 2026-01-30 11:17:02,686 - DEBUG - Requesting: http://10.0.0.152:8082/virtual-network/12717815-b755-4907-a95e-d78ee52d84ba 2026-01-30 11:17:02,695 - DEBUG - ==>Verifying data for policy with id: ffeb13dd-71d7-492e-b2a3-54919213b914, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-70731496', 'ctest-policy1-95149637'] 2026-01-30 11:17:02,695 - INFO - VN ctest-vn4-94413366 Policy verification: verify_vn_policy_in_api_server, status: True 2026-01-30 11:17:02,695 - DEBUG - Verifying the vn in opserver 2026-01-30 11:17:02,695 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-70731496:ctest-vn4-94413366 virtual network link through opserver 10.0.0.152 2026-01-30 11:17:02,695 - DEBUG - Requesting: http://10.0.0.152:8081/analytics/uves/virtual-networks 2026-01-30 11:17:02,988 - DEBUG - Requesting: http://10.0.0.152:8081/analytics/uves/virtual-networks 2026-01-30 11:17:03,061 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-70731496:ctest-vn4-94413366', 'href': 'http://10.0.0.152:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-70731496:ctest-vn4-94413366?flat'} 2026-01-30 11:17:03,061 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-70731496:ctest-vn4-94413366 is found in opserver 2026-01-30 11:17:03,071 - DEBUG - Do not have enough data to verify VN in agent 2026-01-30 11:17:03,076 - DEBUG - VRF ids for VN ctest-vn4-94413366: {} 2026-01-30 11:17:03,077 - DEBUG - ====Verifying data for ctest-policy1-95149637 in API_Server ====== 2026-01-30 11:17:03,077 - DEBUG - Requesting: http://10.0.0.152:8082/domains 2026-01-30 11:17:03,083 - DEBUG - Requesting: http://10.0.0.152:8082/domain/17af5ad7-091d-4686-b5b9-c1b22be15218 2026-01-30 11:17:03,094 - DEBUG - Requesting: http://10.0.0.152:8082/project/443d7083-5e0e-4816-a28e-3079728b1dc5 2026-01-30 11:17:03,171 - DEBUG - Requesting: http://10.0.0.152:8082/network-policy/ffeb13dd-71d7-492e-b2a3-54919213b914 2026-01-30 11:17:03,182 - INFO - Verified policy ctest-policy1-95149637 in API Server, Result: True 2026-01-30 11:17:03,183 - INFO - Done with setup and verification, moving onto test .. 2026-01-30 11:17:03,190 - INFO - Deleting VN ctest-vn4-94413366 2026-01-30 11:17:03,298 - DEBUG - Response for deleting network () 2026-01-30 11:17:03,298 - DEBUG - Requesting: http://10.0.0.152:8082/routing-instance/7d48458d-e566-4563-ad0c-f48885831cac 2026-01-30 11:17:03,303 - DEBUG - Response Code: 404 2026-01-30 11:17:03,303 - DEBUG - Requesting: http://10.0.0.152:8082/domains 2026-01-30 11:17:03,310 - DEBUG - Requesting: http://10.0.0.152:8082/domain/17af5ad7-091d-4686-b5b9-c1b22be15218 2026-01-30 11:17:03,362 - DEBUG - Requesting: http://10.0.0.152:8082/project/443d7083-5e0e-4816-a28e-3079728b1dc5 2026-01-30 11:17:03,435 - INFO - Validated that VN ctest-vn4-94413366 is not found in API Server 2026-01-30 11:17:03,446 - DEBUG - VN ctest-vn4-94413366 is not present in Agent 10.0.0.152 2026-01-30 11:17:03,447 - INFO - Validated that VN ctest-vn4-94413366 is not in any agent 2026-01-30 11:17:03,461 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-94413366 info 2026-01-30 11:17:03,482 - INFO - Deleted policy ctest-policy1-95149637 2026-01-30 11:17:03,648 - DEBUG - policy ctest-policy1-95149637 is not found in API Server 2026-01-30 11:17:03,910 - DEBUG - No XMPP flaps were noticed during the test