2025-10-16 10:09:46,789 - INFO - Domain Default found not creating 2025-10-16 10:09:46,978 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-42092670 not found, creating it 2025-10-16 10:09:47,478 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-42092670, ID : 7c7a2ed5-b19a-4369-b692-e08052d90bf5 2025-10-16 10:09:49,101 - INFO - ================================================================================ 2025-10-16 10:09:49,101 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-16 10:09:49,357 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.14': '0'}} with 2025-10-16 10:09:49,357 - INFO - Initial checks done. Running the testcase now 2025-10-16 10:09:49,357 - INFO - 2025-10-16 10:09:49,358 - INFO - ================================================================================ 2025-10-16 10:09:49,358 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-16 10:09:49,358 - 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-16 10:09:49,645 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.14': '0'}} with 2025-10-16 10:09:49,645 - INFO - Initial checks done. Running the testcase now 2025-10-16 10:09:49,645 - INFO - 2025-10-16 10:09:50,045 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-42092670:ctest-vn4-53841747, 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-42092670:ctest-vn4-53841747, 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-42092670:ctest-vn4-53841747, 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-42092670:ctest-vn4-53841747, 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-16 10:09:50,609 - DEBUG - Response for create_network : {'network': {'id': '71922252-42b0-45dc-989d-ce6ac99b419e', 'name': 'ctest-vn4-53841747', 'tenant_id': '7c7a2ed5b19a4369b692e08052d90bf5', 'project_id': '7c7a2ed5b19a4369b692e08052d90bf5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-42092670', 'ctest-vn4-53841747'], 'port_security_enabled': True, 'description': ''}} 2025-10-16 10:09:50,757 - DEBUG - Response for create_subnet : {'subnet': {'id': '8623989b-632f-4193-9a54-3dd1c9d6ee30', 'name': '', 'tenant_id': '7c7a2ed5b19a4369b692e08052d90bf5', 'network_id': '71922252-42b0-45dc-989d-ce6ac99b419e', 'ip_version': 4, 'cidr': '97.15.234.128/26', 'allocation_pools': [{'start': '97.15.234.130', 'end': '97.15.234.190'}], 'gateway_ip': '97.15.234.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '97.15.234.130', 'tags': [], 'project_id': '7c7a2ed5b19a4369b692e08052d90bf5'}} 2025-10-16 10:09:50,910 - DEBUG - Response for create_subnet : {'subnet': {'id': '01df337f-341a-41b0-9424-209f9920f454', 'name': '', 'tenant_id': '7c7a2ed5b19a4369b692e08052d90bf5', 'network_id': '71922252-42b0-45dc-989d-ce6ac99b419e', 'ip_version': 6, 'cidr': '36ff:baf9:af72:697c:7171:efb8::/96', 'allocation_pools': [{'start': '36ff:baf9:af72:697c:7171:efb8:0:2', 'end': '36ff:baf9:af72:697c:7171:efb8:ffff:fffe'}], 'gateway_ip': '36ff:baf9:af72:697c:7171:efb8:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '36ff:baf9:af72:697c:7171:efb8:0:2', 'tags': [], 'project_id': '7c7a2ed5b19a4369b692e08052d90bf5'}} 2025-10-16 10:09:50,937 - INFO - Created VN ctest-vn4-53841747 2025-10-16 10:09:50,992 - DEBUG - VN ctest-vn4-53841747 UUID is 71922252-42b0-45dc-989d-ce6ac99b419e 2025-10-16 10:09:51,210 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '71922252-42b0-45dc-989d-ce6ac99b419e', 'name': 'ctest-vn4-53841747', 'tenant_id': '7c7a2ed5b19a4369b692e08052d90bf5', 'project_id': '7c7a2ed5b19a4369b692e08052d90bf5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8623989b-632f-4193-9a54-3dd1c9d6ee30', '01df337f-341a-41b0-9424-209f9920f454'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-42092670', 'ctest-vn4-53841747'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-42092670', 'ctest-policy1-31154013']], 'subnet_ipam': [{'subnet_cidr': '97.15.234.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '36ff:baf9:af72:697c:7171:efb8::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-16 10:09:51,372 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-10-16 10:09:51,709 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-10-16 10:09:51,740 - DEBUG - Requesting: http://10.0.0.38:8082/domain/60d8fb0c-894c-452c-bfe3-cf9364634df3 2025-10-16 10:09:51,752 - DEBUG - Requesting: http://10.0.0.38:8082/project/7c7a2ed5-b19a-4369-b692-e08052d90bf5 2025-10-16 10:09:51,826 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/71922252-42b0-45dc-989d-ce6ac99b419e 2025-10-16 10:09:51,838 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/71922252-42b0-45dc-989d-ce6ac99b419e 2025-10-16 10:09:51,850 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/8857b787-8b49-47c4-b8fb-eea776b94fcb 2025-10-16 10:09:51,862 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/8857b787-8b49-47c4-b8fb-eea776b94fcb 2025-10-16 10:09:51,872 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/109282ed-1ddc-43e5-982b-d271fbd6d9fa 2025-10-16 10:09:51,878 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-16 10:09:51,878 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/71922252-42b0-45dc-989d-ce6ac99b419e 2025-10-16 10:09:51,887 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/8857b787-8b49-47c4-b8fb-eea776b94fcb 2025-10-16 10:09:51,900 - INFO - Verified VN network id 11 for VN 71922252-42b0-45dc-989d-ce6ac99b419e 2025-10-16 10:09:51,900 - INFO - Verifications in API Server for VN ctest-vn4-53841747 passed 2025-10-16 10:09:51,900 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/71922252-42b0-45dc-989d-ce6ac99b419e 2025-10-16 10:09:51,909 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/8857b787-8b49-47c4-b8fb-eea776b94fcb 2025-10-16 10:09:51,916 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/8857b787-8b49-47c4-b8fb-eea776b94fcb 2025-10-16 10:09:51,923 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/109282ed-1ddc-43e5-982b-d271fbd6d9fa 2025-10-16 10:09:51,934 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-42092670:ctest-vn4-53841747', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-42092670', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8183641209587123676', 'uuid-lslong': '10997172823152869790'}, 'enable': 'true', 'created': '2025-10-16T10:09:50', 'last-modified': '2025-10-16T10:09:51', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.752929'} 2025-10-16 10:09:51,939 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-16 10:09:51,940 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-53841747 passed 2025-10-16 10:09:51,940 - DEBUG - ====Verifying policy data for ctest-vn4-53841747 in API_Server ====== 2025-10-16 10:09:51,940 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-10-16 10:09:51,945 - DEBUG - Requesting: http://10.0.0.38:8082/domain/60d8fb0c-894c-452c-bfe3-cf9364634df3 2025-10-16 10:09:51,955 - DEBUG - Requesting: http://10.0.0.38:8082/project/7c7a2ed5-b19a-4369-b692-e08052d90bf5 2025-10-16 10:09:52,031 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/71922252-42b0-45dc-989d-ce6ac99b419e 2025-10-16 10:09:52,041 - DEBUG - ==>Verifying data for policy with id: b750f059-c1c6-4663-9f43-a671beb2bed7, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-42092670', 'ctest-policy1-31154013'] 2025-10-16 10:09:52,041 - INFO - VN ctest-vn4-53841747 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-16 10:09:52,041 - DEBUG - Verifying the vn in opserver 2025-10-16 10:09:52,041 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-42092670:ctest-vn4-53841747 virtual network link through opserver 10.0.0.38 2025-10-16 10:09:52,042 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-10-16 10:09:52,378 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-10-16 10:09:52,438 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-42092670:ctest-vn4-53841747', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-42092670:ctest-vn4-53841747?flat'} 2025-10-16 10:09:52,438 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-42092670:ctest-vn4-53841747 is found in opserver 2025-10-16 10:09:52,448 - DEBUG - Do not have enough data to verify VN in agent 2025-10-16 10:09:52,452 - DEBUG - VRF ids for VN ctest-vn4-53841747: {} 2025-10-16 10:09:52,452 - DEBUG - ====Verifying data for ctest-policy1-31154013 in API_Server ====== 2025-10-16 10:09:52,453 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-10-16 10:09:52,459 - DEBUG - Requesting: http://10.0.0.38:8082/domain/60d8fb0c-894c-452c-bfe3-cf9364634df3 2025-10-16 10:09:52,472 - DEBUG - Requesting: http://10.0.0.38:8082/project/7c7a2ed5-b19a-4369-b692-e08052d90bf5 2025-10-16 10:09:52,543 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/b750f059-c1c6-4663-9f43-a671beb2bed7 2025-10-16 10:09:52,553 - INFO - Verified policy ctest-policy1-31154013 in API Server, Result: True 2025-10-16 10:09:52,553 - INFO - Done with setup and verification, moving onto test .. 2025-10-16 10:09:52,561 - INFO - Deleting VN ctest-vn4-53841747 2025-10-16 10:09:52,764 - DEBUG - Response for deleting network () 2025-10-16 10:09:52,764 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/8857b787-8b49-47c4-b8fb-eea776b94fcb 2025-10-16 10:09:52,770 - DEBUG - Response Code: 404 2025-10-16 10:09:52,770 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-10-16 10:09:52,775 - DEBUG - Requesting: http://10.0.0.38:8082/domain/60d8fb0c-894c-452c-bfe3-cf9364634df3 2025-10-16 10:09:52,829 - DEBUG - Requesting: http://10.0.0.38:8082/project/7c7a2ed5-b19a-4369-b692-e08052d90bf5 2025-10-16 10:09:52,908 - INFO - Validated that VN ctest-vn4-53841747 is not found in API Server 2025-10-16 10:09:52,921 - DEBUG - VN ctest-vn4-53841747 is not present in Agent 10.0.0.38 2025-10-16 10:09:52,921 - INFO - Validated that VN ctest-vn4-53841747 is not in any agent 2025-10-16 10:09:52,936 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-53841747 info 2025-10-16 10:09:52,971 - INFO - Deleted policy ctest-policy1-31154013 2025-10-16 10:09:53,160 - DEBUG - policy ctest-policy1-31154013 is not found in API Server 2025-10-16 10:09:53,431 - DEBUG - No XMPP flaps were noticed during the test 2025-10-16 10:09:53,431 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-10-16 10:09:53,431 - INFO - -------------------------------------------------------------------------------- 2025-10-16 10:09:53,721 - DEBUG - No XMPP flaps were noticed during the test 2025-10-16 10:09:53,721 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-10-16 10:09:53,721 - INFO - -------------------------------------------------------------------------------- 2025-10-16 10:09:54,445 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-42092670, ID : 7c7a2ed5-b19a-4369-b692-e08052d90bf5