2026-03-16 02:26:43,812 - INFO - Domain Default found not creating 2026-03-16 02:26:43,994 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-37180015 not found, creating it 2026-03-16 02:26:44,672 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-37180015, ID : f35addd6-8bb6-45f9-bd72-cb54dfc07b35 2026-03-16 02:26:46,222 - INFO - ================================================================================ 2026-03-16 02:26:46,222 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-16 02:26:47,511 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.193': '0', '10.20.0.129': '0'}, '10.0.0.240': {'10.20.0.193': '0', '10.20.0.129': '0'}} with 2026-03-16 02:26:47,511 - INFO - Initial checks done. Running the testcase now 2026-03-16 02:26:47,512 - INFO - 2026-03-16 02:26:47,512 - INFO - ================================================================================ 2026-03-16 02:26:47,512 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-16 02:26:47,512 - 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-16 02:26:48,783 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.193': '0', '10.20.0.129': '0'}, '10.0.0.240': {'10.20.0.193': '0', '10.20.0.129': '0'}} with 2026-03-16 02:26:48,783 - INFO - Initial checks done. Running the testcase now 2026-03-16 02:26:48,784 - INFO - 2026-03-16 02:26:49,144 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-37180015:ctest-vn4-20886140, 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-37180015:ctest-vn4-20886140, 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-37180015:ctest-vn4-20886140, 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-37180015:ctest-vn4-20886140, 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-16 02:26:49,812 - DEBUG - Response for create_network : {'network': {'id': '4764d173-0009-42b0-b420-6dd0e8d7af30', 'name': 'ctest-vn4-20886140', 'tenant_id': 'f35addd68bb645f9bd72cb54dfc07b35', 'project_id': 'f35addd68bb645f9bd72cb54dfc07b35', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-37180015', 'ctest-vn4-20886140'], 'port_security_enabled': True, 'description': ''}} 2026-03-16 02:26:50,152 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ee06ebe1-5b1d-4dac-a911-87e812c09838', 'name': '', 'tenant_id': 'f35addd68bb645f9bd72cb54dfc07b35', 'network_id': '4764d173-0009-42b0-b420-6dd0e8d7af30', 'ip_version': 4, 'cidr': '49.161.219.192/26', 'allocation_pools': [{'start': '49.161.219.194', 'end': '49.161.219.254'}], 'gateway_ip': '49.161.219.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '49.161.219.194', 'tags': [], 'project_id': 'f35addd68bb645f9bd72cb54dfc07b35'}} 2026-03-16 02:26:50,443 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b14389d5-f66b-4f18-8028-c224a47839b0', 'name': '', 'tenant_id': 'f35addd68bb645f9bd72cb54dfc07b35', 'network_id': '4764d173-0009-42b0-b420-6dd0e8d7af30', 'ip_version': 6, 'cidr': '2845:a128:4174:fa97:7188:6f6::/96', 'allocation_pools': [{'start': '2845:a128:4174:fa97:7188:6f6:0:2', 'end': '2845:a128:4174:fa97:7188:6f6:ffff:fffe'}], 'gateway_ip': '2845:a128:4174:fa97:7188:6f6:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2845:a128:4174:fa97:7188:6f6:0:2', 'tags': [], 'project_id': 'f35addd68bb645f9bd72cb54dfc07b35'}} 2026-03-16 02:26:50,470 - INFO - Created VN ctest-vn4-20886140 2026-03-16 02:26:50,490 - DEBUG - VN ctest-vn4-20886140 UUID is 4764d173-0009-42b0-b420-6dd0e8d7af30 2026-03-16 02:26:50,749 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4764d173-0009-42b0-b420-6dd0e8d7af30', 'name': 'ctest-vn4-20886140', 'tenant_id': 'f35addd68bb645f9bd72cb54dfc07b35', 'project_id': 'f35addd68bb645f9bd72cb54dfc07b35', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ee06ebe1-5b1d-4dac-a911-87e812c09838', 'b14389d5-f66b-4f18-8028-c224a47839b0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-37180015', 'ctest-vn4-20886140'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-37180015', 'ctest-policy1-45914752']], 'subnet_ipam': [{'subnet_cidr': '49.161.219.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2845:a128:4174:fa97:7188:6f6::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-03-16 02:26:50,868 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-03-16 02:26:51,173 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-03-16 02:26:51,208 - DEBUG - Requesting: http://10.0.0.38:8082/domain/d1af4696-a589-4518-a8ed-3c39c5e9266b 2026-03-16 02:26:51,226 - DEBUG - Requesting: http://10.0.0.38:8082/project/f35addd6-8bb6-45f9-bd72-cb54dfc07b35 2026-03-16 02:26:51,327 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/4764d173-0009-42b0-b420-6dd0e8d7af30 2026-03-16 02:26:51,341 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/4764d173-0009-42b0-b420-6dd0e8d7af30 2026-03-16 02:26:51,351 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/7a8039af-3bcb-403d-9b33-3be1d5ed61bf 2026-03-16 02:26:51,359 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/7a8039af-3bcb-403d-9b33-3be1d5ed61bf 2026-03-16 02:26:51,367 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/9a860d87-626a-4c38-a6d3-3cd7079cec5b 2026-03-16 02:26:51,375 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-16 02:26:51,375 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/4764d173-0009-42b0-b420-6dd0e8d7af30 2026-03-16 02:26:51,385 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/7a8039af-3bcb-403d-9b33-3be1d5ed61bf 2026-03-16 02:26:51,403 - INFO - Verified VN network id 14 for VN 4764d173-0009-42b0-b420-6dd0e8d7af30 2026-03-16 02:26:51,404 - INFO - Verifications in API Server for VN ctest-vn4-20886140 passed 2026-03-16 02:26:51,404 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/4764d173-0009-42b0-b420-6dd0e8d7af30 2026-03-16 02:26:51,422 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/7a8039af-3bcb-403d-9b33-3be1d5ed61bf 2026-03-16 02:26:51,430 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/7a8039af-3bcb-403d-9b33-3be1d5ed61bf 2026-03-16 02:26:51,437 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/9a860d87-626a-4c38-a6d3-3cd7079cec5b 2026-03-16 02:26:51,451 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-37180015:ctest-vn4-20886140', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-37180015', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5144466966216000176', 'uuid-lslong': '12979494870108843824'}, 'enable': 'true', 'created': '2026-03-16T02:26:49', 'last-modified': '2026-03-16T02:26:50', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.746344'} 2026-03-16 02:26:51,457 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-16 02:26:51,464 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-37180015:ctest-vn4-20886140', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-37180015', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5144466966216000176', 'uuid-lslong': '12979494870108843824'}, 'enable': 'true', 'created': '2026-03-16T02:26:49', 'last-modified': '2026-03-16T02:26:50', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.752751'} 2026-03-16 02:26:51,470 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-16 02:26:51,477 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-37180015:ctest-vn4-20886140', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-37180015', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5144466966216000176', 'uuid-lslong': '12979494870108843824'}, 'enable': 'true', 'created': '2026-03-16T02:26:49', 'last-modified': '2026-03-16T02:26:50', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.767175'} 2026-03-16 02:26:51,484 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-16 02:26:51,484 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-20886140 passed 2026-03-16 02:26:51,484 - DEBUG - ====Verifying policy data for ctest-vn4-20886140 in API_Server ====== 2026-03-16 02:26:51,484 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-03-16 02:26:51,491 - DEBUG - Requesting: http://10.0.0.38:8082/domain/d1af4696-a589-4518-a8ed-3c39c5e9266b 2026-03-16 02:26:51,504 - DEBUG - Requesting: http://10.0.0.38:8082/project/f35addd6-8bb6-45f9-bd72-cb54dfc07b35 2026-03-16 02:26:51,606 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/4764d173-0009-42b0-b420-6dd0e8d7af30 2026-03-16 02:26:51,617 - DEBUG - ==>Verifying data for policy with id: ddc597c9-febd-4f5b-b5e0-3ff238d6e1b1, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-37180015', 'ctest-policy1-45914752'] 2026-03-16 02:26:51,617 - INFO - VN ctest-vn4-20886140 Policy verification: verify_vn_policy_in_api_server, status: True 2026-03-16 02:26:51,617 - DEBUG - Verifying the vn in opserver 2026-03-16 02:26:51,617 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-37180015:ctest-vn4-20886140 virtual network link through opserver 10.0.0.38 2026-03-16 02:26:51,617 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-03-16 02:26:51,922 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-03-16 02:26:51,999 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-37180015:ctest-vn4-20886140', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-37180015:ctest-vn4-20886140?flat'} 2026-03-16 02:26:51,999 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-37180015:ctest-vn4-20886140 virtual network link through opserver 10.0.0.22 2026-03-16 02:26:51,999 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2026-03-16 02:26:52,296 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2026-03-16 02:26:52,362 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-37180015:ctest-vn4-20886140', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-37180015:ctest-vn4-20886140?flat'} 2026-03-16 02:26:52,362 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-37180015:ctest-vn4-20886140 virtual network link through opserver 10.0.0.23 2026-03-16 02:26:52,362 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2026-03-16 02:26:52,679 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2026-03-16 02:26:52,744 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-37180015:ctest-vn4-20886140', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-37180015:ctest-vn4-20886140?flat'} 2026-03-16 02:26:52,744 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-37180015:ctest-vn4-20886140 is found in opserver 2026-03-16 02:26:52,767 - DEBUG - Do not have enough data to verify VN in agent 2026-03-16 02:26:52,778 - DEBUG - VRF ids for VN ctest-vn4-20886140: {} 2026-03-16 02:26:52,778 - DEBUG - ====Verifying data for ctest-policy1-45914752 in API_Server ====== 2026-03-16 02:26:52,778 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-03-16 02:26:52,784 - DEBUG - Requesting: http://10.0.0.38:8082/domain/d1af4696-a589-4518-a8ed-3c39c5e9266b 2026-03-16 02:26:52,797 - DEBUG - Requesting: http://10.0.0.38:8082/project/f35addd6-8bb6-45f9-bd72-cb54dfc07b35 2026-03-16 02:26:52,912 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/ddc597c9-febd-4f5b-b5e0-3ff238d6e1b1 2026-03-16 02:26:52,923 - INFO - Verified policy ctest-policy1-45914752 in API Server, Result: True 2026-03-16 02:26:52,923 - INFO - Done with setup and verification, moving onto test .. 2026-03-16 02:26:52,940 - INFO - Deleting VN ctest-vn4-20886140 2026-03-16 02:26:53,163 - DEBUG - Response for deleting network () 2026-03-16 02:26:53,163 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/7a8039af-3bcb-403d-9b33-3be1d5ed61bf 2026-03-16 02:26:53,169 - DEBUG - Response Code: 404 2026-03-16 02:26:53,169 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-03-16 02:26:53,184 - DEBUG - Requesting: http://10.0.0.38:8082/domain/d1af4696-a589-4518-a8ed-3c39c5e9266b 2026-03-16 02:26:53,198 - DEBUG - Requesting: http://10.0.0.38:8082/project/f35addd6-8bb6-45f9-bd72-cb54dfc07b35 2026-03-16 02:26:53,303 - INFO - Validated that VN ctest-vn4-20886140 is not found in API Server 2026-03-16 02:26:53,315 - DEBUG - VN ctest-vn4-20886140 is not present in Agent 10.0.0.41 2026-03-16 02:26:53,325 - DEBUG - VN ctest-vn4-20886140 is not present in Agent 10.0.0.240 2026-03-16 02:26:53,325 - INFO - Validated that VN ctest-vn4-20886140 is not in any agent 2026-03-16 02:26:53,357 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-20886140 info 2026-03-16 02:26:53,414 - INFO - Deleted policy ctest-policy1-45914752 2026-03-16 02:26:53,625 - DEBUG - policy ctest-policy1-45914752 is not found in API Server 2026-03-16 02:26:54,907 - DEBUG - No XMPP flaps were noticed during the test 2026-03-16 02:26:54,907 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:07] 2026-03-16 02:26:54,908 - INFO - -------------------------------------------------------------------------------- 2026-03-16 02:26:56,198 - DEBUG - No XMPP flaps were noticed during the test 2026-03-16 02:26:56,199 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:10] 2026-03-16 02:26:56,199 - INFO - -------------------------------------------------------------------------------- 2026-03-16 02:26:56,964 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-37180015, ID : f35addd6-8bb6-45f9-bd72-cb54dfc07b35