2025-10-14 18:13:38,523 - INFO - Domain Default found not creating 2025-10-14 18:13:38,655 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-74585862 not found, creating it 2025-10-14 18:13:39,098 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-74585862, ID : e0afa9c7-77af-4f3a-8104-07ad193c2088 2025-10-14 18:13:40,459 - INFO - ================================================================================ 2025-10-14 18:13:40,459 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-14 18:13:40,713 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.254': '0'}} with 2025-10-14 18:13:40,713 - INFO - Initial checks done. Running the testcase now 2025-10-14 18:13:40,713 - INFO - 2025-10-14 18:13:40,713 - INFO - ================================================================================ 2025-10-14 18:13:40,713 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-14 18:13:40,713 - 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-14 18:13:41,001 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.254': '0'}} with 2025-10-14 18:13:41,001 - INFO - Initial checks done. Running the testcase now 2025-10-14 18:13:41,002 - INFO - 2025-10-14 18:13:41,340 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-74585862:ctest-vn4-25254346, 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-74585862:ctest-vn4-25254346, 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-74585862:ctest-vn4-25254346, 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-74585862:ctest-vn4-25254346, 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-14 18:13:41,826 - DEBUG - Response for create_network : {'network': {'id': 'fb7120ea-4b80-49ff-9f45-74313500ecad', 'name': 'ctest-vn4-25254346', 'tenant_id': 'e0afa9c777af4f3a810407ad193c2088', 'project_id': 'e0afa9c777af4f3a810407ad193c2088', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-74585862', 'ctest-vn4-25254346'], 'port_security_enabled': True, 'description': ''}} 2025-10-14 18:13:42,031 - DEBUG - Response for create_subnet : {'subnet': {'id': '33db8afc-9f63-4d12-a398-23a0d82f3d2b', 'name': '', 'tenant_id': 'e0afa9c777af4f3a810407ad193c2088', 'network_id': 'fb7120ea-4b80-49ff-9f45-74313500ecad', 'ip_version': 4, 'cidr': '38.3.128.64/26', 'allocation_pools': [{'start': '38.3.128.66', 'end': '38.3.128.126'}], 'gateway_ip': '38.3.128.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '38.3.128.66', 'tags': [], 'project_id': 'e0afa9c777af4f3a810407ad193c2088'}} 2025-10-14 18:13:42,232 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b41d218d-7037-465e-a3fb-c9f6cfd53a5e', 'name': '', 'tenant_id': 'e0afa9c777af4f3a810407ad193c2088', 'network_id': 'fb7120ea-4b80-49ff-9f45-74313500ecad', 'ip_version': 6, 'cidr': '3d6c:33fd:1b94:87ad:afec:da40::/96', 'allocation_pools': [{'start': '3d6c:33fd:1b94:87ad:afec:da40:0:2', 'end': '3d6c:33fd:1b94:87ad:afec:da40:ffff:fffe'}], 'gateway_ip': '3d6c:33fd:1b94:87ad:afec:da40:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3d6c:33fd:1b94:87ad:afec:da40:0:2', 'tags': [], 'project_id': 'e0afa9c777af4f3a810407ad193c2088'}} 2025-10-14 18:13:42,249 - INFO - Created VN ctest-vn4-25254346 2025-10-14 18:13:42,304 - DEBUG - VN ctest-vn4-25254346 UUID is fb7120ea-4b80-49ff-9f45-74313500ecad 2025-10-14 18:13:42,486 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'fb7120ea-4b80-49ff-9f45-74313500ecad', 'name': 'ctest-vn4-25254346', 'tenant_id': 'e0afa9c777af4f3a810407ad193c2088', 'project_id': 'e0afa9c777af4f3a810407ad193c2088', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['33db8afc-9f63-4d12-a398-23a0d82f3d2b', 'b41d218d-7037-465e-a3fb-c9f6cfd53a5e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-74585862', 'ctest-vn4-25254346'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-74585862', 'ctest-policy1-18768967']], 'subnet_ipam': [{'subnet_cidr': '38.3.128.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3d6c:33fd:1b94:87ad:afec:da40::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-14 18:13:42,652 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-14 18:13:42,942 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-14 18:13:42,968 - DEBUG - Requesting: http://10.0.0.254:8082/domain/31fb57cf-c5a9-415c-b926-81959e070dfb 2025-10-14 18:13:42,980 - DEBUG - Requesting: http://10.0.0.254:8082/project/e0afa9c7-77af-4f3a-8104-07ad193c2088 2025-10-14 18:13:43,048 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/fb7120ea-4b80-49ff-9f45-74313500ecad 2025-10-14 18:13:43,058 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/fb7120ea-4b80-49ff-9f45-74313500ecad 2025-10-14 18:13:43,066 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/a573681d-d970-488e-9f96-d9486c0675bf 2025-10-14 18:13:43,072 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/a573681d-d970-488e-9f96-d9486c0675bf 2025-10-14 18:13:43,080 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/7c0c4d49-84e1-4c7e-91de-9e972feb5928 2025-10-14 18:13:43,086 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-14 18:13:43,086 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/fb7120ea-4b80-49ff-9f45-74313500ecad 2025-10-14 18:13:43,096 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/a573681d-d970-488e-9f96-d9486c0675bf 2025-10-14 18:13:43,111 - INFO - Verified VN network id 12 for VN fb7120ea-4b80-49ff-9f45-74313500ecad 2025-10-14 18:13:43,111 - INFO - Verifications in API Server for VN ctest-vn4-25254346 passed 2025-10-14 18:13:43,111 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/fb7120ea-4b80-49ff-9f45-74313500ecad 2025-10-14 18:13:43,119 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/a573681d-d970-488e-9f96-d9486c0675bf 2025-10-14 18:13:43,124 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/a573681d-d970-488e-9f96-d9486c0675bf 2025-10-14 18:13:43,129 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/7c0c4d49-84e1-4c7e-91de-9e972feb5928 2025-10-14 18:13:43,138 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-74585862:ctest-vn4-25254346', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-74585862', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18118298966549350911', 'uuid-lslong': '11476706980115049645'}, 'enable': 'true', 'created': '2025-10-14T18:13:41', 'last-modified': '2025-10-14T18:13:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.674782'} 2025-10-14 18:13:43,143 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-14 18:13:43,144 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-25254346 passed 2025-10-14 18:13:43,144 - DEBUG - ====Verifying policy data for ctest-vn4-25254346 in API_Server ====== 2025-10-14 18:13:43,144 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-14 18:13:43,148 - DEBUG - Requesting: http://10.0.0.254:8082/domain/31fb57cf-c5a9-415c-b926-81959e070dfb 2025-10-14 18:13:43,157 - DEBUG - Requesting: http://10.0.0.254:8082/project/e0afa9c7-77af-4f3a-8104-07ad193c2088 2025-10-14 18:13:43,221 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/fb7120ea-4b80-49ff-9f45-74313500ecad 2025-10-14 18:13:43,229 - DEBUG - ==>Verifying data for policy with id: a2b7525d-fda5-46c3-9512-278ecf67f7d2, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-74585862', 'ctest-policy1-18768967'] 2025-10-14 18:13:43,229 - INFO - VN ctest-vn4-25254346 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-14 18:13:43,229 - DEBUG - Verifying the vn in opserver 2025-10-14 18:13:43,229 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-74585862:ctest-vn4-25254346 virtual network link through opserver 10.0.0.254 2025-10-14 18:13:43,230 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-10-14 18:13:43,517 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-10-14 18:13:43,565 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-74585862:ctest-vn4-25254346', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-74585862:ctest-vn4-25254346?flat'} 2025-10-14 18:13:43,565 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-74585862:ctest-vn4-25254346 is found in opserver 2025-10-14 18:13:43,576 - DEBUG - Do not have enough data to verify VN in agent 2025-10-14 18:13:43,580 - DEBUG - VRF ids for VN ctest-vn4-25254346: {} 2025-10-14 18:13:43,580 - DEBUG - ====Verifying data for ctest-policy1-18768967 in API_Server ====== 2025-10-14 18:13:43,580 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-14 18:13:43,584 - DEBUG - Requesting: http://10.0.0.254:8082/domain/31fb57cf-c5a9-415c-b926-81959e070dfb 2025-10-14 18:13:43,593 - DEBUG - Requesting: http://10.0.0.254:8082/project/e0afa9c7-77af-4f3a-8104-07ad193c2088 2025-10-14 18:13:43,658 - DEBUG - Requesting: http://10.0.0.254:8082/network-policy/a2b7525d-fda5-46c3-9512-278ecf67f7d2 2025-10-14 18:13:43,666 - INFO - Verified policy ctest-policy1-18768967 in API Server, Result: True 2025-10-14 18:13:43,666 - INFO - Done with setup and verification, moving onto test .. 2025-10-14 18:13:43,672 - INFO - Deleting VN ctest-vn4-25254346 2025-10-14 18:13:43,773 - DEBUG - Response for deleting network () 2025-10-14 18:13:43,773 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/a573681d-d970-488e-9f96-d9486c0675bf 2025-10-14 18:13:43,778 - DEBUG - Response Code: 404 2025-10-14 18:13:43,778 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-14 18:13:43,782 - DEBUG - Requesting: http://10.0.0.254:8082/domain/31fb57cf-c5a9-415c-b926-81959e070dfb 2025-10-14 18:13:43,836 - DEBUG - Requesting: http://10.0.0.254:8082/project/e0afa9c7-77af-4f3a-8104-07ad193c2088 2025-10-14 18:13:43,901 - INFO - Validated that VN ctest-vn4-25254346 is not found in API Server 2025-10-14 18:13:43,910 - DEBUG - VN ctest-vn4-25254346 is not present in Agent 10.0.0.254 2025-10-14 18:13:43,910 - INFO - Validated that VN ctest-vn4-25254346 is not in any agent 2025-10-14 18:13:43,922 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-25254346 info 2025-10-14 18:13:43,945 - INFO - Deleted policy ctest-policy1-18768967 2025-10-14 18:13:44,103 - DEBUG - policy ctest-policy1-18768967 is not found in API Server 2025-10-14 18:13:44,356 - DEBUG - No XMPP flaps were noticed during the test 2025-10-14 18:13:44,356 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-10-14 18:13:44,356 - INFO - -------------------------------------------------------------------------------- 2025-10-14 18:13:44,640 - DEBUG - No XMPP flaps were noticed during the test 2025-10-14 18:13:44,640 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-10-14 18:13:44,640 - INFO - -------------------------------------------------------------------------------- 2025-10-14 18:13:45,274 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-74585862, ID : e0afa9c7-77af-4f3a-8104-07ad193c2088