2026-04-20 17:03:35,516 - INFO - Domain Default found not creating 2026-04-20 17:03:35,734 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-15353325 not found, creating it 2026-04-20 17:03:36,356 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-15353325, ID : 6a6a9ec7-9bd3-46e3-9a75-8723822e70d7 2026-04-20 17:03:38,161 - INFO - ================================================================================ 2026-04-20 17:03:38,161 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-04-20 17:03:39,495 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.193': '0', '10.20.0.25': '0'}, '10.0.0.130': {'10.20.0.193': '0', '10.20.0.25': '0'}} with 2026-04-20 17:03:39,495 - INFO - Initial checks done. Running the testcase now 2026-04-20 17:03:39,495 - INFO - 2026-04-20 17:03:39,496 - INFO - ================================================================================ 2026-04-20 17:03:39,496 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-04-20 17:03:39,496 - 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-20 17:03:40,852 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.193': '0', '10.20.0.25': '0'}, '10.0.0.130': {'10.20.0.193': '0', '10.20.0.25': '0'}} with 2026-04-20 17:03:40,852 - INFO - Initial checks done. Running the testcase now 2026-04-20 17:03:40,852 - INFO - 2026-04-20 17:03:41,226 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-15353325:ctest-vn4-30985703, 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-15353325:ctest-vn4-30985703, 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-15353325:ctest-vn4-30985703, 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-15353325:ctest-vn4-30985703, 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-20 17:03:41,939 - DEBUG - Response for create_network : {'network': {'id': '00592ebf-1012-488e-8b70-909ce0e56709', 'name': 'ctest-vn4-30985703', 'tenant_id': '6a6a9ec79bd346e39a758723822e70d7', 'project_id': '6a6a9ec79bd346e39a758723822e70d7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-15353325', 'ctest-vn4-30985703'], 'port_security_enabled': True, 'description': ''}} 2026-04-20 17:03:42,273 - DEBUG - Response for create_subnet : {'subnet': {'id': '03b218d2-b350-4a23-b73d-83318583af62', 'name': '', 'tenant_id': '6a6a9ec79bd346e39a758723822e70d7', 'network_id': '00592ebf-1012-488e-8b70-909ce0e56709', 'ip_version': 4, 'cidr': '178.32.90.64/26', 'allocation_pools': [{'start': '178.32.90.66', 'end': '178.32.90.126'}], 'gateway_ip': '178.32.90.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '178.32.90.66', 'tags': [], 'project_id': '6a6a9ec79bd346e39a758723822e70d7'}} 2026-04-20 17:03:42,548 - DEBUG - Response for create_subnet : {'subnet': {'id': '92d387e1-9b6e-4e9b-946f-9b10342acb9a', 'name': '', 'tenant_id': '6a6a9ec79bd346e39a758723822e70d7', 'network_id': '00592ebf-1012-488e-8b70-909ce0e56709', 'ip_version': 6, 'cidr': '3819:eafa:e68b:8fde:3657:bd3b::/96', 'allocation_pools': [{'start': '3819:eafa:e68b:8fde:3657:bd3b:0:2', 'end': '3819:eafa:e68b:8fde:3657:bd3b:ffff:fffe'}], 'gateway_ip': '3819:eafa:e68b:8fde:3657:bd3b:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3819:eafa:e68b:8fde:3657:bd3b:0:2', 'tags': [], 'project_id': '6a6a9ec79bd346e39a758723822e70d7'}} 2026-04-20 17:03:42,582 - INFO - Created VN ctest-vn4-30985703 2026-04-20 17:03:42,598 - DEBUG - VN ctest-vn4-30985703 UUID is 00592ebf-1012-488e-8b70-909ce0e56709 2026-04-20 17:03:42,905 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '00592ebf-1012-488e-8b70-909ce0e56709', 'name': 'ctest-vn4-30985703', 'tenant_id': '6a6a9ec79bd346e39a758723822e70d7', 'project_id': '6a6a9ec79bd346e39a758723822e70d7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['03b218d2-b350-4a23-b73d-83318583af62', '92d387e1-9b6e-4e9b-946f-9b10342acb9a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-15353325', 'ctest-vn4-30985703'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-15353325', 'ctest-policy1-12289482']], 'subnet_ipam': [{'subnet_cidr': '178.32.90.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3819:eafa:e68b:8fde:3657:bd3b::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-04-20 17:03:43,019 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2026-04-20 17:03:43,325 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2026-04-20 17:03:43,372 - DEBUG - Requesting: http://10.0.0.23:8082/domain/40643203-20f6-446b-8c17-54dd9444dd19 2026-04-20 17:03:43,400 - DEBUG - Requesting: http://10.0.0.23:8082/project/6a6a9ec7-9bd3-46e3-9a75-8723822e70d7 2026-04-20 17:03:43,513 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/00592ebf-1012-488e-8b70-909ce0e56709 2026-04-20 17:03:43,533 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/00592ebf-1012-488e-8b70-909ce0e56709 2026-04-20 17:03:43,545 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/54c49006-6f13-4e11-accf-78fcda19bee0 2026-04-20 17:03:43,556 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/54c49006-6f13-4e11-accf-78fcda19bee0 2026-04-20 17:03:43,567 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/46e42fb0-3d43-4d92-8621-7e86de87b8ed 2026-04-20 17:03:43,576 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-20 17:03:43,576 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/00592ebf-1012-488e-8b70-909ce0e56709 2026-04-20 17:03:43,591 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/54c49006-6f13-4e11-accf-78fcda19bee0 2026-04-20 17:03:43,612 - INFO - Verified VN network id 12 for VN 00592ebf-1012-488e-8b70-909ce0e56709 2026-04-20 17:03:43,612 - INFO - Verifications in API Server for VN ctest-vn4-30985703 passed 2026-04-20 17:03:43,612 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/00592ebf-1012-488e-8b70-909ce0e56709 2026-04-20 17:03:43,626 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/54c49006-6f13-4e11-accf-78fcda19bee0 2026-04-20 17:03:43,646 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/54c49006-6f13-4e11-accf-78fcda19bee0 2026-04-20 17:03:43,662 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/46e42fb0-3d43-4d92-8621-7e86de87b8ed 2026-04-20 17:03:43,681 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-15353325:ctest-vn4-30985703', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-15353325', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '25102671070513294', 'uuid-lslong': '10047689772126005001'}, 'enable': 'true', 'created': '2026-04-20T17:03:41', 'last-modified': '2026-04-20T17:03:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.869561'} 2026-04-20 17:03:43,694 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-20 17:03:43,702 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-15353325:ctest-vn4-30985703', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-15353325', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '25102671070513294', 'uuid-lslong': '10047689772126005001'}, 'enable': 'true', 'created': '2026-04-20T17:03:41', 'last-modified': '2026-04-20T17:03:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.892044'} 2026-04-20 17:03:43,715 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-20 17:03:43,722 - DEBUG - Control-node 10.0.0.65 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-15353325:ctest-vn4-30985703', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-15353325', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '25102671070513294', 'uuid-lslong': '10047689772126005001'}, 'enable': 'true', 'created': '2026-04-20T17:03:41', 'last-modified': '2026-04-20T17:03:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.876516'} 2026-04-20 17:03:43,731 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-20 17:03:43,731 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-30985703 passed 2026-04-20 17:03:43,731 - DEBUG - ====Verifying policy data for ctest-vn4-30985703 in API_Server ====== 2026-04-20 17:03:43,731 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2026-04-20 17:03:43,740 - DEBUG - Requesting: http://10.0.0.23:8082/domain/40643203-20f6-446b-8c17-54dd9444dd19 2026-04-20 17:03:43,756 - DEBUG - Requesting: http://10.0.0.23:8082/project/6a6a9ec7-9bd3-46e3-9a75-8723822e70d7 2026-04-20 17:03:43,860 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/00592ebf-1012-488e-8b70-909ce0e56709 2026-04-20 17:03:43,873 - DEBUG - ==>Verifying data for policy with id: 08f04a00-0774-4b97-b314-5dab8854e741, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-15353325', 'ctest-policy1-12289482'] 2026-04-20 17:03:43,873 - INFO - VN ctest-vn4-30985703 Policy verification: verify_vn_policy_in_api_server, status: True 2026-04-20 17:03:43,873 - DEBUG - Verifying the vn in opserver 2026-04-20 17:03:43,873 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-15353325:ctest-vn4-30985703 virtual network link through opserver 10.0.0.23 2026-04-20 17:03:43,873 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2026-04-20 17:03:44,190 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2026-04-20 17:03:44,276 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-15353325:ctest-vn4-30985703', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-15353325:ctest-vn4-30985703?flat'} 2026-04-20 17:03:44,276 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-15353325:ctest-vn4-30985703 virtual network link through opserver 10.0.0.249 2026-04-20 17:03:44,276 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2026-04-20 17:03:44,577 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2026-04-20 17:03:44,677 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-15353325:ctest-vn4-30985703', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-15353325:ctest-vn4-30985703?flat'} 2026-04-20 17:03:44,677 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-15353325:ctest-vn4-30985703 virtual network link through opserver 10.0.0.65 2026-04-20 17:03:44,677 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks 2026-04-20 17:03:44,994 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks 2026-04-20 17:03:45,080 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-15353325:ctest-vn4-30985703', 'href': 'http://10.0.0.65:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-15353325:ctest-vn4-30985703?flat'} 2026-04-20 17:03:45,080 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-15353325:ctest-vn4-30985703 is found in opserver 2026-04-20 17:03:45,106 - DEBUG - Do not have enough data to verify VN in agent 2026-04-20 17:03:45,119 - DEBUG - VRF ids for VN ctest-vn4-30985703: {} 2026-04-20 17:03:45,119 - DEBUG - ====Verifying data for ctest-policy1-12289482 in API_Server ====== 2026-04-20 17:03:45,119 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2026-04-20 17:03:45,129 - DEBUG - Requesting: http://10.0.0.23:8082/domain/40643203-20f6-446b-8c17-54dd9444dd19 2026-04-20 17:03:45,146 - DEBUG - Requesting: http://10.0.0.23:8082/project/6a6a9ec7-9bd3-46e3-9a75-8723822e70d7 2026-04-20 17:03:45,263 - DEBUG - Requesting: http://10.0.0.23:8082/network-policy/08f04a00-0774-4b97-b314-5dab8854e741 2026-04-20 17:03:45,276 - INFO - Verified policy ctest-policy1-12289482 in API Server, Result: True 2026-04-20 17:03:45,276 - INFO - Done with setup and verification, moving onto test .. 2026-04-20 17:03:45,291 - INFO - Deleting VN ctest-vn4-30985703 2026-04-20 17:03:45,559 - DEBUG - Response for deleting network () 2026-04-20 17:03:45,559 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/54c49006-6f13-4e11-accf-78fcda19bee0 2026-04-20 17:03:45,572 - DEBUG - Response Code: 404 2026-04-20 17:03:45,573 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2026-04-20 17:03:45,594 - DEBUG - Requesting: http://10.0.0.23:8082/domain/40643203-20f6-446b-8c17-54dd9444dd19 2026-04-20 17:03:45,612 - DEBUG - Requesting: http://10.0.0.23:8082/project/6a6a9ec7-9bd3-46e3-9a75-8723822e70d7 2026-04-20 17:03:45,711 - INFO - Validated that VN ctest-vn4-30985703 is not found in API Server 2026-04-20 17:03:45,726 - DEBUG - VN ctest-vn4-30985703 is not present in Agent 10.0.0.50 2026-04-20 17:03:45,741 - DEBUG - VN ctest-vn4-30985703 is not present in Agent 10.0.0.130 2026-04-20 17:03:45,741 - INFO - Validated that VN ctest-vn4-30985703 is not in any agent 2026-04-20 17:03:45,778 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-30985703 info 2026-04-20 17:03:45,840 - INFO - Deleted policy ctest-policy1-12289482 2026-04-20 17:03:46,049 - DEBUG - policy ctest-policy1-12289482 is not found in API Server 2026-04-20 17:03:47,346 - DEBUG - No XMPP flaps were noticed during the test
2026-04-20 17:03:47,346 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:08]
2026-04-20 17:03:47,347 - INFO - -------------------------------------------------------------------------------- 2026-04-20 17:03:48,670 - DEBUG - No XMPP flaps were noticed during the test
2026-04-20 17:03:48,671 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:10]
2026-04-20 17:03:48,671 - INFO - -------------------------------------------------------------------------------- 2026-04-20 17:03:49,683 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-15353325, ID : 6a6a9ec7-9bd3-46e3-9a75-8723822e70d7