2025-10-22 10:44:18,494 - INFO - Domain Default found not creating 2025-10-22 10:44:18,621 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-75593066 not found, creating it 2025-10-22 10:44:19,036 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-75593066, ID : f0f289d3-b883-49cb-a672-3f4bb23cdc95 2025-10-22 10:44:20,356 - INFO - ================================================================================ 2025-10-22 10:44:20,357 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-22 10:44:20,609 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.17': '0'}} with 2025-10-22 10:44:20,609 - INFO - Initial checks done. Running the testcase now 2025-10-22 10:44:20,609 - INFO - 2025-10-22 10:44:20,609 - INFO - ================================================================================ 2025-10-22 10:44:20,609 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-22 10:44:20,609 - 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 10:44:20,896 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.17': '0'}} with 2025-10-22 10:44:20,896 - INFO - Initial checks done. Running the testcase now 2025-10-22 10:44:20,896 - INFO - 2025-10-22 10:44:21,234 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-75593066:ctest-vn4-34845508, 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-75593066:ctest-vn4-34845508, 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-75593066:ctest-vn4-34845508, 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-75593066:ctest-vn4-34845508, 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 10:44:21,717 - DEBUG - Response for create_network : {'network': {'id': '15415563-1c84-407e-a0f4-5a9c9f9928c0', 'name': 'ctest-vn4-34845508', 'tenant_id': 'f0f289d3b88349cba6723f4bb23cdc95', 'project_id': 'f0f289d3b88349cba6723f4bb23cdc95', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-75593066', 'ctest-vn4-34845508'], 'port_security_enabled': True, 'description': ''}} 2025-10-22 10:44:21,869 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a742c36a-da93-4560-aec8-76f2037fcf30', 'name': '', 'tenant_id': 'f0f289d3b88349cba6723f4bb23cdc95', 'network_id': '15415563-1c84-407e-a0f4-5a9c9f9928c0', 'ip_version': 4, 'cidr': '213.114.219.0/26', 'allocation_pools': [{'start': '213.114.219.2', 'end': '213.114.219.62'}], 'gateway_ip': '213.114.219.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '213.114.219.2', 'tags': [], 'project_id': 'f0f289d3b88349cba6723f4bb23cdc95'}} 2025-10-22 10:44:22,048 - DEBUG - Response for create_subnet : {'subnet': {'id': 'badb461a-117f-4291-a171-8ede7a6ee242', 'name': '', 'tenant_id': 'f0f289d3b88349cba6723f4bb23cdc95', 'network_id': '15415563-1c84-407e-a0f4-5a9c9f9928c0', 'ip_version': 6, 'cidr': '31c6:659e:776c:c973:4aef:5c6b::/96', 'allocation_pools': [{'start': '31c6:659e:776c:c973:4aef:5c6b:0:2', 'end': '31c6:659e:776c:c973:4aef:5c6b:ffff:fffe'}], 'gateway_ip': '31c6:659e:776c:c973:4aef:5c6b:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '31c6:659e:776c:c973:4aef:5c6b:0:2', 'tags': [], 'project_id': 'f0f289d3b88349cba6723f4bb23cdc95'}} 2025-10-22 10:44:22,067 - INFO - Created VN ctest-vn4-34845508 2025-10-22 10:44:22,120 - DEBUG - VN ctest-vn4-34845508 UUID is 15415563-1c84-407e-a0f4-5a9c9f9928c0 2025-10-22 10:44:22,295 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '15415563-1c84-407e-a0f4-5a9c9f9928c0', 'name': 'ctest-vn4-34845508', 'tenant_id': 'f0f289d3b88349cba6723f4bb23cdc95', 'project_id': 'f0f289d3b88349cba6723f4bb23cdc95', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a742c36a-da93-4560-aec8-76f2037fcf30', 'badb461a-117f-4291-a171-8ede7a6ee242'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-75593066', 'ctest-vn4-34845508'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-75593066', 'ctest-policy1-32671066']], 'subnet_ipam': [{'subnet_cidr': '213.114.219.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '31c6:659e:776c:c973:4aef:5c6b::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-22 10:44:22,460 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-10-22 10:44:22,747 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-10-22 10:44:22,771 - DEBUG - Requesting: http://10.0.0.242:8082/domain/4d53002f-df08-4be7-88b9-ca8518b9dbda 2025-10-22 10:44:22,783 - DEBUG - Requesting: http://10.0.0.242:8082/project/f0f289d3-b883-49cb-a672-3f4bb23cdc95 2025-10-22 10:44:22,854 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/15415563-1c84-407e-a0f4-5a9c9f9928c0 2025-10-22 10:44:22,865 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/15415563-1c84-407e-a0f4-5a9c9f9928c0 2025-10-22 10:44:22,873 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/4a9a2a15-a61c-4cd9-9669-30bff55057e0 2025-10-22 10:44:22,878 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/4a9a2a15-a61c-4cd9-9669-30bff55057e0 2025-10-22 10:44:22,883 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/fa1bce88-c1c1-449c-9918-58b58dc6867a 2025-10-22 10:44:22,888 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-22 10:44:22,888 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/15415563-1c84-407e-a0f4-5a9c9f9928c0 2025-10-22 10:44:22,895 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/4a9a2a15-a61c-4cd9-9669-30bff55057e0 2025-10-22 10:44:22,906 - INFO - Verified VN network id 12 for VN 15415563-1c84-407e-a0f4-5a9c9f9928c0 2025-10-22 10:44:22,906 - INFO - Verifications in API Server for VN ctest-vn4-34845508 passed 2025-10-22 10:44:22,907 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/15415563-1c84-407e-a0f4-5a9c9f9928c0 2025-10-22 10:44:22,914 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/4a9a2a15-a61c-4cd9-9669-30bff55057e0 2025-10-22 10:44:22,919 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/4a9a2a15-a61c-4cd9-9669-30bff55057e0 2025-10-22 10:44:22,924 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/fa1bce88-c1c1-449c-9918-58b58dc6867a 2025-10-22 10:44:22,933 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-75593066:ctest-vn4-34845508', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-75593066', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1531599232451231870', 'uuid-lslong': '11597994569124882624'}, 'enable': 'true', 'created': '2025-10-22T10:44:21', 'last-modified': '2025-10-22T10:44:22', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.659018'} 2025-10-22 10:44:22,938 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-22 10:44:22,938 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-34845508 passed 2025-10-22 10:44:22,938 - DEBUG - ====Verifying policy data for ctest-vn4-34845508 in API_Server ====== 2025-10-22 10:44:22,938 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-10-22 10:44:22,943 - DEBUG - Requesting: http://10.0.0.242:8082/domain/4d53002f-df08-4be7-88b9-ca8518b9dbda 2025-10-22 10:44:22,952 - DEBUG - Requesting: http://10.0.0.242:8082/project/f0f289d3-b883-49cb-a672-3f4bb23cdc95 2025-10-22 10:44:23,024 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/15415563-1c84-407e-a0f4-5a9c9f9928c0 2025-10-22 10:44:23,032 - DEBUG - ==>Verifying data for policy with id: 31d02a46-df51-4768-9b24-188a9ed3df1f, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-75593066', 'ctest-policy1-32671066'] 2025-10-22 10:44:23,032 - INFO - VN ctest-vn4-34845508 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-22 10:44:23,032 - DEBUG - Verifying the vn in opserver 2025-10-22 10:44:23,033 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-75593066:ctest-vn4-34845508 virtual network link through opserver 10.0.0.242 2025-10-22 10:44:23,033 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2025-10-22 10:44:23,326 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2025-10-22 10:44:23,374 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-75593066:ctest-vn4-34845508', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-75593066:ctest-vn4-34845508?flat'} 2025-10-22 10:44:23,374 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-75593066:ctest-vn4-34845508 is found in opserver 2025-10-22 10:44:23,382 - DEBUG - Do not have enough data to verify VN in agent 2025-10-22 10:44:23,387 - DEBUG - VRF ids for VN ctest-vn4-34845508: {} 2025-10-22 10:44:23,387 - DEBUG - ====Verifying data for ctest-policy1-32671066 in API_Server ====== 2025-10-22 10:44:23,387 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-10-22 10:44:23,392 - DEBUG - Requesting: http://10.0.0.242:8082/domain/4d53002f-df08-4be7-88b9-ca8518b9dbda 2025-10-22 10:44:23,401 - DEBUG - Requesting: http://10.0.0.242:8082/project/f0f289d3-b883-49cb-a672-3f4bb23cdc95 2025-10-22 10:44:23,468 - DEBUG - Requesting: http://10.0.0.242:8082/network-policy/31d02a46-df51-4768-9b24-188a9ed3df1f 2025-10-22 10:44:23,476 - INFO - Verified policy ctest-policy1-32671066 in API Server, Result: True 2025-10-22 10:44:23,476 - INFO - Done with setup and verification, moving onto test .. 2025-10-22 10:44:23,483 - INFO - Deleting VN ctest-vn4-34845508 2025-10-22 10:44:23,583 - DEBUG - Response for deleting network () 2025-10-22 10:44:23,583 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/4a9a2a15-a61c-4cd9-9669-30bff55057e0 2025-10-22 10:44:23,591 - DEBUG - Response Code: 404 2025-10-22 10:44:23,592 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-10-22 10:44:23,596 - DEBUG - Requesting: http://10.0.0.242:8082/domain/4d53002f-df08-4be7-88b9-ca8518b9dbda 2025-10-22 10:44:23,648 - DEBUG - Requesting: http://10.0.0.242:8082/project/f0f289d3-b883-49cb-a672-3f4bb23cdc95 2025-10-22 10:44:23,714 - INFO - Validated that VN ctest-vn4-34845508 is not found in API Server 2025-10-22 10:44:23,722 - DEBUG - VN ctest-vn4-34845508 is not present in Agent 10.0.0.242 2025-10-22 10:44:23,722 - INFO - Validated that VN ctest-vn4-34845508 is not in any agent 2025-10-22 10:44:23,736 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-34845508 info 2025-10-22 10:44:23,758 - INFO - Deleted policy ctest-policy1-32671066 2025-10-22 10:44:23,915 - DEBUG - policy ctest-policy1-32671066 is not found in API Server 2025-10-22 10:44:24,168 - DEBUG - No XMPP flaps were noticed during the test
2025-10-22 10:44:24,168 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-10-22 10:44:24,168 - INFO - -------------------------------------------------------------------------------- 2025-10-22 10:44:24,455 - DEBUG - No XMPP flaps were noticed during the test
2025-10-22 10:44:24,456 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-10-22 10:44:24,456 - INFO - -------------------------------------------------------------------------------- 2025-10-22 10:44:25,098 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-75593066, ID : f0f289d3-b883-49cb-a672-3f4bb23cdc95