2025-10-12 07:31:39,519 - INFO - Domain Default found not creating 2025-10-12 07:31:39,859 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-36790189 not found, creating it 2025-10-12 07:31:40,497 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-36790189, ID : 46e0ba51-3818-4bb2-a2ba-f08c8a70a1b9 2025-10-12 07:31:42,684 - INFO - ================================================================================ 2025-10-12 07:31:42,684 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-12 07:31:43,023 - DEBUG - Nothing to compare xmpp stats {'10.0.0.48': {'10.20.0.254': '0'}} with 2025-10-12 07:31:43,023 - INFO - Initial checks done. Running the testcase now 2025-10-12 07:31:43,024 - INFO - 2025-10-12 07:31:43,024 - INFO - ================================================================================ 2025-10-12 07:31:43,024 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-12 07:31:43,024 - 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-12 07:31:43,371 - DEBUG - Nothing to compare xmpp stats {'10.0.0.48': {'10.20.0.254': '0'}} with 2025-10-12 07:31:43,372 - INFO - Initial checks done. Running the testcase now 2025-10-12 07:31:43,372 - INFO - 2025-10-12 07:31:43,832 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-36790189:ctest-vn4-30063769, 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-36790189:ctest-vn4-30063769, 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-36790189:ctest-vn4-30063769, 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-36790189:ctest-vn4-30063769, 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-12 07:31:44,544 - DEBUG - Response for create_network : {'network': {'id': 'fc32e00b-5c66-44a4-b462-cabfa7a2c341', 'name': 'ctest-vn4-30063769', 'tenant_id': '46e0ba5138184bb2a2baf08c8a70a1b9', 'project_id': '46e0ba5138184bb2a2baf08c8a70a1b9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-36790189', 'ctest-vn4-30063769'], 'port_security_enabled': True, 'description': ''}} 2025-10-12 07:31:44,731 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ee9e945f-2951-47cf-9d34-6d634889e9fa', 'name': '', 'tenant_id': '46e0ba5138184bb2a2baf08c8a70a1b9', 'network_id': 'fc32e00b-5c66-44a4-b462-cabfa7a2c341', 'ip_version': 4, 'cidr': '154.202.113.0/26', 'allocation_pools': [{'start': '154.202.113.2', 'end': '154.202.113.62'}], 'gateway_ip': '154.202.113.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '154.202.113.2', 'tags': [], 'project_id': '46e0ba5138184bb2a2baf08c8a70a1b9'}} 2025-10-12 07:31:44,947 - DEBUG - Response for create_subnet : {'subnet': {'id': '1e6de4bb-ef75-42bd-b8a6-315a052c7f2c', 'name': '', 'tenant_id': '46e0ba5138184bb2a2baf08c8a70a1b9', 'network_id': 'fc32e00b-5c66-44a4-b462-cabfa7a2c341', 'ip_version': 6, 'cidr': '280e:83a7:5ab5:c611:27a9:9c29::/96', 'allocation_pools': [{'start': '280e:83a7:5ab5:c611:27a9:9c29:0:2', 'end': '280e:83a7:5ab5:c611:27a9:9c29:ffff:fffe'}], 'gateway_ip': '280e:83a7:5ab5:c611:27a9:9c29:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '280e:83a7:5ab5:c611:27a9:9c29:0:2', 'tags': [], 'project_id': '46e0ba5138184bb2a2baf08c8a70a1b9'}} 2025-10-12 07:31:44,975 - INFO - Created VN ctest-vn4-30063769 2025-10-12 07:31:45,032 - DEBUG - VN ctest-vn4-30063769 UUID is fc32e00b-5c66-44a4-b462-cabfa7a2c341 2025-10-12 07:31:45,266 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'fc32e00b-5c66-44a4-b462-cabfa7a2c341', 'name': 'ctest-vn4-30063769', 'tenant_id': '46e0ba5138184bb2a2baf08c8a70a1b9', 'project_id': '46e0ba5138184bb2a2baf08c8a70a1b9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ee9e945f-2951-47cf-9d34-6d634889e9fa', '1e6de4bb-ef75-42bd-b8a6-315a052c7f2c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-36790189', 'ctest-vn4-30063769'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-36790189', 'ctest-policy1-19088742']], 'subnet_ipam': [{'subnet_cidr': '154.202.113.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '280e:83a7:5ab5:c611:27a9:9c29::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-12 07:31:45,448 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2025-10-12 07:31:45,760 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2025-10-12 07:31:45,828 - DEBUG - Requesting: http://10.0.0.48:8082/domain/323c2aa9-4b1c-428e-b869-e75875bfdd80 2025-10-12 07:31:45,851 - DEBUG - Requesting: http://10.0.0.48:8082/project/46e0ba51-3818-4bb2-a2ba-f08c8a70a1b9 2025-10-12 07:31:45,981 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/fc32e00b-5c66-44a4-b462-cabfa7a2c341 2025-10-12 07:31:46,007 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/fc32e00b-5c66-44a4-b462-cabfa7a2c341 2025-10-12 07:31:46,027 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/d1fdd4d0-7ddb-4ac5-a5e4-c5bb2c5cc4f2 2025-10-12 07:31:46,038 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/d1fdd4d0-7ddb-4ac5-a5e4-c5bb2c5cc4f2 2025-10-12 07:31:46,050 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/e224355c-c08f-4050-a632-3f46695b4144 2025-10-12 07:31:46,062 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-12 07:31:46,062 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/fc32e00b-5c66-44a4-b462-cabfa7a2c341 2025-10-12 07:31:46,078 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/d1fdd4d0-7ddb-4ac5-a5e4-c5bb2c5cc4f2 2025-10-12 07:31:46,102 - INFO - Verified VN network id 11 for VN fc32e00b-5c66-44a4-b462-cabfa7a2c341 2025-10-12 07:31:46,102 - INFO - Verifications in API Server for VN ctest-vn4-30063769 passed 2025-10-12 07:31:46,102 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/fc32e00b-5c66-44a4-b462-cabfa7a2c341 2025-10-12 07:31:46,115 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/d1fdd4d0-7ddb-4ac5-a5e4-c5bb2c5cc4f2 2025-10-12 07:31:46,124 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/d1fdd4d0-7ddb-4ac5-a5e4-c5bb2c5cc4f2 2025-10-12 07:31:46,134 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/e224355c-c08f-4050-a632-3f46695b4144 2025-10-12 07:31:46,148 - DEBUG - Control-node 10.0.0.48 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-36790189:ctest-vn4-30063769', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-36790189', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18172833785792840868', 'uuid-lslong': '12998174399044698945'}, 'enable': 'true', 'created': '2025-10-12T07:31:44', 'last-modified': '2025-10-12T07:31:45', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.910203'} 2025-10-12 07:31:46,155 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-12 07:31:46,155 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-30063769 passed 2025-10-12 07:31:46,155 - DEBUG - ====Verifying policy data for ctest-vn4-30063769 in API_Server ====== 2025-10-12 07:31:46,155 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2025-10-12 07:31:46,162 - DEBUG - Requesting: http://10.0.0.48:8082/domain/323c2aa9-4b1c-428e-b869-e75875bfdd80 2025-10-12 07:31:46,177 - DEBUG - Requesting: http://10.0.0.48:8082/project/46e0ba51-3818-4bb2-a2ba-f08c8a70a1b9 2025-10-12 07:31:46,285 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/fc32e00b-5c66-44a4-b462-cabfa7a2c341 2025-10-12 07:31:46,309 - DEBUG - ==>Verifying data for policy with id: 73441e03-d343-44d7-8259-565bba06196e, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-36790189', 'ctest-policy1-19088742'] 2025-10-12 07:31:46,309 - INFO - VN ctest-vn4-30063769 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-12 07:31:46,309 - DEBUG - Verifying the vn in opserver 2025-10-12 07:31:46,309 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-36790189:ctest-vn4-30063769 virtual network link through opserver 10.0.0.48 2025-10-12 07:31:46,309 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks 2025-10-12 07:31:46,656 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks 2025-10-12 07:31:46,741 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-36790189:ctest-vn4-30063769', 'href': 'http://10.0.0.48:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-36790189:ctest-vn4-30063769?flat'} 2025-10-12 07:31:46,741 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-36790189:ctest-vn4-30063769 is found in opserver 2025-10-12 07:31:46,761 - DEBUG - Do not have enough data to verify VN in agent 2025-10-12 07:31:46,770 - DEBUG - VRF ids for VN ctest-vn4-30063769: {} 2025-10-12 07:31:46,770 - DEBUG - ====Verifying data for ctest-policy1-19088742 in API_Server ====== 2025-10-12 07:31:46,771 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2025-10-12 07:31:46,779 - DEBUG - Requesting: http://10.0.0.48:8082/domain/323c2aa9-4b1c-428e-b869-e75875bfdd80 2025-10-12 07:31:46,799 - DEBUG - Requesting: http://10.0.0.48:8082/project/46e0ba51-3818-4bb2-a2ba-f08c8a70a1b9 2025-10-12 07:31:46,913 - DEBUG - Requesting: http://10.0.0.48:8082/network-policy/73441e03-d343-44d7-8259-565bba06196e 2025-10-12 07:31:46,933 - INFO - Verified policy ctest-policy1-19088742 in API Server, Result: True 2025-10-12 07:31:46,934 - INFO - Done with setup and verification, moving onto test .. 2025-10-12 07:31:46,946 - INFO - Deleting VN ctest-vn4-30063769 2025-10-12 07:31:47,109 - DEBUG - Response for deleting network () 2025-10-12 07:31:47,109 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/d1fdd4d0-7ddb-4ac5-a5e4-c5bb2c5cc4f2 2025-10-12 07:31:47,116 - DEBUG - Response Code: 404 2025-10-12 07:31:47,116 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2025-10-12 07:31:47,121 - DEBUG - Requesting: http://10.0.0.48:8082/domain/323c2aa9-4b1c-428e-b869-e75875bfdd80 2025-10-12 07:31:47,178 - DEBUG - Requesting: http://10.0.0.48:8082/project/46e0ba51-3818-4bb2-a2ba-f08c8a70a1b9 2025-10-12 07:31:47,284 - INFO - Validated that VN ctest-vn4-30063769 is not found in API Server 2025-10-12 07:31:47,302 - DEBUG - VN ctest-vn4-30063769 is not present in Agent 10.0.0.48 2025-10-12 07:31:47,302 - INFO - Validated that VN ctest-vn4-30063769 is not in any agent 2025-10-12 07:31:47,333 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-30063769 info 2025-10-12 07:31:47,391 - INFO - Deleted policy ctest-policy1-19088742 2025-10-12 07:31:47,605 - DEBUG - policy ctest-policy1-19088742 is not found in API Server 2025-10-12 07:31:47,927 - DEBUG - No XMPP flaps were noticed during the test 2025-10-12 07:31:47,928 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-10-12 07:31:47,928 - INFO - -------------------------------------------------------------------------------- 2025-10-12 07:31:48,275 - DEBUG - No XMPP flaps were noticed during the test 2025-10-12 07:31:48,275 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:06] 2025-10-12 07:31:48,275 - INFO - -------------------------------------------------------------------------------- 2025-10-12 07:31:49,191 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-36790189, ID : 46e0ba51-3818-4bb2-a2ba-f08c8a70a1b9