2025-08-18 17:59:56,263 - INFO - Domain Default found not creating 2025-08-18 17:59:56,378 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-71792444 not found, creating it 2025-08-18 17:59:56,838 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-71792444, ID : 8633ff0d-b1e4-4922-84d9-d155d8e75007 2025-08-18 17:59:58,145 - INFO - ================================================================================ 2025-08-18 17:59:58,145 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-18 17:59:58,398 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-08-18 17:59:58,398 - INFO - Initial checks done. Running the testcase now 2025-08-18 17:59:58,398 - INFO - 2025-08-18 17:59:58,398 - INFO - ================================================================================ 2025-08-18 17:59:58,398 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-18 17:59:58,398 - 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-18 17:59:58,683 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-08-18 17:59:58,683 - INFO - Initial checks done. Running the testcase now 2025-08-18 17:59:58,683 - INFO - 2025-08-18 17:59:59,016 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-71792444:ctest-vn4-43534126, 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-71792444:ctest-vn4-43534126, 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-71792444:ctest-vn4-43534126, 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-71792444:ctest-vn4-43534126, 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-18 17:59:59,491 - DEBUG - Response for create_network : {'network': {'id': '46a1c6eb-4b5e-4df8-82b4-c59591ff68b4', 'name': 'ctest-vn4-43534126', 'tenant_id': '8633ff0db1e4492284d9d155d8e75007', 'project_id': '8633ff0db1e4492284d9d155d8e75007', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-71792444', 'ctest-vn4-43534126'], 'port_security_enabled': True, 'description': ''}} 2025-08-18 17:59:59,700 - DEBUG - Response for create_subnet : {'subnet': {'id': 'af519071-4585-4fc1-ad13-2dc47977cf4f', 'name': '', 'tenant_id': '8633ff0db1e4492284d9d155d8e75007', 'network_id': '46a1c6eb-4b5e-4df8-82b4-c59591ff68b4', 'ip_version': 4, 'cidr': '176.187.187.128/26', 'allocation_pools': [{'start': '176.187.187.130', 'end': '176.187.187.190'}], 'gateway_ip': '176.187.187.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '176.187.187.130', 'tags': [], 'project_id': '8633ff0db1e4492284d9d155d8e75007'}} 2025-08-18 17:59:59,870 - DEBUG - Response for create_subnet : {'subnet': {'id': '1d5e400e-ebbe-4d35-95f4-8a36240c885a', 'name': '', 'tenant_id': '8633ff0db1e4492284d9d155d8e75007', 'network_id': '46a1c6eb-4b5e-4df8-82b4-c59591ff68b4', 'ip_version': 6, 'cidr': '2dfa:c972:251f:6720:6dfb:aecc::/96', 'allocation_pools': [{'start': '2dfa:c972:251f:6720:6dfb:aecc:0:2', 'end': '2dfa:c972:251f:6720:6dfb:aecc:ffff:fffe'}], 'gateway_ip': '2dfa:c972:251f:6720:6dfb:aecc:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2dfa:c972:251f:6720:6dfb:aecc:0:2', 'tags': [], 'project_id': '8633ff0db1e4492284d9d155d8e75007'}} 2025-08-18 17:59:59,888 - INFO - Created VN ctest-vn4-43534126 2025-08-18 17:59:59,945 - DEBUG - VN ctest-vn4-43534126 UUID is 46a1c6eb-4b5e-4df8-82b4-c59591ff68b4 2025-08-18 18:00:00,128 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '46a1c6eb-4b5e-4df8-82b4-c59591ff68b4', 'name': 'ctest-vn4-43534126', 'tenant_id': '8633ff0db1e4492284d9d155d8e75007', 'project_id': '8633ff0db1e4492284d9d155d8e75007', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['af519071-4585-4fc1-ad13-2dc47977cf4f', '1d5e400e-ebbe-4d35-95f4-8a36240c885a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-71792444', 'ctest-vn4-43534126'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-71792444', 'ctest-policy1-36974844']], 'subnet_ipam': [{'subnet_cidr': '176.187.187.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2dfa:c972:251f:6720:6dfb:aecc::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-18 18:00:00,289 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-18 18:00:00,577 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-18 18:00:00,601 - DEBUG - Requesting: http://10.0.0.254:8082/domain/6f344721-acc4-4296-a324-03d3dc4be7d1 2025-08-18 18:00:00,614 - DEBUG - Requesting: http://10.0.0.254:8082/project/8633ff0d-b1e4-4922-84d9-d155d8e75007 2025-08-18 18:00:00,688 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/46a1c6eb-4b5e-4df8-82b4-c59591ff68b4 2025-08-18 18:00:00,700 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/46a1c6eb-4b5e-4df8-82b4-c59591ff68b4 2025-08-18 18:00:00,710 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/5fd2d958-468e-4dfa-b1a5-bea02b88b2f4 2025-08-18 18:00:00,717 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/5fd2d958-468e-4dfa-b1a5-bea02b88b2f4 2025-08-18 18:00:00,723 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/f3f24083-cb31-498e-aa33-1a6824709e3c 2025-08-18 18:00:00,728 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-18 18:00:00,728 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/46a1c6eb-4b5e-4df8-82b4-c59591ff68b4 2025-08-18 18:00:00,737 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/5fd2d958-468e-4dfa-b1a5-bea02b88b2f4 2025-08-18 18:00:00,751 - INFO - Verified VN network id 11 for VN 46a1c6eb-4b5e-4df8-82b4-c59591ff68b4 2025-08-18 18:00:00,751 - INFO - Verifications in API Server for VN ctest-vn4-43534126 passed 2025-08-18 18:00:00,751 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/46a1c6eb-4b5e-4df8-82b4-c59591ff68b4 2025-08-18 18:00:00,763 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/5fd2d958-468e-4dfa-b1a5-bea02b88b2f4 2025-08-18 18:00:00,770 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/5fd2d958-468e-4dfa-b1a5-bea02b88b2f4 2025-08-18 18:00:00,777 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/f3f24083-cb31-498e-aa33-1a6824709e3c 2025-08-18 18:00:00,791 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-71792444:ctest-vn4-43534126', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-71792444', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5089567767789456888', 'uuid-lslong': '9418369966928783540'}, 'enable': 'true', 'created': '2025-08-18T17:59:59', 'last-modified': '2025-08-18T18:00:00', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.687191'} 2025-08-18 18:00:00,799 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-18 18:00:00,799 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-43534126 passed 2025-08-18 18:00:00,799 - DEBUG - ====Verifying policy data for ctest-vn4-43534126 in API_Server ====== 2025-08-18 18:00:00,800 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-18 18:00:00,805 - DEBUG - Requesting: http://10.0.0.254:8082/domain/6f344721-acc4-4296-a324-03d3dc4be7d1 2025-08-18 18:00:00,818 - DEBUG - Requesting: http://10.0.0.254:8082/project/8633ff0d-b1e4-4922-84d9-d155d8e75007 2025-08-18 18:00:00,887 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/46a1c6eb-4b5e-4df8-82b4-c59591ff68b4 2025-08-18 18:00:00,897 - DEBUG - ==>Verifying data for policy with id: 76889a1e-dbe9-4047-b35e-600476fdfb37, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-71792444', 'ctest-policy1-36974844'] 2025-08-18 18:00:00,897 - INFO - VN ctest-vn4-43534126 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-18 18:00:00,897 - DEBUG - Verifying the vn in opserver 2025-08-18 18:00:00,897 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-71792444:ctest-vn4-43534126 virtual network link through opserver 10.0.0.254 2025-08-18 18:00:00,898 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-08-18 18:00:01,185 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-08-18 18:00:01,235 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-71792444:ctest-vn4-43534126', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-71792444:ctest-vn4-43534126?flat'} 2025-08-18 18:00:01,235 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-71792444:ctest-vn4-43534126 is found in opserver 2025-08-18 18:00:01,245 - DEBUG - Do not have enough data to verify VN in agent 2025-08-18 18:00:01,251 - DEBUG - VRF ids for VN ctest-vn4-43534126: {} 2025-08-18 18:00:01,251 - DEBUG - ====Verifying data for ctest-policy1-36974844 in API_Server ====== 2025-08-18 18:00:01,251 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-18 18:00:01,256 - DEBUG - Requesting: http://10.0.0.254:8082/domain/6f344721-acc4-4296-a324-03d3dc4be7d1 2025-08-18 18:00:01,266 - DEBUG - Requesting: http://10.0.0.254:8082/project/8633ff0d-b1e4-4922-84d9-d155d8e75007 2025-08-18 18:00:01,334 - DEBUG - Requesting: http://10.0.0.254:8082/network-policy/76889a1e-dbe9-4047-b35e-600476fdfb37 2025-08-18 18:00:01,344 - INFO - Verified policy ctest-policy1-36974844 in API Server, Result: True 2025-08-18 18:00:01,344 - INFO - Done with setup and verification, moving onto test .. 2025-08-18 18:00:01,351 - INFO - Deleting VN ctest-vn4-43534126 2025-08-18 18:00:01,468 - DEBUG - Response for deleting network () 2025-08-18 18:00:01,468 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/5fd2d958-468e-4dfa-b1a5-bea02b88b2f4 2025-08-18 18:00:01,473 - DEBUG - Response Code: 404 2025-08-18 18:00:01,473 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-18 18:00:01,478 - DEBUG - Requesting: http://10.0.0.254:8082/domain/6f344721-acc4-4296-a324-03d3dc4be7d1 2025-08-18 18:00:01,530 - DEBUG - Requesting: http://10.0.0.254:8082/project/8633ff0d-b1e4-4922-84d9-d155d8e75007 2025-08-18 18:00:01,598 - INFO - Validated that VN ctest-vn4-43534126 is not found in API Server 2025-08-18 18:00:01,610 - DEBUG - VN ctest-vn4-43534126 is not present in Agent 10.0.0.254 2025-08-18 18:00:01,610 - INFO - Validated that VN ctest-vn4-43534126 is not in any agent 2025-08-18 18:00:01,624 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-43534126 info 2025-08-18 18:00:01,647 - INFO - Deleted policy ctest-policy1-36974844 2025-08-18 18:00:01,809 - DEBUG - policy ctest-policy1-36974844 is not found in API Server 2025-08-18 18:00:02,063 - DEBUG - No XMPP flaps were noticed during the test