2025-11-05 17:32:51,762 - INFO - Domain Default found not creating 2025-11-05 17:32:52,009 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-07875679 not found, creating it 2025-11-05 17:32:52,550 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-07875679, ID : 71047748-d6b5-4db9-879f-f79841d1bf6e 2025-11-05 17:32:54,245 - INFO - ================================================================================ 2025-11-05 17:32:54,245 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-05 17:32:54,530 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.18': '0'}} with 2025-11-05 17:32:54,530 - INFO - Initial checks done. Running the testcase now 2025-11-05 17:32:54,530 - INFO - 2025-11-05 17:32:54,530 - INFO - ================================================================================ 2025-11-05 17:32:54,530 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-05 17:32:54,530 - 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-11-05 17:32:54,847 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.18': '0'}} with 2025-11-05 17:32:54,847 - INFO - Initial checks done. Running the testcase now 2025-11-05 17:32:54,847 - INFO - 2025-11-05 17:32:55,254 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-07875679:ctest-vn4-22785789, 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-07875679:ctest-vn4-22785789, 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-07875679:ctest-vn4-22785789, 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-07875679:ctest-vn4-22785789, 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-11-05 17:32:55,815 - DEBUG - Response for create_network : {'network': {'id': '50831d4e-9990-4e19-b165-dbcc83b011ec', 'name': 'ctest-vn4-22785789', 'tenant_id': '71047748d6b54db9879ff79841d1bf6e', 'project_id': '71047748d6b54db9879ff79841d1bf6e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-07875679', 'ctest-vn4-22785789'], 'port_security_enabled': True, 'description': ''}} 2025-11-05 17:32:56,026 - DEBUG - Response for create_subnet : {'subnet': {'id': '4410923d-b0fe-4ea3-86e0-f92e68d1fe80', 'name': '', 'tenant_id': '71047748d6b54db9879ff79841d1bf6e', 'network_id': '50831d4e-9990-4e19-b165-dbcc83b011ec', 'ip_version': 4, 'cidr': '218.0.7.0/26', 'allocation_pools': [{'start': '218.0.7.2', 'end': '218.0.7.62'}], 'gateway_ip': '218.0.7.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '218.0.7.2', 'tags': [], 'project_id': '71047748d6b54db9879ff79841d1bf6e'}} 2025-11-05 17:32:56,229 - DEBUG - Response for create_subnet : {'subnet': {'id': 'aee5b400-aa99-4389-8269-d2c55bfcf1f7', 'name': '', 'tenant_id': '71047748d6b54db9879ff79841d1bf6e', 'network_id': '50831d4e-9990-4e19-b165-dbcc83b011ec', 'ip_version': 6, 'cidr': '2667:c655:def6:9a9e:a5e1:d81c::/96', 'allocation_pools': [{'start': '2667:c655:def6:9a9e:a5e1:d81c:0:2', 'end': '2667:c655:def6:9a9e:a5e1:d81c:ffff:fffe'}], 'gateway_ip': '2667:c655:def6:9a9e:a5e1:d81c:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2667:c655:def6:9a9e:a5e1:d81c:0:2', 'tags': [], 'project_id': '71047748d6b54db9879ff79841d1bf6e'}} 2025-11-05 17:32:56,259 - INFO - Created VN ctest-vn4-22785789 2025-11-05 17:32:56,315 - DEBUG - VN ctest-vn4-22785789 UUID is 50831d4e-9990-4e19-b165-dbcc83b011ec 2025-11-05 17:32:56,548 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '50831d4e-9990-4e19-b165-dbcc83b011ec', 'name': 'ctest-vn4-22785789', 'tenant_id': '71047748d6b54db9879ff79841d1bf6e', 'project_id': '71047748d6b54db9879ff79841d1bf6e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4410923d-b0fe-4ea3-86e0-f92e68d1fe80', 'aee5b400-aa99-4389-8269-d2c55bfcf1f7'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-07875679', 'ctest-vn4-22785789'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-07875679', 'ctest-policy1-62274939']], 'subnet_ipam': [{'subnet_cidr': '218.0.7.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2667:c655:def6:9a9e:a5e1:d81c::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-11-05 17:32:56,721 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-11-05 17:32:57,055 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-11-05 17:32:57,087 - DEBUG - Requesting: http://10.0.0.50:8082/domain/ddf6cb89-b3ed-4675-a5d7-f2134d9e2d78 2025-11-05 17:32:57,105 - DEBUG - Requesting: http://10.0.0.50:8082/project/71047748-d6b5-4db9-879f-f79841d1bf6e 2025-11-05 17:32:57,222 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/50831d4e-9990-4e19-b165-dbcc83b011ec 2025-11-05 17:32:57,238 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/50831d4e-9990-4e19-b165-dbcc83b011ec 2025-11-05 17:32:57,255 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/5f622aa4-8e12-41e7-a496-0dd78ea95bb7 2025-11-05 17:32:57,270 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/5f622aa4-8e12-41e7-a496-0dd78ea95bb7 2025-11-05 17:32:57,283 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/4afe9607-f904-4cbc-ac44-a3c318fe92df 2025-11-05 17:32:57,292 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-05 17:32:57,292 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/50831d4e-9990-4e19-b165-dbcc83b011ec 2025-11-05 17:32:57,304 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/5f622aa4-8e12-41e7-a496-0dd78ea95bb7 2025-11-05 17:32:57,324 - INFO - Verified VN network id 9 for VN 50831d4e-9990-4e19-b165-dbcc83b011ec 2025-11-05 17:32:57,325 - INFO - Verifications in API Server for VN ctest-vn4-22785789 passed 2025-11-05 17:32:57,325 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/50831d4e-9990-4e19-b165-dbcc83b011ec 2025-11-05 17:32:57,337 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/5f622aa4-8e12-41e7-a496-0dd78ea95bb7 2025-11-05 17:32:57,347 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/5f622aa4-8e12-41e7-a496-0dd78ea95bb7 2025-11-05 17:32:57,358 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/4afe9607-f904-4cbc-ac44-a3c318fe92df 2025-11-05 17:32:57,372 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-07875679:ctest-vn4-22785789', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-07875679', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5801512968404356633', 'uuid-lslong': '12782864788790186476'}, 'enable': 'true', 'created': '2025-11-05T17:32:55', 'last-modified': '2025-11-05T17:32:56', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.855147'} 2025-11-05 17:32:57,380 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-05 17:32:57,380 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-22785789 passed 2025-11-05 17:32:57,380 - DEBUG - ====Verifying policy data for ctest-vn4-22785789 in API_Server ====== 2025-11-05 17:32:57,380 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-11-05 17:32:57,389 - DEBUG - Requesting: http://10.0.0.50:8082/domain/ddf6cb89-b3ed-4675-a5d7-f2134d9e2d78 2025-11-05 17:32:57,408 - DEBUG - Requesting: http://10.0.0.50:8082/project/71047748-d6b5-4db9-879f-f79841d1bf6e 2025-11-05 17:32:57,488 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/50831d4e-9990-4e19-b165-dbcc83b011ec 2025-11-05 17:32:57,499 - DEBUG - ==>Verifying data for policy with id: 99fbed85-b7a9-40a1-9f73-7d6b6569dd07, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-07875679', 'ctest-policy1-62274939'] 2025-11-05 17:32:57,500 - INFO - VN ctest-vn4-22785789 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-05 17:32:57,500 - DEBUG - Verifying the vn in opserver 2025-11-05 17:32:57,500 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-07875679:ctest-vn4-22785789 virtual network link through opserver 10.0.0.50 2025-11-05 17:32:57,500 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-11-05 17:32:57,793 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-11-05 17:32:57,911 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-07875679:ctest-vn4-22785789', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-07875679:ctest-vn4-22785789?flat'} 2025-11-05 17:32:57,911 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-07875679:ctest-vn4-22785789 is found in opserver 2025-11-05 17:32:57,937 - DEBUG - Do not have enough data to verify VN in agent 2025-11-05 17:32:57,946 - DEBUG - VRF ids for VN ctest-vn4-22785789: {} 2025-11-05 17:32:57,947 - DEBUG - ====Verifying data for ctest-policy1-62274939 in API_Server ====== 2025-11-05 17:32:57,947 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-11-05 17:32:57,959 - DEBUG - Requesting: http://10.0.0.50:8082/domain/ddf6cb89-b3ed-4675-a5d7-f2134d9e2d78 2025-11-05 17:32:57,988 - DEBUG - Requesting: http://10.0.0.50:8082/project/71047748-d6b5-4db9-879f-f79841d1bf6e 2025-11-05 17:32:58,084 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/99fbed85-b7a9-40a1-9f73-7d6b6569dd07 2025-11-05 17:32:58,097 - INFO - Verified policy ctest-policy1-62274939 in API Server, Result: True 2025-11-05 17:32:58,097 - INFO - Done with setup and verification, moving onto test .. 2025-11-05 17:32:58,109 - INFO - Deleting VN ctest-vn4-22785789 2025-11-05 17:32:58,267 - DEBUG - Response for deleting network () 2025-11-05 17:32:58,267 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/5f622aa4-8e12-41e7-a496-0dd78ea95bb7 2025-11-05 17:32:58,272 - DEBUG - Response Code: 404 2025-11-05 17:32:58,272 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-11-05 17:32:58,279 - DEBUG - Requesting: http://10.0.0.50:8082/domain/ddf6cb89-b3ed-4675-a5d7-f2134d9e2d78 2025-11-05 17:32:58,337 - DEBUG - Requesting: http://10.0.0.50:8082/project/71047748-d6b5-4db9-879f-f79841d1bf6e 2025-11-05 17:32:58,410 - INFO - Validated that VN ctest-vn4-22785789 is not found in API Server 2025-11-05 17:32:58,420 - DEBUG - VN ctest-vn4-22785789 is not present in Agent 10.0.0.50 2025-11-05 17:32:58,420 - INFO - Validated that VN ctest-vn4-22785789 is not in any agent 2025-11-05 17:32:58,434 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-22785789 info 2025-11-05 17:32:58,464 - INFO - Deleted policy ctest-policy1-62274939 2025-11-05 17:32:58,631 - DEBUG - policy ctest-policy1-62274939 is not found in API Server 2025-11-05 17:32:58,916 - DEBUG - No XMPP flaps were noticed during the test 2025-11-05 17:32:58,916 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-11-05 17:32:58,916 - INFO - -------------------------------------------------------------------------------- 2025-11-05 17:32:59,242 - DEBUG - No XMPP flaps were noticed during the test 2025-11-05 17:32:59,242 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2025-11-05 17:32:59,242 - INFO - -------------------------------------------------------------------------------- 2025-11-05 17:33:00,136 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-07875679, ID : 71047748-d6b5-4db9-879f-f79841d1bf6e