2025-10-31 00:21:08,395 - INFO - Domain Default found not creating 2025-10-31 00:21:08,554 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-46123547 not found, creating it 2025-10-31 00:21:09,012 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-46123547, ID : 3723e498-c1e6-4fe7-9d19-439b1b4d05bf 2025-10-31 00:21:10,608 - INFO - ================================================================================ 2025-10-31 00:21:10,609 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-31 00:21:10,878 - DEBUG - Nothing to compare xmpp stats {'10.0.0.245': {'10.20.0.14': '0'}} with 2025-10-31 00:21:10,878 - INFO - Initial checks done. Running the testcase now 2025-10-31 00:21:10,878 - INFO - 2025-10-31 00:21:10,878 - INFO - ================================================================================ 2025-10-31 00:21:10,878 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-31 00:21:10,878 - 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 00:21:11,173 - DEBUG - Nothing to compare xmpp stats {'10.0.0.245': {'10.20.0.14': '0'}} with 2025-10-31 00:21:11,173 - INFO - Initial checks done. Running the testcase now 2025-10-31 00:21:11,173 - INFO - 2025-10-31 00:21:11,578 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-46123547:ctest-vn4-47425004, 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-46123547:ctest-vn4-47425004, 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-46123547:ctest-vn4-47425004, 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-46123547:ctest-vn4-47425004, 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 00:21:12,099 - DEBUG - Response for create_network : {'network': {'id': '9ce5f628-c0d5-45ba-a81f-a9b753bd3009', 'name': 'ctest-vn4-47425004', 'tenant_id': '3723e498c1e64fe79d19439b1b4d05bf', 'project_id': '3723e498c1e64fe79d19439b1b4d05bf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-46123547', 'ctest-vn4-47425004'], 'port_security_enabled': True, 'description': ''}} 2025-10-31 00:21:12,294 - DEBUG - Response for create_subnet : {'subnet': {'id': '90446d57-990a-401c-ad7f-fc7819411d5d', 'name': '', 'tenant_id': '3723e498c1e64fe79d19439b1b4d05bf', 'network_id': '9ce5f628-c0d5-45ba-a81f-a9b753bd3009', 'ip_version': 4, 'cidr': '197.162.148.64/26', 'allocation_pools': [{'start': '197.162.148.66', 'end': '197.162.148.126'}], 'gateway_ip': '197.162.148.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '197.162.148.66', 'tags': [], 'project_id': '3723e498c1e64fe79d19439b1b4d05bf'}} 2025-10-31 00:21:12,472 - DEBUG - Response for create_subnet : {'subnet': {'id': '4f8b792e-4d30-431b-83a6-03b480ac964f', 'name': '', 'tenant_id': '3723e498c1e64fe79d19439b1b4d05bf', 'network_id': '9ce5f628-c0d5-45ba-a81f-a9b753bd3009', 'ip_version': 6, 'cidr': '395e:79a8:25b8:1d2b:ca3f:ae2d::/96', 'allocation_pools': [{'start': '395e:79a8:25b8:1d2b:ca3f:ae2d:0:2', 'end': '395e:79a8:25b8:1d2b:ca3f:ae2d:ffff:fffe'}], 'gateway_ip': '395e:79a8:25b8:1d2b:ca3f:ae2d:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '395e:79a8:25b8:1d2b:ca3f:ae2d:0:2', 'tags': [], 'project_id': '3723e498c1e64fe79d19439b1b4d05bf'}} 2025-10-31 00:21:12,494 - INFO - Created VN ctest-vn4-47425004 2025-10-31 00:21:12,545 - DEBUG - VN ctest-vn4-47425004 UUID is 9ce5f628-c0d5-45ba-a81f-a9b753bd3009 2025-10-31 00:21:12,756 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9ce5f628-c0d5-45ba-a81f-a9b753bd3009', 'name': 'ctest-vn4-47425004', 'tenant_id': '3723e498c1e64fe79d19439b1b4d05bf', 'project_id': '3723e498c1e64fe79d19439b1b4d05bf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['90446d57-990a-401c-ad7f-fc7819411d5d', '4f8b792e-4d30-431b-83a6-03b480ac964f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-46123547', 'ctest-vn4-47425004'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-46123547', 'ctest-policy1-33771474']], 'subnet_ipam': [{'subnet_cidr': '197.162.148.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '395e:79a8:25b8:1d2b:ca3f:ae2d::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-31 00:21:12,917 - DEBUG - Requesting: http://10.0.0.245:8082/domains 2025-10-31 00:21:13,256 - DEBUG - Requesting: http://10.0.0.245:8082/domains 2025-10-31 00:21:13,288 - DEBUG - Requesting: http://10.0.0.245:8082/domain/3a77759c-6aac-41d5-8904-ab8f3949a8c5 2025-10-31 00:21:13,301 - DEBUG - Requesting: http://10.0.0.245:8082/project/3723e498-c1e6-4fe7-9d19-439b1b4d05bf 2025-10-31 00:21:13,377 - DEBUG - Requesting: http://10.0.0.245:8082/virtual-network/9ce5f628-c0d5-45ba-a81f-a9b753bd3009 2025-10-31 00:21:13,390 - DEBUG - Requesting: http://10.0.0.245:8082/virtual-network/9ce5f628-c0d5-45ba-a81f-a9b753bd3009 2025-10-31 00:21:13,403 - DEBUG - Requesting: http://10.0.0.245:8082/routing-instance/ade5075f-5ef5-499c-8a77-297837436d87 2025-10-31 00:21:13,410 - DEBUG - Requesting: http://10.0.0.245:8082/routing-instance/ade5075f-5ef5-499c-8a77-297837436d87 2025-10-31 00:21:13,417 - DEBUG - Requesting: http://10.0.0.245:8082/route-target/2c721cf3-ac5f-498e-a611-7c445b06d1b6 2025-10-31 00:21:13,423 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-31 00:21:13,423 - DEBUG - Requesting: http://10.0.0.245:8082/virtual-network/9ce5f628-c0d5-45ba-a81f-a9b753bd3009 2025-10-31 00:21:13,433 - DEBUG - Requesting: http://10.0.0.245:8082/routing-instance/ade5075f-5ef5-499c-8a77-297837436d87 2025-10-31 00:21:13,449 - INFO - Verified VN network id 11 for VN 9ce5f628-c0d5-45ba-a81f-a9b753bd3009 2025-10-31 00:21:13,449 - INFO - Verifications in API Server for VN ctest-vn4-47425004 passed 2025-10-31 00:21:13,449 - DEBUG - Requesting: http://10.0.0.245:8082/virtual-network/9ce5f628-c0d5-45ba-a81f-a9b753bd3009 2025-10-31 00:21:13,461 - DEBUG - Requesting: http://10.0.0.245:8082/routing-instance/ade5075f-5ef5-499c-8a77-297837436d87 2025-10-31 00:21:13,468 - DEBUG - Requesting: http://10.0.0.245:8082/routing-instance/ade5075f-5ef5-499c-8a77-297837436d87 2025-10-31 00:21:13,476 - DEBUG - Requesting: http://10.0.0.245:8082/route-target/2c721cf3-ac5f-498e-a611-7c445b06d1b6 2025-10-31 00:21:13,488 - DEBUG - Control-node 10.0.0.245 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-46123547:ctest-vn4-47425004', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-46123547', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11305713094477825466', 'uuid-lslong': '12114588127498940425'}, 'enable': 'true', 'created': '2025-10-31T00:21:12', 'last-modified': '2025-10-31T00:21:12', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.763206'} 2025-10-31 00:21:13,494 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-31 00:21:13,495 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-47425004 passed 2025-10-31 00:21:13,495 - DEBUG - ====Verifying policy data for ctest-vn4-47425004 in API_Server ====== 2025-10-31 00:21:13,495 - DEBUG - Requesting: http://10.0.0.245:8082/domains 2025-10-31 00:21:13,500 - DEBUG - Requesting: http://10.0.0.245:8082/domain/3a77759c-6aac-41d5-8904-ab8f3949a8c5 2025-10-31 00:21:13,576 - DEBUG - Requesting: http://10.0.0.245:8082/project/3723e498-c1e6-4fe7-9d19-439b1b4d05bf 2025-10-31 00:21:13,647 - DEBUG - Requesting: http://10.0.0.245:8082/virtual-network/9ce5f628-c0d5-45ba-a81f-a9b753bd3009 2025-10-31 00:21:13,657 - DEBUG - ==>Verifying data for policy with id: a149bd86-e60e-405b-b376-abd226bfb2be, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-46123547', 'ctest-policy1-33771474'] 2025-10-31 00:21:13,657 - INFO - VN ctest-vn4-47425004 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-31 00:21:13,657 - DEBUG - Verifying the vn in opserver 2025-10-31 00:21:13,657 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-46123547:ctest-vn4-47425004 virtual network link through opserver 10.0.0.245 2025-10-31 00:21:13,657 - DEBUG - Requesting: http://10.0.0.245:8081/analytics/uves/virtual-networks 2025-10-31 00:21:14,003 - DEBUG - Requesting: http://10.0.0.245:8081/analytics/uves/virtual-networks 2025-10-31 00:21:14,082 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-46123547:ctest-vn4-47425004', 'href': 'http://10.0.0.245:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-46123547:ctest-vn4-47425004?flat'} 2025-10-31 00:21:14,082 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-46123547:ctest-vn4-47425004 is found in opserver 2025-10-31 00:21:14,094 - DEBUG - Do not have enough data to verify VN in agent 2025-10-31 00:21:14,100 - DEBUG - VRF ids for VN ctest-vn4-47425004: {} 2025-10-31 00:21:14,100 - DEBUG - ====Verifying data for ctest-policy1-33771474 in API_Server ====== 2025-10-31 00:21:14,100 - DEBUG - Requesting: http://10.0.0.245:8082/domains 2025-10-31 00:21:14,107 - DEBUG - Requesting: http://10.0.0.245:8082/domain/3a77759c-6aac-41d5-8904-ab8f3949a8c5 2025-10-31 00:21:14,118 - DEBUG - Requesting: http://10.0.0.245:8082/project/3723e498-c1e6-4fe7-9d19-439b1b4d05bf 2025-10-31 00:21:14,191 - DEBUG - Requesting: http://10.0.0.245:8082/network-policy/a149bd86-e60e-405b-b376-abd226bfb2be 2025-10-31 00:21:14,201 - INFO - Verified policy ctest-policy1-33771474 in API Server, Result: True 2025-10-31 00:21:14,201 - INFO - Done with setup and verification, moving onto test .. 2025-10-31 00:21:14,211 - INFO - Deleting VN ctest-vn4-47425004 2025-10-31 00:21:14,357 - DEBUG - Response for deleting network () 2025-10-31 00:21:14,358 - DEBUG - Requesting: http://10.0.0.245:8082/routing-instance/ade5075f-5ef5-499c-8a77-297837436d87 2025-10-31 00:21:14,364 - DEBUG - Response Code: 404 2025-10-31 00:21:14,364 - DEBUG - Requesting: http://10.0.0.245:8082/domains 2025-10-31 00:21:14,370 - DEBUG - Requesting: http://10.0.0.245:8082/domain/3a77759c-6aac-41d5-8904-ab8f3949a8c5 2025-10-31 00:21:14,427 - DEBUG - Requesting: http://10.0.0.245:8082/project/3723e498-c1e6-4fe7-9d19-439b1b4d05bf 2025-10-31 00:21:14,505 - INFO - Validated that VN ctest-vn4-47425004 is not found in API Server 2025-10-31 00:21:14,518 - DEBUG - VN ctest-vn4-47425004 is not present in Agent 10.0.0.245 2025-10-31 00:21:14,518 - INFO - Validated that VN ctest-vn4-47425004 is not in any agent 2025-10-31 00:21:14,535 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-47425004 info 2025-10-31 00:21:14,565 - INFO - Deleted policy ctest-policy1-33771474 2025-10-31 00:21:14,741 - DEBUG - policy ctest-policy1-33771474 is not found in API Server 2025-10-31 00:21:15,014 - DEBUG - No XMPP flaps were noticed during the test 2025-10-31 00:21:15,014 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2025-10-31 00:21:15,014 - INFO - -------------------------------------------------------------------------------- 2025-10-31 00:21:15,312 - DEBUG - No XMPP flaps were noticed during the test 2025-10-31 00:21:15,312 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2025-10-31 00:21:15,313 - INFO - -------------------------------------------------------------------------------- 2025-10-31 00:21:16,047 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-46123547, ID : 3723e498-c1e6-4fe7-9d19-439b1b4d05bf