2025-10-22 20:26:05,248 - INFO - Domain Default found not creating 2025-10-22 20:26:05,373 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-32656761 not found, creating it 2025-10-22 20:26:05,807 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-32656761, ID : 2da148e3-648f-4470-9cf2-18723a0ba1ea 2025-10-22 20:26:07,164 - INFO - ================================================================================ 2025-10-22 20:26:07,164 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-22 20:26:07,417 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2025-10-22 20:26:07,417 - INFO - Initial checks done. Running the testcase now 2025-10-22 20:26:07,417 - INFO - 2025-10-22 20:26:07,417 - INFO - ================================================================================ 2025-10-22 20:26:07,417 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-22 20:26:07,417 - 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-22 20:26:07,713 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2025-10-22 20:26:07,714 - INFO - Initial checks done. Running the testcase now 2025-10-22 20:26:07,714 - INFO - 2025-10-22 20:26:08,067 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-32656761:ctest-vn4-58549090, 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-32656761:ctest-vn4-58549090, 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-32656761:ctest-vn4-58549090, 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-32656761:ctest-vn4-58549090, 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-22 20:26:08,559 - DEBUG - Response for create_network : {'network': {'id': '5ac7bb8c-3055-4c9c-bcf0-2a22bcf6a94a', 'name': 'ctest-vn4-58549090', 'tenant_id': '2da148e3648f44709cf218723a0ba1ea', 'project_id': '2da148e3648f44709cf218723a0ba1ea', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-32656761', 'ctest-vn4-58549090'], 'port_security_enabled': True, 'description': ''}} 2025-10-22 20:26:08,757 - DEBUG - Response for create_subnet : {'subnet': {'id': '0c060fe9-6178-4db1-b52b-042f109f63d5', 'name': '', 'tenant_id': '2da148e3648f44709cf218723a0ba1ea', 'network_id': '5ac7bb8c-3055-4c9c-bcf0-2a22bcf6a94a', 'ip_version': 4, 'cidr': '198.237.111.192/26', 'allocation_pools': [{'start': '198.237.111.194', 'end': '198.237.111.254'}], 'gateway_ip': '198.237.111.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '198.237.111.194', 'tags': [], 'project_id': '2da148e3648f44709cf218723a0ba1ea'}} 2025-10-22 20:26:08,908 - DEBUG - Response for create_subnet : {'subnet': {'id': '1b8c35a3-ac2e-45a4-b92a-253eaf0071fa', 'name': '', 'tenant_id': '2da148e3648f44709cf218723a0ba1ea', 'network_id': '5ac7bb8c-3055-4c9c-bcf0-2a22bcf6a94a', 'ip_version': 6, 'cidr': '262d:da19:c2d8:797f:dc48:e988::/96', 'allocation_pools': [{'start': '262d:da19:c2d8:797f:dc48:e988:0:2', 'end': '262d:da19:c2d8:797f:dc48:e988:ffff:fffe'}], 'gateway_ip': '262d:da19:c2d8:797f:dc48:e988:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '262d:da19:c2d8:797f:dc48:e988:0:2', 'tags': [], 'project_id': '2da148e3648f44709cf218723a0ba1ea'}} 2025-10-22 20:26:08,925 - INFO - Created VN ctest-vn4-58549090 2025-10-22 20:26:08,976 - DEBUG - VN ctest-vn4-58549090 UUID is 5ac7bb8c-3055-4c9c-bcf0-2a22bcf6a94a 2025-10-22 20:26:09,219 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5ac7bb8c-3055-4c9c-bcf0-2a22bcf6a94a', 'name': 'ctest-vn4-58549090', 'tenant_id': '2da148e3648f44709cf218723a0ba1ea', 'project_id': '2da148e3648f44709cf218723a0ba1ea', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0c060fe9-6178-4db1-b52b-042f109f63d5', '1b8c35a3-ac2e-45a4-b92a-253eaf0071fa'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-32656761', 'ctest-vn4-58549090'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-32656761', 'ctest-policy1-96066623']], 'subnet_ipam': [{'subnet_cidr': '198.237.111.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '262d:da19:c2d8:797f:dc48:e988::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-22 20:26:09,380 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-10-22 20:26:09,671 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-10-22 20:26:09,698 - DEBUG - Requesting: http://10.0.0.38:8082/domain/d5657770-164f-4b23-b68a-38e287d8fbfe 2025-10-22 20:26:09,709 - DEBUG - Requesting: http://10.0.0.38:8082/project/2da148e3-648f-4470-9cf2-18723a0ba1ea 2025-10-22 20:26:09,778 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5ac7bb8c-3055-4c9c-bcf0-2a22bcf6a94a 2025-10-22 20:26:09,789 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5ac7bb8c-3055-4c9c-bcf0-2a22bcf6a94a 2025-10-22 20:26:09,799 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/bffa6161-0399-40f3-9712-dcad6fa7bbe1 2025-10-22 20:26:09,805 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/bffa6161-0399-40f3-9712-dcad6fa7bbe1 2025-10-22 20:26:09,812 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/757feea6-9118-4227-9f94-b84e3daf9800 2025-10-22 20:26:09,819 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-22 20:26:09,819 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5ac7bb8c-3055-4c9c-bcf0-2a22bcf6a94a 2025-10-22 20:26:09,829 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/bffa6161-0399-40f3-9712-dcad6fa7bbe1 2025-10-22 20:26:09,841 - INFO - Verified VN network id 12 for VN 5ac7bb8c-3055-4c9c-bcf0-2a22bcf6a94a 2025-10-22 20:26:09,841 - INFO - Verifications in API Server for VN ctest-vn4-58549090 passed 2025-10-22 20:26:09,841 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5ac7bb8c-3055-4c9c-bcf0-2a22bcf6a94a 2025-10-22 20:26:09,851 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/bffa6161-0399-40f3-9712-dcad6fa7bbe1 2025-10-22 20:26:09,857 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/bffa6161-0399-40f3-9712-dcad6fa7bbe1 2025-10-22 20:26:09,863 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/757feea6-9118-4227-9f94-b84e3daf9800 2025-10-22 20:26:09,873 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-32656761:ctest-vn4-58549090', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-32656761', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6541403194559646876', 'uuid-lslong': '13614428002228545866'}, 'enable': 'true', 'created': '2025-10-22T20:26:08', 'last-modified': '2025-10-22T20:26:09', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.682393'} 2025-10-22 20:26:09,878 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-22 20:26:09,879 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-58549090 passed 2025-10-22 20:26:09,880 - DEBUG - ====Verifying policy data for ctest-vn4-58549090 in API_Server ====== 2025-10-22 20:26:09,880 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-10-22 20:26:09,885 - DEBUG - Requesting: http://10.0.0.38:8082/domain/d5657770-164f-4b23-b68a-38e287d8fbfe 2025-10-22 20:26:09,895 - DEBUG - Requesting: http://10.0.0.38:8082/project/2da148e3-648f-4470-9cf2-18723a0ba1ea 2025-10-22 20:26:09,965 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5ac7bb8c-3055-4c9c-bcf0-2a22bcf6a94a 2025-10-22 20:26:09,973 - DEBUG - ==>Verifying data for policy with id: b492ee72-8bac-47fa-bb61-b4c23a3f529e, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-32656761', 'ctest-policy1-96066623'] 2025-10-22 20:26:09,973 - INFO - VN ctest-vn4-58549090 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-22 20:26:09,973 - DEBUG - Verifying the vn in opserver 2025-10-22 20:26:09,973 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-32656761:ctest-vn4-58549090 virtual network link through opserver 10.0.0.38 2025-10-22 20:26:09,973 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-10-22 20:26:10,263 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-10-22 20:26:10,312 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-32656761:ctest-vn4-58549090', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-32656761:ctest-vn4-58549090?flat'} 2025-10-22 20:26:10,312 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-32656761:ctest-vn4-58549090 is found in opserver 2025-10-22 20:26:10,320 - DEBUG - Do not have enough data to verify VN in agent 2025-10-22 20:26:10,324 - DEBUG - VRF ids for VN ctest-vn4-58549090: {} 2025-10-22 20:26:10,324 - DEBUG - ====Verifying data for ctest-policy1-96066623 in API_Server ====== 2025-10-22 20:26:10,324 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-10-22 20:26:10,329 - DEBUG - Requesting: http://10.0.0.38:8082/domain/d5657770-164f-4b23-b68a-38e287d8fbfe 2025-10-22 20:26:10,338 - DEBUG - Requesting: http://10.0.0.38:8082/project/2da148e3-648f-4470-9cf2-18723a0ba1ea 2025-10-22 20:26:10,405 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/b492ee72-8bac-47fa-bb61-b4c23a3f529e 2025-10-22 20:26:10,414 - INFO - Verified policy ctest-policy1-96066623 in API Server, Result: True 2025-10-22 20:26:10,414 - INFO - Done with setup and verification, moving onto test .. 2025-10-22 20:26:10,420 - INFO - Deleting VN ctest-vn4-58549090 2025-10-22 20:26:10,545 - DEBUG - Response for deleting network () 2025-10-22 20:26:10,545 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/bffa6161-0399-40f3-9712-dcad6fa7bbe1 2025-10-22 20:26:10,550 - DEBUG - Response Code: 404 2025-10-22 20:26:10,550 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-10-22 20:26:10,555 - DEBUG - Requesting: http://10.0.0.38:8082/domain/d5657770-164f-4b23-b68a-38e287d8fbfe 2025-10-22 20:26:10,608 - DEBUG - Requesting: http://10.0.0.38:8082/project/2da148e3-648f-4470-9cf2-18723a0ba1ea 2025-10-22 20:26:10,677 - INFO - Validated that VN ctest-vn4-58549090 is not found in API Server 2025-10-22 20:26:10,686 - DEBUG - VN ctest-vn4-58549090 is not present in Agent 10.0.0.38 2025-10-22 20:26:10,686 - INFO - Validated that VN ctest-vn4-58549090 is not in any agent 2025-10-22 20:26:10,698 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-58549090 info 2025-10-22 20:26:10,721 - INFO - Deleted policy ctest-policy1-96066623 2025-10-22 20:26:10,884 - DEBUG - policy ctest-policy1-96066623 is not found in API Server 2025-10-22 20:26:11,136 - DEBUG - No XMPP flaps were noticed during the test
2025-10-22 20:26:11,136 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-10-22 20:26:11,136 - INFO - -------------------------------------------------------------------------------- 2025-10-22 20:26:11,428 - DEBUG - No XMPP flaps were noticed during the test
2025-10-22 20:26:11,428 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-10-22 20:26:11,428 - INFO - -------------------------------------------------------------------------------- 2025-10-22 20:26:12,104 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-32656761, ID : 2da148e3-648f-4470-9cf2-18723a0ba1ea