2026-08-03 03:06:44,979 - INFO - Domain Default found not creating 2026-08-03 03:06:45,212 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-27868382 not found, creating it 2026-08-03 03:06:45,866 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-27868382, ID : 82a48da5-26d4-40b2-abca-9686c16b12c3 2026-08-03 03:06:47,684 - INFO - ================================================================================ 2026-08-03 03:06:47,684 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-08-03 03:06:49,041 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.25': '0', '10.20.0.29': '0'}, '10.0.0.19': {'10.20.0.25': '0', '10.20.0.29': '0'}} with 2026-08-03 03:06:49,041 - INFO - Initial checks done. Running the testcase now 2026-08-03 03:06:49,041 - INFO - 2026-08-03 03:06:49,041 - INFO - ================================================================================ 2026-08-03 03:06:49,042 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-08-03 03:06:49,042 - 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-08-03 03:06:50,392 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.25': '0', '10.20.0.29': '0'}, '10.0.0.19': {'10.20.0.25': '0', '10.20.0.29': '0'}} with 2026-08-03 03:06:50,392 - INFO - Initial checks done. Running the testcase now 2026-08-03 03:06:50,392 - INFO - 2026-08-03 03:06:50,867 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-27868382:ctest-vn4-05387751, 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-27868382:ctest-vn4-05387751, 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-27868382:ctest-vn4-05387751, 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-27868382:ctest-vn4-05387751, 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-08-03 03:06:51,738 - DEBUG - Response for create_network : {'network': {'id': '7975d837-ce19-4fb2-be64-39fee1c22f4b', 'name': 'ctest-vn4-05387751', 'tenant_id': '82a48da526d440b2abca9686c16b12c3', 'project_id': '82a48da526d440b2abca9686c16b12c3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-27868382', 'ctest-vn4-05387751'], 'port_security_enabled': True, 'description': ''}} 2026-08-03 03:06:52,160 - DEBUG - Response for create_subnet : {'subnet': {'id': '5d936687-3d5e-4645-b285-4a5a0842184f', 'name': '', 'tenant_id': '82a48da526d440b2abca9686c16b12c3', 'network_id': '7975d837-ce19-4fb2-be64-39fee1c22f4b', 'ip_version': 4, 'cidr': '154.145.197.64/26', 'allocation_pools': [{'start': '154.145.197.66', 'end': '154.145.197.126'}], 'gateway_ip': '154.145.197.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '154.145.197.66', 'tags': [], 'project_id': '82a48da526d440b2abca9686c16b12c3'}} 2026-08-03 03:06:52,488 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a9147e4f-06fe-4ec6-8e2e-0119b8f80013', 'name': '', 'tenant_id': '82a48da526d440b2abca9686c16b12c3', 'network_id': '7975d837-ce19-4fb2-be64-39fee1c22f4b', 'ip_version': 6, 'cidr': '239a:2ca9:93fb:744b:46de:31ab::/96', 'allocation_pools': [{'start': '239a:2ca9:93fb:744b:46de:31ab:0:2', 'end': '239a:2ca9:93fb:744b:46de:31ab:ffff:fffe'}], 'gateway_ip': '239a:2ca9:93fb:744b:46de:31ab:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '239a:2ca9:93fb:744b:46de:31ab:0:2', 'tags': [], 'project_id': '82a48da526d440b2abca9686c16b12c3'}} 2026-08-03 03:06:52,523 - INFO - Created VN ctest-vn4-05387751 2026-08-03 03:06:52,538 - DEBUG - VN ctest-vn4-05387751 UUID is 7975d837-ce19-4fb2-be64-39fee1c22f4b 2026-08-03 03:06:52,889 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7975d837-ce19-4fb2-be64-39fee1c22f4b', 'name': 'ctest-vn4-05387751', 'tenant_id': '82a48da526d440b2abca9686c16b12c3', 'project_id': '82a48da526d440b2abca9686c16b12c3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5d936687-3d5e-4645-b285-4a5a0842184f', 'a9147e4f-06fe-4ec6-8e2e-0119b8f80013'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-27868382', 'ctest-vn4-05387751'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-27868382', 'ctest-policy1-35426400']], 'subnet_ipam': [{'subnet_cidr': '154.145.197.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '239a:2ca9:93fb:744b:46de:31ab::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-08-03 03:06:53,040 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-08-03 03:06:53,500 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-08-03 03:06:53,544 - DEBUG - Requesting: http://10.0.0.249:8082/domain/724de60e-9f87-4d23-867c-6bd9a9880f5b 2026-08-03 03:06:53,562 - DEBUG - Requesting: http://10.0.0.249:8082/project/82a48da5-26d4-40b2-abca-9686c16b12c3 2026-08-03 03:06:53,671 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/7975d837-ce19-4fb2-be64-39fee1c22f4b 2026-08-03 03:06:53,689 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/7975d837-ce19-4fb2-be64-39fee1c22f4b 2026-08-03 03:06:53,701 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/38eef9aa-4e7f-4a21-bcdc-819a58c91638 2026-08-03 03:06:53,712 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/38eef9aa-4e7f-4a21-bcdc-819a58c91638 2026-08-03 03:06:53,720 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/fdbf13c5-a17f-450b-94f3-a71c8240d861 2026-08-03 03:06:53,728 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-08-03 03:06:53,728 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/7975d837-ce19-4fb2-be64-39fee1c22f4b 2026-08-03 03:06:53,741 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/38eef9aa-4e7f-4a21-bcdc-819a58c91638 2026-08-03 03:06:53,762 - INFO - Verified VN network id 12 for VN 7975d837-ce19-4fb2-be64-39fee1c22f4b 2026-08-03 03:06:53,763 - INFO - Verifications in API Server for VN ctest-vn4-05387751 passed 2026-08-03 03:06:53,763 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/7975d837-ce19-4fb2-be64-39fee1c22f4b 2026-08-03 03:06:53,775 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/38eef9aa-4e7f-4a21-bcdc-819a58c91638 2026-08-03 03:06:53,785 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/38eef9aa-4e7f-4a21-bcdc-819a58c91638 2026-08-03 03:06:53,794 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/fdbf13c5-a17f-450b-94f3-a71c8240d861 2026-08-03 03:06:53,815 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-27868382:ctest-vn4-05387751', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-27868382', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8752139185056993202', 'uuid-lslong': '13719154131749449547'}, 'enable': 'true', 'created': '2026-08-03T03:06:51', 'last-modified': '2026-08-03T03:06:52', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.027406'} 2026-08-03 03:06:53,829 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-08-03 03:06:53,836 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-27868382:ctest-vn4-05387751', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-27868382', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8752139185056993202', 'uuid-lslong': '13719154131749449547'}, 'enable': 'true', 'created': '2026-08-03T03:06:51', 'last-modified': '2026-08-03T03:06:52', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.058248'} 2026-08-03 03:06:53,843 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-08-03 03:06:53,850 - DEBUG - Control-node 10.0.0.161 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-27868382:ctest-vn4-05387751', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-27868382', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8752139185056993202', 'uuid-lslong': '13719154131749449547'}, 'enable': 'true', 'created': '2026-08-03T03:06:51', 'last-modified': '2026-08-03T03:06:52', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.071501'} 2026-08-03 03:06:53,857 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-08-03 03:06:53,857 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-05387751 passed 2026-08-03 03:06:53,857 - DEBUG - ====Verifying policy data for ctest-vn4-05387751 in API_Server ====== 2026-08-03 03:06:53,857 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-08-03 03:06:53,865 - DEBUG - Requesting: http://10.0.0.249:8082/domain/724de60e-9f87-4d23-867c-6bd9a9880f5b 2026-08-03 03:06:53,883 - DEBUG - Requesting: http://10.0.0.249:8082/project/82a48da5-26d4-40b2-abca-9686c16b12c3 2026-08-03 03:06:53,978 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/7975d837-ce19-4fb2-be64-39fee1c22f4b 2026-08-03 03:06:54,011 - DEBUG - ==>Verifying data for policy with id: b23d9c06-683d-4d7c-b6f9-6cb7221a831c, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-27868382', 'ctest-policy1-35426400'] 2026-08-03 03:06:54,011 - INFO - VN ctest-vn4-05387751 Policy verification: verify_vn_policy_in_api_server, status: True 2026-08-03 03:06:54,011 - DEBUG - Verifying the vn in opserver 2026-08-03 03:06:54,011 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-27868382:ctest-vn4-05387751 virtual network link through opserver 10.0.0.249 2026-08-03 03:06:54,011 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2026-08-03 03:06:54,423 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2026-08-03 03:06:54,496 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-27868382:ctest-vn4-05387751', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-27868382:ctest-vn4-05387751?flat'} 2026-08-03 03:06:54,496 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-27868382:ctest-vn4-05387751 virtual network link through opserver 10.0.0.50 2026-08-03 03:06:54,496 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-08-03 03:06:54,905 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-08-03 03:06:54,969 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-27868382:ctest-vn4-05387751', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-27868382:ctest-vn4-05387751?flat'} 2026-08-03 03:06:54,969 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-27868382:ctest-vn4-05387751 virtual network link through opserver 10.0.0.161 2026-08-03 03:06:54,969 - DEBUG - Requesting: http://10.0.0.161:8081/analytics/uves/virtual-networks 2026-08-03 03:06:55,417 - DEBUG - Requesting: http://10.0.0.161:8081/analytics/uves/virtual-networks 2026-08-03 03:06:55,480 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-27868382:ctest-vn4-05387751', 'href': 'http://10.0.0.161:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-27868382:ctest-vn4-05387751?flat'} 2026-08-03 03:06:55,480 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-27868382:ctest-vn4-05387751 is found in opserver 2026-08-03 03:06:55,506 - DEBUG - Do not have enough data to verify VN in agent 2026-08-03 03:06:55,520 - DEBUG - VRF ids for VN ctest-vn4-05387751: {} 2026-08-03 03:06:55,521 - DEBUG - ====Verifying data for ctest-policy1-35426400 in API_Server ====== 2026-08-03 03:06:55,521 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-08-03 03:06:55,530 - DEBUG - Requesting: http://10.0.0.249:8082/domain/724de60e-9f87-4d23-867c-6bd9a9880f5b 2026-08-03 03:06:55,548 - DEBUG - Requesting: http://10.0.0.249:8082/project/82a48da5-26d4-40b2-abca-9686c16b12c3 2026-08-03 03:06:55,652 - DEBUG - Requesting: http://10.0.0.249:8082/network-policy/b23d9c06-683d-4d7c-b6f9-6cb7221a831c 2026-08-03 03:06:55,669 - INFO - Verified policy ctest-policy1-35426400 in API Server, Result: True 2026-08-03 03:06:55,669 - INFO - Done with setup and verification, moving onto test .. 2026-08-03 03:06:55,689 - INFO - Deleting VN ctest-vn4-05387751 2026-08-03 03:06:55,975 - DEBUG - Response for deleting network () 2026-08-03 03:06:55,975 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/38eef9aa-4e7f-4a21-bcdc-819a58c91638 2026-08-03 03:06:55,982 - DEBUG - Response Code: 404 2026-08-03 03:06:55,982 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-08-03 03:06:55,989 - DEBUG - Requesting: http://10.0.0.249:8082/domain/724de60e-9f87-4d23-867c-6bd9a9880f5b 2026-08-03 03:06:56,003 - DEBUG - Requesting: http://10.0.0.249:8082/project/82a48da5-26d4-40b2-abca-9686c16b12c3 2026-08-03 03:06:56,131 - INFO - Validated that VN ctest-vn4-05387751 is not found in API Server 2026-08-03 03:06:56,145 - DEBUG - VN ctest-vn4-05387751 is not present in Agent 10.0.0.38 2026-08-03 03:06:56,157 - DEBUG - VN ctest-vn4-05387751 is not present in Agent 10.0.0.19 2026-08-03 03:06:56,157 - INFO - Validated that VN ctest-vn4-05387751 is not in any agent 2026-08-03 03:06:56,196 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-05387751 info 2026-08-03 03:06:56,252 - INFO - Deleted policy ctest-policy1-35426400 2026-08-03 03:06:56,483 - DEBUG - policy ctest-policy1-35426400 is not found in API Server 2026-08-03 03:06:57,812 - DEBUG - No XMPP flaps were noticed during the test