2025-08-13 20:09:02,065 - INFO - Domain Default found not creating 2025-08-13 20:09:02,195 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-74503100 not found, creating it 2025-08-13 20:09:02,629 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-74503100, ID : 7e7ed40f-bb47-4169-9379-a39d7bccf8c2 2025-08-13 20:09:03,954 - INFO - ================================================================================ 2025-08-13 20:09:03,954 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-13 20:09:04,210 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2025-08-13 20:09:04,210 - INFO - Initial checks done. Running the testcase now 2025-08-13 20:09:04,210 - INFO - 2025-08-13 20:09:04,210 - INFO - ================================================================================ 2025-08-13 20:09:04,210 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-13 20:09:04,210 - 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-13 20:09:04,507 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2025-08-13 20:09:04,507 - INFO - Initial checks done. Running the testcase now 2025-08-13 20:09:04,507 - INFO - 2025-08-13 20:09:04,851 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-74503100:ctest-vn4-08397520, 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-74503100:ctest-vn4-08397520, 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-74503100:ctest-vn4-08397520, 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-74503100:ctest-vn4-08397520, 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-13 20:09:05,344 - DEBUG - Response for create_network : {'network': {'id': 'f6d52f23-5160-4666-a5b9-d7eaacd65c26', 'name': 'ctest-vn4-08397520', 'tenant_id': '7e7ed40fbb4741699379a39d7bccf8c2', 'project_id': '7e7ed40fbb4741699379a39d7bccf8c2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-74503100', 'ctest-vn4-08397520'], 'port_security_enabled': True, 'description': ''}} 2025-08-13 20:09:05,555 - DEBUG - Response for create_subnet : {'subnet': {'id': '22fb02d3-1343-4302-ab66-7072c58da749', 'name': '', 'tenant_id': '7e7ed40fbb4741699379a39d7bccf8c2', 'network_id': 'f6d52f23-5160-4666-a5b9-d7eaacd65c26', 'ip_version': 4, 'cidr': '186.187.2.0/26', 'allocation_pools': [{'start': '186.187.2.2', 'end': '186.187.2.62'}], 'gateway_ip': '186.187.2.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '186.187.2.2', 'tags': [], 'project_id': '7e7ed40fbb4741699379a39d7bccf8c2'}} 2025-08-13 20:09:05,728 - DEBUG - Response for create_subnet : {'subnet': {'id': '4f30cfe4-454e-4b1b-8ae5-ad6611f103ca', 'name': '', 'tenant_id': '7e7ed40fbb4741699379a39d7bccf8c2', 'network_id': 'f6d52f23-5160-4666-a5b9-d7eaacd65c26', 'ip_version': 6, 'cidr': '20d6:3791:9742:cf04:2b98:ceb8::/96', 'allocation_pools': [{'start': '20d6:3791:9742:cf04:2b98:ceb8:0:2', 'end': '20d6:3791:9742:cf04:2b98:ceb8:ffff:fffe'}], 'gateway_ip': '20d6:3791:9742:cf04:2b98:ceb8:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '20d6:3791:9742:cf04:2b98:ceb8:0:2', 'tags': [], 'project_id': '7e7ed40fbb4741699379a39d7bccf8c2'}} 2025-08-13 20:09:05,746 - INFO - Created VN ctest-vn4-08397520 2025-08-13 20:09:05,800 - DEBUG - VN ctest-vn4-08397520 UUID is f6d52f23-5160-4666-a5b9-d7eaacd65c26 2025-08-13 20:09:05,986 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f6d52f23-5160-4666-a5b9-d7eaacd65c26', 'name': 'ctest-vn4-08397520', 'tenant_id': '7e7ed40fbb4741699379a39d7bccf8c2', 'project_id': '7e7ed40fbb4741699379a39d7bccf8c2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['22fb02d3-1343-4302-ab66-7072c58da749', '4f30cfe4-454e-4b1b-8ae5-ad6611f103ca'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-74503100', 'ctest-vn4-08397520'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-74503100', 'ctest-policy1-41596820']], 'subnet_ipam': [{'subnet_cidr': '186.187.2.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '20d6:3791:9742:cf04:2b98:ceb8::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-13 20:09:06,152 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-08-13 20:09:06,443 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-08-13 20:09:06,469 - DEBUG - Requesting: http://10.0.0.38:8082/domain/1be515c1-fc31-40ee-bdde-556303b86a64 2025-08-13 20:09:06,484 - DEBUG - Requesting: http://10.0.0.38:8082/project/7e7ed40f-bb47-4169-9379-a39d7bccf8c2 2025-08-13 20:09:06,563 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f6d52f23-5160-4666-a5b9-d7eaacd65c26 2025-08-13 20:09:06,579 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f6d52f23-5160-4666-a5b9-d7eaacd65c26 2025-08-13 20:09:06,592 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3d3e8a60-c8cf-4847-8710-cbaf95d90360 2025-08-13 20:09:06,599 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3d3e8a60-c8cf-4847-8710-cbaf95d90360 2025-08-13 20:09:06,606 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/1de8ea03-cc40-4c49-96a9-f2cf846fd804 2025-08-13 20:09:06,613 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-13 20:09:06,613 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f6d52f23-5160-4666-a5b9-d7eaacd65c26 2025-08-13 20:09:06,623 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3d3e8a60-c8cf-4847-8710-cbaf95d90360 2025-08-13 20:09:06,637 - INFO - Verified VN network id 11 for VN f6d52f23-5160-4666-a5b9-d7eaacd65c26 2025-08-13 20:09:06,637 - INFO - Verifications in API Server for VN ctest-vn4-08397520 passed 2025-08-13 20:09:06,637 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f6d52f23-5160-4666-a5b9-d7eaacd65c26 2025-08-13 20:09:06,647 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3d3e8a60-c8cf-4847-8710-cbaf95d90360 2025-08-13 20:09:06,653 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3d3e8a60-c8cf-4847-8710-cbaf95d90360 2025-08-13 20:09:06,660 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/1de8ea03-cc40-4c49-96a9-f2cf846fd804 2025-08-13 20:09:06,671 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-74503100:ctest-vn4-08397520', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-74503100', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17786174132105266790', 'uuid-lslong': '11941813289871629350'}, 'enable': 'true', 'created': '2025-08-13T20:09:05', 'last-modified': '2025-08-13T20:09:05', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.712000'} 2025-08-13 20:09:06,678 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-13 20:09:06,678 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-08397520 passed 2025-08-13 20:09:06,678 - DEBUG - ====Verifying policy data for ctest-vn4-08397520 in API_Server ====== 2025-08-13 20:09:06,678 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-08-13 20:09:06,683 - DEBUG - Requesting: http://10.0.0.38:8082/domain/1be515c1-fc31-40ee-bdde-556303b86a64 2025-08-13 20:09:06,696 - DEBUG - Requesting: http://10.0.0.38:8082/project/7e7ed40f-bb47-4169-9379-a39d7bccf8c2 2025-08-13 20:09:06,765 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f6d52f23-5160-4666-a5b9-d7eaacd65c26 2025-08-13 20:09:06,776 - DEBUG - ==>Verifying data for policy with id: 210dcc1c-4f5b-4f37-976c-eb15f48ac11f, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-74503100', 'ctest-policy1-41596820'] 2025-08-13 20:09:06,776 - INFO - VN ctest-vn4-08397520 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-13 20:09:06,776 - DEBUG - Verifying the vn in opserver 2025-08-13 20:09:06,776 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-74503100:ctest-vn4-08397520 virtual network link through opserver 10.0.0.38 2025-08-13 20:09:06,776 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-08-13 20:09:07,078 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-08-13 20:09:07,148 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-74503100:ctest-vn4-08397520', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-74503100:ctest-vn4-08397520?flat'} 2025-08-13 20:09:07,148 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-74503100:ctest-vn4-08397520 is found in opserver 2025-08-13 20:09:07,160 - DEBUG - Do not have enough data to verify VN in agent 2025-08-13 20:09:07,165 - DEBUG - VRF ids for VN ctest-vn4-08397520: {} 2025-08-13 20:09:07,166 - DEBUG - ====Verifying data for ctest-policy1-41596820 in API_Server ====== 2025-08-13 20:09:07,166 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-08-13 20:09:07,171 - DEBUG - Requesting: http://10.0.0.38:8082/domain/1be515c1-fc31-40ee-bdde-556303b86a64 2025-08-13 20:09:07,182 - DEBUG - Requesting: http://10.0.0.38:8082/project/7e7ed40f-bb47-4169-9379-a39d7bccf8c2 2025-08-13 20:09:07,255 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/210dcc1c-4f5b-4f37-976c-eb15f48ac11f 2025-08-13 20:09:07,268 - INFO - Verified policy ctest-policy1-41596820 in API Server, Result: True 2025-08-13 20:09:07,268 - INFO - Done with setup and verification, moving onto test .. 2025-08-13 20:09:07,277 - INFO - Deleting VN ctest-vn4-08397520 2025-08-13 20:09:07,407 - DEBUG - Response for deleting network () 2025-08-13 20:09:07,407 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3d3e8a60-c8cf-4847-8710-cbaf95d90360 2025-08-13 20:09:07,412 - DEBUG - Response Code: 404 2025-08-13 20:09:07,413 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-08-13 20:09:07,417 - DEBUG - Requesting: http://10.0.0.38:8082/domain/1be515c1-fc31-40ee-bdde-556303b86a64 2025-08-13 20:09:07,468 - DEBUG - Requesting: http://10.0.0.38:8082/project/7e7ed40f-bb47-4169-9379-a39d7bccf8c2 2025-08-13 20:09:07,537 - INFO - Validated that VN ctest-vn4-08397520 is not found in API Server 2025-08-13 20:09:07,549 - DEBUG - VN ctest-vn4-08397520 is not present in Agent 10.0.0.38 2025-08-13 20:09:07,549 - INFO - Validated that VN ctest-vn4-08397520 is not in any agent 2025-08-13 20:09:07,564 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-08397520 info 2025-08-13 20:09:07,592 - INFO - Deleted policy ctest-policy1-41596820 2025-08-13 20:09:07,759 - DEBUG - policy ctest-policy1-41596820 is not found in API Server 2025-08-13 20:09:08,014 - DEBUG - No XMPP flaps were noticed during the test
2025-08-13 20:09:08,014 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-08-13 20:09:08,014 - INFO - -------------------------------------------------------------------------------- 2025-08-13 20:09:08,305 - DEBUG - No XMPP flaps were noticed during the test
2025-08-13 20:09:08,305 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2025-08-13 20:09:08,306 - INFO - -------------------------------------------------------------------------------- 2025-08-13 20:09:08,990 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-74503100, ID : 7e7ed40f-bb47-4169-9379-a39d7bccf8c2