2025-07-31 02:40:20,135 - INFO - Domain Default found not creating 2025-07-31 02:40:20,444 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-93311991 not found, creating it 2025-07-31 02:40:21,143 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-93311991, ID : 870dd695-7b12-47e3-9c3f-7c31f219f61e 2025-07-31 02:40:23,047 - INFO - ================================================================================ 2025-07-31 02:40:23,048 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-07-31 02:40:23,380 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.129': '0'}} with 2025-07-31 02:40:23,380 - INFO - Initial checks done. Running the testcase now 2025-07-31 02:40:23,381 - INFO - 2025-07-31 02:40:23,381 - INFO - ================================================================================ 2025-07-31 02:40:23,381 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-07-31 02:40:23,382 - 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-07-31 02:40:23,715 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.129': '0'}} with 2025-07-31 02:40:23,715 - INFO - Initial checks done. Running the testcase now 2025-07-31 02:40:23,716 - INFO - 2025-07-31 02:40:24,190 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93311991:ctest-vn4-67599788, 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-93311991:ctest-vn4-67599788, 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-93311991:ctest-vn4-67599788, 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-93311991:ctest-vn4-67599788, 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-07-31 02:40:24,937 - DEBUG - Response for create_network : {'network': {'id': '8f895945-476e-4b29-9d78-3f14f9369eb8', 'name': 'ctest-vn4-67599788', 'tenant_id': '870dd6957b1247e39c3f7c31f219f61e', 'project_id': '870dd6957b1247e39c3f7c31f219f61e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-93311991', 'ctest-vn4-67599788'], 'port_security_enabled': True, 'description': ''}} 2025-07-31 02:40:25,127 - DEBUG - Response for create_subnet : {'subnet': {'id': '18989c23-c34c-4de2-b6c8-964a2de5b13d', 'name': '', 'tenant_id': '870dd6957b1247e39c3f7c31f219f61e', 'network_id': '8f895945-476e-4b29-9d78-3f14f9369eb8', 'ip_version': 4, 'cidr': '66.72.2.0/26', 'allocation_pools': [{'start': '66.72.2.2', 'end': '66.72.2.62'}], 'gateway_ip': '66.72.2.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '66.72.2.2', 'tags': [], 'project_id': '870dd6957b1247e39c3f7c31f219f61e'}} 2025-07-31 02:40:25,322 - DEBUG - Response for create_subnet : {'subnet': {'id': '2c105001-1c8c-4232-a9fe-1c4131a0836d', 'name': '', 'tenant_id': '870dd6957b1247e39c3f7c31f219f61e', 'network_id': '8f895945-476e-4b29-9d78-3f14f9369eb8', 'ip_version': 6, 'cidr': '3206:685:3f5f:9cc1:10e0:30d8::/96', 'allocation_pools': [{'start': '3206:685:3f5f:9cc1:10e0:30d8:0:2', 'end': '3206:685:3f5f:9cc1:10e0:30d8:ffff:fffe'}], 'gateway_ip': '3206:685:3f5f:9cc1:10e0:30d8:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3206:685:3f5f:9cc1:10e0:30d8:0:2', 'tags': [], 'project_id': '870dd6957b1247e39c3f7c31f219f61e'}} 2025-07-31 02:40:25,359 - INFO - Created VN ctest-vn4-67599788 2025-07-31 02:40:25,419 - DEBUG - VN ctest-vn4-67599788 UUID is 8f895945-476e-4b29-9d78-3f14f9369eb8 2025-07-31 02:40:25,809 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8f895945-476e-4b29-9d78-3f14f9369eb8', 'name': 'ctest-vn4-67599788', 'tenant_id': '870dd6957b1247e39c3f7c31f219f61e', 'project_id': '870dd6957b1247e39c3f7c31f219f61e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['18989c23-c34c-4de2-b6c8-964a2de5b13d', '2c105001-1c8c-4232-a9fe-1c4131a0836d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-93311991', 'ctest-vn4-67599788'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-93311991', 'ctest-policy1-11822772']], 'subnet_ipam': [{'subnet_cidr': '66.72.2.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3206:685:3f5f:9cc1:10e0:30d8::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-07-31 02:40:26,011 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-07-31 02:40:26,360 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-07-31 02:40:26,442 - DEBUG - Requesting: http://10.0.0.19:8082/domain/67ed8bce-74e2-40f8-a742-a51200f0f5e7 2025-07-31 02:40:26,476 - DEBUG - Requesting: http://10.0.0.19:8082/project/870dd695-7b12-47e3-9c3f-7c31f219f61e 2025-07-31 02:40:26,603 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/8f895945-476e-4b29-9d78-3f14f9369eb8 2025-07-31 02:40:26,642 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/8f895945-476e-4b29-9d78-3f14f9369eb8 2025-07-31 02:40:26,672 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/3811b60e-78c2-4a36-97e7-898bd4a49c05 2025-07-31 02:40:26,695 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/3811b60e-78c2-4a36-97e7-898bd4a49c05 2025-07-31 02:40:26,720 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/b0e293f9-20e0-43eb-84f4-8582e3eb9e4e 2025-07-31 02:40:26,743 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-07-31 02:40:26,743 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/8f895945-476e-4b29-9d78-3f14f9369eb8 2025-07-31 02:40:26,781 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/3811b60e-78c2-4a36-97e7-898bd4a49c05 2025-07-31 02:40:26,830 - INFO - Verified VN network id 11 for VN 8f895945-476e-4b29-9d78-3f14f9369eb8 2025-07-31 02:40:26,831 - INFO - Verifications in API Server for VN ctest-vn4-67599788 passed 2025-07-31 02:40:26,831 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/8f895945-476e-4b29-9d78-3f14f9369eb8 2025-07-31 02:40:26,868 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/3811b60e-78c2-4a36-97e7-898bd4a49c05 2025-07-31 02:40:26,890 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/3811b60e-78c2-4a36-97e7-898bd4a49c05 2025-07-31 02:40:26,914 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/b0e293f9-20e0-43eb-84f4-8582e3eb9e4e 2025-07-31 02:40:26,950 - DEBUG - Control-node 10.0.0.19 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93311991:ctest-vn4-67599788', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-93311991', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10342896173319080745', 'uuid-lslong': '11346888620472966840'}, 'enable': 'true', 'created': '2025-07-31T02:40:24', 'last-modified': '2025-07-31T02:40:25', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.198580'} 2025-07-31 02:40:26,965 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-07-31 02:40:26,965 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-67599788 passed 2025-07-31 02:40:26,966 - DEBUG - ====Verifying policy data for ctest-vn4-67599788 in API_Server ====== 2025-07-31 02:40:26,966 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-07-31 02:40:26,977 - DEBUG - Requesting: http://10.0.0.19:8082/domain/67ed8bce-74e2-40f8-a742-a51200f0f5e7 2025-07-31 02:40:26,999 - DEBUG - Requesting: http://10.0.0.19:8082/project/870dd695-7b12-47e3-9c3f-7c31f219f61e 2025-07-31 02:40:27,135 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/8f895945-476e-4b29-9d78-3f14f9369eb8 2025-07-31 02:40:27,166 - DEBUG - ==>Verifying data for policy with id: 388c5ca8-a8ed-44fb-ab36-77e3bbd680a8, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-93311991', 'ctest-policy1-11822772'] 2025-07-31 02:40:27,166 - INFO - VN ctest-vn4-67599788 Policy verification: verify_vn_policy_in_api_server, status: True 2025-07-31 02:40:27,166 - DEBUG - Verifying the vn in opserver 2025-07-31 02:40:27,166 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93311991:ctest-vn4-67599788 virtual network link through opserver 10.0.0.19 2025-07-31 02:40:27,167 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2025-07-31 02:40:27,525 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2025-07-31 02:40:27,628 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93311991:ctest-vn4-67599788', 'href': 'http://10.0.0.19:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93311991:ctest-vn4-67599788?flat'} 2025-07-31 02:40:27,628 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93311991:ctest-vn4-67599788 is found in opserver 2025-07-31 02:40:27,656 - DEBUG - Do not have enough data to verify VN in agent 2025-07-31 02:40:27,669 - DEBUG - VRF ids for VN ctest-vn4-67599788: {} 2025-07-31 02:40:27,669 - DEBUG - ====Verifying data for ctest-policy1-11822772 in API_Server ====== 2025-07-31 02:40:27,669 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-07-31 02:40:27,682 - DEBUG - Requesting: http://10.0.0.19:8082/domain/67ed8bce-74e2-40f8-a742-a51200f0f5e7 2025-07-31 02:40:27,713 - DEBUG - Requesting: http://10.0.0.19:8082/project/870dd695-7b12-47e3-9c3f-7c31f219f61e 2025-07-31 02:40:27,823 - DEBUG - Requesting: http://10.0.0.19:8082/network-policy/388c5ca8-a8ed-44fb-ab36-77e3bbd680a8 2025-07-31 02:40:27,848 - INFO - Verified policy ctest-policy1-11822772 in API Server, Result: True 2025-07-31 02:40:27,849 - INFO - Done with setup and verification, moving onto test .. 2025-07-31 02:40:27,862 - INFO - Deleting VN ctest-vn4-67599788 2025-07-31 02:40:28,061 - DEBUG - Response for deleting network () 2025-07-31 02:40:28,061 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/3811b60e-78c2-4a36-97e7-898bd4a49c05 2025-07-31 02:40:28,073 - DEBUG - Response Code: 404 2025-07-31 02:40:28,073 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-07-31 02:40:28,085 - DEBUG - Requesting: http://10.0.0.19:8082/domain/67ed8bce-74e2-40f8-a742-a51200f0f5e7 2025-07-31 02:40:28,100 - DEBUG - Requesting: http://10.0.0.19:8082/project/870dd695-7b12-47e3-9c3f-7c31f219f61e 2025-07-31 02:40:28,199 - INFO - Validated that VN ctest-vn4-67599788 is not found in API Server 2025-07-31 02:40:28,219 - DEBUG - VN ctest-vn4-67599788 is not present in Agent 10.0.0.19 2025-07-31 02:40:28,220 - INFO - Validated that VN ctest-vn4-67599788 is not in any agent 2025-07-31 02:40:28,253 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-67599788 info 2025-07-31 02:40:28,300 - INFO - Deleted policy ctest-policy1-11822772 2025-07-31 02:40:28,515 - DEBUG - policy ctest-policy1-11822772 is not found in API Server 2025-07-31 02:40:28,834 - DEBUG - No XMPP flaps were noticed during the test 2025-07-31 02:40:28,834 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2025-07-31 02:40:28,835 - INFO - -------------------------------------------------------------------------------- 2025-07-31 02:40:29,191 - DEBUG - No XMPP flaps were noticed during the test 2025-07-31 02:40:29,191 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:06] 2025-07-31 02:40:29,192 - INFO - -------------------------------------------------------------------------------- 2025-07-31 02:40:30,191 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-93311991, ID : 870dd695-7b12-47e3-9c3f-7c31f219f61e