2026-02-10 13:56:37,055 - INFO - Domain Default found not creating 2026-02-10 13:56:37,944 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-00590478 not found, creating it 2026-02-10 13:56:38,422 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-00590478, ID : cabdbc63-2310-414c-8a78-63dc95094f30 2026-02-10 13:56:40,026 - INFO - ================================================================================ 2026-02-10 13:56:40,027 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-10 13:56:40,281 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2026-02-10 13:56:40,281 - INFO - Initial checks done. Running the testcase now 2026-02-10 13:56:40,282 - INFO - 2026-02-10 13:56:40,282 - INFO - ================================================================================ 2026-02-10 13:56:40,282 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-10 13:56:40,282 - 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-10 13:56:40,571 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2026-02-10 13:56:40,571 - INFO - Initial checks done. Running the testcase now 2026-02-10 13:56:40,571 - INFO - 2026-02-10 13:56:40,971 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-00590478:ctest-vn4-61817594, 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-00590478:ctest-vn4-61817594, 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-00590478:ctest-vn4-61817594, 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-00590478:ctest-vn4-61817594, 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-10 13:56:41,498 - DEBUG - Response for create_network : {'network': {'id': '3c9d3e9c-a8f0-4e5a-9069-f923cd80ca63', 'name': 'ctest-vn4-61817594', 'tenant_id': 'cabdbc632310414c8a7863dc95094f30', 'project_id': 'cabdbc632310414c8a7863dc95094f30', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-00590478', 'ctest-vn4-61817594'], 'port_security_enabled': True, 'description': ''}} 2026-02-10 13:56:41,648 - DEBUG - Response for create_subnet : {'subnet': {'id': '101fe5eb-8b0f-4901-a21a-0ed199362747', 'name': '', 'tenant_id': 'cabdbc632310414c8a7863dc95094f30', 'network_id': '3c9d3e9c-a8f0-4e5a-9069-f923cd80ca63', 'ip_version': 4, 'cidr': '163.116.178.0/26', 'allocation_pools': [{'start': '163.116.178.2', 'end': '163.116.178.62'}], 'gateway_ip': '163.116.178.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '163.116.178.2', 'tags': [], 'project_id': 'cabdbc632310414c8a7863dc95094f30'}} 2026-02-10 13:56:41,828 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f7e546a4-1041-4926-b021-413f753c4b48', 'name': '', 'tenant_id': 'cabdbc632310414c8a7863dc95094f30', 'network_id': '3c9d3e9c-a8f0-4e5a-9069-f923cd80ca63', 'ip_version': 6, 'cidr': '2b5d:56f8:80cc:59a3:d4a:dd58::/96', 'allocation_pools': [{'start': '2b5d:56f8:80cc:59a3:d4a:dd58:0:2', 'end': '2b5d:56f8:80cc:59a3:d4a:dd58:ffff:fffe'}], 'gateway_ip': '2b5d:56f8:80cc:59a3:d4a:dd58:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2b5d:56f8:80cc:59a3:d4a:dd58:0:2', 'tags': [], 'project_id': 'cabdbc632310414c8a7863dc95094f30'}} 2026-02-10 13:56:41,848 - INFO - Created VN ctest-vn4-61817594 2026-02-10 13:56:41,899 - DEBUG - VN ctest-vn4-61817594 UUID is 3c9d3e9c-a8f0-4e5a-9069-f923cd80ca63 2026-02-10 13:56:42,098 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3c9d3e9c-a8f0-4e5a-9069-f923cd80ca63', 'name': 'ctest-vn4-61817594', 'tenant_id': 'cabdbc632310414c8a7863dc95094f30', 'project_id': 'cabdbc632310414c8a7863dc95094f30', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['101fe5eb-8b0f-4901-a21a-0ed199362747', 'f7e546a4-1041-4926-b021-413f753c4b48'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-00590478', 'ctest-vn4-61817594'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-00590478', 'ctest-policy1-96753264']], 'subnet_ipam': [{'subnet_cidr': '163.116.178.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2b5d:56f8:80cc:59a3:d4a:dd58::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-10 13:56:42,267 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-02-10 13:56:42,609 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-02-10 13:56:42,646 - DEBUG - Requesting: http://10.0.0.50:8082/domain/f546d81a-955a-40ab-b155-f0c6ef249bd1 2026-02-10 13:56:42,662 - DEBUG - Requesting: http://10.0.0.50:8082/project/cabdbc63-2310-414c-8a78-63dc95094f30 2026-02-10 13:56:42,744 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/3c9d3e9c-a8f0-4e5a-9069-f923cd80ca63 2026-02-10 13:56:42,758 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/3c9d3e9c-a8f0-4e5a-9069-f923cd80ca63 2026-02-10 13:56:42,771 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/512ac1f8-e97f-499f-bda0-d05a796545bc 2026-02-10 13:56:42,778 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/512ac1f8-e97f-499f-bda0-d05a796545bc 2026-02-10 13:56:42,785 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/a2fb82c9-604d-4a73-8968-0848d2f6981f 2026-02-10 13:56:42,791 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-10 13:56:42,791 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/3c9d3e9c-a8f0-4e5a-9069-f923cd80ca63 2026-02-10 13:56:42,801 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/512ac1f8-e97f-499f-bda0-d05a796545bc 2026-02-10 13:56:42,816 - INFO - Verified VN network id 10 for VN 3c9d3e9c-a8f0-4e5a-9069-f923cd80ca63 2026-02-10 13:56:42,816 - INFO - Verifications in API Server for VN ctest-vn4-61817594 passed 2026-02-10 13:56:42,816 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/3c9d3e9c-a8f0-4e5a-9069-f923cd80ca63 2026-02-10 13:56:42,826 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/512ac1f8-e97f-499f-bda0-d05a796545bc 2026-02-10 13:56:42,835 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/512ac1f8-e97f-499f-bda0-d05a796545bc 2026-02-10 13:56:42,843 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/a2fb82c9-604d-4a73-8968-0848d2f6981f 2026-02-10 13:56:42,855 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-00590478:ctest-vn4-61817594', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-00590478', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4367716056189390426', 'uuid-lslong': '10406122346183182947'}, 'enable': 'true', 'created': '2026-02-10T13:56:41', 'last-modified': '2026-02-10T13:56:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.783980'} 2026-02-10 13:56:42,862 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-10 13:56:42,862 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-61817594 passed 2026-02-10 13:56:42,862 - DEBUG - ====Verifying policy data for ctest-vn4-61817594 in API_Server ====== 2026-02-10 13:56:42,862 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-02-10 13:56:42,868 - DEBUG - Requesting: http://10.0.0.50:8082/domain/f546d81a-955a-40ab-b155-f0c6ef249bd1 2026-02-10 13:56:42,881 - DEBUG - Requesting: http://10.0.0.50:8082/project/cabdbc63-2310-414c-8a78-63dc95094f30 2026-02-10 13:56:42,959 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/3c9d3e9c-a8f0-4e5a-9069-f923cd80ca63 2026-02-10 13:56:42,971 - DEBUG - ==>Verifying data for policy with id: a7a25ed1-88f7-4e54-b14b-4294b0b2ec3c, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-00590478', 'ctest-policy1-96753264'] 2026-02-10 13:56:42,971 - INFO - VN ctest-vn4-61817594 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-10 13:56:42,971 - DEBUG - Verifying the vn in opserver 2026-02-10 13:56:42,971 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-00590478:ctest-vn4-61817594 virtual network link through opserver 10.0.0.50 2026-02-10 13:56:42,972 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-02-10 13:56:43,308 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-02-10 13:56:43,389 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-00590478:ctest-vn4-61817594', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-00590478:ctest-vn4-61817594?flat'} 2026-02-10 13:56:43,389 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-00590478:ctest-vn4-61817594 is found in opserver 2026-02-10 13:56:43,400 - DEBUG - Do not have enough data to verify VN in agent 2026-02-10 13:56:43,406 - DEBUG - VRF ids for VN ctest-vn4-61817594: {} 2026-02-10 13:56:43,406 - DEBUG - ====Verifying data for ctest-policy1-96753264 in API_Server ====== 2026-02-10 13:56:43,406 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-02-10 13:56:43,411 - DEBUG - Requesting: http://10.0.0.50:8082/domain/f546d81a-955a-40ab-b155-f0c6ef249bd1 2026-02-10 13:56:43,423 - DEBUG - Requesting: http://10.0.0.50:8082/project/cabdbc63-2310-414c-8a78-63dc95094f30 2026-02-10 13:56:43,491 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/a7a25ed1-88f7-4e54-b14b-4294b0b2ec3c 2026-02-10 13:56:43,501 - INFO - Verified policy ctest-policy1-96753264 in API Server, Result: True 2026-02-10 13:56:43,501 - INFO - Done with setup and verification, moving onto test .. 2026-02-10 13:56:43,510 - INFO - Deleting VN ctest-vn4-61817594 2026-02-10 13:56:43,632 - DEBUG - Response for deleting network () 2026-02-10 13:56:43,632 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/512ac1f8-e97f-499f-bda0-d05a796545bc 2026-02-10 13:56:43,638 - DEBUG - Response Code: 404 2026-02-10 13:56:43,638 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-02-10 13:56:43,643 - DEBUG - Requesting: http://10.0.0.50:8082/domain/f546d81a-955a-40ab-b155-f0c6ef249bd1 2026-02-10 13:56:43,696 - DEBUG - Requesting: http://10.0.0.50:8082/project/cabdbc63-2310-414c-8a78-63dc95094f30 2026-02-10 13:56:43,765 - INFO - Validated that VN ctest-vn4-61817594 is not found in API Server 2026-02-10 13:56:43,777 - DEBUG - VN ctest-vn4-61817594 is not present in Agent 10.0.0.50 2026-02-10 13:56:43,777 - INFO - Validated that VN ctest-vn4-61817594 is not in any agent 2026-02-10 13:56:43,792 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-61817594 info 2026-02-10 13:56:43,820 - INFO - Deleted policy ctest-policy1-96753264 2026-02-10 13:56:43,986 - DEBUG - policy ctest-policy1-96753264 is not found in API Server 2026-02-10 13:56:44,240 - DEBUG - No XMPP flaps were noticed during the test 2026-02-10 13:56:44,240 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-02-10 13:56:44,240 - INFO - -------------------------------------------------------------------------------- 2026-02-10 13:56:44,528 - DEBUG - No XMPP flaps were noticed during the test 2026-02-10 13:56:44,528 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-02-10 13:56:44,528 - INFO - -------------------------------------------------------------------------------- 2026-02-10 13:56:45,259 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-00590478, ID : cabdbc63-2310-414c-8a78-63dc95094f30