2025-11-03 21:42:38,251 - INFO - Domain Default found not creating 2025-11-03 21:42:38,394 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-09265621 not found, creating it 2025-11-03 21:42:38,838 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-09265621, ID : 05c95388-2e05-40ed-ac83-dca58e980758 2025-11-03 21:42:40,594 - INFO - ================================================================================ 2025-11-03 21:42:40,594 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-03 21:42:40,854 - DEBUG - Nothing to compare xmpp stats {'10.0.0.48': {'10.20.0.17': '0'}} with 2025-11-03 21:42:40,854 - INFO - Initial checks done. Running the testcase now 2025-11-03 21:42:40,854 - INFO - 2025-11-03 21:42:40,854 - INFO - ================================================================================ 2025-11-03 21:42:40,854 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-03 21:42:40,854 - 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-03 21:42:41,155 - DEBUG - Nothing to compare xmpp stats {'10.0.0.48': {'10.20.0.17': '0'}} with 2025-11-03 21:42:41,155 - INFO - Initial checks done. Running the testcase now 2025-11-03 21:42:41,155 - INFO - 2025-11-03 21:42:41,480 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-09265621:ctest-vn4-47383347, 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-09265621:ctest-vn4-47383347, 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-09265621:ctest-vn4-47383347, 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-09265621:ctest-vn4-47383347, 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-03 21:42:41,992 - DEBUG - Response for create_network : {'network': {'id': 'a3a6d258-b47a-4f1c-a957-b1728fcf1287', 'name': 'ctest-vn4-47383347', 'tenant_id': '05c953882e0540edac83dca58e980758', 'project_id': '05c953882e0540edac83dca58e980758', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-09265621', 'ctest-vn4-47383347'], 'port_security_enabled': True, 'description': ''}} 2025-11-03 21:42:42,180 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b01b1614-c99f-4656-8b51-3c9a950d2e22', 'name': '', 'tenant_id': '05c953882e0540edac83dca58e980758', 'network_id': 'a3a6d258-b47a-4f1c-a957-b1728fcf1287', 'ip_version': 4, 'cidr': '174.168.231.192/26', 'allocation_pools': [{'start': '174.168.231.194', 'end': '174.168.231.254'}], 'gateway_ip': '174.168.231.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '174.168.231.194', 'tags': [], 'project_id': '05c953882e0540edac83dca58e980758'}} 2025-11-03 21:42:42,351 - DEBUG - Response for create_subnet : {'subnet': {'id': '94a29aa2-ed17-4760-af39-07651e614767', 'name': '', 'tenant_id': '05c953882e0540edac83dca58e980758', 'network_id': 'a3a6d258-b47a-4f1c-a957-b1728fcf1287', 'ip_version': 6, 'cidr': '39a6:7d94:e96a:e9a5:1e35:d9c3::/96', 'allocation_pools': [{'start': '39a6:7d94:e96a:e9a5:1e35:d9c3:0:2', 'end': '39a6:7d94:e96a:e9a5:1e35:d9c3:ffff:fffe'}], 'gateway_ip': '39a6:7d94:e96a:e9a5:1e35:d9c3:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '39a6:7d94:e96a:e9a5:1e35:d9c3:0:2', 'tags': [], 'project_id': '05c953882e0540edac83dca58e980758'}} 2025-11-03 21:42:42,373 - INFO - Created VN ctest-vn4-47383347 2025-11-03 21:42:42,424 - DEBUG - VN ctest-vn4-47383347 UUID is a3a6d258-b47a-4f1c-a957-b1728fcf1287 2025-11-03 21:42:42,631 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a3a6d258-b47a-4f1c-a957-b1728fcf1287', 'name': 'ctest-vn4-47383347', 'tenant_id': '05c953882e0540edac83dca58e980758', 'project_id': '05c953882e0540edac83dca58e980758', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b01b1614-c99f-4656-8b51-3c9a950d2e22', '94a29aa2-ed17-4760-af39-07651e614767'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-09265621', 'ctest-vn4-47383347'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-09265621', 'ctest-policy1-27282191']], 'subnet_ipam': [{'subnet_cidr': '174.168.231.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '39a6:7d94:e96a:e9a5:1e35:d9c3::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-11-03 21:42:42,792 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2025-11-03 21:42:43,090 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2025-11-03 21:42:43,118 - DEBUG - Requesting: http://10.0.0.48:8082/domain/08e10bd5-c2ff-49ee-8138-17c957da47f5 2025-11-03 21:42:43,132 - DEBUG - Requesting: http://10.0.0.48:8082/project/05c95388-2e05-40ed-ac83-dca58e980758 2025-11-03 21:42:43,200 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/a3a6d258-b47a-4f1c-a957-b1728fcf1287 2025-11-03 21:42:43,211 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/a3a6d258-b47a-4f1c-a957-b1728fcf1287 2025-11-03 21:42:43,220 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/8a29e953-57c8-49e3-88c0-730fd132deca 2025-11-03 21:42:43,226 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/8a29e953-57c8-49e3-88c0-730fd132deca 2025-11-03 21:42:43,231 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/2b8cb1c1-627b-4408-9c30-f90472824f3e 2025-11-03 21:42:43,238 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-03 21:42:43,238 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/a3a6d258-b47a-4f1c-a957-b1728fcf1287 2025-11-03 21:42:43,247 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/8a29e953-57c8-49e3-88c0-730fd132deca 2025-11-03 21:42:43,259 - INFO - Verified VN network id 11 for VN a3a6d258-b47a-4f1c-a957-b1728fcf1287 2025-11-03 21:42:43,259 - INFO - Verifications in API Server for VN ctest-vn4-47383347 passed 2025-11-03 21:42:43,259 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/a3a6d258-b47a-4f1c-a957-b1728fcf1287 2025-11-03 21:42:43,269 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/8a29e953-57c8-49e3-88c0-730fd132deca 2025-11-03 21:42:43,276 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/8a29e953-57c8-49e3-88c0-730fd132deca 2025-11-03 21:42:43,282 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/2b8cb1c1-627b-4408-9c30-f90472824f3e 2025-11-03 21:42:43,293 - DEBUG - Control-node 10.0.0.48 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-09265621:ctest-vn4-47383347', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-09265621', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11792343952743091996', 'uuid-lslong': '12202416820980748935'}, 'enable': 'true', 'created': '2025-11-03T21:42:41', 'last-modified': '2025-11-03T21:42:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.693439'} 2025-11-03 21:42:43,299 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-03 21:42:43,300 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-47383347 passed 2025-11-03 21:42:43,301 - DEBUG - ====Verifying policy data for ctest-vn4-47383347 in API_Server ====== 2025-11-03 21:42:43,301 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2025-11-03 21:42:43,306 - DEBUG - Requesting: http://10.0.0.48:8082/domain/08e10bd5-c2ff-49ee-8138-17c957da47f5 2025-11-03 21:42:43,315 - DEBUG - Requesting: http://10.0.0.48:8082/project/05c95388-2e05-40ed-ac83-dca58e980758 2025-11-03 21:42:43,385 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/a3a6d258-b47a-4f1c-a957-b1728fcf1287 2025-11-03 21:42:43,393 - DEBUG - ==>Verifying data for policy with id: 28b28d11-9901-44e7-8418-d8a2234f4b44, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-09265621', 'ctest-policy1-27282191'] 2025-11-03 21:42:43,393 - INFO - VN ctest-vn4-47383347 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-03 21:42:43,393 - DEBUG - Verifying the vn in opserver 2025-11-03 21:42:43,393 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-09265621:ctest-vn4-47383347 virtual network link through opserver 10.0.0.48 2025-11-03 21:42:43,393 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks 2025-11-03 21:42:43,687 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks 2025-11-03 21:42:43,738 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-09265621:ctest-vn4-47383347', 'href': 'http://10.0.0.48:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-09265621:ctest-vn4-47383347?flat'} 2025-11-03 21:42:43,738 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-09265621:ctest-vn4-47383347 is found in opserver 2025-11-03 21:42:43,748 - DEBUG - Do not have enough data to verify VN in agent 2025-11-03 21:42:43,752 - DEBUG - VRF ids for VN ctest-vn4-47383347: {} 2025-11-03 21:42:43,753 - DEBUG - ====Verifying data for ctest-policy1-27282191 in API_Server ====== 2025-11-03 21:42:43,753 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2025-11-03 21:42:43,759 - DEBUG - Requesting: http://10.0.0.48:8082/domain/08e10bd5-c2ff-49ee-8138-17c957da47f5 2025-11-03 21:42:43,770 - DEBUG - Requesting: http://10.0.0.48:8082/project/05c95388-2e05-40ed-ac83-dca58e980758 2025-11-03 21:42:43,841 - DEBUG - Requesting: http://10.0.0.48:8082/network-policy/28b28d11-9901-44e7-8418-d8a2234f4b44 2025-11-03 21:42:43,850 - INFO - Verified policy ctest-policy1-27282191 in API Server, Result: True 2025-11-03 21:42:43,850 - INFO - Done with setup and verification, moving onto test .. 2025-11-03 21:42:43,858 - INFO - Deleting VN ctest-vn4-47383347 2025-11-03 21:42:43,969 - DEBUG - Response for deleting network () 2025-11-03 21:42:43,969 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/8a29e953-57c8-49e3-88c0-730fd132deca 2025-11-03 21:42:43,974 - DEBUG - Response Code: 404 2025-11-03 21:42:43,974 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2025-11-03 21:42:43,979 - DEBUG - Requesting: http://10.0.0.48:8082/domain/08e10bd5-c2ff-49ee-8138-17c957da47f5 2025-11-03 21:42:44,028 - DEBUG - Requesting: http://10.0.0.48:8082/project/05c95388-2e05-40ed-ac83-dca58e980758 2025-11-03 21:42:44,100 - INFO - Validated that VN ctest-vn4-47383347 is not found in API Server 2025-11-03 21:42:44,108 - DEBUG - VN ctest-vn4-47383347 is not present in Agent 10.0.0.48 2025-11-03 21:42:44,108 - INFO - Validated that VN ctest-vn4-47383347 is not in any agent 2025-11-03 21:42:44,121 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-47383347 info 2025-11-03 21:42:44,148 - INFO - Deleted policy ctest-policy1-27282191 2025-11-03 21:42:44,312 - DEBUG - policy ctest-policy1-27282191 is not found in API Server 2025-11-03 21:42:44,570 - DEBUG - No XMPP flaps were noticed during the test