2026-06-05 12:11:56,641 - INFO - Domain Default found not creating 2026-06-05 12:11:56,900 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-44564212 not found, creating it 2026-06-05 12:11:57,527 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-44564212, ID : 645cee78-f03f-470a-a6c3-8bfab4d4d5e9 2026-06-05 12:11:59,479 - INFO - ================================================================================ 2026-06-05 12:11:59,479 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-05 12:12:00,795 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.200': '0', '10.20.0.192': '0'}, '10.0.0.141': {'10.20.0.192': '0', '10.20.0.200': '0'}} with 2026-06-05 12:12:00,795 - INFO - Initial checks done. Running the testcase now 2026-06-05 12:12:00,795 - INFO - 2026-06-05 12:12:00,796 - INFO - ================================================================================ 2026-06-05 12:12:00,796 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-05 12:12:00,796 - 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-06-05 12:12:02,144 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.200': '0', '10.20.0.192': '0'}, '10.0.0.141': {'10.20.0.192': '0', '10.20.0.200': '0'}} with 2026-06-05 12:12:02,144 - INFO - Initial checks done. Running the testcase now 2026-06-05 12:12:02,145 - INFO - 2026-06-05 12:12:02,540 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-44564212:ctest-vn4-08086697, 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-44564212:ctest-vn4-08086697, 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-44564212:ctest-vn4-08086697, 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-44564212:ctest-vn4-08086697, 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-06-05 12:12:03,295 - DEBUG - Response for create_network : {'network': {'id': '8090aac5-9cbb-4b73-98dc-61770e4fed17', 'name': 'ctest-vn4-08086697', 'tenant_id': '645cee78f03f470aa6c38bfab4d4d5e9', 'project_id': '645cee78f03f470aa6c38bfab4d4d5e9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-44564212', 'ctest-vn4-08086697'], 'port_security_enabled': True, 'description': ''}} 2026-06-05 12:12:03,673 - DEBUG - Response for create_subnet : {'subnet': {'id': '192c3184-9dcd-4ca2-b466-93b019be2595', 'name': '', 'tenant_id': '645cee78f03f470aa6c38bfab4d4d5e9', 'network_id': '8090aac5-9cbb-4b73-98dc-61770e4fed17', 'ip_version': 4, 'cidr': '59.177.215.0/26', 'allocation_pools': [{'start': '59.177.215.2', 'end': '59.177.215.62'}], 'gateway_ip': '59.177.215.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '59.177.215.2', 'tags': [], 'project_id': '645cee78f03f470aa6c38bfab4d4d5e9'}} 2026-06-05 12:12:04,000 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd5c2a339-c2f3-4a6f-834e-fe681f32861b', 'name': '', 'tenant_id': '645cee78f03f470aa6c38bfab4d4d5e9', 'network_id': '8090aac5-9cbb-4b73-98dc-61770e4fed17', 'ip_version': 6, 'cidr': '205c:e592:1354:e6e8:ce3d:e13a::/96', 'allocation_pools': [{'start': '205c:e592:1354:e6e8:ce3d:e13a:0:2', 'end': '205c:e592:1354:e6e8:ce3d:e13a:ffff:fffe'}], 'gateway_ip': '205c:e592:1354:e6e8:ce3d:e13a:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '205c:e592:1354:e6e8:ce3d:e13a:0:2', 'tags': [], 'project_id': '645cee78f03f470aa6c38bfab4d4d5e9'}} 2026-06-05 12:12:04,025 - INFO - Created VN ctest-vn4-08086697 2026-06-05 12:12:04,043 - DEBUG - VN ctest-vn4-08086697 UUID is 8090aac5-9cbb-4b73-98dc-61770e4fed17 2026-06-05 12:12:04,322 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8090aac5-9cbb-4b73-98dc-61770e4fed17', 'name': 'ctest-vn4-08086697', 'tenant_id': '645cee78f03f470aa6c38bfab4d4d5e9', 'project_id': '645cee78f03f470aa6c38bfab4d4d5e9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['192c3184-9dcd-4ca2-b466-93b019be2595', 'd5c2a339-c2f3-4a6f-834e-fe681f32861b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-44564212', 'ctest-vn4-08086697'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-44564212', 'ctest-policy1-38153380']], 'subnet_ipam': [{'subnet_cidr': '59.177.215.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '205c:e592:1354:e6e8:ce3d:e13a::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-06-05 12:12:04,462 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-06-05 12:12:04,775 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-06-05 12:12:04,826 - DEBUG - Requesting: http://10.0.0.242:8082/domain/62815f74-0e86-490f-97a7-40f9728e4542 2026-06-05 12:12:04,849 - DEBUG - Requesting: http://10.0.0.242:8082/project/645cee78-f03f-470a-a6c3-8bfab4d4d5e9 2026-06-05 12:12:04,961 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/8090aac5-9cbb-4b73-98dc-61770e4fed17 2026-06-05 12:12:04,978 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/8090aac5-9cbb-4b73-98dc-61770e4fed17 2026-06-05 12:12:04,990 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/dc714db9-613a-4728-823b-21f80d66c294 2026-06-05 12:12:05,001 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/dc714db9-613a-4728-823b-21f80d66c294 2026-06-05 12:12:05,010 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/af9bf574-3f9e-4ff0-a699-785e5122a86f 2026-06-05 12:12:05,019 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-05 12:12:05,019 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/8090aac5-9cbb-4b73-98dc-61770e4fed17 2026-06-05 12:12:05,034 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/dc714db9-613a-4728-823b-21f80d66c294 2026-06-05 12:12:05,054 - INFO - Verified VN network id 11 for VN 8090aac5-9cbb-4b73-98dc-61770e4fed17 2026-06-05 12:12:05,054 - INFO - Verifications in API Server for VN ctest-vn4-08086697 passed 2026-06-05 12:12:05,054 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/8090aac5-9cbb-4b73-98dc-61770e4fed17 2026-06-05 12:12:05,064 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/dc714db9-613a-4728-823b-21f80d66c294 2026-06-05 12:12:05,074 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/dc714db9-613a-4728-823b-21f80d66c294 2026-06-05 12:12:05,085 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/af9bf574-3f9e-4ff0-a699-785e5122a86f 2026-06-05 12:12:05,098 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-44564212:ctest-vn4-08086697', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-44564212', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9264092199215909747', 'uuid-lslong': '11014785952610512151'}, 'enable': 'true', 'created': '2026-06-05T12:12:03', 'last-modified': '2026-06-05T12:12:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.826916'} 2026-06-05 12:12:05,108 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-05 12:12:05,118 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-44564212:ctest-vn4-08086697', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-44564212', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9264092199215909747', 'uuid-lslong': '11014785952610512151'}, 'enable': 'true', 'created': '2026-06-05T12:12:03', 'last-modified': '2026-06-05T12:12:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.840401'} 2026-06-05 12:12:05,128 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-05 12:12:05,134 - DEBUG - Control-node 10.0.0.129 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-44564212:ctest-vn4-08086697', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-44564212', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9264092199215909747', 'uuid-lslong': '11014785952610512151'}, 'enable': 'true', 'created': '2026-06-05T12:12:03', 'last-modified': '2026-06-05T12:12:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.857122'} 2026-06-05 12:12:05,140 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-05 12:12:05,140 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-08086697 passed 2026-06-05 12:12:05,140 - DEBUG - ====Verifying policy data for ctest-vn4-08086697 in API_Server ====== 2026-06-05 12:12:05,140 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-06-05 12:12:05,149 - DEBUG - Requesting: http://10.0.0.242:8082/domain/62815f74-0e86-490f-97a7-40f9728e4542 2026-06-05 12:12:05,162 - DEBUG - Requesting: http://10.0.0.242:8082/project/645cee78-f03f-470a-a6c3-8bfab4d4d5e9 2026-06-05 12:12:05,266 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/8090aac5-9cbb-4b73-98dc-61770e4fed17 2026-06-05 12:12:05,280 - DEBUG - ==>Verifying data for policy with id: ce805caf-01cb-45eb-b0a3-e989f5065a70, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-44564212', 'ctest-policy1-38153380'] 2026-06-05 12:12:05,280 - INFO - VN ctest-vn4-08086697 Policy verification: verify_vn_policy_in_api_server, status: True 2026-06-05 12:12:05,280 - DEBUG - Verifying the vn in opserver 2026-06-05 12:12:05,280 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-44564212:ctest-vn4-08086697 virtual network link through opserver 10.0.0.242 2026-06-05 12:12:05,280 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2026-06-05 12:12:05,592 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2026-06-05 12:12:05,664 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-44564212:ctest-vn4-08086697', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-44564212:ctest-vn4-08086697?flat'} 2026-06-05 12:12:05,664 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-44564212:ctest-vn4-08086697 virtual network link through opserver 10.0.0.50 2026-06-05 12:12:05,664 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-06-05 12:12:05,969 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-06-05 12:12:06,050 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-44564212:ctest-vn4-08086697', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-44564212:ctest-vn4-08086697?flat'} 2026-06-05 12:12:06,050 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-44564212:ctest-vn4-08086697 virtual network link through opserver 10.0.0.129 2026-06-05 12:12:06,051 - DEBUG - Requesting: http://10.0.0.129:8081/analytics/uves/virtual-networks 2026-06-05 12:12:06,373 - DEBUG - Requesting: http://10.0.0.129:8081/analytics/uves/virtual-networks 2026-06-05 12:12:06,446 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-44564212:ctest-vn4-08086697', 'href': 'http://10.0.0.129:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-44564212:ctest-vn4-08086697?flat'} 2026-06-05 12:12:06,446 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-44564212:ctest-vn4-08086697 is found in opserver 2026-06-05 12:12:06,476 - DEBUG - Do not have enough data to verify VN in agent 2026-06-05 12:12:06,490 - DEBUG - VRF ids for VN ctest-vn4-08086697: {} 2026-06-05 12:12:06,491 - DEBUG - ====Verifying data for ctest-policy1-38153380 in API_Server ====== 2026-06-05 12:12:06,491 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-06-05 12:12:06,498 - DEBUG - Requesting: http://10.0.0.242:8082/domain/62815f74-0e86-490f-97a7-40f9728e4542 2026-06-05 12:12:06,513 - DEBUG - Requesting: http://10.0.0.242:8082/project/645cee78-f03f-470a-a6c3-8bfab4d4d5e9 2026-06-05 12:12:06,614 - DEBUG - Requesting: http://10.0.0.242:8082/network-policy/ce805caf-01cb-45eb-b0a3-e989f5065a70 2026-06-05 12:12:06,628 - INFO - Verified policy ctest-policy1-38153380 in API Server, Result: True 2026-06-05 12:12:06,628 - INFO - Done with setup and verification, moving onto test .. 2026-06-05 12:12:06,641 - INFO - Deleting VN ctest-vn4-08086697 2026-06-05 12:12:06,873 - DEBUG - Response for deleting network () 2026-06-05 12:12:06,873 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/dc714db9-613a-4728-823b-21f80d66c294 2026-06-05 12:12:06,880 - DEBUG - Response Code: 404 2026-06-05 12:12:06,880 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-06-05 12:12:06,897 - DEBUG - Requesting: http://10.0.0.242:8082/domain/62815f74-0e86-490f-97a7-40f9728e4542 2026-06-05 12:12:06,913 - DEBUG - Requesting: http://10.0.0.242:8082/project/645cee78-f03f-470a-a6c3-8bfab4d4d5e9 2026-06-05 12:12:07,020 - INFO - Validated that VN ctest-vn4-08086697 is not found in API Server 2026-06-05 12:12:07,031 - DEBUG - VN ctest-vn4-08086697 is not present in Agent 10.0.0.41 2026-06-05 12:12:07,045 - DEBUG - VN ctest-vn4-08086697 is not present in Agent 10.0.0.141 2026-06-05 12:12:07,046 - INFO - Validated that VN ctest-vn4-08086697 is not in any agent 2026-06-05 12:12:07,086 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-08086697 info 2026-06-05 12:12:07,133 - INFO - Deleted policy ctest-policy1-38153380 2026-06-05 12:12:07,322 - DEBUG - policy ctest-policy1-38153380 is not found in API Server 2026-06-05 12:12:08,671 - DEBUG - No XMPP flaps were noticed during the test