2025-08-14 13:03:31,984 - INFO - Domain Default found not creating 2025-08-14 13:03:32,104 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-62959121 not found, creating it 2025-08-14 13:03:32,534 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-62959121, ID : 6bbb15d8-0251-4412-823d-ea56992f10b5 2025-08-14 13:03:33,840 - INFO - ================================================================================ 2025-08-14 13:03:33,841 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-14 13:03:34,095 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.17': '0'}} with 2025-08-14 13:03:34,095 - INFO - Initial checks done. Running the testcase now 2025-08-14 13:03:34,095 - INFO - 2025-08-14 13:03:34,095 - INFO - ================================================================================ 2025-08-14 13:03:34,095 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-14 13:03:34,095 - 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-14 13:03:34,386 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.17': '0'}} with 2025-08-14 13:03:34,386 - INFO - Initial checks done. Running the testcase now 2025-08-14 13:03:34,386 - INFO - 2025-08-14 13:03:34,722 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-62959121:ctest-vn4-02101564, 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-62959121:ctest-vn4-02101564, 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-62959121:ctest-vn4-02101564, 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-62959121:ctest-vn4-02101564, 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-14 13:03:35,203 - DEBUG - Response for create_network : {'network': {'id': '575236e5-7fed-4d76-b32d-457210576116', 'name': 'ctest-vn4-02101564', 'tenant_id': '6bbb15d802514412823dea56992f10b5', 'project_id': '6bbb15d802514412823dea56992f10b5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-62959121', 'ctest-vn4-02101564'], 'port_security_enabled': True, 'description': ''}} 2025-08-14 13:03:35,386 - DEBUG - Response for create_subnet : {'subnet': {'id': '37ebc409-5f90-4c87-a641-c5dd357dd1a1', 'name': '', 'tenant_id': '6bbb15d802514412823dea56992f10b5', 'network_id': '575236e5-7fed-4d76-b32d-457210576116', 'ip_version': 4, 'cidr': '22.209.224.64/26', 'allocation_pools': [{'start': '22.209.224.66', 'end': '22.209.224.126'}], 'gateway_ip': '22.209.224.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '22.209.224.66', 'tags': [], 'project_id': '6bbb15d802514412823dea56992f10b5'}} 2025-08-14 13:03:35,589 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f5c231b6-53a6-4e44-ad5d-b23fb3ca3984', 'name': '', 'tenant_id': '6bbb15d802514412823dea56992f10b5', 'network_id': '575236e5-7fed-4d76-b32d-457210576116', 'ip_version': 6, 'cidr': '3b13:35ed:4aad:2150:2fbb:ce4d::/96', 'allocation_pools': [{'start': '3b13:35ed:4aad:2150:2fbb:ce4d:0:2', 'end': '3b13:35ed:4aad:2150:2fbb:ce4d:ffff:fffe'}], 'gateway_ip': '3b13:35ed:4aad:2150:2fbb:ce4d:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3b13:35ed:4aad:2150:2fbb:ce4d:0:2', 'tags': [], 'project_id': '6bbb15d802514412823dea56992f10b5'}} 2025-08-14 13:03:35,607 - INFO - Created VN ctest-vn4-02101564 2025-08-14 13:03:35,657 - DEBUG - VN ctest-vn4-02101564 UUID is 575236e5-7fed-4d76-b32d-457210576116 2025-08-14 13:03:35,842 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '575236e5-7fed-4d76-b32d-457210576116', 'name': 'ctest-vn4-02101564', 'tenant_id': '6bbb15d802514412823dea56992f10b5', 'project_id': '6bbb15d802514412823dea56992f10b5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['37ebc409-5f90-4c87-a641-c5dd357dd1a1', 'f5c231b6-53a6-4e44-ad5d-b23fb3ca3984'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-62959121', 'ctest-vn4-02101564'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-62959121', 'ctest-policy1-45091392']], 'subnet_ipam': [{'subnet_cidr': '22.209.224.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3b13:35ed:4aad:2150:2fbb:ce4d::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-14 13:03:35,997 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-08-14 13:03:36,285 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-08-14 13:03:36,309 - DEBUG - Requesting: http://10.0.0.249:8082/domain/773ff5d6-597b-47dc-8c7e-5427535535b7 2025-08-14 13:03:36,320 - DEBUG - Requesting: http://10.0.0.249:8082/project/6bbb15d8-0251-4412-823d-ea56992f10b5 2025-08-14 13:03:36,390 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/575236e5-7fed-4d76-b32d-457210576116 2025-08-14 13:03:36,402 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/575236e5-7fed-4d76-b32d-457210576116 2025-08-14 13:03:36,411 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/c1663e8e-b1a3-450c-adf9-2959d4019e23 2025-08-14 13:03:36,418 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/c1663e8e-b1a3-450c-adf9-2959d4019e23 2025-08-14 13:03:36,424 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/2f44dbdf-0480-41ea-b503-e8633b9af8c0 2025-08-14 13:03:36,429 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-14 13:03:36,429 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/575236e5-7fed-4d76-b32d-457210576116 2025-08-14 13:03:36,438 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/c1663e8e-b1a3-450c-adf9-2959d4019e23 2025-08-14 13:03:36,450 - INFO - Verified VN network id 11 for VN 575236e5-7fed-4d76-b32d-457210576116 2025-08-14 13:03:36,450 - INFO - Verifications in API Server for VN ctest-vn4-02101564 passed 2025-08-14 13:03:36,450 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/575236e5-7fed-4d76-b32d-457210576116 2025-08-14 13:03:36,459 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/c1663e8e-b1a3-450c-adf9-2959d4019e23 2025-08-14 13:03:36,465 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/c1663e8e-b1a3-450c-adf9-2959d4019e23 2025-08-14 13:03:36,471 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/2f44dbdf-0480-41ea-b503-e8633b9af8c0 2025-08-14 13:03:36,482 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-62959121:ctest-vn4-02101564', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-62959121', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6292151988711673206', 'uuid-lslong': '12911052062943830294'}, 'enable': 'true', 'created': '2025-08-14T13:03:35', 'last-modified': '2025-08-14T13:03:35', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.668741'} 2025-08-14 13:03:36,488 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-14 13:03:36,488 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-02101564 passed 2025-08-14 13:03:36,488 - DEBUG - ====Verifying policy data for ctest-vn4-02101564 in API_Server ====== 2025-08-14 13:03:36,490 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-08-14 13:03:36,494 - DEBUG - Requesting: http://10.0.0.249:8082/domain/773ff5d6-597b-47dc-8c7e-5427535535b7 2025-08-14 13:03:36,504 - DEBUG - Requesting: http://10.0.0.249:8082/project/6bbb15d8-0251-4412-823d-ea56992f10b5 2025-08-14 13:03:36,578 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/575236e5-7fed-4d76-b32d-457210576116 2025-08-14 13:03:36,587 - DEBUG - ==>Verifying data for policy with id: 8351656e-7272-49ef-a47d-35c083365de6, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-62959121', 'ctest-policy1-45091392'] 2025-08-14 13:03:36,587 - INFO - VN ctest-vn4-02101564 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-14 13:03:36,587 - DEBUG - Verifying the vn in opserver 2025-08-14 13:03:36,587 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-62959121:ctest-vn4-02101564 virtual network link through opserver 10.0.0.249 2025-08-14 13:03:36,588 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2025-08-14 13:03:36,874 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2025-08-14 13:03:36,920 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-62959121:ctest-vn4-02101564', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-62959121:ctest-vn4-02101564?flat'} 2025-08-14 13:03:36,920 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-62959121:ctest-vn4-02101564 is found in opserver 2025-08-14 13:03:36,930 - DEBUG - Do not have enough data to verify VN in agent 2025-08-14 13:03:36,934 - DEBUG - VRF ids for VN ctest-vn4-02101564: {} 2025-08-14 13:03:36,935 - DEBUG - ====Verifying data for ctest-policy1-45091392 in API_Server ====== 2025-08-14 13:03:36,935 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-08-14 13:03:36,939 - DEBUG - Requesting: http://10.0.0.249:8082/domain/773ff5d6-597b-47dc-8c7e-5427535535b7 2025-08-14 13:03:36,949 - DEBUG - Requesting: http://10.0.0.249:8082/project/6bbb15d8-0251-4412-823d-ea56992f10b5 2025-08-14 13:03:37,022 - DEBUG - Requesting: http://10.0.0.249:8082/network-policy/8351656e-7272-49ef-a47d-35c083365de6 2025-08-14 13:03:37,032 - INFO - Verified policy ctest-policy1-45091392 in API Server, Result: True 2025-08-14 13:03:37,032 - INFO - Done with setup and verification, moving onto test .. 2025-08-14 13:03:37,040 - INFO - Deleting VN ctest-vn4-02101564 2025-08-14 13:03:37,145 - DEBUG - Response for deleting network () 2025-08-14 13:03:37,145 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/c1663e8e-b1a3-450c-adf9-2959d4019e23 2025-08-14 13:03:37,149 - DEBUG - Response Code: 404 2025-08-14 13:03:37,149 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-08-14 13:03:37,154 - DEBUG - Requesting: http://10.0.0.249:8082/domain/773ff5d6-597b-47dc-8c7e-5427535535b7 2025-08-14 13:03:37,210 - DEBUG - Requesting: http://10.0.0.249:8082/project/6bbb15d8-0251-4412-823d-ea56992f10b5 2025-08-14 13:03:37,282 - INFO - Validated that VN ctest-vn4-02101564 is not found in API Server 2025-08-14 13:03:37,292 - DEBUG - VN ctest-vn4-02101564 is not present in Agent 10.0.0.249 2025-08-14 13:03:37,292 - INFO - Validated that VN ctest-vn4-02101564 is not in any agent 2025-08-14 13:03:37,306 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-02101564 info 2025-08-14 13:03:37,328 - INFO - Deleted policy ctest-policy1-45091392 2025-08-14 13:03:37,493 - DEBUG - policy ctest-policy1-45091392 is not found in API Server 2025-08-14 13:03:37,752 - DEBUG - No XMPP flaps were noticed during the test 2025-08-14 13:03:37,752 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:03] 2025-08-14 13:03:37,752 - INFO - -------------------------------------------------------------------------------- 2025-08-14 13:03:38,043 - DEBUG - No XMPP flaps were noticed during the test 2025-08-14 13:03:38,043 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2025-08-14 13:03:38,043 - INFO - -------------------------------------------------------------------------------- 2025-08-14 13:03:38,696 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-62959121, ID : 6bbb15d8-0251-4412-823d-ea56992f10b5