2026-06-01 15:57:34,855 - INFO - Domain Default found not creating 2026-06-01 15:57:35,045 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-22389526 not found, creating it 2026-06-01 15:57:35,621 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-22389526, ID : d36c3c95-7ced-4394-ad90-691c17174340 2026-06-01 15:57:37,255 - INFO - ================================================================================ 2026-06-01 15:57:37,255 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-01 15:57:38,541 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.17': '3', '10.20.0.254': '3'}, '10.0.0.27': {'10.20.0.14': '2', '10.20.0.254': '3'}} with 2026-06-01 15:57:38,541 - INFO - Initial checks done. Running the testcase now 2026-06-01 15:57:38,541 - INFO - 2026-06-01 15:57:38,541 - INFO - ================================================================================ 2026-06-01 15:57:38,542 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-01 15:57:38,542 - 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-01 15:57:39,825 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.17': '3', '10.20.0.254': '3'}, '10.0.0.27': {'10.20.0.14': '2', '10.20.0.254': '3'}} with 2026-06-01 15:57:39,825 - INFO - Initial checks done. Running the testcase now 2026-06-01 15:57:39,825 - INFO - 2026-06-01 15:57:40,198 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-22389526:ctest-vn4-90366515, 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-22389526:ctest-vn4-90366515, 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-22389526:ctest-vn4-90366515, 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-22389526:ctest-vn4-90366515, 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-01 15:57:40,841 - DEBUG - Response for create_network : {'network': {'id': '1b913ccb-91fd-4164-9987-14080f4e35e5', 'name': 'ctest-vn4-90366515', 'tenant_id': 'd36c3c957ced4394ad90691c17174340', 'project_id': 'd36c3c957ced4394ad90691c17174340', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-22389526', 'ctest-vn4-90366515'], 'port_security_enabled': True, 'description': ''}} 2026-06-01 15:57:41,160 - DEBUG - Response for create_subnet : {'subnet': {'id': '841af8a3-a621-40e4-acc6-7aea0720d693', 'name': '', 'tenant_id': 'd36c3c957ced4394ad90691c17174340', 'network_id': '1b913ccb-91fd-4164-9987-14080f4e35e5', 'ip_version': 4, 'cidr': '209.21.15.0/26', 'allocation_pools': [{'start': '209.21.15.2', 'end': '209.21.15.62'}], 'gateway_ip': '209.21.15.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '209.21.15.2', 'tags': [], 'project_id': 'd36c3c957ced4394ad90691c17174340'}} 2026-06-01 15:57:41,421 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a389ca01-f11c-4fd1-a41c-98ba7d25d29c', 'name': '', 'tenant_id': 'd36c3c957ced4394ad90691c17174340', 'network_id': '1b913ccb-91fd-4164-9987-14080f4e35e5', 'ip_version': 6, 'cidr': '2eb9:3885:d5af:bbd6:dda2:b13f::/96', 'allocation_pools': [{'start': '2eb9:3885:d5af:bbd6:dda2:b13f:0:2', 'end': '2eb9:3885:d5af:bbd6:dda2:b13f:ffff:fffe'}], 'gateway_ip': '2eb9:3885:d5af:bbd6:dda2:b13f:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2eb9:3885:d5af:bbd6:dda2:b13f:0:2', 'tags': [], 'project_id': 'd36c3c957ced4394ad90691c17174340'}} 2026-06-01 15:57:41,449 - INFO - Created VN ctest-vn4-90366515 2026-06-01 15:57:41,461 - DEBUG - VN ctest-vn4-90366515 UUID is 1b913ccb-91fd-4164-9987-14080f4e35e5 2026-06-01 15:57:41,684 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1b913ccb-91fd-4164-9987-14080f4e35e5', 'name': 'ctest-vn4-90366515', 'tenant_id': 'd36c3c957ced4394ad90691c17174340', 'project_id': 'd36c3c957ced4394ad90691c17174340', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['841af8a3-a621-40e4-acc6-7aea0720d693', 'a389ca01-f11c-4fd1-a41c-98ba7d25d29c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-22389526', 'ctest-vn4-90366515'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-22389526', 'ctest-policy1-92125409']], 'subnet_ipam': [{'subnet_cidr': '209.21.15.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2eb9:3885:d5af:bbd6:dda2:b13f::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-06-01 15:57:41,804 - DEBUG - Requesting: http://10.0.0.241:8082/domains 2026-06-01 15:57:42,098 - DEBUG - Requesting: http://10.0.0.241:8082/domains 2026-06-01 15:57:42,140 - DEBUG - Requesting: http://10.0.0.241:8082/domain/4934cdf0-e2c0-49f7-8ec1-47ce02d5e849 2026-06-01 15:57:42,160 - DEBUG - Requesting: http://10.0.0.241:8082/project/d36c3c95-7ced-4394-ad90-691c17174340 2026-06-01 15:57:42,274 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/1b913ccb-91fd-4164-9987-14080f4e35e5 2026-06-01 15:57:42,287 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/1b913ccb-91fd-4164-9987-14080f4e35e5 2026-06-01 15:57:42,297 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/b9054038-2f2a-4f3b-9f23-b2430c109d97 2026-06-01 15:57:42,306 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/b9054038-2f2a-4f3b-9f23-b2430c109d97 2026-06-01 15:57:42,314 - DEBUG - Requesting: http://10.0.0.241:8082/route-target/c303c312-abec-43ed-92fe-28d285277720 2026-06-01 15:57:42,324 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-01 15:57:42,324 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/1b913ccb-91fd-4164-9987-14080f4e35e5 2026-06-01 15:57:42,335 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/b9054038-2f2a-4f3b-9f23-b2430c109d97 2026-06-01 15:57:42,355 - INFO - Verified VN network id 15 for VN 1b913ccb-91fd-4164-9987-14080f4e35e5 2026-06-01 15:57:42,356 - INFO - Verifications in API Server for VN ctest-vn4-90366515 passed 2026-06-01 15:57:42,356 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/1b913ccb-91fd-4164-9987-14080f4e35e5 2026-06-01 15:57:42,369 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/b9054038-2f2a-4f3b-9f23-b2430c109d97 2026-06-01 15:57:42,376 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/b9054038-2f2a-4f3b-9f23-b2430c109d97 2026-06-01 15:57:42,383 - DEBUG - Requesting: http://10.0.0.241:8082/route-target/c303c312-abec-43ed-92fe-28d285277720 2026-06-01 15:57:42,397 - DEBUG - Control-node 10.0.0.241 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-22389526:ctest-vn4-90366515', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-22389526', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1986435755672420708', 'uuid-lslong': '11062833034507990501'}, 'enable': 'true', 'created': '2026-06-01T15:57:40', 'last-modified': '2026-06-01T15:57:41', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.752453'} 2026-06-01 15:57:42,404 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-01 15:57:42,417 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-22389526:ctest-vn4-90366515', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-22389526', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1986435755672420708', 'uuid-lslong': '11062833034507990501'}, 'enable': 'true', 'created': '2026-06-01T15:57:40', 'last-modified': '2026-06-01T15:57:41', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.771020'} 2026-06-01 15:57:42,425 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-01 15:57:42,432 - DEBUG - Control-node 10.0.0.19 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-22389526:ctest-vn4-90366515', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-22389526', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1986435755672420708', 'uuid-lslong': '11062833034507990501'}, 'enable': 'true', 'created': '2026-06-01T15:57:40', 'last-modified': '2026-06-01T15:57:41', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.784559'} 2026-06-01 15:57:42,440 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-01 15:57:42,440 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-90366515 passed 2026-06-01 15:57:42,441 - DEBUG - ====Verifying policy data for ctest-vn4-90366515 in API_Server ====== 2026-06-01 15:57:42,441 - DEBUG - Requesting: http://10.0.0.241:8082/domains 2026-06-01 15:57:42,453 - DEBUG - Requesting: http://10.0.0.241:8082/domain/4934cdf0-e2c0-49f7-8ec1-47ce02d5e849 2026-06-01 15:57:42,469 - DEBUG - Requesting: http://10.0.0.241:8082/project/d36c3c95-7ced-4394-ad90-691c17174340 2026-06-01 15:57:42,563 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/1b913ccb-91fd-4164-9987-14080f4e35e5 2026-06-01 15:57:42,582 - DEBUG - ==>Verifying data for policy with id: d424edbe-be61-4e2c-8515-5bf4a98c3a07, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-22389526', 'ctest-policy1-92125409'] 2026-06-01 15:57:42,582 - INFO - VN ctest-vn4-90366515 Policy verification: verify_vn_policy_in_api_server, status: True 2026-06-01 15:57:42,582 - DEBUG - Verifying the vn in opserver 2026-06-01 15:57:42,582 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-22389526:ctest-vn4-90366515 virtual network link through opserver 10.0.0.241 2026-06-01 15:57:42,582 - DEBUG - Requesting: http://10.0.0.241:8081/analytics/uves/virtual-networks 2026-06-01 15:57:42,881 - DEBUG - Requesting: http://10.0.0.241:8081/analytics/uves/virtual-networks 2026-06-01 15:57:42,958 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-22389526:ctest-vn4-90366515', 'href': 'http://10.0.0.241:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-22389526:ctest-vn4-90366515?flat'} 2026-06-01 15:57:42,958 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-22389526:ctest-vn4-90366515 virtual network link through opserver 10.0.0.242 2026-06-01 15:57:42,958 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2026-06-01 15:57:43,273 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2026-06-01 15:57:43,355 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-22389526:ctest-vn4-90366515', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-22389526:ctest-vn4-90366515?flat'} 2026-06-01 15:57:43,355 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-22389526:ctest-vn4-90366515 virtual network link through opserver 10.0.0.19 2026-06-01 15:57:43,355 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2026-06-01 15:57:43,650 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2026-06-01 15:57:43,723 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-22389526:ctest-vn4-90366515', 'href': 'http://10.0.0.19:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-22389526:ctest-vn4-90366515?flat'} 2026-06-01 15:57:43,723 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-22389526:ctest-vn4-90366515 is found in opserver 2026-06-01 15:57:43,762 - DEBUG - Do not have enough data to verify VN in agent 2026-06-01 15:57:43,774 - DEBUG - VRF ids for VN ctest-vn4-90366515: {} 2026-06-01 15:57:43,774 - DEBUG - ====Verifying data for ctest-policy1-92125409 in API_Server ====== 2026-06-01 15:57:43,774 - DEBUG - Requesting: http://10.0.0.241:8082/domains 2026-06-01 15:57:43,785 - DEBUG - Requesting: http://10.0.0.241:8082/domain/4934cdf0-e2c0-49f7-8ec1-47ce02d5e849 2026-06-01 15:57:43,799 - DEBUG - Requesting: http://10.0.0.241:8082/project/d36c3c95-7ced-4394-ad90-691c17174340 2026-06-01 15:57:43,902 - DEBUG - Requesting: http://10.0.0.241:8082/network-policy/d424edbe-be61-4e2c-8515-5bf4a98c3a07 2026-06-01 15:57:43,920 - INFO - Verified policy ctest-policy1-92125409 in API Server, Result: True 2026-06-01 15:57:43,921 - INFO - Done with setup and verification, moving onto test .. 2026-06-01 15:57:43,934 - INFO - Deleting VN ctest-vn4-90366515 2026-06-01 15:57:44,232 - DEBUG - Response for deleting network () 2026-06-01 15:57:44,233 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/b9054038-2f2a-4f3b-9f23-b2430c109d97 2026-06-01 15:57:44,240 - DEBUG - Response Code: 404 2026-06-01 15:57:44,240 - DEBUG - Requesting: http://10.0.0.241:8082/domains 2026-06-01 15:57:44,251 - DEBUG - Requesting: http://10.0.0.241:8082/domain/4934cdf0-e2c0-49f7-8ec1-47ce02d5e849 2026-06-01 15:57:44,313 - DEBUG - Requesting: http://10.0.0.241:8082/project/d36c3c95-7ced-4394-ad90-691c17174340 2026-06-01 15:57:44,424 - INFO - Validated that VN ctest-vn4-90366515 is not found in API Server 2026-06-01 15:57:44,452 - DEBUG - VN ctest-vn4-90366515 is not present in Agent 10.0.0.141 2026-06-01 15:57:44,464 - DEBUG - VN ctest-vn4-90366515 is not present in Agent 10.0.0.27 2026-06-01 15:57:44,464 - INFO - Validated that VN ctest-vn4-90366515 is not in any agent 2026-06-01 15:57:44,504 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-90366515 info 2026-06-01 15:57:44,542 - INFO - Deleted policy ctest-policy1-92125409 2026-06-01 15:57:44,733 - DEBUG - policy ctest-policy1-92125409 is not found in API Server 2026-06-01 15:57:46,029 - DEBUG - No XMPP flaps were noticed during the test 2026-06-01 15:57:46,029 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:08] 2026-06-01 15:57:46,029 - INFO - -------------------------------------------------------------------------------- 2026-06-01 15:57:47,314 - DEBUG - No XMPP flaps were noticed during the test 2026-06-01 15:57:47,314 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:10] 2026-06-01 15:57:47,314 - INFO - -------------------------------------------------------------------------------- 2026-06-01 15:57:48,090 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-22389526, ID : d36c3c95-7ced-4394-ad90-691c17174340