2025-10-22 08:25:52,987 - INFO - Domain Default found not creating 2025-10-22 08:25:53,149 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-25284398 not found, creating it 2025-10-22 08:25:53,620 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-25284398, ID : ccd2e154-888e-4bf9-a809-091306edfc82 2025-10-22 08:25:55,056 - INFO - ================================================================================ 2025-10-22 08:25:55,056 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-22 08:25:55,309 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.254': '0'}} with 2025-10-22 08:25:55,309 - INFO - Initial checks done. Running the testcase now 2025-10-22 08:25:55,309 - INFO - 2025-10-22 08:25:55,309 - INFO - ================================================================================ 2025-10-22 08:25:55,309 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-22 08:25:55,309 - 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-22 08:25:55,596 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.254': '0'}} with 2025-10-22 08:25:55,596 - INFO - Initial checks done. Running the testcase now 2025-10-22 08:25:55,596 - INFO - 2025-10-22 08:25:55,950 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-25284398:ctest-vn4-78368520, 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-25284398:ctest-vn4-78368520, 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-25284398:ctest-vn4-78368520, 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-25284398:ctest-vn4-78368520, 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-22 08:25:56,474 - DEBUG - Response for create_network : {'network': {'id': '890c6f22-3f9a-48cc-97a3-fbbc7abee614', 'name': 'ctest-vn4-78368520', 'tenant_id': 'ccd2e154888e4bf9a809091306edfc82', 'project_id': 'ccd2e154888e4bf9a809091306edfc82', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-25284398', 'ctest-vn4-78368520'], 'port_security_enabled': True, 'description': ''}} 2025-10-22 08:25:56,693 - DEBUG - Response for create_subnet : {'subnet': {'id': '6e968e45-741b-462e-a7f2-850bb90dfbb7', 'name': '', 'tenant_id': 'ccd2e154888e4bf9a809091306edfc82', 'network_id': '890c6f22-3f9a-48cc-97a3-fbbc7abee614', 'ip_version': 4, 'cidr': '23.28.183.64/26', 'allocation_pools': [{'start': '23.28.183.66', 'end': '23.28.183.126'}], 'gateway_ip': '23.28.183.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '23.28.183.66', 'tags': [], 'project_id': 'ccd2e154888e4bf9a809091306edfc82'}} 2025-10-22 08:25:56,890 - DEBUG - Response for create_subnet : {'subnet': {'id': '6e647d70-9f6f-4f72-b0a0-0851dbb9e157', 'name': '', 'tenant_id': 'ccd2e154888e4bf9a809091306edfc82', 'network_id': '890c6f22-3f9a-48cc-97a3-fbbc7abee614', 'ip_version': 6, 'cidr': '258e:2d66:c89f:7dcf:3e79:9384::/96', 'allocation_pools': [{'start': '258e:2d66:c89f:7dcf:3e79:9384:0:2', 'end': '258e:2d66:c89f:7dcf:3e79:9384:ffff:fffe'}], 'gateway_ip': '258e:2d66:c89f:7dcf:3e79:9384:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '258e:2d66:c89f:7dcf:3e79:9384:0:2', 'tags': [], 'project_id': 'ccd2e154888e4bf9a809091306edfc82'}} 2025-10-22 08:25:56,916 - INFO - Created VN ctest-vn4-78368520 2025-10-22 08:25:56,971 - DEBUG - VN ctest-vn4-78368520 UUID is 890c6f22-3f9a-48cc-97a3-fbbc7abee614 2025-10-22 08:25:57,255 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '890c6f22-3f9a-48cc-97a3-fbbc7abee614', 'name': 'ctest-vn4-78368520', 'tenant_id': 'ccd2e154888e4bf9a809091306edfc82', 'project_id': 'ccd2e154888e4bf9a809091306edfc82', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6e968e45-741b-462e-a7f2-850bb90dfbb7', '6e647d70-9f6f-4f72-b0a0-0851dbb9e157'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-25284398', 'ctest-vn4-78368520'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-25284398', 'ctest-policy1-69159150']], 'subnet_ipam': [{'subnet_cidr': '23.28.183.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '258e:2d66:c89f:7dcf:3e79:9384::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-22 08:25:57,411 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-10-22 08:25:57,707 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-10-22 08:25:57,737 - DEBUG - Requesting: http://10.0.0.141:8082/domain/df5e11c4-a1d4-42ad-a3e9-10e45e18461a 2025-10-22 08:25:57,749 - DEBUG - Requesting: http://10.0.0.141:8082/project/ccd2e154-888e-4bf9-a809-091306edfc82 2025-10-22 08:25:57,820 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/890c6f22-3f9a-48cc-97a3-fbbc7abee614 2025-10-22 08:25:57,833 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/890c6f22-3f9a-48cc-97a3-fbbc7abee614 2025-10-22 08:25:57,843 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/9b50f73b-f44c-4f49-80f2-2960d11e212a 2025-10-22 08:25:57,851 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/9b50f73b-f44c-4f49-80f2-2960d11e212a 2025-10-22 08:25:57,859 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/761c0a07-bcbb-40e7-8b33-eb5e83cf666b 2025-10-22 08:25:57,866 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-22 08:25:57,866 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/890c6f22-3f9a-48cc-97a3-fbbc7abee614 2025-10-22 08:25:57,875 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/9b50f73b-f44c-4f49-80f2-2960d11e212a 2025-10-22 08:25:57,890 - INFO - Verified VN network id 11 for VN 890c6f22-3f9a-48cc-97a3-fbbc7abee614 2025-10-22 08:25:57,890 - INFO - Verifications in API Server for VN ctest-vn4-78368520 passed 2025-10-22 08:25:57,890 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/890c6f22-3f9a-48cc-97a3-fbbc7abee614 2025-10-22 08:25:57,901 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/9b50f73b-f44c-4f49-80f2-2960d11e212a 2025-10-22 08:25:57,909 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/9b50f73b-f44c-4f49-80f2-2960d11e212a 2025-10-22 08:25:57,916 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/761c0a07-bcbb-40e7-8b33-eb5e83cf666b 2025-10-22 08:25:57,929 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-25284398:ctest-vn4-78368520', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-25284398', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9875390275803302092', 'uuid-lslong': '10926853907862709780'}, 'enable': 'true', 'created': '2025-10-22T08:25:56', 'last-modified': '2025-10-22T08:25:57', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.704645'} 2025-10-22 08:25:57,935 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-22 08:25:57,935 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-78368520 passed 2025-10-22 08:25:57,936 - DEBUG - ====Verifying policy data for ctest-vn4-78368520 in API_Server ====== 2025-10-22 08:25:57,936 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-10-22 08:25:57,942 - DEBUG - Requesting: http://10.0.0.141:8082/domain/df5e11c4-a1d4-42ad-a3e9-10e45e18461a 2025-10-22 08:25:57,954 - DEBUG - Requesting: http://10.0.0.141:8082/project/ccd2e154-888e-4bf9-a809-091306edfc82 2025-10-22 08:25:58,027 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/890c6f22-3f9a-48cc-97a3-fbbc7abee614 2025-10-22 08:25:58,038 - DEBUG - ==>Verifying data for policy with id: 2c10ddca-04d2-496a-a346-ae51cf49f340, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-25284398', 'ctest-policy1-69159150'] 2025-10-22 08:25:58,039 - INFO - VN ctest-vn4-78368520 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-22 08:25:58,039 - DEBUG - Verifying the vn in opserver 2025-10-22 08:25:58,039 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-25284398:ctest-vn4-78368520 virtual network link through opserver 10.0.0.141 2025-10-22 08:25:58,039 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2025-10-22 08:25:58,335 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2025-10-22 08:25:58,394 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-25284398:ctest-vn4-78368520', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-25284398:ctest-vn4-78368520?flat'} 2025-10-22 08:25:58,394 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-25284398:ctest-vn4-78368520 is found in opserver 2025-10-22 08:25:58,404 - DEBUG - Do not have enough data to verify VN in agent 2025-10-22 08:25:58,408 - DEBUG - VRF ids for VN ctest-vn4-78368520: {} 2025-10-22 08:25:58,409 - DEBUG - ====Verifying data for ctest-policy1-69159150 in API_Server ====== 2025-10-22 08:25:58,409 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-10-22 08:25:58,414 - DEBUG - Requesting: http://10.0.0.141:8082/domain/df5e11c4-a1d4-42ad-a3e9-10e45e18461a 2025-10-22 08:25:58,425 - DEBUG - Requesting: http://10.0.0.141:8082/project/ccd2e154-888e-4bf9-a809-091306edfc82 2025-10-22 08:25:58,499 - DEBUG - Requesting: http://10.0.0.141:8082/network-policy/2c10ddca-04d2-496a-a346-ae51cf49f340 2025-10-22 08:25:58,512 - INFO - Verified policy ctest-policy1-69159150 in API Server, Result: True 2025-10-22 08:25:58,512 - INFO - Done with setup and verification, moving onto test .. 2025-10-22 08:25:58,524 - INFO - Deleting VN ctest-vn4-78368520 2025-10-22 08:25:58,663 - DEBUG - Response for deleting network () 2025-10-22 08:25:58,663 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/9b50f73b-f44c-4f49-80f2-2960d11e212a 2025-10-22 08:25:58,668 - DEBUG - Response Code: 404 2025-10-22 08:25:58,668 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-10-22 08:25:58,674 - DEBUG - Requesting: http://10.0.0.141:8082/domain/df5e11c4-a1d4-42ad-a3e9-10e45e18461a 2025-10-22 08:25:58,729 - DEBUG - Requesting: http://10.0.0.141:8082/project/ccd2e154-888e-4bf9-a809-091306edfc82 2025-10-22 08:25:58,800 - INFO - Validated that VN ctest-vn4-78368520 is not found in API Server 2025-10-22 08:25:58,811 - DEBUG - VN ctest-vn4-78368520 is not present in Agent 10.0.0.141 2025-10-22 08:25:58,811 - INFO - Validated that VN ctest-vn4-78368520 is not in any agent 2025-10-22 08:25:58,824 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-78368520 info 2025-10-22 08:25:58,846 - INFO - Deleted policy ctest-policy1-69159150 2025-10-22 08:25:59,015 - DEBUG - policy ctest-policy1-69159150 is not found in API Server 2025-10-22 08:25:59,283 - DEBUG - No XMPP flaps were noticed during the test
2025-10-22 08:25:59,283 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-10-22 08:25:59,284 - INFO - -------------------------------------------------------------------------------- 2025-10-22 08:25:59,564 - DEBUG - No XMPP flaps were noticed during the test
2025-10-22 08:25:59,564 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-10-22 08:25:59,564 - INFO - -------------------------------------------------------------------------------- 2025-10-22 08:26:00,264 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-25284398, ID : ccd2e154-888e-4bf9-a809-091306edfc82