2026-05-18 02:41:30,529 - INFO - Domain Default found not creating 2026-05-18 02:41:30,714 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-41421674 not found, creating it 2026-05-18 02:41:31,328 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-41421674, ID : 5ae6b45f-4d31-455d-b650-cd5d531ad1c7 2026-05-18 02:41:32,899 - INFO - ================================================================================ 2026-05-18 02:41:32,899 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-05-18 02:41:34,181 - DEBUG - Nothing to compare xmpp stats {'10.0.0.65': {'10.20.0.129': '0', '10.20.0.25': '2'}, '10.0.0.130': {'10.20.0.25': '0', '10.20.0.129': '3'}} with 2026-05-18 02:41:34,181 - INFO - Initial checks done. Running the testcase now 2026-05-18 02:41:34,181 - INFO - 2026-05-18 02:41:34,181 - INFO - ================================================================================ 2026-05-18 02:41:34,181 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-05-18 02:41:34,181 - 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-05-18 02:41:35,458 - DEBUG - Nothing to compare xmpp stats {'10.0.0.65': {'10.20.0.129': '0', '10.20.0.25': '2'}, '10.0.0.130': {'10.20.0.25': '0', '10.20.0.129': '3'}} with 2026-05-18 02:41:35,458 - INFO - Initial checks done. Running the testcase now 2026-05-18 02:41:35,458 - INFO - 2026-05-18 02:41:35,831 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-41421674:ctest-vn4-63382180, 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-41421674:ctest-vn4-63382180, 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-41421674:ctest-vn4-63382180, 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-41421674:ctest-vn4-63382180, 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-05-18 02:41:36,489 - DEBUG - Response for create_network : {'network': {'id': '2dafbfe4-2ab6-48a8-a77b-d572971ee262', 'name': 'ctest-vn4-63382180', 'tenant_id': '5ae6b45f4d31455db650cd5d531ad1c7', 'project_id': '5ae6b45f4d31455db650cd5d531ad1c7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-41421674', 'ctest-vn4-63382180'], 'port_security_enabled': True, 'description': ''}} 2026-05-18 02:41:36,766 - DEBUG - Response for create_subnet : {'subnet': {'id': '2f3ecfdb-1295-48b3-b0d7-a6f6e9f2ad87', 'name': '', 'tenant_id': '5ae6b45f4d31455db650cd5d531ad1c7', 'network_id': '2dafbfe4-2ab6-48a8-a77b-d572971ee262', 'ip_version': 4, 'cidr': '133.13.76.64/26', 'allocation_pools': [{'start': '133.13.76.66', 'end': '133.13.76.126'}], 'gateway_ip': '133.13.76.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '133.13.76.66', 'tags': [], 'project_id': '5ae6b45f4d31455db650cd5d531ad1c7'}} 2026-05-18 02:41:36,982 - DEBUG - Response for create_subnet : {'subnet': {'id': '95439e3c-7bfe-4af2-8cf7-fcf3e5e973de', 'name': '', 'tenant_id': '5ae6b45f4d31455db650cd5d531ad1c7', 'network_id': '2dafbfe4-2ab6-48a8-a77b-d572971ee262', 'ip_version': 6, 'cidr': '3bd5:20f0:51d0:5a6d:8beb:5707::/96', 'allocation_pools': [{'start': '3bd5:20f0:51d0:5a6d:8beb:5707:0:2', 'end': '3bd5:20f0:51d0:5a6d:8beb:5707:ffff:fffe'}], 'gateway_ip': '3bd5:20f0:51d0:5a6d:8beb:5707:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3bd5:20f0:51d0:5a6d:8beb:5707:0:2', 'tags': [], 'project_id': '5ae6b45f4d31455db650cd5d531ad1c7'}} 2026-05-18 02:41:37,008 - INFO - Created VN ctest-vn4-63382180 2026-05-18 02:41:37,021 - DEBUG - VN ctest-vn4-63382180 UUID is 2dafbfe4-2ab6-48a8-a77b-d572971ee262 2026-05-18 02:41:37,278 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2dafbfe4-2ab6-48a8-a77b-d572971ee262', 'name': 'ctest-vn4-63382180', 'tenant_id': '5ae6b45f4d31455db650cd5d531ad1c7', 'project_id': '5ae6b45f4d31455db650cd5d531ad1c7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2f3ecfdb-1295-48b3-b0d7-a6f6e9f2ad87', '95439e3c-7bfe-4af2-8cf7-fcf3e5e973de'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-41421674', 'ctest-vn4-63382180'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-41421674', 'ctest-policy1-28972007']], 'subnet_ipam': [{'subnet_cidr': '133.13.76.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3bd5:20f0:51d0:5a6d:8beb:5707::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-05-18 02:41:37,393 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2026-05-18 02:41:37,708 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2026-05-18 02:41:37,747 - DEBUG - Requesting: http://10.0.0.23:8082/domain/4bbec0ba-f2cb-4fcb-b8f1-efc2a7bf0989 2026-05-18 02:41:37,764 - DEBUG - Requesting: http://10.0.0.23:8082/project/5ae6b45f-4d31-455d-b650-cd5d531ad1c7 2026-05-18 02:41:37,874 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/2dafbfe4-2ab6-48a8-a77b-d572971ee262 2026-05-18 02:41:37,893 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/2dafbfe4-2ab6-48a8-a77b-d572971ee262 2026-05-18 02:41:37,906 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/9550ce51-942a-4394-b8f3-1b78c94bc170 2026-05-18 02:41:37,918 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/9550ce51-942a-4394-b8f3-1b78c94bc170 2026-05-18 02:41:37,928 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/77b9dbcb-e272-43e3-ba79-b1e6ed3f97e2 2026-05-18 02:41:37,935 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-18 02:41:37,935 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/2dafbfe4-2ab6-48a8-a77b-d572971ee262 2026-05-18 02:41:37,945 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/9550ce51-942a-4394-b8f3-1b78c94bc170 2026-05-18 02:41:37,961 - INFO - Verified VN network id 11 for VN 2dafbfe4-2ab6-48a8-a77b-d572971ee262 2026-05-18 02:41:37,962 - INFO - Verifications in API Server for VN ctest-vn4-63382180 passed 2026-05-18 02:41:37,962 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/2dafbfe4-2ab6-48a8-a77b-d572971ee262 2026-05-18 02:41:37,975 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/9550ce51-942a-4394-b8f3-1b78c94bc170 2026-05-18 02:41:37,984 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/9550ce51-942a-4394-b8f3-1b78c94bc170 2026-05-18 02:41:37,992 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/77b9dbcb-e272-43e3-ba79-b1e6ed3f97e2 2026-05-18 02:41:38,013 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-41421674:ctest-vn4-63382180', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-41421674', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3292060839321159848', 'uuid-lslong': '12068474314607747682'}, 'enable': 'true', 'created': '2026-05-18T02:41:36', 'last-modified': '2026-05-18T02:41:37', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.789490'} 2026-05-18 02:41:38,021 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-18 02:41:38,027 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-41421674:ctest-vn4-63382180', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-41421674', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3292060839321159848', 'uuid-lslong': '12068474314607747682'}, 'enable': 'true', 'created': '2026-05-18T02:41:36', 'last-modified': '2026-05-18T02:41:37', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.814664'} 2026-05-18 02:41:38,033 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-18 02:41:38,040 - DEBUG - Control-node 10.0.0.240 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-41421674:ctest-vn4-63382180', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-41421674', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3292060839321159848', 'uuid-lslong': '12068474314607747682'}, 'enable': 'true', 'created': '2026-05-18T02:41:36', 'last-modified': '2026-05-18T02:41:37', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.810219'} 2026-05-18 02:41:38,047 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-18 02:41:38,047 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-63382180 passed 2026-05-18 02:41:38,047 - DEBUG - ====Verifying policy data for ctest-vn4-63382180 in API_Server ====== 2026-05-18 02:41:38,047 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2026-05-18 02:41:38,054 - DEBUG - Requesting: http://10.0.0.23:8082/domain/4bbec0ba-f2cb-4fcb-b8f1-efc2a7bf0989 2026-05-18 02:41:38,065 - DEBUG - Requesting: http://10.0.0.23:8082/project/5ae6b45f-4d31-455d-b650-cd5d531ad1c7 2026-05-18 02:41:38,170 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/2dafbfe4-2ab6-48a8-a77b-d572971ee262 2026-05-18 02:41:38,183 - DEBUG - ==>Verifying data for policy with id: 9db9f192-a780-41b3-a4d4-b58766bb3535, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-41421674', 'ctest-policy1-28972007'] 2026-05-18 02:41:38,183 - INFO - VN ctest-vn4-63382180 Policy verification: verify_vn_policy_in_api_server, status: True 2026-05-18 02:41:38,183 - DEBUG - Verifying the vn in opserver 2026-05-18 02:41:38,183 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-41421674:ctest-vn4-63382180 virtual network link through opserver 10.0.0.23 2026-05-18 02:41:38,183 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2026-05-18 02:41:38,492 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2026-05-18 02:41:38,563 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-41421674:ctest-vn4-63382180', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-41421674:ctest-vn4-63382180?flat'} 2026-05-18 02:41:38,563 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-41421674:ctest-vn4-63382180 virtual network link through opserver 10.0.0.22 2026-05-18 02:41:38,563 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2026-05-18 02:41:38,876 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2026-05-18 02:41:38,953 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-41421674:ctest-vn4-63382180', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-41421674:ctest-vn4-63382180?flat'} 2026-05-18 02:41:38,953 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-41421674:ctest-vn4-63382180 virtual network link through opserver 10.0.0.240 2026-05-18 02:41:38,953 - DEBUG - Requesting: http://10.0.0.240:8081/analytics/uves/virtual-networks 2026-05-18 02:41:39,251 - DEBUG - Requesting: http://10.0.0.240:8081/analytics/uves/virtual-networks 2026-05-18 02:41:39,317 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-41421674:ctest-vn4-63382180', 'href': 'http://10.0.0.240:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-41421674:ctest-vn4-63382180?flat'} 2026-05-18 02:41:39,317 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-41421674:ctest-vn4-63382180 is found in opserver 2026-05-18 02:41:39,338 - DEBUG - Do not have enough data to verify VN in agent 2026-05-18 02:41:39,348 - DEBUG - VRF ids for VN ctest-vn4-63382180: {} 2026-05-18 02:41:39,348 - DEBUG - ====Verifying data for ctest-policy1-28972007 in API_Server ====== 2026-05-18 02:41:39,348 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2026-05-18 02:41:39,354 - DEBUG - Requesting: http://10.0.0.23:8082/domain/4bbec0ba-f2cb-4fcb-b8f1-efc2a7bf0989 2026-05-18 02:41:39,366 - DEBUG - Requesting: http://10.0.0.23:8082/project/5ae6b45f-4d31-455d-b650-cd5d531ad1c7 2026-05-18 02:41:39,457 - DEBUG - Requesting: http://10.0.0.23:8082/network-policy/9db9f192-a780-41b3-a4d4-b58766bb3535 2026-05-18 02:41:39,472 - INFO - Verified policy ctest-policy1-28972007 in API Server, Result: True 2026-05-18 02:41:39,472 - INFO - Done with setup and verification, moving onto test .. 2026-05-18 02:41:39,484 - INFO - Deleting VN ctest-vn4-63382180 2026-05-18 02:41:39,699 - DEBUG - Response for deleting network () 2026-05-18 02:41:39,699 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/9550ce51-942a-4394-b8f3-1b78c94bc170 2026-05-18 02:41:39,705 - DEBUG - Response Code: 404 2026-05-18 02:41:39,705 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2026-05-18 02:41:39,712 - DEBUG - Requesting: http://10.0.0.23:8082/domain/4bbec0ba-f2cb-4fcb-b8f1-efc2a7bf0989 2026-05-18 02:41:39,737 - DEBUG - Requesting: http://10.0.0.23:8082/project/5ae6b45f-4d31-455d-b650-cd5d531ad1c7 2026-05-18 02:41:39,842 - INFO - Validated that VN ctest-vn4-63382180 is not found in API Server 2026-05-18 02:41:39,853 - DEBUG - VN ctest-vn4-63382180 is not present in Agent 10.0.0.65 2026-05-18 02:41:39,863 - DEBUG - VN ctest-vn4-63382180 is not present in Agent 10.0.0.130 2026-05-18 02:41:39,863 - INFO - Validated that VN ctest-vn4-63382180 is not in any agent 2026-05-18 02:41:39,896 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-63382180 info 2026-05-18 02:41:39,946 - INFO - Deleted policy ctest-policy1-28972007 2026-05-18 02:41:40,132 - DEBUG - policy ctest-policy1-28972007 is not found in API Server 2026-05-18 02:41:41,413 - DEBUG - No XMPP flaps were noticed during the test
2026-05-18 02:41:41,414 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:07]
2026-05-18 02:41:41,414 - INFO - -------------------------------------------------------------------------------- 2026-05-18 02:41:42,697 - DEBUG - No XMPP flaps were noticed during the test
2026-05-18 02:41:42,697 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:10]
2026-05-18 02:41:42,697 - INFO - -------------------------------------------------------------------------------- 2026-05-18 02:41:43,458 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-41421674, ID : 5ae6b45f-4d31-455d-b650-cd5d531ad1c7