2026-05-14 02:04:00,272 - INFO - Domain Default found not creating 2026-05-14 02:04:00,475 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-82843438 not found, creating it 2026-05-14 02:04:00,973 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-82843438, ID : 90ebe13c-98be-45d8-9e80-df8529b66584 2026-05-14 02:04:02,603 - INFO - ================================================================================ 2026-05-14 02:04:02,603 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-05-14 02:04:02,856 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2026-05-14 02:04:02,857 - INFO - Initial checks done. Running the testcase now 2026-05-14 02:04:02,857 - INFO - 2026-05-14 02:04:02,857 - INFO - ================================================================================ 2026-05-14 02:04:02,857 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-05-14 02:04:02,857 - 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-14 02:04:03,153 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2026-05-14 02:04:03,153 - INFO - Initial checks done. Running the testcase now 2026-05-14 02:04:03,153 - INFO - 2026-05-14 02:04:03,534 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-82843438:ctest-vn4-42096548, 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-82843438:ctest-vn4-42096548, 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-82843438:ctest-vn4-42096548, 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-82843438:ctest-vn4-42096548, 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-14 02:04:04,086 - DEBUG - Response for create_network : {'network': {'id': 'a12e50cb-d12c-46ae-8723-9ddbc34a08a8', 'name': 'ctest-vn4-42096548', 'tenant_id': '90ebe13c98be45d89e80df8529b66584', 'project_id': '90ebe13c98be45d89e80df8529b66584', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-82843438', 'ctest-vn4-42096548'], 'port_security_enabled': True, 'description': ''}} 2026-05-14 02:04:04,312 - DEBUG - Response for create_subnet : {'subnet': {'id': 'eb988578-69ca-49a5-a504-27cd47967011', 'name': '', 'tenant_id': '90ebe13c98be45d89e80df8529b66584', 'network_id': 'a12e50cb-d12c-46ae-8723-9ddbc34a08a8', 'ip_version': 4, 'cidr': '90.166.221.64/26', 'allocation_pools': [{'start': '90.166.221.66', 'end': '90.166.221.126'}], 'gateway_ip': '90.166.221.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '90.166.221.66', 'tags': [], 'project_id': '90ebe13c98be45d89e80df8529b66584'}} 2026-05-14 02:04:04,521 - DEBUG - Response for create_subnet : {'subnet': {'id': '5a3a6d3f-20b2-4b42-ba16-7782801429f5', 'name': '', 'tenant_id': '90ebe13c98be45d89e80df8529b66584', 'network_id': 'a12e50cb-d12c-46ae-8723-9ddbc34a08a8', 'ip_version': 6, 'cidr': '2db1:7a79:923c:1aa9:fbf6:f6ee::/96', 'allocation_pools': [{'start': '2db1:7a79:923c:1aa9:fbf6:f6ee:0:2', 'end': '2db1:7a79:923c:1aa9:fbf6:f6ee:ffff:fffe'}], 'gateway_ip': '2db1:7a79:923c:1aa9:fbf6:f6ee:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2db1:7a79:923c:1aa9:fbf6:f6ee:0:2', 'tags': [], 'project_id': '90ebe13c98be45d89e80df8529b66584'}} 2026-05-14 02:04:04,544 - INFO - Created VN ctest-vn4-42096548 2026-05-14 02:04:04,599 - DEBUG - VN ctest-vn4-42096548 UUID is a12e50cb-d12c-46ae-8723-9ddbc34a08a8 2026-05-14 02:04:04,816 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a12e50cb-d12c-46ae-8723-9ddbc34a08a8', 'name': 'ctest-vn4-42096548', 'tenant_id': '90ebe13c98be45d89e80df8529b66584', 'project_id': '90ebe13c98be45d89e80df8529b66584', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['eb988578-69ca-49a5-a504-27cd47967011', '5a3a6d3f-20b2-4b42-ba16-7782801429f5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-82843438', 'ctest-vn4-42096548'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-82843438', 'ctest-policy1-99301549']], 'subnet_ipam': [{'subnet_cidr': '90.166.221.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2db1:7a79:923c:1aa9:fbf6:f6ee::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-05-14 02:04:04,999 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-05-14 02:04:05,306 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-05-14 02:04:05,341 - DEBUG - Requesting: http://10.0.0.50:8082/domain/48ce7b1d-9026-4524-ad2d-03e884191c4d 2026-05-14 02:04:05,355 - DEBUG - Requesting: http://10.0.0.50:8082/project/90ebe13c-98be-45d8-9e80-df8529b66584 2026-05-14 02:04:05,433 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a12e50cb-d12c-46ae-8723-9ddbc34a08a8 2026-05-14 02:04:05,446 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a12e50cb-d12c-46ae-8723-9ddbc34a08a8 2026-05-14 02:04:05,456 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/13cdefa3-1ca1-41f7-a3f0-904a12391550 2026-05-14 02:04:05,464 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/13cdefa3-1ca1-41f7-a3f0-904a12391550 2026-05-14 02:04:05,471 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/5824144b-4cae-4b51-8c55-c0aac885a81a 2026-05-14 02:04:05,478 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-14 02:04:05,478 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a12e50cb-d12c-46ae-8723-9ddbc34a08a8 2026-05-14 02:04:05,488 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/13cdefa3-1ca1-41f7-a3f0-904a12391550 2026-05-14 02:04:05,504 - INFO - Verified VN network id 11 for VN a12e50cb-d12c-46ae-8723-9ddbc34a08a8 2026-05-14 02:04:05,504 - INFO - Verifications in API Server for VN ctest-vn4-42096548 passed 2026-05-14 02:04:05,504 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a12e50cb-d12c-46ae-8723-9ddbc34a08a8 2026-05-14 02:04:05,513 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/13cdefa3-1ca1-41f7-a3f0-904a12391550 2026-05-14 02:04:05,521 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/13cdefa3-1ca1-41f7-a3f0-904a12391550 2026-05-14 02:04:05,530 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/5824144b-4cae-4b51-8c55-c0aac885a81a 2026-05-14 02:04:05,541 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-82843438:ctest-vn4-42096548', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-82843438', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11614309325353010862', 'uuid-lslong': '9737800386504951976'}, 'enable': 'true', 'created': '2026-05-14T02:04:04', 'last-modified': '2026-05-14T02:04:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.746284'} 2026-05-14 02:04:05,549 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-14 02:04:05,549 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-42096548 passed 2026-05-14 02:04:05,549 - DEBUG - ====Verifying policy data for ctest-vn4-42096548 in API_Server ====== 2026-05-14 02:04:05,549 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-05-14 02:04:05,556 - DEBUG - Requesting: http://10.0.0.50:8082/domain/48ce7b1d-9026-4524-ad2d-03e884191c4d 2026-05-14 02:04:05,567 - DEBUG - Requesting: http://10.0.0.50:8082/project/90ebe13c-98be-45d8-9e80-df8529b66584 2026-05-14 02:04:05,643 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a12e50cb-d12c-46ae-8723-9ddbc34a08a8 2026-05-14 02:04:05,653 - DEBUG - ==>Verifying data for policy with id: 335934c7-6396-4388-9ae1-0bd9e9cc238a, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-82843438', 'ctest-policy1-99301549'] 2026-05-14 02:04:05,653 - INFO - VN ctest-vn4-42096548 Policy verification: verify_vn_policy_in_api_server, status: True 2026-05-14 02:04:05,653 - DEBUG - Verifying the vn in opserver 2026-05-14 02:04:05,653 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-82843438:ctest-vn4-42096548 virtual network link through opserver 10.0.0.50 2026-05-14 02:04:05,653 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-05-14 02:04:05,969 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-05-14 02:04:06,059 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-82843438:ctest-vn4-42096548', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-82843438:ctest-vn4-42096548?flat'} 2026-05-14 02:04:06,059 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-82843438:ctest-vn4-42096548 is found in opserver 2026-05-14 02:04:06,071 - DEBUG - Do not have enough data to verify VN in agent 2026-05-14 02:04:06,076 - DEBUG - VRF ids for VN ctest-vn4-42096548: {} 2026-05-14 02:04:06,077 - DEBUG - ====Verifying data for ctest-policy1-99301549 in API_Server ====== 2026-05-14 02:04:06,077 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-05-14 02:04:06,083 - DEBUG - Requesting: http://10.0.0.50:8082/domain/48ce7b1d-9026-4524-ad2d-03e884191c4d 2026-05-14 02:04:06,095 - DEBUG - Requesting: http://10.0.0.50:8082/project/90ebe13c-98be-45d8-9e80-df8529b66584 2026-05-14 02:04:06,166 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/335934c7-6396-4388-9ae1-0bd9e9cc238a 2026-05-14 02:04:06,177 - INFO - Verified policy ctest-policy1-99301549 in API Server, Result: True 2026-05-14 02:04:06,177 - INFO - Done with setup and verification, moving onto test .. 2026-05-14 02:04:06,195 - INFO - Deleting VN ctest-vn4-42096548 2026-05-14 02:04:06,341 - DEBUG - Response for deleting network () 2026-05-14 02:04:06,341 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/13cdefa3-1ca1-41f7-a3f0-904a12391550 2026-05-14 02:04:06,348 - DEBUG - Response Code: 404 2026-05-14 02:04:06,348 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-05-14 02:04:06,356 - DEBUG - Requesting: http://10.0.0.50:8082/domain/48ce7b1d-9026-4524-ad2d-03e884191c4d 2026-05-14 02:04:06,412 - DEBUG - Requesting: http://10.0.0.50:8082/project/90ebe13c-98be-45d8-9e80-df8529b66584 2026-05-14 02:04:06,486 - INFO - Validated that VN ctest-vn4-42096548 is not found in API Server 2026-05-14 02:04:06,496 - DEBUG - VN ctest-vn4-42096548 is not present in Agent 10.0.0.50 2026-05-14 02:04:06,496 - INFO - Validated that VN ctest-vn4-42096548 is not in any agent 2026-05-14 02:04:06,510 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-42096548 info 2026-05-14 02:04:06,539 - INFO - Deleted policy ctest-policy1-99301549 2026-05-14 02:04:06,706 - DEBUG - policy ctest-policy1-99301549 is not found in API Server 2026-05-14 02:04:06,960 - DEBUG - No XMPP flaps were noticed during the test