2026-03-27 15:15:23,920 - INFO - Domain Default found not creating 2026-03-27 15:15:24,095 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-39366779 not found, creating it 2026-03-27 15:15:24,554 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-39366779, ID : 15c113df-3888-4975-8399-2e2c0d218552 2026-03-27 15:15:26,084 - INFO - ================================================================================ 2026-03-27 15:15:26,084 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-27 15:15:26,339 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.25': '0'}} with 2026-03-27 15:15:26,339 - INFO - Initial checks done. Running the testcase now 2026-03-27 15:15:26,340 - INFO - 2026-03-27 15:15:26,340 - INFO - ================================================================================ 2026-03-27 15:15:26,340 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-27 15:15:26,340 - 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-03-27 15:15:26,630 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.25': '0'}} with 2026-03-27 15:15:26,630 - INFO - Initial checks done. Running the testcase now 2026-03-27 15:15:26,630 - INFO - 2026-03-27 15:15:26,983 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-39366779:ctest-vn4-85579872, 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-39366779:ctest-vn4-85579872, 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-39366779:ctest-vn4-85579872, 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-39366779:ctest-vn4-85579872, 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-03-27 15:15:27,499 - DEBUG - Response for create_network : {'network': {'id': '29f8e55c-4602-44c0-84bd-acb6bf22b5fc', 'name': 'ctest-vn4-85579872', 'tenant_id': '15c113df3888497583992e2c0d218552', 'project_id': '15c113df3888497583992e2c0d218552', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-39366779', 'ctest-vn4-85579872'], 'port_security_enabled': True, 'description': ''}} 2026-03-27 15:15:27,645 - DEBUG - Response for create_subnet : {'subnet': {'id': '82a4ca50-35e8-46b6-89b6-f28747433bae', 'name': '', 'tenant_id': '15c113df3888497583992e2c0d218552', 'network_id': '29f8e55c-4602-44c0-84bd-acb6bf22b5fc', 'ip_version': 4, 'cidr': '191.190.109.128/26', 'allocation_pools': [{'start': '191.190.109.130', 'end': '191.190.109.190'}], 'gateway_ip': '191.190.109.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '191.190.109.130', 'tags': [], 'project_id': '15c113df3888497583992e2c0d218552'}} 2026-03-27 15:15:27,839 - DEBUG - Response for create_subnet : {'subnet': {'id': 'aa10790f-f94f-4fa6-b6dc-e4fa6efec3ee', 'name': '', 'tenant_id': '15c113df3888497583992e2c0d218552', 'network_id': '29f8e55c-4602-44c0-84bd-acb6bf22b5fc', 'ip_version': 6, 'cidr': '2225:c6bf:dafd:826c:44e4:1d03::/96', 'allocation_pools': [{'start': '2225:c6bf:dafd:826c:44e4:1d03:0:2', 'end': '2225:c6bf:dafd:826c:44e4:1d03:ffff:fffe'}], 'gateway_ip': '2225:c6bf:dafd:826c:44e4:1d03:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2225:c6bf:dafd:826c:44e4:1d03:0:2', 'tags': [], 'project_id': '15c113df3888497583992e2c0d218552'}} 2026-03-27 15:15:27,858 - INFO - Created VN ctest-vn4-85579872 2026-03-27 15:15:27,909 - DEBUG - VN ctest-vn4-85579872 UUID is 29f8e55c-4602-44c0-84bd-acb6bf22b5fc 2026-03-27 15:15:28,105 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '29f8e55c-4602-44c0-84bd-acb6bf22b5fc', 'name': 'ctest-vn4-85579872', 'tenant_id': '15c113df3888497583992e2c0d218552', 'project_id': '15c113df3888497583992e2c0d218552', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['82a4ca50-35e8-46b6-89b6-f28747433bae', 'aa10790f-f94f-4fa6-b6dc-e4fa6efec3ee'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-39366779', 'ctest-vn4-85579872'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-39366779', 'ctest-policy1-54999261']], 'subnet_ipam': [{'subnet_cidr': '191.190.109.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2225:c6bf:dafd:826c:44e4:1d03::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-03-27 15:15:28,265 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-03-27 15:15:28,557 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-03-27 15:15:28,590 - DEBUG - Requesting: http://10.0.0.249:8082/domain/a66a75c5-d98c-48dc-b4b1-99517c5599c1 2026-03-27 15:15:28,601 - DEBUG - Requesting: http://10.0.0.249:8082/project/15c113df-3888-4975-8399-2e2c0d218552 2026-03-27 15:15:28,671 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/29f8e55c-4602-44c0-84bd-acb6bf22b5fc 2026-03-27 15:15:28,682 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/29f8e55c-4602-44c0-84bd-acb6bf22b5fc 2026-03-27 15:15:28,692 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/96bd1064-09c6-4444-aedb-a4f22002d68b 2026-03-27 15:15:28,700 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/96bd1064-09c6-4444-aedb-a4f22002d68b 2026-03-27 15:15:28,707 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/1346ddb1-db82-4b3c-b9b1-41cca6163936 2026-03-27 15:15:28,713 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-27 15:15:28,713 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/29f8e55c-4602-44c0-84bd-acb6bf22b5fc 2026-03-27 15:15:28,722 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/96bd1064-09c6-4444-aedb-a4f22002d68b 2026-03-27 15:15:28,735 - INFO - Verified VN network id 11 for VN 29f8e55c-4602-44c0-84bd-acb6bf22b5fc 2026-03-27 15:15:28,736 - INFO - Verifications in API Server for VN ctest-vn4-85579872 passed 2026-03-27 15:15:28,736 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/29f8e55c-4602-44c0-84bd-acb6bf22b5fc 2026-03-27 15:15:28,745 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/96bd1064-09c6-4444-aedb-a4f22002d68b 2026-03-27 15:15:28,752 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/96bd1064-09c6-4444-aedb-a4f22002d68b 2026-03-27 15:15:28,759 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/1346ddb1-db82-4b3c-b9b1-41cca6163936 2026-03-27 15:15:28,771 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-39366779:ctest-vn4-85579872', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-39366779', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3024419334253593792', 'uuid-lslong': '9564991084495549948'}, 'enable': 'true', 'created': '2026-03-27T15:15:27', 'last-modified': '2026-03-27T15:15:28', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.692678'} 2026-03-27 15:15:28,777 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-27 15:15:28,777 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-85579872 passed 2026-03-27 15:15:28,777 - DEBUG - ====Verifying policy data for ctest-vn4-85579872 in API_Server ====== 2026-03-27 15:15:28,777 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-03-27 15:15:28,782 - DEBUG - Requesting: http://10.0.0.249:8082/domain/a66a75c5-d98c-48dc-b4b1-99517c5599c1 2026-03-27 15:15:28,793 - DEBUG - Requesting: http://10.0.0.249:8082/project/15c113df-3888-4975-8399-2e2c0d218552 2026-03-27 15:15:28,866 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/29f8e55c-4602-44c0-84bd-acb6bf22b5fc 2026-03-27 15:15:28,876 - DEBUG - ==>Verifying data for policy with id: 9337900b-6b60-4537-88ed-7a3365052f0d, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-39366779', 'ctest-policy1-54999261'] 2026-03-27 15:15:28,876 - INFO - VN ctest-vn4-85579872 Policy verification: verify_vn_policy_in_api_server, status: True 2026-03-27 15:15:28,876 - DEBUG - Verifying the vn in opserver 2026-03-27 15:15:28,876 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-39366779:ctest-vn4-85579872 virtual network link through opserver 10.0.0.249 2026-03-27 15:15:28,876 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2026-03-27 15:15:29,168 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2026-03-27 15:15:29,228 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-39366779:ctest-vn4-85579872', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-39366779:ctest-vn4-85579872?flat'} 2026-03-27 15:15:29,228 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-39366779:ctest-vn4-85579872 is found in opserver 2026-03-27 15:15:29,236 - DEBUG - Do not have enough data to verify VN in agent 2026-03-27 15:15:29,241 - DEBUG - VRF ids for VN ctest-vn4-85579872: {} 2026-03-27 15:15:29,241 - DEBUG - ====Verifying data for ctest-policy1-54999261 in API_Server ====== 2026-03-27 15:15:29,241 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-03-27 15:15:29,247 - DEBUG - Requesting: http://10.0.0.249:8082/domain/a66a75c5-d98c-48dc-b4b1-99517c5599c1 2026-03-27 15:15:29,257 - DEBUG - Requesting: http://10.0.0.249:8082/project/15c113df-3888-4975-8399-2e2c0d218552 2026-03-27 15:15:29,330 - DEBUG - Requesting: http://10.0.0.249:8082/network-policy/9337900b-6b60-4537-88ed-7a3365052f0d 2026-03-27 15:15:29,339 - INFO - Verified policy ctest-policy1-54999261 in API Server, Result: True 2026-03-27 15:15:29,339 - INFO - Done with setup and verification, moving onto test .. 2026-03-27 15:15:29,347 - INFO - Deleting VN ctest-vn4-85579872 2026-03-27 15:15:29,458 - DEBUG - Response for deleting network () 2026-03-27 15:15:29,458 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/96bd1064-09c6-4444-aedb-a4f22002d68b 2026-03-27 15:15:29,463 - DEBUG - Response Code: 404 2026-03-27 15:15:29,463 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-03-27 15:15:29,468 - DEBUG - Requesting: http://10.0.0.249:8082/domain/a66a75c5-d98c-48dc-b4b1-99517c5599c1 2026-03-27 15:15:29,523 - DEBUG - Requesting: http://10.0.0.249:8082/project/15c113df-3888-4975-8399-2e2c0d218552 2026-03-27 15:15:29,592 - INFO - Validated that VN ctest-vn4-85579872 is not found in API Server 2026-03-27 15:15:29,600 - DEBUG - VN ctest-vn4-85579872 is not present in Agent 10.0.0.249 2026-03-27 15:15:29,600 - INFO - Validated that VN ctest-vn4-85579872 is not in any agent 2026-03-27 15:15:29,613 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-85579872 info 2026-03-27 15:15:29,636 - INFO - Deleted policy ctest-policy1-54999261 2026-03-27 15:15:29,801 - DEBUG - policy ctest-policy1-54999261 is not found in API Server 2026-03-27 15:15:30,059 - DEBUG - No XMPP flaps were noticed during the test