2025-08-15 09:30:41,230 - INFO - Domain Default found not creating 2025-08-15 09:30:41,345 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-00507574 not found, creating it 2025-08-15 09:30:41,761 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-00507574, ID : 6a30f227-ee75-4c50-ae50-732d0eddffb3 2025-08-15 09:30:43,055 - INFO - ================================================================================ 2025-08-15 09:30:43,056 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-15 09:30:43,305 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.0.0.254': '0'}} with 2025-08-15 09:30:43,305 - INFO - Initial checks done. Running the testcase now 2025-08-15 09:30:43,305 - INFO - 2025-08-15 09:30:43,305 - INFO - ================================================================================ 2025-08-15 09:30:43,305 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-15 09:30:43,305 - 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-08-15 09:30:43,592 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.0.0.254': '0'}} with 2025-08-15 09:30:43,592 - INFO - Initial checks done. Running the testcase now 2025-08-15 09:30:43,592 - INFO - 2025-08-15 09:30:43,932 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-00507574:ctest-vn4-28110316, 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-00507574:ctest-vn4-28110316, 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-00507574:ctest-vn4-28110316, 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-00507574:ctest-vn4-28110316, 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-08-15 09:30:44,429 - DEBUG - Response for create_network : {'network': {'id': 'fbf1eefb-db1a-4f8e-9204-dac3dd21139e', 'name': 'ctest-vn4-28110316', 'tenant_id': '6a30f227ee754c50ae50732d0eddffb3', 'project_id': '6a30f227ee754c50ae50732d0eddffb3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-00507574', 'ctest-vn4-28110316'], 'port_security_enabled': True, 'description': ''}} 2025-08-15 09:30:44,624 - DEBUG - Response for create_subnet : {'subnet': {'id': '26237142-9d4d-4239-993c-d0b8b568fa04', 'name': '', 'tenant_id': '6a30f227ee754c50ae50732d0eddffb3', 'network_id': 'fbf1eefb-db1a-4f8e-9204-dac3dd21139e', 'ip_version': 4, 'cidr': '141.98.54.192/26', 'allocation_pools': [{'start': '141.98.54.194', 'end': '141.98.54.254'}], 'gateway_ip': '141.98.54.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '141.98.54.194', 'tags': [], 'project_id': '6a30f227ee754c50ae50732d0eddffb3'}} 2025-08-15 09:30:44,822 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f75beb6c-d3da-4fa8-8a82-d54d12baafe0', 'name': '', 'tenant_id': '6a30f227ee754c50ae50732d0eddffb3', 'network_id': 'fbf1eefb-db1a-4f8e-9204-dac3dd21139e', 'ip_version': 6, 'cidr': '377e:c41c:9b6a:dc1c:5c2b:f810::/96', 'allocation_pools': [{'start': '377e:c41c:9b6a:dc1c:5c2b:f810:0:2', 'end': '377e:c41c:9b6a:dc1c:5c2b:f810:ffff:fffe'}], 'gateway_ip': '377e:c41c:9b6a:dc1c:5c2b:f810:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '377e:c41c:9b6a:dc1c:5c2b:f810:0:2', 'tags': [], 'project_id': '6a30f227ee754c50ae50732d0eddffb3'}} 2025-08-15 09:30:44,839 - INFO - Created VN ctest-vn4-28110316 2025-08-15 09:30:44,888 - DEBUG - VN ctest-vn4-28110316 UUID is fbf1eefb-db1a-4f8e-9204-dac3dd21139e 2025-08-15 09:30:45,071 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'fbf1eefb-db1a-4f8e-9204-dac3dd21139e', 'name': 'ctest-vn4-28110316', 'tenant_id': '6a30f227ee754c50ae50732d0eddffb3', 'project_id': '6a30f227ee754c50ae50732d0eddffb3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['26237142-9d4d-4239-993c-d0b8b568fa04', 'f75beb6c-d3da-4fa8-8a82-d54d12baafe0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-00507574', 'ctest-vn4-28110316'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-00507574', 'ctest-policy1-04026567']], 'subnet_ipam': [{'subnet_cidr': '141.98.54.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '377e:c41c:9b6a:dc1c:5c2b:f810::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-15 09:30:45,232 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-15 09:30:45,518 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-15 09:30:45,541 - DEBUG - Requesting: http://10.0.0.254:8082/domain/424ce239-1777-469b-aa9a-ed16dbfc5d9f 2025-08-15 09:30:45,552 - DEBUG - Requesting: http://10.0.0.254:8082/project/6a30f227-ee75-4c50-ae50-732d0eddffb3 2025-08-15 09:30:45,623 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/fbf1eefb-db1a-4f8e-9204-dac3dd21139e 2025-08-15 09:30:45,634 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/fbf1eefb-db1a-4f8e-9204-dac3dd21139e 2025-08-15 09:30:45,646 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/9f78ff98-5993-4fde-8260-47274fb49f66 2025-08-15 09:30:45,651 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/9f78ff98-5993-4fde-8260-47274fb49f66 2025-08-15 09:30:45,657 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/1bae0ba8-d036-44c3-a701-a0c88321c413 2025-08-15 09:30:45,661 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-15 09:30:45,661 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/fbf1eefb-db1a-4f8e-9204-dac3dd21139e 2025-08-15 09:30:45,669 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/9f78ff98-5993-4fde-8260-47274fb49f66 2025-08-15 09:30:45,679 - INFO - Verified VN network id 12 for VN fbf1eefb-db1a-4f8e-9204-dac3dd21139e 2025-08-15 09:30:45,679 - INFO - Verifications in API Server for VN ctest-vn4-28110316 passed 2025-08-15 09:30:45,679 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/fbf1eefb-db1a-4f8e-9204-dac3dd21139e 2025-08-15 09:30:45,687 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/9f78ff98-5993-4fde-8260-47274fb49f66 2025-08-15 09:30:45,692 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/9f78ff98-5993-4fde-8260-47274fb49f66 2025-08-15 09:30:45,697 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/1bae0ba8-d036-44c3-a701-a0c88321c413 2025-08-15 09:30:45,706 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-00507574:ctest-vn4-28110316', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-00507574', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18154554338387316622', 'uuid-lslong': '10521775164207731614'}, 'enable': 'true', 'created': '2025-08-15T09:30:44', 'last-modified': '2025-08-15T09:30:45', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.656902'} 2025-08-15 09:30:45,711 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-15 09:30:45,711 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-28110316 passed 2025-08-15 09:30:45,711 - DEBUG - ====Verifying policy data for ctest-vn4-28110316 in API_Server ====== 2025-08-15 09:30:45,711 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-15 09:30:45,715 - DEBUG - Requesting: http://10.0.0.254:8082/domain/424ce239-1777-469b-aa9a-ed16dbfc5d9f 2025-08-15 09:30:45,724 - DEBUG - Requesting: http://10.0.0.254:8082/project/6a30f227-ee75-4c50-ae50-732d0eddffb3 2025-08-15 09:30:45,794 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/fbf1eefb-db1a-4f8e-9204-dac3dd21139e 2025-08-15 09:30:45,802 - DEBUG - ==>Verifying data for policy with id: 6d9e402d-7f7f-4e3e-a91f-7640489c841f, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-00507574', 'ctest-policy1-04026567'] 2025-08-15 09:30:45,802 - INFO - VN ctest-vn4-28110316 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-15 09:30:45,802 - DEBUG - Verifying the vn in opserver 2025-08-15 09:30:45,802 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-00507574:ctest-vn4-28110316 virtual network link through opserver 10.0.0.254 2025-08-15 09:30:45,803 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-08-15 09:30:46,090 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-08-15 09:30:46,139 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-00507574:ctest-vn4-28110316', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-00507574:ctest-vn4-28110316?flat'} 2025-08-15 09:30:46,139 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-00507574:ctest-vn4-28110316 is found in opserver 2025-08-15 09:30:46,149 - DEBUG - Do not have enough data to verify VN in agent 2025-08-15 09:30:46,153 - DEBUG - VRF ids for VN ctest-vn4-28110316: {} 2025-08-15 09:30:46,154 - DEBUG - ====Verifying data for ctest-policy1-04026567 in API_Server ====== 2025-08-15 09:30:46,154 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-15 09:30:46,158 - DEBUG - Requesting: http://10.0.0.254:8082/domain/424ce239-1777-469b-aa9a-ed16dbfc5d9f 2025-08-15 09:30:46,168 - DEBUG - Requesting: http://10.0.0.254:8082/project/6a30f227-ee75-4c50-ae50-732d0eddffb3 2025-08-15 09:30:46,241 - DEBUG - Requesting: http://10.0.0.254:8082/network-policy/6d9e402d-7f7f-4e3e-a91f-7640489c841f 2025-08-15 09:30:46,249 - INFO - Verified policy ctest-policy1-04026567 in API Server, Result: True 2025-08-15 09:30:46,249 - INFO - Done with setup and verification, moving onto test .. 2025-08-15 09:30:46,256 - INFO - Deleting VN ctest-vn4-28110316 2025-08-15 09:30:46,375 - DEBUG - Response for deleting network () 2025-08-15 09:30:46,375 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/9f78ff98-5993-4fde-8260-47274fb49f66 2025-08-15 09:30:46,379 - DEBUG - Response Code: 404 2025-08-15 09:30:46,379 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-15 09:30:46,383 - DEBUG - Requesting: http://10.0.0.254:8082/domain/424ce239-1777-469b-aa9a-ed16dbfc5d9f 2025-08-15 09:30:46,436 - DEBUG - Requesting: http://10.0.0.254:8082/project/6a30f227-ee75-4c50-ae50-732d0eddffb3 2025-08-15 09:30:46,505 - INFO - Validated that VN ctest-vn4-28110316 is not found in API Server 2025-08-15 09:30:46,514 - DEBUG - VN ctest-vn4-28110316 is not present in Agent 10.0.0.254 2025-08-15 09:30:46,514 - INFO - Validated that VN ctest-vn4-28110316 is not in any agent 2025-08-15 09:30:46,526 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-28110316 info 2025-08-15 09:30:46,550 - INFO - Deleted policy ctest-policy1-04026567 2025-08-15 09:30:46,712 - DEBUG - policy ctest-policy1-04026567 is not found in API Server 2025-08-15 09:30:46,969 - DEBUG - No XMPP flaps were noticed during the test