2026-01-12 02:05:48,093 - INFO - Domain Default found not creating 2026-01-12 02:05:48,306 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-12893041 not found, creating it 2026-01-12 02:05:48,819 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-12893041, ID : 69d29076-9ff0-440e-853e-9eeca43dddcd 2026-01-12 02:05:50,521 - INFO - ================================================================================ 2026-01-12 02:05:50,522 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-12 02:05:50,787 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.17': '0'}} with 2026-01-12 02:05:50,787 - INFO - Initial checks done. Running the testcase now 2026-01-12 02:05:50,787 - INFO - 2026-01-12 02:05:50,787 - INFO - ================================================================================ 2026-01-12 02:05:50,787 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-12 02:05:50,787 - 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-12 02:05:51,088 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.17': '0'}} with 2026-01-12 02:05:51,088 - INFO - Initial checks done. Running the testcase now 2026-01-12 02:05:51,088 - INFO - 2026-01-12 02:05:51,498 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-12893041:ctest-vn4-93704722, 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-12893041:ctest-vn4-93704722, 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-12893041:ctest-vn4-93704722, 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-12893041:ctest-vn4-93704722, 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-12 02:05:52,061 - DEBUG - Response for create_network : {'network': {'id': '29113d84-bb9e-4eb9-8f76-e8e7946bb762', 'name': 'ctest-vn4-93704722', 'tenant_id': '69d290769ff0440e853e9eeca43dddcd', 'project_id': '69d290769ff0440e853e9eeca43dddcd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-12893041', 'ctest-vn4-93704722'], 'port_security_enabled': True, 'description': ''}} 2026-01-12 02:05:52,260 - DEBUG - Response for create_subnet : {'subnet': {'id': '960e77db-b329-478f-94c9-bdcc6a17e083', 'name': '', 'tenant_id': '69d290769ff0440e853e9eeca43dddcd', 'network_id': '29113d84-bb9e-4eb9-8f76-e8e7946bb762', 'ip_version': 4, 'cidr': '175.95.224.64/26', 'allocation_pools': [{'start': '175.95.224.66', 'end': '175.95.224.126'}], 'gateway_ip': '175.95.224.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '175.95.224.66', 'tags': [], 'project_id': '69d290769ff0440e853e9eeca43dddcd'}} 2026-01-12 02:05:52,473 - DEBUG - Response for create_subnet : {'subnet': {'id': '922a13fa-4a4e-4cbf-8d2a-0d487c1d7253', 'name': '', 'tenant_id': '69d290769ff0440e853e9eeca43dddcd', 'network_id': '29113d84-bb9e-4eb9-8f76-e8e7946bb762', 'ip_version': 6, 'cidr': '2ae9:ba56:d488:acea:3460:6c21::/96', 'allocation_pools': [{'start': '2ae9:ba56:d488:acea:3460:6c21:0:2', 'end': '2ae9:ba56:d488:acea:3460:6c21:ffff:fffe'}], 'gateway_ip': '2ae9:ba56:d488:acea:3460:6c21:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2ae9:ba56:d488:acea:3460:6c21:0:2', 'tags': [], 'project_id': '69d290769ff0440e853e9eeca43dddcd'}} 2026-01-12 02:05:52,495 - INFO - Created VN ctest-vn4-93704722 2026-01-12 02:05:52,552 - DEBUG - VN ctest-vn4-93704722 UUID is 29113d84-bb9e-4eb9-8f76-e8e7946bb762 2026-01-12 02:05:52,772 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '29113d84-bb9e-4eb9-8f76-e8e7946bb762', 'name': 'ctest-vn4-93704722', 'tenant_id': '69d290769ff0440e853e9eeca43dddcd', 'project_id': '69d290769ff0440e853e9eeca43dddcd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['960e77db-b329-478f-94c9-bdcc6a17e083', '922a13fa-4a4e-4cbf-8d2a-0d487c1d7253'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-12893041', 'ctest-vn4-93704722'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-12893041', 'ctest-policy1-72765387']], 'subnet_ipam': [{'subnet_cidr': '175.95.224.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2ae9:ba56:d488:acea:3460:6c21::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-01-12 02:05:52,944 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-01-12 02:05:53,286 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-01-12 02:05:53,324 - DEBUG - Requesting: http://10.0.0.242:8082/domain/f6e39bb2-a9eb-4be3-a5bd-dc3765b1b623 2026-01-12 02:05:53,339 - DEBUG - Requesting: http://10.0.0.242:8082/project/69d29076-9ff0-440e-853e-9eeca43dddcd 2026-01-12 02:05:53,414 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/29113d84-bb9e-4eb9-8f76-e8e7946bb762 2026-01-12 02:05:53,429 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/29113d84-bb9e-4eb9-8f76-e8e7946bb762 2026-01-12 02:05:53,440 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/cb7908e6-ff1d-4cf7-8762-db64ada80bf8 2026-01-12 02:05:53,447 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/cb7908e6-ff1d-4cf7-8762-db64ada80bf8 2026-01-12 02:05:53,454 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/ce8d95f5-126c-4138-b6d6-6a9ede5aa3e9 2026-01-12 02:05:53,460 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-12 02:05:53,460 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/29113d84-bb9e-4eb9-8f76-e8e7946bb762 2026-01-12 02:05:53,468 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/cb7908e6-ff1d-4cf7-8762-db64ada80bf8 2026-01-12 02:05:53,482 - INFO - Verified VN network id 11 for VN 29113d84-bb9e-4eb9-8f76-e8e7946bb762 2026-01-12 02:05:53,482 - INFO - Verifications in API Server for VN ctest-vn4-93704722 passed 2026-01-12 02:05:53,482 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/29113d84-bb9e-4eb9-8f76-e8e7946bb762 2026-01-12 02:05:53,490 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/cb7908e6-ff1d-4cf7-8762-db64ada80bf8 2026-01-12 02:05:53,496 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/cb7908e6-ff1d-4cf7-8762-db64ada80bf8 2026-01-12 02:05:53,502 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/ce8d95f5-126c-4138-b6d6-6a9ede5aa3e9 2026-01-12 02:05:53,514 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-12893041:ctest-vn4-93704722', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-12893041', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2959214070451818169', 'uuid-lslong': '10337706076000728930'}, 'enable': 'true', 'created': '2026-01-12T02:05:52', 'last-modified': '2026-01-12T02:05:52', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.774044'} 2026-01-12 02:05:53,521 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-12 02:05:53,521 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-93704722 passed 2026-01-12 02:05:53,521 - DEBUG - ====Verifying policy data for ctest-vn4-93704722 in API_Server ====== 2026-01-12 02:05:53,521 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-01-12 02:05:53,527 - DEBUG - Requesting: http://10.0.0.242:8082/domain/f6e39bb2-a9eb-4be3-a5bd-dc3765b1b623 2026-01-12 02:05:53,537 - DEBUG - Requesting: http://10.0.0.242:8082/project/69d29076-9ff0-440e-853e-9eeca43dddcd 2026-01-12 02:05:53,607 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/29113d84-bb9e-4eb9-8f76-e8e7946bb762 2026-01-12 02:05:53,617 - DEBUG - ==>Verifying data for policy with id: b3e0e1a4-78f9-4b1c-931a-ac88e9912e48, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-12893041', 'ctest-policy1-72765387'] 2026-01-12 02:05:53,617 - INFO - VN ctest-vn4-93704722 Policy verification: verify_vn_policy_in_api_server, status: True 2026-01-12 02:05:53,617 - DEBUG - Verifying the vn in opserver 2026-01-12 02:05:53,617 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-12893041:ctest-vn4-93704722 virtual network link through opserver 10.0.0.242 2026-01-12 02:05:53,617 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2026-01-12 02:05:53,955 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2026-01-12 02:05:54,029 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-12893041:ctest-vn4-93704722', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-12893041:ctest-vn4-93704722?flat'} 2026-01-12 02:05:54,029 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-12893041:ctest-vn4-93704722 is found in opserver 2026-01-12 02:05:54,039 - DEBUG - Do not have enough data to verify VN in agent 2026-01-12 02:05:54,045 - DEBUG - VRF ids for VN ctest-vn4-93704722: {} 2026-01-12 02:05:54,045 - DEBUG - ====Verifying data for ctest-policy1-72765387 in API_Server ====== 2026-01-12 02:05:54,045 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-01-12 02:05:54,053 - DEBUG - Requesting: http://10.0.0.242:8082/domain/f6e39bb2-a9eb-4be3-a5bd-dc3765b1b623 2026-01-12 02:05:54,066 - DEBUG - Requesting: http://10.0.0.242:8082/project/69d29076-9ff0-440e-853e-9eeca43dddcd 2026-01-12 02:05:54,143 - DEBUG - Requesting: http://10.0.0.242:8082/network-policy/b3e0e1a4-78f9-4b1c-931a-ac88e9912e48 2026-01-12 02:05:54,152 - INFO - Verified policy ctest-policy1-72765387 in API Server, Result: True 2026-01-12 02:05:54,153 - INFO - Done with setup and verification, moving onto test .. 2026-01-12 02:05:54,162 - INFO - Deleting VN ctest-vn4-93704722 2026-01-12 02:05:54,288 - DEBUG - Response for deleting network () 2026-01-12 02:05:54,288 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/cb7908e6-ff1d-4cf7-8762-db64ada80bf8 2026-01-12 02:05:54,293 - DEBUG - Response Code: 404 2026-01-12 02:05:54,294 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-01-12 02:05:54,298 - DEBUG - Requesting: http://10.0.0.242:8082/domain/f6e39bb2-a9eb-4be3-a5bd-dc3765b1b623 2026-01-12 02:05:54,353 - DEBUG - Requesting: http://10.0.0.242:8082/project/69d29076-9ff0-440e-853e-9eeca43dddcd 2026-01-12 02:05:54,428 - INFO - Validated that VN ctest-vn4-93704722 is not found in API Server 2026-01-12 02:05:54,438 - DEBUG - VN ctest-vn4-93704722 is not present in Agent 10.0.0.242 2026-01-12 02:05:54,438 - INFO - Validated that VN ctest-vn4-93704722 is not in any agent 2026-01-12 02:05:54,454 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-93704722 info 2026-01-12 02:05:54,480 - INFO - Deleted policy ctest-policy1-72765387 2026-01-12 02:05:54,647 - DEBUG - policy ctest-policy1-72765387 is not found in API Server 2026-01-12 02:05:54,905 - DEBUG - No XMPP flaps were noticed during the test 2026-01-12 02:05:54,906 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-01-12 02:05:54,906 - INFO - -------------------------------------------------------------------------------- 2026-01-12 02:05:55,208 - DEBUG - No XMPP flaps were noticed during the test 2026-01-12 02:05:55,208 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2026-01-12 02:05:55,208 - INFO - -------------------------------------------------------------------------------- 2026-01-12 02:05:55,957 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-12893041, ID : 69d29076-9ff0-440e-853e-9eeca43dddcd