2025-10-31 03:27:41,846 - INFO - Domain Default found not creating 2025-10-31 03:27:41,987 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-19055202 not found, creating it 2025-10-31 03:27:42,439 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-19055202, ID : 762dfe6e-d94a-4e7f-a450-632ef7042a6c 2025-10-31 03:27:44,000 - INFO - ================================================================================ 2025-10-31 03:27:44,000 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-31 03:27:44,256 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.14': '0'}} with 2025-10-31 03:27:44,257 - INFO - Initial checks done. Running the testcase now 2025-10-31 03:27:44,257 - INFO - 2025-10-31 03:27:44,257 - INFO - ================================================================================ 2025-10-31 03:27:44,257 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-31 03:27:44,257 - 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-31 03:27:44,544 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.14': '0'}} with 2025-10-31 03:27:44,544 - INFO - Initial checks done. Running the testcase now 2025-10-31 03:27:44,544 - INFO - 2025-10-31 03:27:44,884 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-19055202:ctest-vn4-01491681, 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-19055202:ctest-vn4-01491681, 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-19055202:ctest-vn4-01491681, 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-19055202:ctest-vn4-01491681, 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-31 03:27:45,376 - DEBUG - Response for create_network : {'network': {'id': '99bcca71-1626-4589-a88d-156238967eee', 'name': 'ctest-vn4-01491681', 'tenant_id': '762dfe6ed94a4e7fa450632ef7042a6c', 'project_id': '762dfe6ed94a4e7fa450632ef7042a6c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-19055202', 'ctest-vn4-01491681'], 'port_security_enabled': True, 'description': ''}} 2025-10-31 03:27:45,578 - DEBUG - Response for create_subnet : {'subnet': {'id': '9da85614-f7bd-492e-8df3-2b8dd46be674', 'name': '', 'tenant_id': '762dfe6ed94a4e7fa450632ef7042a6c', 'network_id': '99bcca71-1626-4589-a88d-156238967eee', 'ip_version': 4, 'cidr': '147.102.20.64/26', 'allocation_pools': [{'start': '147.102.20.66', 'end': '147.102.20.126'}], 'gateway_ip': '147.102.20.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '147.102.20.66', 'tags': [], 'project_id': '762dfe6ed94a4e7fa450632ef7042a6c'}} 2025-10-31 03:27:45,731 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ad92b241-4d40-4b45-8f46-a85ab4151661', 'name': '', 'tenant_id': '762dfe6ed94a4e7fa450632ef7042a6c', 'network_id': '99bcca71-1626-4589-a88d-156238967eee', 'ip_version': 6, 'cidr': '2426:ce46:5c56:439e:95da:367d::/96', 'allocation_pools': [{'start': '2426:ce46:5c56:439e:95da:367d:0:2', 'end': '2426:ce46:5c56:439e:95da:367d:ffff:fffe'}], 'gateway_ip': '2426:ce46:5c56:439e:95da:367d:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2426:ce46:5c56:439e:95da:367d:0:2', 'tags': [], 'project_id': '762dfe6ed94a4e7fa450632ef7042a6c'}} 2025-10-31 03:27:45,749 - INFO - Created VN ctest-vn4-01491681 2025-10-31 03:27:45,800 - DEBUG - VN ctest-vn4-01491681 UUID is 99bcca71-1626-4589-a88d-156238967eee 2025-10-31 03:27:45,993 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '99bcca71-1626-4589-a88d-156238967eee', 'name': 'ctest-vn4-01491681', 'tenant_id': '762dfe6ed94a4e7fa450632ef7042a6c', 'project_id': '762dfe6ed94a4e7fa450632ef7042a6c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9da85614-f7bd-492e-8df3-2b8dd46be674', 'ad92b241-4d40-4b45-8f46-a85ab4151661'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-19055202', 'ctest-vn4-01491681'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-19055202', 'ctest-policy1-06529615']], 'subnet_ipam': [{'subnet_cidr': '147.102.20.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2426:ce46:5c56:439e:95da:367d::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-31 03:27:46,148 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-31 03:27:46,439 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-31 03:27:46,465 - DEBUG - Requesting: http://10.0.0.254:8082/domain/7e75470a-6a69-41bb-a8af-f2f0975c830f 2025-10-31 03:27:46,476 - DEBUG - Requesting: http://10.0.0.254:8082/project/762dfe6e-d94a-4e7f-a450-632ef7042a6c 2025-10-31 03:27:46,545 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/99bcca71-1626-4589-a88d-156238967eee 2025-10-31 03:27:46,555 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/99bcca71-1626-4589-a88d-156238967eee 2025-10-31 03:27:46,564 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/3a7513d2-5d64-44fc-8040-591908b460db 2025-10-31 03:27:46,570 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/3a7513d2-5d64-44fc-8040-591908b460db 2025-10-31 03:27:46,576 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/79910180-ef2a-47a2-9ed3-17069fef6c6b 2025-10-31 03:27:46,581 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-31 03:27:46,581 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/99bcca71-1626-4589-a88d-156238967eee 2025-10-31 03:27:46,591 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/3a7513d2-5d64-44fc-8040-591908b460db 2025-10-31 03:27:46,605 - INFO - Verified VN network id 11 for VN 99bcca71-1626-4589-a88d-156238967eee 2025-10-31 03:27:46,605 - INFO - Verifications in API Server for VN ctest-vn4-01491681 passed 2025-10-31 03:27:46,605 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/99bcca71-1626-4589-a88d-156238967eee 2025-10-31 03:27:46,615 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/3a7513d2-5d64-44fc-8040-591908b460db 2025-10-31 03:27:46,621 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/3a7513d2-5d64-44fc-8040-591908b460db 2025-10-31 03:27:46,629 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/79910180-ef2a-47a2-9ed3-17069fef6c6b 2025-10-31 03:27:46,640 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-19055202:ctest-vn4-01491681', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-19055202', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11077951770476299657', 'uuid-lslong': '12145387281688461038'}, 'enable': 'true', 'created': '2025-10-31T03:27:45', 'last-modified': '2025-10-31T03:27:45', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.669005'} 2025-10-31 03:27:46,646 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-31 03:27:46,647 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-01491681 passed 2025-10-31 03:27:46,647 - DEBUG - ====Verifying policy data for ctest-vn4-01491681 in API_Server ====== 2025-10-31 03:27:46,647 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-31 03:27:46,651 - DEBUG - Requesting: http://10.0.0.254:8082/domain/7e75470a-6a69-41bb-a8af-f2f0975c830f 2025-10-31 03:27:46,661 - DEBUG - Requesting: http://10.0.0.254:8082/project/762dfe6e-d94a-4e7f-a450-632ef7042a6c 2025-10-31 03:27:46,728 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/99bcca71-1626-4589-a88d-156238967eee 2025-10-31 03:27:46,736 - DEBUG - ==>Verifying data for policy with id: 66136558-77b0-4a1b-88a9-b49728504bc6, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-19055202', 'ctest-policy1-06529615'] 2025-10-31 03:27:46,736 - INFO - VN ctest-vn4-01491681 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-31 03:27:46,737 - DEBUG - Verifying the vn in opserver 2025-10-31 03:27:46,737 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-19055202:ctest-vn4-01491681 virtual network link through opserver 10.0.0.254 2025-10-31 03:27:46,737 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-10-31 03:27:47,025 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-10-31 03:27:47,081 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-19055202:ctest-vn4-01491681', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-19055202:ctest-vn4-01491681?flat'} 2025-10-31 03:27:47,081 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-19055202:ctest-vn4-01491681 is found in opserver 2025-10-31 03:27:47,090 - DEBUG - Do not have enough data to verify VN in agent 2025-10-31 03:27:47,094 - DEBUG - VRF ids for VN ctest-vn4-01491681: {} 2025-10-31 03:27:47,095 - DEBUG - ====Verifying data for ctest-policy1-06529615 in API_Server ====== 2025-10-31 03:27:47,095 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-31 03:27:47,099 - DEBUG - Requesting: http://10.0.0.254:8082/domain/7e75470a-6a69-41bb-a8af-f2f0975c830f 2025-10-31 03:27:47,109 - DEBUG - Requesting: http://10.0.0.254:8082/project/762dfe6e-d94a-4e7f-a450-632ef7042a6c 2025-10-31 03:27:47,176 - DEBUG - Requesting: http://10.0.0.254:8082/network-policy/66136558-77b0-4a1b-88a9-b49728504bc6 2025-10-31 03:27:47,185 - INFO - Verified policy ctest-policy1-06529615 in API Server, Result: True 2025-10-31 03:27:47,185 - INFO - Done with setup and verification, moving onto test .. 2025-10-31 03:27:47,193 - INFO - Deleting VN ctest-vn4-01491681 2025-10-31 03:27:47,299 - DEBUG - Response for deleting network () 2025-10-31 03:27:47,299 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/3a7513d2-5d64-44fc-8040-591908b460db 2025-10-31 03:27:47,304 - DEBUG - Response Code: 404 2025-10-31 03:27:47,304 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-31 03:27:47,309 - DEBUG - Requesting: http://10.0.0.254:8082/domain/7e75470a-6a69-41bb-a8af-f2f0975c830f 2025-10-31 03:27:47,361 - DEBUG - Requesting: http://10.0.0.254:8082/project/762dfe6e-d94a-4e7f-a450-632ef7042a6c 2025-10-31 03:27:47,428 - INFO - Validated that VN ctest-vn4-01491681 is not found in API Server 2025-10-31 03:27:47,437 - DEBUG - VN ctest-vn4-01491681 is not present in Agent 10.0.0.254 2025-10-31 03:27:47,437 - INFO - Validated that VN ctest-vn4-01491681 is not in any agent 2025-10-31 03:27:47,450 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-01491681 info 2025-10-31 03:27:47,475 - INFO - Deleted policy ctest-policy1-06529615 2025-10-31 03:27:47,636 - DEBUG - policy ctest-policy1-06529615 is not found in API Server 2025-10-31 03:27:47,889 - DEBUG - No XMPP flaps were noticed during the test
2025-10-31 03:27:47,889 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:03]
2025-10-31 03:27:47,889 - INFO - -------------------------------------------------------------------------------- 2025-10-31 03:27:48,181 - DEBUG - No XMPP flaps were noticed during the test
2025-10-31 03:27:48,181 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-10-31 03:27:48,181 - INFO - -------------------------------------------------------------------------------- 2025-10-31 03:27:49,205 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-19055202, ID : 762dfe6e-d94a-4e7f-a450-632ef7042a6c