2026-01-22 02:18:45,874 - INFO - Domain Default found not creating 2026-01-22 02:18:46,036 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-25789869 not found, creating it 2026-01-22 02:18:46,503 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-25789869, ID : 050801e6-ef1f-4c6e-b5e7-6ca98145e391 2026-01-22 02:18:48,023 - INFO - ================================================================================ 2026-01-22 02:18:48,024 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-22 02:18:48,287 - DEBUG - Nothing to compare xmpp stats {'10.0.0.241': {'10.20.0.242': '0'}} with 2026-01-22 02:18:48,287 - INFO - Initial checks done. Running the testcase now 2026-01-22 02:18:48,287 - INFO - 2026-01-22 02:18:48,287 - INFO - ================================================================================ 2026-01-22 02:18:48,287 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-22 02:18:48,287 - 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-01-22 02:18:48,579 - DEBUG - Nothing to compare xmpp stats {'10.0.0.241': {'10.20.0.242': '0'}} with 2026-01-22 02:18:48,579 - INFO - Initial checks done. Running the testcase now 2026-01-22 02:18:48,579 - INFO - 2026-01-22 02:18:48,950 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-25789869:ctest-vn4-60393023, 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-25789869:ctest-vn4-60393023, 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-25789869:ctest-vn4-60393023, 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-25789869:ctest-vn4-60393023, 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-01-22 02:18:49,471 - DEBUG - Response for create_network : {'network': {'id': '41404657-ce18-479b-9d83-bf4a0ee49889', 'name': 'ctest-vn4-60393023', 'tenant_id': '050801e6ef1f4c6eb5e76ca98145e391', 'project_id': '050801e6ef1f4c6eb5e76ca98145e391', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-25789869', 'ctest-vn4-60393023'], 'port_security_enabled': True, 'description': ''}} 2026-01-22 02:18:49,623 - DEBUG - Response for create_subnet : {'subnet': {'id': '876e94ed-0c54-40b4-a503-993de86dc254', 'name': '', 'tenant_id': '050801e6ef1f4c6eb5e76ca98145e391', 'network_id': '41404657-ce18-479b-9d83-bf4a0ee49889', 'ip_version': 4, 'cidr': '147.212.119.128/26', 'allocation_pools': [{'start': '147.212.119.130', 'end': '147.212.119.190'}], 'gateway_ip': '147.212.119.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '147.212.119.130', 'tags': [], 'project_id': '050801e6ef1f4c6eb5e76ca98145e391'}} 2026-01-22 02:18:49,841 - DEBUG - Response for create_subnet : {'subnet': {'id': '606604ea-e55d-4fd4-885a-02868a14449a', 'name': '', 'tenant_id': '050801e6ef1f4c6eb5e76ca98145e391', 'network_id': '41404657-ce18-479b-9d83-bf4a0ee49889', 'ip_version': 6, 'cidr': '2254:79e9:1772:a1a3:a98a:80b4::/96', 'allocation_pools': [{'start': '2254:79e9:1772:a1a3:a98a:80b4:0:2', 'end': '2254:79e9:1772:a1a3:a98a:80b4:ffff:fffe'}], 'gateway_ip': '2254:79e9:1772:a1a3:a98a:80b4:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2254:79e9:1772:a1a3:a98a:80b4:0:2', 'tags': [], 'project_id': '050801e6ef1f4c6eb5e76ca98145e391'}} 2026-01-22 02:18:49,860 - INFO - Created VN ctest-vn4-60393023 2026-01-22 02:18:49,914 - DEBUG - VN ctest-vn4-60393023 UUID is 41404657-ce18-479b-9d83-bf4a0ee49889 2026-01-22 02:18:50,117 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '41404657-ce18-479b-9d83-bf4a0ee49889', 'name': 'ctest-vn4-60393023', 'tenant_id': '050801e6ef1f4c6eb5e76ca98145e391', 'project_id': '050801e6ef1f4c6eb5e76ca98145e391', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['876e94ed-0c54-40b4-a503-993de86dc254', '606604ea-e55d-4fd4-885a-02868a14449a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-25789869', 'ctest-vn4-60393023'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-25789869', 'ctest-policy1-85647582']], 'subnet_ipam': [{'subnet_cidr': '147.212.119.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2254:79e9:1772:a1a3:a98a:80b4::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-01-22 02:18:50,273 - DEBUG - Requesting: http://10.0.0.241:8082/domains 2026-01-22 02:18:50,575 - DEBUG - Requesting: http://10.0.0.241:8082/domains 2026-01-22 02:18:50,610 - DEBUG - Requesting: http://10.0.0.241:8082/domain/95ae26a2-8d70-4bb3-901c-b9c837de0340 2026-01-22 02:18:50,622 - DEBUG - Requesting: http://10.0.0.241:8082/project/050801e6-ef1f-4c6e-b5e7-6ca98145e391 2026-01-22 02:18:50,692 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/41404657-ce18-479b-9d83-bf4a0ee49889 2026-01-22 02:18:50,703 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/41404657-ce18-479b-9d83-bf4a0ee49889 2026-01-22 02:18:50,712 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/b430cd3c-6479-412d-9698-9566139f1dc8 2026-01-22 02:18:50,720 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/b430cd3c-6479-412d-9698-9566139f1dc8 2026-01-22 02:18:50,726 - DEBUG - Requesting: http://10.0.0.241:8082/route-target/dc40e6da-c6aa-4084-bda0-334ba64adfc9 2026-01-22 02:18:50,732 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-22 02:18:50,732 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/41404657-ce18-479b-9d83-bf4a0ee49889 2026-01-22 02:18:50,741 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/b430cd3c-6479-412d-9698-9566139f1dc8 2026-01-22 02:18:50,754 - INFO - Verified VN network id 11 for VN 41404657-ce18-479b-9d83-bf4a0ee49889 2026-01-22 02:18:50,754 - INFO - Verifications in API Server for VN ctest-vn4-60393023 passed 2026-01-22 02:18:50,754 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/41404657-ce18-479b-9d83-bf4a0ee49889 2026-01-22 02:18:50,763 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/b430cd3c-6479-412d-9698-9566139f1dc8 2026-01-22 02:18:50,769 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/b430cd3c-6479-412d-9698-9566139f1dc8 2026-01-22 02:18:50,775 - DEBUG - Requesting: http://10.0.0.241:8082/route-target/dc40e6da-c6aa-4084-bda0-334ba64adfc9 2026-01-22 02:18:50,787 - DEBUG - Control-node 10.0.0.241 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-25789869:ctest-vn4-60393023', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-25789869', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4701835353908594587', 'uuid-lslong': '11350125810702129289'}, 'enable': 'true', 'created': '2026-01-22T02:18:49', 'last-modified': '2026-01-22T02:18:50', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.694398'} 2026-01-22 02:18:50,793 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-22 02:18:50,793 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-60393023 passed 2026-01-22 02:18:50,793 - DEBUG - ====Verifying policy data for ctest-vn4-60393023 in API_Server ====== 2026-01-22 02:18:50,793 - DEBUG - Requesting: http://10.0.0.241:8082/domains 2026-01-22 02:18:50,798 - DEBUG - Requesting: http://10.0.0.241:8082/domain/95ae26a2-8d70-4bb3-901c-b9c837de0340 2026-01-22 02:18:50,807 - DEBUG - Requesting: http://10.0.0.241:8082/project/050801e6-ef1f-4c6e-b5e7-6ca98145e391 2026-01-22 02:18:50,877 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/41404657-ce18-479b-9d83-bf4a0ee49889 2026-01-22 02:18:50,887 - DEBUG - ==>Verifying data for policy with id: a3bcbad8-b589-419a-9347-9fbadb72fdd8, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-25789869', 'ctest-policy1-85647582'] 2026-01-22 02:18:50,887 - INFO - VN ctest-vn4-60393023 Policy verification: verify_vn_policy_in_api_server, status: True 2026-01-22 02:18:50,887 - DEBUG - Verifying the vn in opserver 2026-01-22 02:18:50,887 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-25789869:ctest-vn4-60393023 virtual network link through opserver 10.0.0.241 2026-01-22 02:18:50,887 - DEBUG - Requesting: http://10.0.0.241:8081/analytics/uves/virtual-networks 2026-01-22 02:18:51,189 - DEBUG - Requesting: http://10.0.0.241:8081/analytics/uves/virtual-networks 2026-01-22 02:18:51,259 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-25789869:ctest-vn4-60393023', 'href': 'http://10.0.0.241:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-25789869:ctest-vn4-60393023?flat'} 2026-01-22 02:18:51,259 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-25789869:ctest-vn4-60393023 is found in opserver 2026-01-22 02:18:51,270 - DEBUG - Do not have enough data to verify VN in agent 2026-01-22 02:18:51,278 - DEBUG - VRF ids for VN ctest-vn4-60393023: {} 2026-01-22 02:18:51,278 - DEBUG - ====Verifying data for ctest-policy1-85647582 in API_Server ====== 2026-01-22 02:18:51,278 - DEBUG - Requesting: http://10.0.0.241:8082/domains 2026-01-22 02:18:51,284 - DEBUG - Requesting: http://10.0.0.241:8082/domain/95ae26a2-8d70-4bb3-901c-b9c837de0340 2026-01-22 02:18:51,294 - DEBUG - Requesting: http://10.0.0.241:8082/project/050801e6-ef1f-4c6e-b5e7-6ca98145e391 2026-01-22 02:18:51,367 - DEBUG - Requesting: http://10.0.0.241:8082/network-policy/a3bcbad8-b589-419a-9347-9fbadb72fdd8 2026-01-22 02:18:51,376 - INFO - Verified policy ctest-policy1-85647582 in API Server, Result: True 2026-01-22 02:18:51,376 - INFO - Done with setup and verification, moving onto test .. 2026-01-22 02:18:51,384 - INFO - Deleting VN ctest-vn4-60393023 2026-01-22 02:18:51,499 - DEBUG - Response for deleting network () 2026-01-22 02:18:51,499 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/b430cd3c-6479-412d-9698-9566139f1dc8 2026-01-22 02:18:51,505 - DEBUG - Response Code: 404 2026-01-22 02:18:51,505 - DEBUG - Requesting: http://10.0.0.241:8082/domains 2026-01-22 02:18:51,510 - DEBUG - Requesting: http://10.0.0.241:8082/domain/95ae26a2-8d70-4bb3-901c-b9c837de0340 2026-01-22 02:18:51,562 - DEBUG - Requesting: http://10.0.0.241:8082/project/050801e6-ef1f-4c6e-b5e7-6ca98145e391 2026-01-22 02:18:51,631 - INFO - Validated that VN ctest-vn4-60393023 is not found in API Server 2026-01-22 02:18:51,640 - DEBUG - VN ctest-vn4-60393023 is not present in Agent 10.0.0.241 2026-01-22 02:18:51,640 - INFO - Validated that VN ctest-vn4-60393023 is not in any agent 2026-01-22 02:18:51,654 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-60393023 info 2026-01-22 02:18:51,678 - INFO - Deleted policy ctest-policy1-85647582 2026-01-22 02:18:51,849 - DEBUG - policy ctest-policy1-85647582 is not found in API Server 2026-01-22 02:18:52,107 - DEBUG - No XMPP flaps were noticed during the test 2026-01-22 02:18:52,107 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-01-22 02:18:52,107 - INFO - -------------------------------------------------------------------------------- 2026-01-22 02:18:52,404 - DEBUG - No XMPP flaps were noticed during the test 2026-01-22 02:18:52,404 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-01-22 02:18:52,405 - INFO - -------------------------------------------------------------------------------- 2026-01-22 02:18:53,105 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-25789869, ID : 050801e6-ef1f-4c6e-b5e7-6ca98145e391