2026-02-26 17:04:19,815 - INFO - Domain Default found not creating 2026-02-26 17:04:19,999 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-73687729 not found, creating it 2026-02-26 17:04:20,466 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-73687729, ID : 079a1eac-bbb7-4c39-b595-a784f6a3b03c 2026-02-26 17:04:21,926 - INFO - ================================================================================ 2026-02-26 17:04:21,926 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-26 17:04:22,180 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-02-26 17:04:22,180 - INFO - Initial checks done. Running the testcase now 2026-02-26 17:04:22,180 - INFO - 2026-02-26 17:04:22,180 - INFO - ================================================================================ 2026-02-26 17:04:22,180 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-26 17:04:22,180 - 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-26 17:04:22,472 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-02-26 17:04:22,472 - INFO - Initial checks done. Running the testcase now 2026-02-26 17:04:22,472 - INFO - 2026-02-26 17:04:22,851 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-73687729:ctest-vn4-14951558, 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-73687729:ctest-vn4-14951558, 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-73687729:ctest-vn4-14951558, 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-73687729:ctest-vn4-14951558, 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-26 17:04:23,368 - DEBUG - Response for create_network : {'network': {'id': 'cbbefbf7-4563-47f4-9af0-f98015e9e580', 'name': 'ctest-vn4-14951558', 'tenant_id': '079a1eacbbb74c39b595a784f6a3b03c', 'project_id': '079a1eacbbb74c39b595a784f6a3b03c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-73687729', 'ctest-vn4-14951558'], 'port_security_enabled': True, 'description': ''}} 2026-02-26 17:04:23,577 - DEBUG - Response for create_subnet : {'subnet': {'id': '1563d06c-6280-431c-83e6-07a476394e7c', 'name': '', 'tenant_id': '079a1eacbbb74c39b595a784f6a3b03c', 'network_id': 'cbbefbf7-4563-47f4-9af0-f98015e9e580', 'ip_version': 4, 'cidr': '165.244.92.0/26', 'allocation_pools': [{'start': '165.244.92.2', 'end': '165.244.92.62'}], 'gateway_ip': '165.244.92.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '165.244.92.2', 'tags': [], 'project_id': '079a1eacbbb74c39b595a784f6a3b03c'}} 2026-02-26 17:04:23,747 - DEBUG - Response for create_subnet : {'subnet': {'id': '1f52a460-e8d0-4ed1-836f-7a4c1aa453fd', 'name': '', 'tenant_id': '079a1eacbbb74c39b595a784f6a3b03c', 'network_id': 'cbbefbf7-4563-47f4-9af0-f98015e9e580', 'ip_version': 6, 'cidr': '3bdf:44d0:71ad:1b8d:d10:7cb5::/96', 'allocation_pools': [{'start': '3bdf:44d0:71ad:1b8d:d10:7cb5:0:2', 'end': '3bdf:44d0:71ad:1b8d:d10:7cb5:ffff:fffe'}], 'gateway_ip': '3bdf:44d0:71ad:1b8d:d10:7cb5:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3bdf:44d0:71ad:1b8d:d10:7cb5:0:2', 'tags': [], 'project_id': '079a1eacbbb74c39b595a784f6a3b03c'}} 2026-02-26 17:04:23,770 - INFO - Created VN ctest-vn4-14951558 2026-02-26 17:04:23,822 - DEBUG - VN ctest-vn4-14951558 UUID is cbbefbf7-4563-47f4-9af0-f98015e9e580 2026-02-26 17:04:24,037 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'cbbefbf7-4563-47f4-9af0-f98015e9e580', 'name': 'ctest-vn4-14951558', 'tenant_id': '079a1eacbbb74c39b595a784f6a3b03c', 'project_id': '079a1eacbbb74c39b595a784f6a3b03c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1563d06c-6280-431c-83e6-07a476394e7c', '1f52a460-e8d0-4ed1-836f-7a4c1aa453fd'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-73687729', 'ctest-vn4-14951558'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-73687729', 'ctest-policy1-39956764']], 'subnet_ipam': [{'subnet_cidr': '165.244.92.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3bdf:44d0:71ad:1b8d:d10:7cb5::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-26 17:04:24,198 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-02-26 17:04:24,493 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-02-26 17:04:24,524 - DEBUG - Requesting: http://10.0.0.38:8082/domain/823ea81f-9d25-4526-b14f-ed1806dbdc68 2026-02-26 17:04:24,535 - DEBUG - Requesting: http://10.0.0.38:8082/project/079a1eac-bbb7-4c39-b595-a784f6a3b03c 2026-02-26 17:04:24,605 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/cbbefbf7-4563-47f4-9af0-f98015e9e580 2026-02-26 17:04:24,616 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/cbbefbf7-4563-47f4-9af0-f98015e9e580 2026-02-26 17:04:24,626 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/470b97fa-290f-4592-a8db-311273757c57 2026-02-26 17:04:24,633 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/470b97fa-290f-4592-a8db-311273757c57 2026-02-26 17:04:24,640 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/b3d2f6d7-5771-4c03-83c5-67d5d308f2ad 2026-02-26 17:04:24,646 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-26 17:04:24,646 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/cbbefbf7-4563-47f4-9af0-f98015e9e580 2026-02-26 17:04:24,655 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/470b97fa-290f-4592-a8db-311273757c57 2026-02-26 17:04:24,669 - INFO - Verified VN network id 11 for VN cbbefbf7-4563-47f4-9af0-f98015e9e580 2026-02-26 17:04:24,669 - INFO - Verifications in API Server for VN ctest-vn4-14951558 passed 2026-02-26 17:04:24,669 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/cbbefbf7-4563-47f4-9af0-f98015e9e580 2026-02-26 17:04:24,678 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/470b97fa-290f-4592-a8db-311273757c57 2026-02-26 17:04:24,685 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/470b97fa-290f-4592-a8db-311273757c57 2026-02-26 17:04:24,692 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/b3d2f6d7-5771-4c03-83c5-67d5d308f2ad 2026-02-26 17:04:24,703 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-73687729:ctest-vn4-14951558', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-73687729', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14681448874714023924', 'uuid-lslong': '11164697804770239872'}, 'enable': 'true', 'created': '2026-02-26T17:04:23', 'last-modified': '2026-02-26T17:04:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.693104'} 2026-02-26 17:04:24,709 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-26 17:04:24,709 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-14951558 passed 2026-02-26 17:04:24,710 - DEBUG - ====Verifying policy data for ctest-vn4-14951558 in API_Server ====== 2026-02-26 17:04:24,710 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-02-26 17:04:24,714 - DEBUG - Requesting: http://10.0.0.38:8082/domain/823ea81f-9d25-4526-b14f-ed1806dbdc68 2026-02-26 17:04:24,724 - DEBUG - Requesting: http://10.0.0.38:8082/project/079a1eac-bbb7-4c39-b595-a784f6a3b03c 2026-02-26 17:04:24,797 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/cbbefbf7-4563-47f4-9af0-f98015e9e580 2026-02-26 17:04:24,807 - DEBUG - ==>Verifying data for policy with id: b70a9750-0755-4da3-aa3f-79de65c81c0d, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-73687729', 'ctest-policy1-39956764'] 2026-02-26 17:04:24,807 - INFO - VN ctest-vn4-14951558 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-26 17:04:24,807 - DEBUG - Verifying the vn in opserver 2026-02-26 17:04:24,807 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-73687729:ctest-vn4-14951558 virtual network link through opserver 10.0.0.38 2026-02-26 17:04:24,807 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-02-26 17:04:25,100 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-02-26 17:04:25,166 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-73687729:ctest-vn4-14951558', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-73687729:ctest-vn4-14951558?flat'} 2026-02-26 17:04:25,166 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-73687729:ctest-vn4-14951558 is found in opserver 2026-02-26 17:04:25,176 - DEBUG - Do not have enough data to verify VN in agent 2026-02-26 17:04:25,180 - DEBUG - VRF ids for VN ctest-vn4-14951558: {} 2026-02-26 17:04:25,181 - DEBUG - ====Verifying data for ctest-policy1-39956764 in API_Server ====== 2026-02-26 17:04:25,181 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-02-26 17:04:25,186 - DEBUG - Requesting: http://10.0.0.38:8082/domain/823ea81f-9d25-4526-b14f-ed1806dbdc68 2026-02-26 17:04:25,196 - DEBUG - Requesting: http://10.0.0.38:8082/project/079a1eac-bbb7-4c39-b595-a784f6a3b03c 2026-02-26 17:04:25,270 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/b70a9750-0755-4da3-aa3f-79de65c81c0d 2026-02-26 17:04:25,280 - INFO - Verified policy ctest-policy1-39956764 in API Server, Result: True 2026-02-26 17:04:25,280 - INFO - Done with setup and verification, moving onto test .. 2026-02-26 17:04:25,288 - INFO - Deleting VN ctest-vn4-14951558 2026-02-26 17:04:25,396 - DEBUG - Response for deleting network () 2026-02-26 17:04:25,396 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/470b97fa-290f-4592-a8db-311273757c57 2026-02-26 17:04:25,401 - DEBUG - Response Code: 404 2026-02-26 17:04:25,401 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-02-26 17:04:25,405 - DEBUG - Requesting: http://10.0.0.38:8082/domain/823ea81f-9d25-4526-b14f-ed1806dbdc68 2026-02-26 17:04:25,460 - DEBUG - Requesting: http://10.0.0.38:8082/project/079a1eac-bbb7-4c39-b595-a784f6a3b03c 2026-02-26 17:04:25,533 - INFO - Validated that VN ctest-vn4-14951558 is not found in API Server 2026-02-26 17:04:25,542 - DEBUG - VN ctest-vn4-14951558 is not present in Agent 10.0.0.38 2026-02-26 17:04:25,542 - INFO - Validated that VN ctest-vn4-14951558 is not in any agent 2026-02-26 17:04:25,556 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-14951558 info 2026-02-26 17:04:25,578 - INFO - Deleted policy ctest-policy1-39956764 2026-02-26 17:04:25,738 - DEBUG - policy ctest-policy1-39956764 is not found in API Server 2026-02-26 17:04:25,993 - DEBUG - No XMPP flaps were noticed during the test 2026-02-26 17:04:25,994 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:03] 2026-02-26 17:04:25,994 - INFO - -------------------------------------------------------------------------------- 2026-02-26 17:04:26,279 - DEBUG - No XMPP flaps were noticed during the test 2026-02-26 17:04:26,279 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2026-02-26 17:04:26,279 - INFO - -------------------------------------------------------------------------------- 2026-02-26 17:04:26,946 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-73687729, ID : 079a1eac-bbb7-4c39-b595-a784f6a3b03c