2025-10-31 15:12:40,297 - INFO - Domain Default found not creating 2025-10-31 15:12:40,436 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-26439751 not found, creating it 2025-10-31 15:12:41,083 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-26439751, ID : 3823efea-31a7-4ed8-aa35-c1878ad0fff3 2025-10-31 15:12:42,645 - INFO - ================================================================================ 2025-10-31 15:12:42,645 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-31 15:12:43,948 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.25': '0', '10.20.0.14': '0'}, '10.0.0.22': {'10.20.0.25': '0', '10.20.0.193': '0'}} with 2025-10-31 15:12:43,948 - INFO - Initial checks done. Running the testcase now 2025-10-31 15:12:43,948 - INFO - 2025-10-31 15:12:43,948 - INFO - ================================================================================ 2025-10-31 15:12:43,948 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-31 15:12:43,948 - 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-10-31 15:12:45,264 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.25': '0', '10.20.0.14': '0'}, '10.0.0.22': {'10.20.0.25': '0', '10.20.0.193': '0'}} with 2025-10-31 15:12:45,264 - INFO - Initial checks done. Running the testcase now 2025-10-31 15:12:45,264 - INFO - 2025-10-31 15:12:45,618 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-26439751:ctest-vn4-22526372, 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-26439751:ctest-vn4-22526372, 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-26439751:ctest-vn4-22526372, 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-26439751:ctest-vn4-22526372, 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-10-31 15:12:46,206 - DEBUG - Response for create_network : {'network': {'id': 'd462b487-663e-4fb2-862f-5d69a97eb551', 'name': 'ctest-vn4-22526372', 'tenant_id': '3823efea31a74ed8aa35c1878ad0fff3', 'project_id': '3823efea31a74ed8aa35c1878ad0fff3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-26439751', 'ctest-vn4-22526372'], 'port_security_enabled': True, 'description': ''}} 2025-10-31 15:12:46,504 - DEBUG - Response for create_subnet : {'subnet': {'id': '69b3326c-73ed-45b3-8b82-6f4a5b340d0b', 'name': '', 'tenant_id': '3823efea31a74ed8aa35c1878ad0fff3', 'network_id': 'd462b487-663e-4fb2-862f-5d69a97eb551', 'ip_version': 4, 'cidr': '208.25.252.0/26', 'allocation_pools': [{'start': '208.25.252.2', 'end': '208.25.252.62'}], 'gateway_ip': '208.25.252.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '208.25.252.2', 'tags': [], 'project_id': '3823efea31a74ed8aa35c1878ad0fff3'}} 2025-10-31 15:12:46,735 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f6b60ee3-dcb5-4ff1-ac2c-7a3722883e65', 'name': '', 'tenant_id': '3823efea31a74ed8aa35c1878ad0fff3', 'network_id': 'd462b487-663e-4fb2-862f-5d69a97eb551', 'ip_version': 6, 'cidr': '2a79:6e12:e124:8a96:aa16:fff5::/96', 'allocation_pools': [{'start': '2a79:6e12:e124:8a96:aa16:fff5:0:2', 'end': '2a79:6e12:e124:8a96:aa16:fff5:ffff:fffe'}], 'gateway_ip': '2a79:6e12:e124:8a96:aa16:fff5:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2a79:6e12:e124:8a96:aa16:fff5:0:2', 'tags': [], 'project_id': '3823efea31a74ed8aa35c1878ad0fff3'}} 2025-10-31 15:12:46,762 - INFO - Created VN ctest-vn4-22526372 2025-10-31 15:12:46,774 - DEBUG - VN ctest-vn4-22526372 UUID is d462b487-663e-4fb2-862f-5d69a97eb551 2025-10-31 15:12:47,077 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd462b487-663e-4fb2-862f-5d69a97eb551', 'name': 'ctest-vn4-22526372', 'tenant_id': '3823efea31a74ed8aa35c1878ad0fff3', 'project_id': '3823efea31a74ed8aa35c1878ad0fff3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['69b3326c-73ed-45b3-8b82-6f4a5b340d0b', 'f6b60ee3-dcb5-4ff1-ac2c-7a3722883e65'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-26439751', 'ctest-vn4-22526372'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-26439751', 'ctest-policy1-64892717']], 'subnet_ipam': [{'subnet_cidr': '208.25.252.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2a79:6e12:e124:8a96:aa16:fff5::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-31 15:12:47,197 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-10-31 15:12:47,498 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-10-31 15:12:47,524 - DEBUG - Requesting: http://10.0.0.38:8082/domain/84461aec-f8f2-4c85-873b-ef5843450b69 2025-10-31 15:12:47,540 - DEBUG - Requesting: http://10.0.0.38:8082/project/3823efea-31a7-4ed8-aa35-c1878ad0fff3 2025-10-31 15:12:47,635 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d462b487-663e-4fb2-862f-5d69a97eb551 2025-10-31 15:12:47,650 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d462b487-663e-4fb2-862f-5d69a97eb551 2025-10-31 15:12:47,661 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d7328c6f-cd56-44ae-9507-2c71928cf4f2 2025-10-31 15:12:47,670 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d7328c6f-cd56-44ae-9507-2c71928cf4f2 2025-10-31 15:12:47,677 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/9c9837be-d10c-4f5f-b75a-078ef7508da1 2025-10-31 15:12:47,685 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-31 15:12:47,685 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d462b487-663e-4fb2-862f-5d69a97eb551 2025-10-31 15:12:47,695 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d7328c6f-cd56-44ae-9507-2c71928cf4f2 2025-10-31 15:12:47,713 - INFO - Verified VN network id 15 for VN d462b487-663e-4fb2-862f-5d69a97eb551 2025-10-31 15:12:47,713 - INFO - Verifications in API Server for VN ctest-vn4-22526372 passed 2025-10-31 15:12:47,713 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d462b487-663e-4fb2-862f-5d69a97eb551 2025-10-31 15:12:47,723 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d7328c6f-cd56-44ae-9507-2c71928cf4f2 2025-10-31 15:12:47,732 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d7328c6f-cd56-44ae-9507-2c71928cf4f2 2025-10-31 15:12:47,739 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/9c9837be-d10c-4f5f-b75a-078ef7508da1 2025-10-31 15:12:47,751 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-26439751:ctest-vn4-22526372', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-26439751', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15303992977387311026', 'uuid-lslong': '9669049633384346961'}, 'enable': 'true', 'created': '2025-10-31T15:12:46', 'last-modified': '2025-10-31T15:12:47', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.712024'} 2025-10-31 15:12:47,756 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-31 15:12:47,762 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-26439751:ctest-vn4-22526372', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-26439751', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15303992977387311026', 'uuid-lslong': '9669049633384346961'}, 'enable': 'true', 'created': '2025-10-31T15:12:46', 'last-modified': '2025-10-31T15:12:47', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.723503'} 2025-10-31 15:12:47,768 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-31 15:12:47,775 - DEBUG - Control-node 10.0.0.65 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-26439751:ctest-vn4-22526372', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-26439751', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15303992977387311026', 'uuid-lslong': '9669049633384346961'}, 'enable': 'true', 'created': '2025-10-31T15:12:46', 'last-modified': '2025-10-31T15:12:47', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.739287'} 2025-10-31 15:12:47,781 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-31 15:12:47,781 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-22526372 passed 2025-10-31 15:12:47,782 - DEBUG - ====Verifying policy data for ctest-vn4-22526372 in API_Server ====== 2025-10-31 15:12:47,782 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-10-31 15:12:47,788 - DEBUG - Requesting: http://10.0.0.38:8082/domain/84461aec-f8f2-4c85-873b-ef5843450b69 2025-10-31 15:12:47,798 - DEBUG - Requesting: http://10.0.0.38:8082/project/3823efea-31a7-4ed8-aa35-c1878ad0fff3 2025-10-31 15:12:47,895 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d462b487-663e-4fb2-862f-5d69a97eb551 2025-10-31 15:12:47,905 - DEBUG - ==>Verifying data for policy with id: 37d669a6-388d-443c-86c4-2f7fb2ad2e5c, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-26439751', 'ctest-policy1-64892717'] 2025-10-31 15:12:47,905 - INFO - VN ctest-vn4-22526372 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-31 15:12:47,905 - DEBUG - Verifying the vn in opserver 2025-10-31 15:12:47,905 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-26439751:ctest-vn4-22526372 virtual network link through opserver 10.0.0.38 2025-10-31 15:12:47,905 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-10-31 15:12:48,200 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-10-31 15:12:48,260 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-26439751:ctest-vn4-22526372', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-26439751:ctest-vn4-22526372?flat'} 2025-10-31 15:12:48,260 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-26439751:ctest-vn4-22526372 virtual network link through opserver 10.0.0.249 2025-10-31 15:12:48,260 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2025-10-31 15:12:48,564 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2025-10-31 15:12:48,620 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-26439751:ctest-vn4-22526372', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-26439751:ctest-vn4-22526372?flat'} 2025-10-31 15:12:48,620 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-26439751:ctest-vn4-22526372 virtual network link through opserver 10.0.0.65 2025-10-31 15:12:48,620 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks 2025-10-31 15:12:48,923 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks 2025-10-31 15:12:48,980 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-26439751:ctest-vn4-22526372', 'href': 'http://10.0.0.65:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-26439751:ctest-vn4-22526372?flat'} 2025-10-31 15:12:48,980 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-26439751:ctest-vn4-22526372 is found in opserver 2025-10-31 15:12:49,006 - DEBUG - Do not have enough data to verify VN in agent 2025-10-31 15:12:49,015 - DEBUG - VRF ids for VN ctest-vn4-22526372: {} 2025-10-31 15:12:49,016 - DEBUG - ====Verifying data for ctest-policy1-64892717 in API_Server ====== 2025-10-31 15:12:49,016 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-10-31 15:12:49,022 - DEBUG - Requesting: http://10.0.0.38:8082/domain/84461aec-f8f2-4c85-873b-ef5843450b69 2025-10-31 15:12:49,035 - DEBUG - Requesting: http://10.0.0.38:8082/project/3823efea-31a7-4ed8-aa35-c1878ad0fff3 2025-10-31 15:12:49,133 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/37d669a6-388d-443c-86c4-2f7fb2ad2e5c 2025-10-31 15:12:49,148 - INFO - Verified policy ctest-policy1-64892717 in API Server, Result: True 2025-10-31 15:12:49,148 - INFO - Done with setup and verification, moving onto test .. 2025-10-31 15:12:49,160 - INFO - Deleting VN ctest-vn4-22526372 2025-10-31 15:12:49,376 - DEBUG - Response for deleting network () 2025-10-31 15:12:49,377 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d7328c6f-cd56-44ae-9507-2c71928cf4f2 2025-10-31 15:12:49,386 - DEBUG - Response Code: 404 2025-10-31 15:12:49,387 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-10-31 15:12:49,394 - DEBUG - Requesting: http://10.0.0.38:8082/domain/84461aec-f8f2-4c85-873b-ef5843450b69 2025-10-31 15:12:49,449 - DEBUG - Requesting: http://10.0.0.38:8082/project/3823efea-31a7-4ed8-aa35-c1878ad0fff3 2025-10-31 15:12:49,552 - INFO - Validated that VN ctest-vn4-22526372 is not found in API Server 2025-10-31 15:12:49,562 - DEBUG - VN ctest-vn4-22526372 is not present in Agent 10.0.0.19 2025-10-31 15:12:49,573 - DEBUG - VN ctest-vn4-22526372 is not present in Agent 10.0.0.22 2025-10-31 15:12:49,573 - INFO - Validated that VN ctest-vn4-22526372 is not in any agent 2025-10-31 15:12:49,607 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-22526372 info 2025-10-31 15:12:49,657 - INFO - Deleted policy ctest-policy1-64892717 2025-10-31 15:12:49,859 - DEBUG - policy ctest-policy1-64892717 is not found in API Server 2025-10-31 15:12:51,165 - DEBUG - No XMPP flaps were noticed during the test 2025-10-31 15:12:51,165 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:08] 2025-10-31 15:12:51,165 - INFO - -------------------------------------------------------------------------------- 2025-10-31 15:12:52,448 - DEBUG - No XMPP flaps were noticed during the test 2025-10-31 15:12:52,448 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:10] 2025-10-31 15:12:52,448 - INFO - -------------------------------------------------------------------------------- 2025-10-31 15:12:53,158 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-26439751, ID : 3823efea-31a7-4ed8-aa35-c1878ad0fff3