2025-08-20 13:40:09,332 - INFO - Domain Default found not creating 2025-08-20 13:40:09,478 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-53817216 not found, creating it 2025-08-20 13:40:09,956 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-53817216, ID : 2ec57771-4f1b-44c5-8b98-00bde19923ac 2025-08-20 13:40:11,445 - INFO - ================================================================================ 2025-08-20 13:40:11,445 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-20 13:40:11,703 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.14': '0'}} with 2025-08-20 13:40:11,703 - INFO - Initial checks done. Running the testcase now 2025-08-20 13:40:11,703 - INFO - 2025-08-20 13:40:11,703 - INFO - ================================================================================ 2025-08-20 13:40:11,703 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-20 13:40:11,703 - 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-08-20 13:40:11,988 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.14': '0'}} with 2025-08-20 13:40:11,988 - INFO - Initial checks done. Running the testcase now 2025-08-20 13:40:11,988 - INFO - 2025-08-20 13:40:12,372 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-53817216:ctest-vn4-92638633, 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-53817216:ctest-vn4-92638633, 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-53817216:ctest-vn4-92638633, 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-53817216:ctest-vn4-92638633, 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-08-20 13:40:12,918 - DEBUG - Response for create_network : {'network': {'id': '735c371c-bd36-4b98-8163-b45d156800b0', 'name': 'ctest-vn4-92638633', 'tenant_id': '2ec577714f1b44c58b9800bde19923ac', 'project_id': '2ec577714f1b44c58b9800bde19923ac', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-53817216', 'ctest-vn4-92638633'], 'port_security_enabled': True, 'description': ''}} 2025-08-20 13:40:13,110 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cfd87904-9b1e-458e-ab41-e68b09cebab9', 'name': '', 'tenant_id': '2ec577714f1b44c58b9800bde19923ac', 'network_id': '735c371c-bd36-4b98-8163-b45d156800b0', 'ip_version': 4, 'cidr': '203.219.99.64/26', 'allocation_pools': [{'start': '203.219.99.66', 'end': '203.219.99.126'}], 'gateway_ip': '203.219.99.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '203.219.99.66', 'tags': [], 'project_id': '2ec577714f1b44c58b9800bde19923ac'}} 2025-08-20 13:40:13,312 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c383f61c-e411-4d87-a1e1-87686a50174b', 'name': '', 'tenant_id': '2ec577714f1b44c58b9800bde19923ac', 'network_id': '735c371c-bd36-4b98-8163-b45d156800b0', 'ip_version': 6, 'cidr': '3280:d95c:f592:bb19:8f95:1c4f::/96', 'allocation_pools': [{'start': '3280:d95c:f592:bb19:8f95:1c4f:0:2', 'end': '3280:d95c:f592:bb19:8f95:1c4f:ffff:fffe'}], 'gateway_ip': '3280:d95c:f592:bb19:8f95:1c4f:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3280:d95c:f592:bb19:8f95:1c4f:0:2', 'tags': [], 'project_id': '2ec577714f1b44c58b9800bde19923ac'}} 2025-08-20 13:40:13,339 - INFO - Created VN ctest-vn4-92638633 2025-08-20 13:40:13,394 - DEBUG - VN ctest-vn4-92638633 UUID is 735c371c-bd36-4b98-8163-b45d156800b0 2025-08-20 13:40:13,603 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '735c371c-bd36-4b98-8163-b45d156800b0', 'name': 'ctest-vn4-92638633', 'tenant_id': '2ec577714f1b44c58b9800bde19923ac', 'project_id': '2ec577714f1b44c58b9800bde19923ac', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['cfd87904-9b1e-458e-ab41-e68b09cebab9', 'c383f61c-e411-4d87-a1e1-87686a50174b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-53817216', 'ctest-vn4-92638633'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-53817216', 'ctest-policy1-62628812']], 'subnet_ipam': [{'subnet_cidr': '203.219.99.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3280:d95c:f592:bb19:8f95:1c4f::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-20 13:40:13,778 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-08-20 13:40:14,074 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-08-20 13:40:14,105 - DEBUG - Requesting: http://10.0.0.27:8082/domain/836d935d-fefa-4466-b038-e609fdfda827 2025-08-20 13:40:14,119 - DEBUG - Requesting: http://10.0.0.27:8082/project/2ec57771-4f1b-44c5-8b98-00bde19923ac 2025-08-20 13:40:14,199 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/735c371c-bd36-4b98-8163-b45d156800b0 2025-08-20 13:40:14,215 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/735c371c-bd36-4b98-8163-b45d156800b0 2025-08-20 13:40:14,226 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/422fdf45-e603-4b94-9d3f-4dd5d006fbb8 2025-08-20 13:40:14,235 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/422fdf45-e603-4b94-9d3f-4dd5d006fbb8 2025-08-20 13:40:14,244 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/858a1f41-aa84-4a02-a2f6-177743d5987f 2025-08-20 13:40:14,251 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-20 13:40:14,251 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/735c371c-bd36-4b98-8163-b45d156800b0 2025-08-20 13:40:14,261 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/422fdf45-e603-4b94-9d3f-4dd5d006fbb8 2025-08-20 13:40:14,276 - INFO - Verified VN network id 10 for VN 735c371c-bd36-4b98-8163-b45d156800b0 2025-08-20 13:40:14,276 - INFO - Verifications in API Server for VN ctest-vn4-92638633 passed 2025-08-20 13:40:14,276 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/735c371c-bd36-4b98-8163-b45d156800b0 2025-08-20 13:40:14,291 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/422fdf45-e603-4b94-9d3f-4dd5d006fbb8 2025-08-20 13:40:14,301 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/422fdf45-e603-4b94-9d3f-4dd5d006fbb8 2025-08-20 13:40:14,309 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/858a1f41-aa84-4a02-a2f6-177743d5987f 2025-08-20 13:40:14,326 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-53817216:ctest-vn4-92638633', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-53817216', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8312579608792157080', 'uuid-lslong': '9323493965471154352'}, 'enable': 'true', 'created': '2025-08-20T13:40:12', 'last-modified': '2025-08-20T13:40:13', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.752638'} 2025-08-20 13:40:14,337 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-20 13:40:14,337 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-92638633 passed 2025-08-20 13:40:14,337 - DEBUG - ====Verifying policy data for ctest-vn4-92638633 in API_Server ====== 2025-08-20 13:40:14,337 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-08-20 13:40:14,345 - DEBUG - Requesting: http://10.0.0.27:8082/domain/836d935d-fefa-4466-b038-e609fdfda827 2025-08-20 13:40:14,361 - DEBUG - Requesting: http://10.0.0.27:8082/project/2ec57771-4f1b-44c5-8b98-00bde19923ac 2025-08-20 13:40:14,439 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/735c371c-bd36-4b98-8163-b45d156800b0 2025-08-20 13:40:14,455 - DEBUG - ==>Verifying data for policy with id: 5098b6e9-a37f-4675-9ab9-e9d82b73a28d, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-53817216', 'ctest-policy1-62628812'] 2025-08-20 13:40:14,455 - INFO - VN ctest-vn4-92638633 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-20 13:40:14,455 - DEBUG - Verifying the vn in opserver 2025-08-20 13:40:14,455 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-53817216:ctest-vn4-92638633 virtual network link through opserver 10.0.0.27 2025-08-20 13:40:14,455 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2025-08-20 13:40:14,757 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2025-08-20 13:40:14,819 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-53817216:ctest-vn4-92638633', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-53817216:ctest-vn4-92638633?flat'} 2025-08-20 13:40:14,819 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-53817216:ctest-vn4-92638633 is found in opserver 2025-08-20 13:40:14,831 - DEBUG - Do not have enough data to verify VN in agent 2025-08-20 13:40:14,836 - DEBUG - VRF ids for VN ctest-vn4-92638633: {} 2025-08-20 13:40:14,837 - DEBUG - ====Verifying data for ctest-policy1-62628812 in API_Server ====== 2025-08-20 13:40:14,837 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-08-20 13:40:14,843 - DEBUG - Requesting: http://10.0.0.27:8082/domain/836d935d-fefa-4466-b038-e609fdfda827 2025-08-20 13:40:14,858 - DEBUG - Requesting: http://10.0.0.27:8082/project/2ec57771-4f1b-44c5-8b98-00bde19923ac 2025-08-20 13:40:14,936 - DEBUG - Requesting: http://10.0.0.27:8082/network-policy/5098b6e9-a37f-4675-9ab9-e9d82b73a28d 2025-08-20 13:40:14,947 - INFO - Verified policy ctest-policy1-62628812 in API Server, Result: True 2025-08-20 13:40:14,947 - INFO - Done with setup and verification, moving onto test .. 2025-08-20 13:40:14,956 - INFO - Deleting VN ctest-vn4-92638633 2025-08-20 13:40:15,094 - DEBUG - Response for deleting network () 2025-08-20 13:40:15,094 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/422fdf45-e603-4b94-9d3f-4dd5d006fbb8 2025-08-20 13:40:15,101 - DEBUG - Response Code: 404 2025-08-20 13:40:15,101 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-08-20 13:40:15,107 - DEBUG - Requesting: http://10.0.0.27:8082/domain/836d935d-fefa-4466-b038-e609fdfda827 2025-08-20 13:40:15,165 - DEBUG - Requesting: http://10.0.0.27:8082/project/2ec57771-4f1b-44c5-8b98-00bde19923ac 2025-08-20 13:40:15,234 - INFO - Validated that VN ctest-vn4-92638633 is not found in API Server 2025-08-20 13:40:15,248 - DEBUG - VN ctest-vn4-92638633 is not present in Agent 10.0.0.27 2025-08-20 13:40:15,248 - INFO - Validated that VN ctest-vn4-92638633 is not in any agent 2025-08-20 13:40:15,272 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-92638633 info 2025-08-20 13:40:15,313 - INFO - Deleted policy ctest-policy1-62628812 2025-08-20 13:40:15,494 - DEBUG - policy ctest-policy1-62628812 is not found in API Server 2025-08-20 13:40:15,748 - DEBUG - No XMPP flaps were noticed during the test