2025-11-06 02:34:22,691 - INFO - Domain Default found not creating 2025-11-06 02:34:23,179 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-51337299 not found, creating it 2025-11-06 02:34:23,768 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-51337299, ID : b5bf870e-2dea-4318-9205-5cfae9296429 2025-11-06 02:34:25,320 - INFO - ================================================================================ 2025-11-06 02:34:25,321 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-06 02:34:26,617 - DEBUG - Nothing to compare xmpp stats {'10.0.0.240': {'10.20.0.252': '0', '10.20.0.249': '0'}, '10.0.0.133': {'10.20.0.252': '0', '10.20.0.249': '0'}} with 2025-11-06 02:34:26,617 - INFO - Initial checks done. Running the testcase now 2025-11-06 02:34:26,617 - INFO - 2025-11-06 02:34:26,617 - INFO - ================================================================================ 2025-11-06 02:34:26,617 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-06 02:34:26,617 - 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. 2025-11-06 02:34:27,908 - DEBUG - Nothing to compare xmpp stats {'10.0.0.240': {'10.20.0.252': '0', '10.20.0.249': '0'}, '10.0.0.133': {'10.20.0.252': '0', '10.20.0.249': '0'}} with 2025-11-06 02:34:27,908 - INFO - Initial checks done. Running the testcase now 2025-11-06 02:34:27,908 - INFO - 2025-11-06 02:34:28,255 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-51337299:ctest-vn4-76324690, 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-51337299:ctest-vn4-76324690, 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-51337299:ctest-vn4-76324690, 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-51337299:ctest-vn4-76324690, 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] 2025-11-06 02:34:28,880 - DEBUG - Response for create_network : {'network': {'id': 'f56a51a4-b9d0-44d6-bfba-11eb253d8f54', 'name': 'ctest-vn4-76324690', 'tenant_id': 'b5bf870e2dea431892055cfae9296429', 'project_id': 'b5bf870e2dea431892055cfae9296429', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-51337299', 'ctest-vn4-76324690'], 'port_security_enabled': True, 'description': ''}} 2025-11-06 02:34:29,167 - DEBUG - Response for create_subnet : {'subnet': {'id': '854f7264-de7c-4a55-b681-d8ec010437f5', 'name': '', 'tenant_id': 'b5bf870e2dea431892055cfae9296429', 'network_id': 'f56a51a4-b9d0-44d6-bfba-11eb253d8f54', 'ip_version': 4, 'cidr': '79.115.100.128/26', 'allocation_pools': [{'start': '79.115.100.130', 'end': '79.115.100.190'}], 'gateway_ip': '79.115.100.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '79.115.100.130', 'tags': [], 'project_id': 'b5bf870e2dea431892055cfae9296429'}} 2025-11-06 02:34:29,358 - DEBUG - Response for create_subnet : {'subnet': {'id': 'dad5597c-afe8-4d58-aca7-6636d7e3f55e', 'name': '', 'tenant_id': 'b5bf870e2dea431892055cfae9296429', 'network_id': 'f56a51a4-b9d0-44d6-bfba-11eb253d8f54', 'ip_version': 6, 'cidr': '266c:2efa:9dab:5b2d:e14b:7b27::/96', 'allocation_pools': [{'start': '266c:2efa:9dab:5b2d:e14b:7b27:0:2', 'end': '266c:2efa:9dab:5b2d:e14b:7b27:ffff:fffe'}], 'gateway_ip': '266c:2efa:9dab:5b2d:e14b:7b27:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '266c:2efa:9dab:5b2d:e14b:7b27:0:2', 'tags': [], 'project_id': 'b5bf870e2dea431892055cfae9296429'}} 2025-11-06 02:34:29,388 - INFO - Created VN ctest-vn4-76324690 2025-11-06 02:34:29,408 - DEBUG - VN ctest-vn4-76324690 UUID is f56a51a4-b9d0-44d6-bfba-11eb253d8f54 2025-11-06 02:34:29,656 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f56a51a4-b9d0-44d6-bfba-11eb253d8f54', 'name': 'ctest-vn4-76324690', 'tenant_id': 'b5bf870e2dea431892055cfae9296429', 'project_id': 'b5bf870e2dea431892055cfae9296429', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['854f7264-de7c-4a55-b681-d8ec010437f5', 'dad5597c-afe8-4d58-aca7-6636d7e3f55e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-51337299', 'ctest-vn4-76324690'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-51337299', 'ctest-policy1-00401313']], 'subnet_ipam': [{'subnet_cidr': '79.115.100.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '266c:2efa:9dab:5b2d:e14b:7b27::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-11-06 02:34:29,779 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2025-11-06 02:34:30,072 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2025-11-06 02:34:30,101 - DEBUG - Requesting: http://10.0.0.41:8082/domain/dd557474-6eee-442f-acdf-559f4d754f9d 2025-11-06 02:34:30,120 - DEBUG - Requesting: http://10.0.0.41:8082/project/b5bf870e-2dea-4318-9205-5cfae9296429 2025-11-06 02:34:30,218 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/f56a51a4-b9d0-44d6-bfba-11eb253d8f54 2025-11-06 02:34:30,233 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/f56a51a4-b9d0-44d6-bfba-11eb253d8f54 2025-11-06 02:34:30,244 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/301e8c86-2db4-40c6-9fcc-adcc49a6fc76 2025-11-06 02:34:30,251 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/301e8c86-2db4-40c6-9fcc-adcc49a6fc76 2025-11-06 02:34:30,258 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/abee9302-8b4d-491d-834d-2c974ca73675 2025-11-06 02:34:30,265 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-06 02:34:30,265 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/f56a51a4-b9d0-44d6-bfba-11eb253d8f54 2025-11-06 02:34:30,275 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/301e8c86-2db4-40c6-9fcc-adcc49a6fc76 2025-11-06 02:34:30,291 - INFO - Verified VN network id 14 for VN f56a51a4-b9d0-44d6-bfba-11eb253d8f54 2025-11-06 02:34:30,291 - INFO - Verifications in API Server for VN ctest-vn4-76324690 passed 2025-11-06 02:34:30,292 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/f56a51a4-b9d0-44d6-bfba-11eb253d8f54 2025-11-06 02:34:30,302 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/301e8c86-2db4-40c6-9fcc-adcc49a6fc76 2025-11-06 02:34:30,311 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/301e8c86-2db4-40c6-9fcc-adcc49a6fc76 2025-11-06 02:34:30,318 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/abee9302-8b4d-491d-834d-2c974ca73675 2025-11-06 02:34:30,331 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-51337299:ctest-vn4-76324690', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-51337299', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17684036654757594326', 'uuid-lslong': '13815374508552195924'}, 'enable': 'true', 'created': '2025-11-06T02:34:28', 'last-modified': '2025-11-06T02:34:29', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.732416'} 2025-11-06 02:34:30,336 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-06 02:34:30,341 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-51337299:ctest-vn4-76324690', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-51337299', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17684036654757594326', 'uuid-lslong': '13815374508552195924'}, 'enable': 'true', 'created': '2025-11-06T02:34:28', 'last-modified': '2025-11-06T02:34:29', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.733388'} 2025-11-06 02:34:30,347 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-06 02:34:30,352 - DEBUG - Control-node 10.0.0.131 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-51337299:ctest-vn4-76324690', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-51337299', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17684036654757594326', 'uuid-lslong': '13815374508552195924'}, 'enable': 'true', 'created': '2025-11-06T02:34:28', 'last-modified': '2025-11-06T02:34:29', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.745471'} 2025-11-06 02:34:30,359 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-06 02:34:30,359 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-76324690 passed 2025-11-06 02:34:30,359 - DEBUG - ====Verifying policy data for ctest-vn4-76324690 in API_Server ====== 2025-11-06 02:34:30,359 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2025-11-06 02:34:30,366 - DEBUG - Requesting: http://10.0.0.41:8082/domain/dd557474-6eee-442f-acdf-559f4d754f9d 2025-11-06 02:34:30,380 - DEBUG - Requesting: http://10.0.0.41:8082/project/b5bf870e-2dea-4318-9205-5cfae9296429 2025-11-06 02:34:30,477 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/f56a51a4-b9d0-44d6-bfba-11eb253d8f54 2025-11-06 02:34:30,489 - DEBUG - ==>Verifying data for policy with id: 7c696ca7-4835-470d-8a36-8f0ab5a8c506, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-51337299', 'ctest-policy1-00401313'] 2025-11-06 02:34:30,489 - INFO - VN ctest-vn4-76324690 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-06 02:34:30,489 - DEBUG - Verifying the vn in opserver 2025-11-06 02:34:30,489 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-51337299:ctest-vn4-76324690 virtual network link through opserver 10.0.0.41 2025-11-06 02:34:30,489 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks 2025-11-06 02:34:30,789 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks 2025-11-06 02:34:30,852 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-51337299:ctest-vn4-76324690', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-51337299:ctest-vn4-76324690?flat'} 2025-11-06 02:34:30,852 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-51337299:ctest-vn4-76324690 virtual network link through opserver 10.0.0.38 2025-11-06 02:34:30,852 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-11-06 02:34:31,155 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-11-06 02:34:31,232 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-51337299:ctest-vn4-76324690', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-51337299:ctest-vn4-76324690?flat'} 2025-11-06 02:34:31,232 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-51337299:ctest-vn4-76324690 virtual network link through opserver 10.0.0.131 2025-11-06 02:34:31,233 - DEBUG - Requesting: http://10.0.0.131:8081/analytics/uves/virtual-networks 2025-11-06 02:34:31,531 - DEBUG - Requesting: http://10.0.0.131:8081/analytics/uves/virtual-networks 2025-11-06 02:34:31,596 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-51337299:ctest-vn4-76324690', 'href': 'http://10.0.0.131:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-51337299:ctest-vn4-76324690?flat'} 2025-11-06 02:34:31,596 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-51337299:ctest-vn4-76324690 is found in opserver 2025-11-06 02:34:31,617 - DEBUG - Do not have enough data to verify VN in agent 2025-11-06 02:34:31,629 - DEBUG - VRF ids for VN ctest-vn4-76324690: {} 2025-11-06 02:34:31,630 - DEBUG - ====Verifying data for ctest-policy1-00401313 in API_Server ====== 2025-11-06 02:34:31,630 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2025-11-06 02:34:31,639 - DEBUG - Requesting: http://10.0.0.41:8082/domain/dd557474-6eee-442f-acdf-559f4d754f9d 2025-11-06 02:34:31,656 - DEBUG - Requesting: http://10.0.0.41:8082/project/b5bf870e-2dea-4318-9205-5cfae9296429 2025-11-06 02:34:31,751 - DEBUG - Requesting: http://10.0.0.41:8082/network-policy/7c696ca7-4835-470d-8a36-8f0ab5a8c506 2025-11-06 02:34:31,760 - INFO - Verified policy ctest-policy1-00401313 in API Server, Result: True 2025-11-06 02:34:31,760 - INFO - Done with setup and verification, moving onto test .. 2025-11-06 02:34:31,773 - INFO - Deleting VN ctest-vn4-76324690 2025-11-06 02:34:32,015 - DEBUG - Response for deleting network () 2025-11-06 02:34:32,016 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/301e8c86-2db4-40c6-9fcc-adcc49a6fc76 2025-11-06 02:34:32,023 - DEBUG - Response Code: 404 2025-11-06 02:34:32,023 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2025-11-06 02:34:32,028 - DEBUG - Requesting: http://10.0.0.41:8082/domain/dd557474-6eee-442f-acdf-559f4d754f9d 2025-11-06 02:34:32,039 - DEBUG - Requesting: http://10.0.0.41:8082/project/b5bf870e-2dea-4318-9205-5cfae9296429 2025-11-06 02:34:32,138 - INFO - Validated that VN ctest-vn4-76324690 is not found in API Server 2025-11-06 02:34:32,150 - DEBUG - VN ctest-vn4-76324690 is not present in Agent 10.0.0.240 2025-11-06 02:34:32,167 - DEBUG - VN ctest-vn4-76324690 is not present in Agent 10.0.0.133 2025-11-06 02:34:32,167 - INFO - Validated that VN ctest-vn4-76324690 is not in any agent 2025-11-06 02:34:32,204 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-76324690 info 2025-11-06 02:34:32,245 - INFO - Deleted policy ctest-policy1-00401313 2025-11-06 02:34:32,462 - DEBUG - policy ctest-policy1-00401313 is not found in API Server 2025-11-06 02:34:33,767 - DEBUG - No XMPP flaps were noticed during the test
2025-11-06 02:34:33,767 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:07]
2025-11-06 02:34:33,767 - INFO - -------------------------------------------------------------------------------- 2025-11-06 02:34:35,071 - DEBUG - No XMPP flaps were noticed during the test
2025-11-06 02:34:35,071 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:10]
2025-11-06 02:34:35,071 - INFO - -------------------------------------------------------------------------------- 2025-11-06 02:34:35,829 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-51337299, ID : b5bf870e-2dea-4318-9205-5cfae9296429