2026-04-27 03:02:06,845 - INFO - Domain Default found not creating 2026-04-27 03:02:07,064 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-87507113 not found, creating it 2026-04-27 03:02:07,742 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-87507113, ID : c3067404-66ea-43bb-936a-3497a44d31b4 2026-04-27 03:02:09,483 - INFO - ================================================================================ 2026-04-27 03:02:09,483 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-04-27 03:02:10,838 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.193': '0', '10.20.0.18': '0'}, '10.0.0.65': {'10.20.0.25': '0', '10.20.0.18': '0'}} with 2026-04-27 03:02:10,838 - INFO - Initial checks done. Running the testcase now 2026-04-27 03:02:10,838 - INFO - 2026-04-27 03:02:10,838 - INFO - ================================================================================ 2026-04-27 03:02:10,838 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-04-27 03:02:10,838 - 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-04-27 03:02:12,147 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.193': '0', '10.20.0.18': '0'}, '10.0.0.65': {'10.20.0.25': '0', '10.20.0.18': '0'}} with 2026-04-27 03:02:12,147 - INFO - Initial checks done. Running the testcase now 2026-04-27 03:02:12,147 - INFO - 2026-04-27 03:02:12,546 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87507113:ctest-vn4-93508605, 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-87507113:ctest-vn4-93508605, 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-87507113:ctest-vn4-93508605, 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-87507113:ctest-vn4-93508605, 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-04-27 03:02:13,295 - DEBUG - Response for create_network : {'network': {'id': '47a86d08-9c1b-4c69-9d3e-3668573751a1', 'name': 'ctest-vn4-93508605', 'tenant_id': 'c306740466ea43bb936a3497a44d31b4', 'project_id': 'c306740466ea43bb936a3497a44d31b4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-87507113', 'ctest-vn4-93508605'], 'port_security_enabled': True, 'description': ''}} 2026-04-27 03:02:13,582 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b803b6f7-628b-4845-bf4f-12a20bb569b9', 'name': '', 'tenant_id': 'c306740466ea43bb936a3497a44d31b4', 'network_id': '47a86d08-9c1b-4c69-9d3e-3668573751a1', 'ip_version': 4, 'cidr': '36.27.254.128/26', 'allocation_pools': [{'start': '36.27.254.130', 'end': '36.27.254.190'}], 'gateway_ip': '36.27.254.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '36.27.254.130', 'tags': [], 'project_id': 'c306740466ea43bb936a3497a44d31b4'}} 2026-04-27 03:02:13,855 - DEBUG - Response for create_subnet : {'subnet': {'id': '5da188d7-f6cc-4dd8-a8a4-dc479708ac79', 'name': '', 'tenant_id': 'c306740466ea43bb936a3497a44d31b4', 'network_id': '47a86d08-9c1b-4c69-9d3e-3668573751a1', 'ip_version': 6, 'cidr': '2465:206e:2ccb:15ea:3f27:c97c::/96', 'allocation_pools': [{'start': '2465:206e:2ccb:15ea:3f27:c97c:0:2', 'end': '2465:206e:2ccb:15ea:3f27:c97c:ffff:fffe'}], 'gateway_ip': '2465:206e:2ccb:15ea:3f27:c97c:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2465:206e:2ccb:15ea:3f27:c97c:0:2', 'tags': [], 'project_id': 'c306740466ea43bb936a3497a44d31b4'}} 2026-04-27 03:02:13,892 - INFO - Created VN ctest-vn4-93508605 2026-04-27 03:02:13,915 - DEBUG - VN ctest-vn4-93508605 UUID is 47a86d08-9c1b-4c69-9d3e-3668573751a1 2026-04-27 03:02:14,229 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '47a86d08-9c1b-4c69-9d3e-3668573751a1', 'name': 'ctest-vn4-93508605', 'tenant_id': 'c306740466ea43bb936a3497a44d31b4', 'project_id': 'c306740466ea43bb936a3497a44d31b4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b803b6f7-628b-4845-bf4f-12a20bb569b9', '5da188d7-f6cc-4dd8-a8a4-dc479708ac79'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-87507113', 'ctest-vn4-93508605'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-87507113', 'ctest-policy1-92287528']], 'subnet_ipam': [{'subnet_cidr': '36.27.254.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2465:206e:2ccb:15ea:3f27:c97c::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-04-27 03:02:14,349 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2026-04-27 03:02:14,676 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2026-04-27 03:02:14,715 - DEBUG - Requesting: http://10.0.0.41:8082/domain/3cfd3207-f874-4fca-b30c-5a5349ff35bf 2026-04-27 03:02:14,738 - DEBUG - Requesting: http://10.0.0.41:8082/project/c3067404-66ea-43bb-936a-3497a44d31b4 2026-04-27 03:02:14,845 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/47a86d08-9c1b-4c69-9d3e-3668573751a1 2026-04-27 03:02:14,868 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/47a86d08-9c1b-4c69-9d3e-3668573751a1 2026-04-27 03:02:14,883 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/20f6c149-fc41-490c-93bc-5755e8063e38 2026-04-27 03:02:14,912 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/20f6c149-fc41-490c-93bc-5755e8063e38 2026-04-27 03:02:14,923 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/05eb12b2-3fab-4939-9d8b-786568d282ed 2026-04-27 03:02:14,932 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-27 03:02:14,932 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/47a86d08-9c1b-4c69-9d3e-3668573751a1 2026-04-27 03:02:14,947 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/20f6c149-fc41-490c-93bc-5755e8063e38 2026-04-27 03:02:14,966 - INFO - Verified VN network id 15 for VN 47a86d08-9c1b-4c69-9d3e-3668573751a1 2026-04-27 03:02:14,966 - INFO - Verifications in API Server for VN ctest-vn4-93508605 passed 2026-04-27 03:02:14,966 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/47a86d08-9c1b-4c69-9d3e-3668573751a1 2026-04-27 03:02:14,979 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/20f6c149-fc41-490c-93bc-5755e8063e38 2026-04-27 03:02:14,991 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/20f6c149-fc41-490c-93bc-5755e8063e38 2026-04-27 03:02:15,003 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/05eb12b2-3fab-4939-9d8b-786568d282ed 2026-04-27 03:02:15,020 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87507113:ctest-vn4-93508605', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-87507113', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5163496856526474345', 'uuid-lslong': '11330553534278488481'}, 'enable': 'true', 'created': '2026-04-27T03:02:13', 'last-modified': '2026-04-27T03:02:14', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.855168'} 2026-04-27 03:02:15,029 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-27 03:02:15,043 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87507113:ctest-vn4-93508605', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-87507113', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5163496856526474345', 'uuid-lslong': '11330553534278488481'}, 'enable': 'true', 'created': '2026-04-27T03:02:13', 'last-modified': '2026-04-27T03:02:14', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.872370'} 2026-04-27 03:02:15,053 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-27 03:02:15,059 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87507113:ctest-vn4-93508605', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-87507113', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5163496856526474345', 'uuid-lslong': '11330553534278488481'}, 'enable': 'true', 'created': '2026-04-27T03:02:13', 'last-modified': '2026-04-27T03:02:14', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.892894'} 2026-04-27 03:02:15,067 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-27 03:02:15,067 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-93508605 passed 2026-04-27 03:02:15,067 - DEBUG - ====Verifying policy data for ctest-vn4-93508605 in API_Server ====== 2026-04-27 03:02:15,068 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2026-04-27 03:02:15,075 - DEBUG - Requesting: http://10.0.0.41:8082/domain/3cfd3207-f874-4fca-b30c-5a5349ff35bf 2026-04-27 03:02:15,096 - DEBUG - Requesting: http://10.0.0.41:8082/project/c3067404-66ea-43bb-936a-3497a44d31b4 2026-04-27 03:02:15,218 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/47a86d08-9c1b-4c69-9d3e-3668573751a1 2026-04-27 03:02:15,229 - DEBUG - ==>Verifying data for policy with id: a52bdeb0-7188-4571-ba6e-9fc3227e1f4c, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-87507113', 'ctest-policy1-92287528'] 2026-04-27 03:02:15,229 - INFO - VN ctest-vn4-93508605 Policy verification: verify_vn_policy_in_api_server, status: True 2026-04-27 03:02:15,229 - DEBUG - Verifying the vn in opserver 2026-04-27 03:02:15,229 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87507113:ctest-vn4-93508605 virtual network link through opserver 10.0.0.41 2026-04-27 03:02:15,229 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks 2026-04-27 03:02:15,541 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks 2026-04-27 03:02:15,616 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87507113:ctest-vn4-93508605', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87507113:ctest-vn4-93508605?flat'} 2026-04-27 03:02:15,616 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87507113:ctest-vn4-93508605 virtual network link through opserver 10.0.0.249 2026-04-27 03:02:15,617 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2026-04-27 03:02:15,930 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2026-04-27 03:02:16,012 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87507113:ctest-vn4-93508605', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87507113:ctest-vn4-93508605?flat'} 2026-04-27 03:02:16,012 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87507113:ctest-vn4-93508605 virtual network link through opserver 10.0.0.23 2026-04-27 03:02:16,012 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2026-04-27 03:02:16,326 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2026-04-27 03:02:16,455 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87507113:ctest-vn4-93508605', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87507113:ctest-vn4-93508605?flat'} 2026-04-27 03:02:16,455 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87507113:ctest-vn4-93508605 is found in opserver 2026-04-27 03:02:16,479 - DEBUG - Do not have enough data to verify VN in agent 2026-04-27 03:02:16,492 - DEBUG - VRF ids for VN ctest-vn4-93508605: {} 2026-04-27 03:02:16,492 - DEBUG - ====Verifying data for ctest-policy1-92287528 in API_Server ====== 2026-04-27 03:02:16,492 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2026-04-27 03:02:16,500 - DEBUG - Requesting: http://10.0.0.41:8082/domain/3cfd3207-f874-4fca-b30c-5a5349ff35bf 2026-04-27 03:02:16,517 - DEBUG - Requesting: http://10.0.0.41:8082/project/c3067404-66ea-43bb-936a-3497a44d31b4 2026-04-27 03:02:16,622 - DEBUG - Requesting: http://10.0.0.41:8082/network-policy/a52bdeb0-7188-4571-ba6e-9fc3227e1f4c 2026-04-27 03:02:16,635 - INFO - Verified policy ctest-policy1-92287528 in API Server, Result: True 2026-04-27 03:02:16,635 - INFO - Done with setup and verification, moving onto test .. 2026-04-27 03:02:16,650 - INFO - Deleting VN ctest-vn4-93508605 2026-04-27 03:02:16,932 - DEBUG - Response for deleting network () 2026-04-27 03:02:16,932 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/20f6c149-fc41-490c-93bc-5755e8063e38 2026-04-27 03:02:16,952 - DEBUG - Response Code: 404 2026-04-27 03:02:16,952 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2026-04-27 03:02:16,963 - DEBUG - Requesting: http://10.0.0.41:8082/domain/3cfd3207-f874-4fca-b30c-5a5349ff35bf 2026-04-27 03:02:16,982 - DEBUG - Requesting: http://10.0.0.41:8082/project/c3067404-66ea-43bb-936a-3497a44d31b4 2026-04-27 03:02:17,111 - INFO - Validated that VN ctest-vn4-93508605 is not found in API Server 2026-04-27 03:02:17,125 - DEBUG - VN ctest-vn4-93508605 is not present in Agent 10.0.0.33 2026-04-27 03:02:17,137 - DEBUG - VN ctest-vn4-93508605 is not present in Agent 10.0.0.65 2026-04-27 03:02:17,137 - INFO - Validated that VN ctest-vn4-93508605 is not in any agent 2026-04-27 03:02:17,190 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-93508605 info 2026-04-27 03:02:17,243 - INFO - Deleted policy ctest-policy1-92287528 2026-04-27 03:02:17,447 - DEBUG - policy ctest-policy1-92287528 is not found in API Server 2026-04-27 03:02:18,779 - DEBUG - No XMPP flaps were noticed during the test 2026-04-27 03:02:18,779 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:08] 2026-04-27 03:02:18,779 - INFO - -------------------------------------------------------------------------------- 2026-04-27 03:02:20,090 - DEBUG - No XMPP flaps were noticed during the test 2026-04-27 03:02:20,090 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:11] 2026-04-27 03:02:20,090 - INFO - -------------------------------------------------------------------------------- 2026-04-27 03:02:20,923 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-87507113, ID : c3067404-66ea-43bb-936a-3497a44d31b4