2026-02-02 02:18:04,603 - INFO - Domain Default found not creating 2026-02-02 02:18:04,766 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-72746066 not found, creating it 2026-02-02 02:18:05,238 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-72746066, ID : 6d0f391a-2b8b-4af1-a5f2-9132642c6821 2026-02-02 02:18:06,704 - INFO - ================================================================================ 2026-02-02 02:18:06,704 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-02 02:18:06,959 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.201': '0'}} with 2026-02-02 02:18:06,959 - INFO - Initial checks done. Running the testcase now 2026-02-02 02:18:06,959 - INFO - 2026-02-02 02:18:06,959 - INFO - ================================================================================ 2026-02-02 02:18:06,960 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-02 02:18:06,960 - 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-02-02 02:18:07,251 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.201': '0'}} with 2026-02-02 02:18:07,251 - INFO - Initial checks done. Running the testcase now 2026-02-02 02:18:07,251 - INFO - 2026-02-02 02:18:07,606 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-72746066:ctest-vn4-37264541, 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-72746066:ctest-vn4-37264541, 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-72746066:ctest-vn4-37264541, 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-72746066:ctest-vn4-37264541, 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-02-02 02:18:08,118 - DEBUG - Response for create_network : {'network': {'id': '31982995-f250-498e-8bed-8797762f2612', 'name': 'ctest-vn4-37264541', 'tenant_id': '6d0f391a2b8b4af1a5f29132642c6821', 'project_id': '6d0f391a2b8b4af1a5f29132642c6821', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-72746066', 'ctest-vn4-37264541'], 'port_security_enabled': True, 'description': ''}} 2026-02-02 02:18:08,272 - DEBUG - Response for create_subnet : {'subnet': {'id': 'db638dc8-9c76-411b-8871-24c9f5fc5d81', 'name': '', 'tenant_id': '6d0f391a2b8b4af1a5f29132642c6821', 'network_id': '31982995-f250-498e-8bed-8797762f2612', 'ip_version': 4, 'cidr': '2.200.157.192/26', 'allocation_pools': [{'start': '2.200.157.194', 'end': '2.200.157.254'}], 'gateway_ip': '2.200.157.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2.200.157.194', 'tags': [], 'project_id': '6d0f391a2b8b4af1a5f29132642c6821'}} 2026-02-02 02:18:08,454 - DEBUG - Response for create_subnet : {'subnet': {'id': '3ccd2ce5-17db-4014-b857-e8991b5e8538', 'name': '', 'tenant_id': '6d0f391a2b8b4af1a5f29132642c6821', 'network_id': '31982995-f250-498e-8bed-8797762f2612', 'ip_version': 6, 'cidr': '2f6e:49b3:7dd7:fb00:3a9d:b98c::/96', 'allocation_pools': [{'start': '2f6e:49b3:7dd7:fb00:3a9d:b98c:0:2', 'end': '2f6e:49b3:7dd7:fb00:3a9d:b98c:ffff:fffe'}], 'gateway_ip': '2f6e:49b3:7dd7:fb00:3a9d:b98c:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2f6e:49b3:7dd7:fb00:3a9d:b98c:0:2', 'tags': [], 'project_id': '6d0f391a2b8b4af1a5f29132642c6821'}} 2026-02-02 02:18:08,472 - INFO - Created VN ctest-vn4-37264541 2026-02-02 02:18:08,522 - DEBUG - VN ctest-vn4-37264541 UUID is 31982995-f250-498e-8bed-8797762f2612 2026-02-02 02:18:08,703 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '31982995-f250-498e-8bed-8797762f2612', 'name': 'ctest-vn4-37264541', 'tenant_id': '6d0f391a2b8b4af1a5f29132642c6821', 'project_id': '6d0f391a2b8b4af1a5f29132642c6821', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['db638dc8-9c76-411b-8871-24c9f5fc5d81', '3ccd2ce5-17db-4014-b857-e8991b5e8538'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-72746066', 'ctest-vn4-37264541'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-72746066', 'ctest-policy1-55565729']], 'subnet_ipam': [{'subnet_cidr': '2.200.157.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2f6e:49b3:7dd7:fb00:3a9d:b98c::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-02 02:18:08,865 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-02-02 02:18:09,159 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-02-02 02:18:09,190 - DEBUG - Requesting: http://10.0.0.33:8082/domain/d8695d92-f891-417e-ab30-235445b6dd12 2026-02-02 02:18:09,201 - DEBUG - Requesting: http://10.0.0.33:8082/project/6d0f391a-2b8b-4af1-a5f2-9132642c6821 2026-02-02 02:18:09,272 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/31982995-f250-498e-8bed-8797762f2612 2026-02-02 02:18:09,284 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/31982995-f250-498e-8bed-8797762f2612 2026-02-02 02:18:09,296 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/6febfbfa-f926-402a-b6cc-47feb6738501 2026-02-02 02:18:09,304 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/6febfbfa-f926-402a-b6cc-47feb6738501 2026-02-02 02:18:09,311 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/5ea97114-a74a-420c-8579-85e970b42e64 2026-02-02 02:18:09,317 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-02 02:18:09,317 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/31982995-f250-498e-8bed-8797762f2612 2026-02-02 02:18:09,327 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/6febfbfa-f926-402a-b6cc-47feb6738501 2026-02-02 02:18:09,340 - INFO - Verified VN network id 11 for VN 31982995-f250-498e-8bed-8797762f2612 2026-02-02 02:18:09,340 - INFO - Verifications in API Server for VN ctest-vn4-37264541 passed 2026-02-02 02:18:09,340 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/31982995-f250-498e-8bed-8797762f2612 2026-02-02 02:18:09,348 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/6febfbfa-f926-402a-b6cc-47feb6738501 2026-02-02 02:18:09,354 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/6febfbfa-f926-402a-b6cc-47feb6738501 2026-02-02 02:18:09,360 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/5ea97114-a74a-420c-8579-85e970b42e64 2026-02-02 02:18:09,372 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-72746066:ctest-vn4-37264541', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-72746066', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3573652028310702478', 'uuid-lslong': '10082864225345021458'}, 'enable': 'true', 'created': '2026-02-02T02:18:08', 'last-modified': '2026-02-02T02:18:08', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.693622'} 2026-02-02 02:18:09,378 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-02 02:18:09,378 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-37264541 passed 2026-02-02 02:18:09,378 - DEBUG - ====Verifying policy data for ctest-vn4-37264541 in API_Server ====== 2026-02-02 02:18:09,378 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-02-02 02:18:09,383 - DEBUG - Requesting: http://10.0.0.33:8082/domain/d8695d92-f891-417e-ab30-235445b6dd12 2026-02-02 02:18:09,393 - DEBUG - Requesting: http://10.0.0.33:8082/project/6d0f391a-2b8b-4af1-a5f2-9132642c6821 2026-02-02 02:18:09,463 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/31982995-f250-498e-8bed-8797762f2612 2026-02-02 02:18:09,471 - DEBUG - ==>Verifying data for policy with id: 7e63315a-6dcc-4d26-a84b-ab1660317369, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-72746066', 'ctest-policy1-55565729'] 2026-02-02 02:18:09,471 - INFO - VN ctest-vn4-37264541 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-02 02:18:09,472 - DEBUG - Verifying the vn in opserver 2026-02-02 02:18:09,472 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-72746066:ctest-vn4-37264541 virtual network link through opserver 10.0.0.33 2026-02-02 02:18:09,472 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-02-02 02:18:09,766 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-02-02 02:18:09,831 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-72746066:ctest-vn4-37264541', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-72746066:ctest-vn4-37264541?flat'} 2026-02-02 02:18:09,831 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-72746066:ctest-vn4-37264541 is found in opserver 2026-02-02 02:18:09,840 - DEBUG - Do not have enough data to verify VN in agent 2026-02-02 02:18:09,844 - DEBUG - VRF ids for VN ctest-vn4-37264541: {} 2026-02-02 02:18:09,844 - DEBUG - ====Verifying data for ctest-policy1-55565729 in API_Server ====== 2026-02-02 02:18:09,844 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-02-02 02:18:09,849 - DEBUG - Requesting: http://10.0.0.33:8082/domain/d8695d92-f891-417e-ab30-235445b6dd12 2026-02-02 02:18:09,858 - DEBUG - Requesting: http://10.0.0.33:8082/project/6d0f391a-2b8b-4af1-a5f2-9132642c6821 2026-02-02 02:18:09,936 - DEBUG - Requesting: http://10.0.0.33:8082/network-policy/7e63315a-6dcc-4d26-a84b-ab1660317369 2026-02-02 02:18:09,946 - INFO - Verified policy ctest-policy1-55565729 in API Server, Result: True 2026-02-02 02:18:09,946 - INFO - Done with setup and verification, moving onto test .. 2026-02-02 02:18:09,969 - INFO - Deleting VN ctest-vn4-37264541 2026-02-02 02:18:10,088 - DEBUG - Response for deleting network () 2026-02-02 02:18:10,089 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/6febfbfa-f926-402a-b6cc-47feb6738501 2026-02-02 02:18:10,093 - DEBUG - Response Code: 404 2026-02-02 02:18:10,093 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-02-02 02:18:10,099 - DEBUG - Requesting: http://10.0.0.33:8082/domain/d8695d92-f891-417e-ab30-235445b6dd12 2026-02-02 02:18:10,151 - DEBUG - Requesting: http://10.0.0.33:8082/project/6d0f391a-2b8b-4af1-a5f2-9132642c6821 2026-02-02 02:18:10,222 - INFO - Validated that VN ctest-vn4-37264541 is not found in API Server 2026-02-02 02:18:10,231 - DEBUG - VN ctest-vn4-37264541 is not present in Agent 10.0.0.33 2026-02-02 02:18:10,231 - INFO - Validated that VN ctest-vn4-37264541 is not in any agent 2026-02-02 02:18:10,244 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-37264541 info 2026-02-02 02:18:10,265 - INFO - Deleted policy ctest-policy1-55565729 2026-02-02 02:18:10,429 - DEBUG - policy ctest-policy1-55565729 is not found in API Server 2026-02-02 02:18:10,686 - DEBUG - No XMPP flaps were noticed during the test 2026-02-02 02:18:10,686 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-02-02 02:18:10,686 - INFO - -------------------------------------------------------------------------------- 2026-02-02 02:18:10,975 - DEBUG - No XMPP flaps were noticed during the test 2026-02-02 02:18:10,975 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-02-02 02:18:10,975 - INFO - -------------------------------------------------------------------------------- 2026-02-02 02:18:11,656 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-72746066, ID : 6d0f391a-2b8b-4af1-a5f2-9132642c6821