2025-09-12 19:06:09,151 - INFO - Domain Default found not creating 2025-09-12 19:06:09,274 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-94305561 not found, creating it 2025-09-12 19:06:09,700 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-94305561, ID : 39bb158c-1cfb-4553-8d0c-ad00fa3b822f 2025-09-12 19:06:11,036 - INFO - ================================================================================ 2025-09-12 19:06:11,036 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-12 19:06:11,295 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-09-12 19:06:11,295 - INFO - Initial checks done. Running the testcase now 2025-09-12 19:06:11,295 - INFO - 2025-09-12 19:06:11,295 - INFO - ================================================================================ 2025-09-12 19:06:11,295 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-12 19:06:11,295 - 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-09-12 19:06:11,591 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-09-12 19:06:11,591 - INFO - Initial checks done. Running the testcase now 2025-09-12 19:06:11,591 - INFO - 2025-09-12 19:06:11,937 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-94305561:ctest-vn4-09389393, 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-94305561:ctest-vn4-09389393, 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-94305561:ctest-vn4-09389393, 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-94305561:ctest-vn4-09389393, 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-09-12 19:06:12,431 - DEBUG - Response for create_network : {'network': {'id': '6fb90b4c-51e1-4231-9787-7765089639b9', 'name': 'ctest-vn4-09389393', 'tenant_id': '39bb158c1cfb45538d0cad00fa3b822f', 'project_id': '39bb158c1cfb45538d0cad00fa3b822f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-94305561', 'ctest-vn4-09389393'], 'port_security_enabled': True, 'description': ''}} 2025-09-12 19:06:12,582 - DEBUG - Response for create_subnet : {'subnet': {'id': '190926c5-e1cb-4c88-aeea-38f5d73599b7', 'name': '', 'tenant_id': '39bb158c1cfb45538d0cad00fa3b822f', 'network_id': '6fb90b4c-51e1-4231-9787-7765089639b9', 'ip_version': 4, 'cidr': '200.132.108.0/26', 'allocation_pools': [{'start': '200.132.108.2', 'end': '200.132.108.62'}], 'gateway_ip': '200.132.108.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '200.132.108.2', 'tags': [], 'project_id': '39bb158c1cfb45538d0cad00fa3b822f'}} 2025-09-12 19:06:12,775 - DEBUG - Response for create_subnet : {'subnet': {'id': '39ff4524-ba61-4bed-a8dd-a0782efcac71', 'name': '', 'tenant_id': '39bb158c1cfb45538d0cad00fa3b822f', 'network_id': '6fb90b4c-51e1-4231-9787-7765089639b9', 'ip_version': 6, 'cidr': '2018:19fb:dfb9:3d14:d1e8:cf84::/96', 'allocation_pools': [{'start': '2018:19fb:dfb9:3d14:d1e8:cf84:0:2', 'end': '2018:19fb:dfb9:3d14:d1e8:cf84:ffff:fffe'}], 'gateway_ip': '2018:19fb:dfb9:3d14:d1e8:cf84:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2018:19fb:dfb9:3d14:d1e8:cf84:0:2', 'tags': [], 'project_id': '39bb158c1cfb45538d0cad00fa3b822f'}} 2025-09-12 19:06:12,794 - INFO - Created VN ctest-vn4-09389393 2025-09-12 19:06:12,842 - DEBUG - VN ctest-vn4-09389393 UUID is 6fb90b4c-51e1-4231-9787-7765089639b9 2025-09-12 19:06:13,024 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6fb90b4c-51e1-4231-9787-7765089639b9', 'name': 'ctest-vn4-09389393', 'tenant_id': '39bb158c1cfb45538d0cad00fa3b822f', 'project_id': '39bb158c1cfb45538d0cad00fa3b822f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['190926c5-e1cb-4c88-aeea-38f5d73599b7', '39ff4524-ba61-4bed-a8dd-a0782efcac71'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-94305561', 'ctest-vn4-09389393'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-94305561', 'ctest-policy1-46030768']], 'subnet_ipam': [{'subnet_cidr': '200.132.108.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2018:19fb:dfb9:3d14:d1e8:cf84::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-09-12 19:06:13,182 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-09-12 19:06:13,477 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-09-12 19:06:13,504 - DEBUG - Requesting: http://10.0.0.254:8082/domain/8b549fbf-6c4f-45d2-bc08-d95538bf0472 2025-09-12 19:06:13,515 - DEBUG - Requesting: http://10.0.0.254:8082/project/39bb158c-1cfb-4553-8d0c-ad00fa3b822f 2025-09-12 19:06:13,582 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/6fb90b4c-51e1-4231-9787-7765089639b9 2025-09-12 19:06:13,592 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/6fb90b4c-51e1-4231-9787-7765089639b9 2025-09-12 19:06:13,600 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/c7da8307-e255-42bb-b6f5-0c7f1aab448b 2025-09-12 19:06:13,606 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/c7da8307-e255-42bb-b6f5-0c7f1aab448b 2025-09-12 19:06:13,611 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/af43a9d1-accd-4d0a-89f5-09e88ed24e1a 2025-09-12 19:06:13,616 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-12 19:06:13,616 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/6fb90b4c-51e1-4231-9787-7765089639b9 2025-09-12 19:06:13,624 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/c7da8307-e255-42bb-b6f5-0c7f1aab448b 2025-09-12 19:06:13,636 - INFO - Verified VN network id 11 for VN 6fb90b4c-51e1-4231-9787-7765089639b9 2025-09-12 19:06:13,636 - INFO - Verifications in API Server for VN ctest-vn4-09389393 passed 2025-09-12 19:06:13,636 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/6fb90b4c-51e1-4231-9787-7765089639b9 2025-09-12 19:06:13,643 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/c7da8307-e255-42bb-b6f5-0c7f1aab448b 2025-09-12 19:06:13,648 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/c7da8307-e255-42bb-b6f5-0c7f1aab448b 2025-09-12 19:06:13,654 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/af43a9d1-accd-4d0a-89f5-09e88ed24e1a 2025-09-12 19:06:13,663 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-94305561:ctest-vn4-09389393', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-94305561', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8050478231320609329', 'uuid-lslong': '10918827097402522041'}, 'enable': 'true', 'created': '2025-09-12T19:06:12', 'last-modified': '2025-09-12T19:06:12', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.665788'} 2025-09-12 19:06:13,668 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-12 19:06:13,668 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-09389393 passed 2025-09-12 19:06:13,668 - DEBUG - ====Verifying policy data for ctest-vn4-09389393 in API_Server ====== 2025-09-12 19:06:13,668 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-09-12 19:06:13,672 - DEBUG - Requesting: http://10.0.0.254:8082/domain/8b549fbf-6c4f-45d2-bc08-d95538bf0472 2025-09-12 19:06:13,681 - DEBUG - Requesting: http://10.0.0.254:8082/project/39bb158c-1cfb-4553-8d0c-ad00fa3b822f 2025-09-12 19:06:13,748 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/6fb90b4c-51e1-4231-9787-7765089639b9 2025-09-12 19:06:13,757 - DEBUG - ==>Verifying data for policy with id: 6030ef8e-3db7-47b2-afaf-322ef457f657, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-94305561', 'ctest-policy1-46030768'] 2025-09-12 19:06:13,757 - INFO - VN ctest-vn4-09389393 Policy verification: verify_vn_policy_in_api_server, status: True 2025-09-12 19:06:13,757 - DEBUG - Verifying the vn in opserver 2025-09-12 19:06:13,757 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-94305561:ctest-vn4-09389393 virtual network link through opserver 10.0.0.254 2025-09-12 19:06:13,757 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-09-12 19:06:14,050 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-09-12 19:06:14,101 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-94305561:ctest-vn4-09389393', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-94305561:ctest-vn4-09389393?flat'} 2025-09-12 19:06:14,101 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-94305561:ctest-vn4-09389393 is found in opserver 2025-09-12 19:06:14,110 - DEBUG - Do not have enough data to verify VN in agent 2025-09-12 19:06:14,114 - DEBUG - VRF ids for VN ctest-vn4-09389393: {} 2025-09-12 19:06:14,114 - DEBUG - ====Verifying data for ctest-policy1-46030768 in API_Server ====== 2025-09-12 19:06:14,114 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-09-12 19:06:14,119 - DEBUG - Requesting: http://10.0.0.254:8082/domain/8b549fbf-6c4f-45d2-bc08-d95538bf0472 2025-09-12 19:06:14,129 - DEBUG - Requesting: http://10.0.0.254:8082/project/39bb158c-1cfb-4553-8d0c-ad00fa3b822f 2025-09-12 19:06:14,192 - DEBUG - Requesting: http://10.0.0.254:8082/network-policy/6030ef8e-3db7-47b2-afaf-322ef457f657 2025-09-12 19:06:14,200 - INFO - Verified policy ctest-policy1-46030768 in API Server, Result: True 2025-09-12 19:06:14,200 - INFO - Done with setup and verification, moving onto test .. 2025-09-12 19:06:14,206 - INFO - Deleting VN ctest-vn4-09389393 2025-09-12 19:06:14,373 - DEBUG - Response for deleting network () 2025-09-12 19:06:14,374 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/c7da8307-e255-42bb-b6f5-0c7f1aab448b 2025-09-12 19:06:14,378 - DEBUG - Response Code: 404 2025-09-12 19:06:14,379 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-09-12 19:06:14,384 - DEBUG - Requesting: http://10.0.0.254:8082/domain/8b549fbf-6c4f-45d2-bc08-d95538bf0472 2025-09-12 19:06:14,435 - DEBUG - Requesting: http://10.0.0.254:8082/project/39bb158c-1cfb-4553-8d0c-ad00fa3b822f 2025-09-12 19:06:14,506 - INFO - Validated that VN ctest-vn4-09389393 is not found in API Server 2025-09-12 19:06:14,516 - DEBUG - VN ctest-vn4-09389393 is not present in Agent 10.0.0.254 2025-09-12 19:06:14,516 - INFO - Validated that VN ctest-vn4-09389393 is not in any agent 2025-09-12 19:06:14,527 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-09389393 info 2025-09-12 19:06:14,550 - INFO - Deleted policy ctest-policy1-46030768 2025-09-12 19:06:14,710 - DEBUG - policy ctest-policy1-46030768 is not found in API Server 2025-09-12 19:06:14,963 - DEBUG - No XMPP flaps were noticed during the test 2025-09-12 19:06:14,963 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:03] 2025-09-12 19:06:14,963 - INFO - -------------------------------------------------------------------------------- 2025-09-12 19:06:15,252 - DEBUG - No XMPP flaps were noticed during the test 2025-09-12 19:06:15,252 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-09-12 19:06:15,252 - INFO - -------------------------------------------------------------------------------- 2025-09-12 19:06:15,894 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-94305561, ID : 39bb158c-1cfb-4553-8d0c-ad00fa3b822f