2026-01-13 01:41:07,522 - INFO - Domain Default found not creating 2026-01-13 01:41:07,709 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-30940728 not found, creating it 2026-01-13 01:41:08,175 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-30940728, ID : 216f8365-d5ef-4c17-954c-6b8eb05e72a9 2026-01-13 01:41:09,836 - INFO - ================================================================================ 2026-01-13 01:41:09,836 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-13 01:41:10,096 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with 2026-01-13 01:41:10,096 - INFO - Initial checks done. Running the testcase now 2026-01-13 01:41:10,096 - INFO - 2026-01-13 01:41:10,096 - INFO - ================================================================================ 2026-01-13 01:41:10,096 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-13 01:41:10,096 - 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-13 01:41:10,382 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with 2026-01-13 01:41:10,382 - INFO - Initial checks done. Running the testcase now 2026-01-13 01:41:10,383 - INFO - 2026-01-13 01:41:10,798 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-30940728:ctest-vn4-68186103, 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-30940728:ctest-vn4-68186103, 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-30940728:ctest-vn4-68186103, 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-30940728:ctest-vn4-68186103, 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-13 01:41:11,356 - DEBUG - Response for create_network : {'network': {'id': '71fb560e-55b2-48fd-a39b-749f546e4253', 'name': 'ctest-vn4-68186103', 'tenant_id': '216f8365d5ef4c17954c6b8eb05e72a9', 'project_id': '216f8365d5ef4c17954c6b8eb05e72a9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-30940728', 'ctest-vn4-68186103'], 'port_security_enabled': True, 'description': ''}} 2026-01-13 01:41:11,594 - DEBUG - Response for create_subnet : {'subnet': {'id': '885b86dc-8002-47f4-9c11-509381e1b3b6', 'name': '', 'tenant_id': '216f8365d5ef4c17954c6b8eb05e72a9', 'network_id': '71fb560e-55b2-48fd-a39b-749f546e4253', 'ip_version': 4, 'cidr': '74.103.246.192/26', 'allocation_pools': [{'start': '74.103.246.194', 'end': '74.103.246.254'}], 'gateway_ip': '74.103.246.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '74.103.246.194', 'tags': [], 'project_id': '216f8365d5ef4c17954c6b8eb05e72a9'}} 2026-01-13 01:41:11,786 - DEBUG - Response for create_subnet : {'subnet': {'id': '31c8bc8c-4e8d-4f64-b2f8-5df4dff12fa5', 'name': '', 'tenant_id': '216f8365d5ef4c17954c6b8eb05e72a9', 'network_id': '71fb560e-55b2-48fd-a39b-749f546e4253', 'ip_version': 6, 'cidr': '2d1d:8703:eaf5:6f52:ce6d:699c::/96', 'allocation_pools': [{'start': '2d1d:8703:eaf5:6f52:ce6d:699c:0:2', 'end': '2d1d:8703:eaf5:6f52:ce6d:699c:ffff:fffe'}], 'gateway_ip': '2d1d:8703:eaf5:6f52:ce6d:699c:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2d1d:8703:eaf5:6f52:ce6d:699c:0:2', 'tags': [], 'project_id': '216f8365d5ef4c17954c6b8eb05e72a9'}} 2026-01-13 01:41:11,808 - INFO - Created VN ctest-vn4-68186103 2026-01-13 01:41:11,865 - DEBUG - VN ctest-vn4-68186103 UUID is 71fb560e-55b2-48fd-a39b-749f546e4253 2026-01-13 01:41:12,081 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '71fb560e-55b2-48fd-a39b-749f546e4253', 'name': 'ctest-vn4-68186103', 'tenant_id': '216f8365d5ef4c17954c6b8eb05e72a9', 'project_id': '216f8365d5ef4c17954c6b8eb05e72a9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['885b86dc-8002-47f4-9c11-509381e1b3b6', '31c8bc8c-4e8d-4f64-b2f8-5df4dff12fa5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-30940728', 'ctest-vn4-68186103'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-30940728', 'ctest-policy1-02596111']], 'subnet_ipam': [{'subnet_cidr': '74.103.246.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2d1d:8703:eaf5:6f52:ce6d:699c::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-01-13 01:41:12,253 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-01-13 01:41:12,598 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-01-13 01:41:12,631 - DEBUG - Requesting: http://10.0.0.38:8082/domain/00f30a96-fe3f-43ad-8d72-d378c0e7c2a9 2026-01-13 01:41:12,643 - DEBUG - Requesting: http://10.0.0.38:8082/project/216f8365-d5ef-4c17-954c-6b8eb05e72a9 2026-01-13 01:41:12,722 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/71fb560e-55b2-48fd-a39b-749f546e4253 2026-01-13 01:41:12,734 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/71fb560e-55b2-48fd-a39b-749f546e4253 2026-01-13 01:41:12,746 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/6d1bf10c-8c2c-42b5-a8ea-8c3e8572302c 2026-01-13 01:41:12,753 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/6d1bf10c-8c2c-42b5-a8ea-8c3e8572302c 2026-01-13 01:41:12,760 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/01d36d51-931c-479f-b79e-c141c8b07538 2026-01-13 01:41:12,767 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-13 01:41:12,767 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/71fb560e-55b2-48fd-a39b-749f546e4253 2026-01-13 01:41:12,776 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/6d1bf10c-8c2c-42b5-a8ea-8c3e8572302c 2026-01-13 01:41:12,792 - INFO - Verified VN network id 11 for VN 71fb560e-55b2-48fd-a39b-749f546e4253 2026-01-13 01:41:12,792 - INFO - Verifications in API Server for VN ctest-vn4-68186103 passed 2026-01-13 01:41:12,792 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/71fb560e-55b2-48fd-a39b-749f546e4253 2026-01-13 01:41:12,804 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/6d1bf10c-8c2c-42b5-a8ea-8c3e8572302c 2026-01-13 01:41:12,810 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/6d1bf10c-8c2c-42b5-a8ea-8c3e8572302c 2026-01-13 01:41:12,818 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/01d36d51-931c-479f-b79e-c141c8b07538 2026-01-13 01:41:12,829 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-30940728:ctest-vn4-68186103', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-30940728', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8213252965007509757', 'uuid-lslong': '11789144677237539411'}, 'enable': 'true', 'created': '2026-01-13T01:41:11', 'last-modified': '2026-01-13T01:41:12', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.777469'} 2026-01-13 01:41:12,836 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-13 01:41:12,836 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-68186103 passed 2026-01-13 01:41:12,836 - DEBUG - ====Verifying policy data for ctest-vn4-68186103 in API_Server ====== 2026-01-13 01:41:12,836 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-01-13 01:41:12,842 - DEBUG - Requesting: http://10.0.0.38:8082/domain/00f30a96-fe3f-43ad-8d72-d378c0e7c2a9 2026-01-13 01:41:12,853 - DEBUG - Requesting: http://10.0.0.38:8082/project/216f8365-d5ef-4c17-954c-6b8eb05e72a9 2026-01-13 01:41:12,925 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/71fb560e-55b2-48fd-a39b-749f546e4253 2026-01-13 01:41:12,936 - DEBUG - ==>Verifying data for policy with id: 19456bd6-88b7-4a6d-a189-7be879b11547, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-30940728', 'ctest-policy1-02596111'] 2026-01-13 01:41:12,936 - INFO - VN ctest-vn4-68186103 Policy verification: verify_vn_policy_in_api_server, status: True 2026-01-13 01:41:12,936 - DEBUG - Verifying the vn in opserver 2026-01-13 01:41:12,936 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-30940728:ctest-vn4-68186103 virtual network link through opserver 10.0.0.38 2026-01-13 01:41:12,936 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-01-13 01:41:13,279 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-01-13 01:41:13,347 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-30940728:ctest-vn4-68186103', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-30940728:ctest-vn4-68186103?flat'} 2026-01-13 01:41:13,347 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-30940728:ctest-vn4-68186103 is found in opserver 2026-01-13 01:41:13,358 - DEBUG - Do not have enough data to verify VN in agent 2026-01-13 01:41:13,362 - DEBUG - VRF ids for VN ctest-vn4-68186103: {} 2026-01-13 01:41:13,363 - DEBUG - ====Verifying data for ctest-policy1-02596111 in API_Server ====== 2026-01-13 01:41:13,363 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-01-13 01:41:13,369 - DEBUG - Requesting: http://10.0.0.38:8082/domain/00f30a96-fe3f-43ad-8d72-d378c0e7c2a9 2026-01-13 01:41:13,382 - DEBUG - Requesting: http://10.0.0.38:8082/project/216f8365-d5ef-4c17-954c-6b8eb05e72a9 2026-01-13 01:41:13,457 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/19456bd6-88b7-4a6d-a189-7be879b11547 2026-01-13 01:41:13,469 - INFO - Verified policy ctest-policy1-02596111 in API Server, Result: True 2026-01-13 01:41:13,469 - INFO - Done with setup and verification, moving onto test .. 2026-01-13 01:41:13,476 - INFO - Deleting VN ctest-vn4-68186103 2026-01-13 01:41:13,597 - DEBUG - Response for deleting network () 2026-01-13 01:41:13,597 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/6d1bf10c-8c2c-42b5-a8ea-8c3e8572302c 2026-01-13 01:41:13,602 - DEBUG - Response Code: 404 2026-01-13 01:41:13,602 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-01-13 01:41:13,607 - DEBUG - Requesting: http://10.0.0.38:8082/domain/00f30a96-fe3f-43ad-8d72-d378c0e7c2a9 2026-01-13 01:41:13,662 - DEBUG - Requesting: http://10.0.0.38:8082/project/216f8365-d5ef-4c17-954c-6b8eb05e72a9 2026-01-13 01:41:13,734 - INFO - Validated that VN ctest-vn4-68186103 is not found in API Server 2026-01-13 01:41:13,744 - DEBUG - VN ctest-vn4-68186103 is not present in Agent 10.0.0.38 2026-01-13 01:41:13,744 - INFO - Validated that VN ctest-vn4-68186103 is not in any agent 2026-01-13 01:41:13,758 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-68186103 info 2026-01-13 01:41:13,782 - INFO - Deleted policy ctest-policy1-02596111 2026-01-13 01:41:13,948 - DEBUG - policy ctest-policy1-02596111 is not found in API Server 2026-01-13 01:41:14,206 - DEBUG - No XMPP flaps were noticed during the test