2025-10-27 02:33:24,252 - INFO - Domain Default found not creating 2025-10-27 02:33:24,380 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-79572476 not found, creating it 2025-10-27 02:33:24,799 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-79572476, ID : b0eafa65-1fa6-44bc-8662-e96f01a37da4 2025-10-27 02:33:26,182 - INFO - ================================================================================ 2025-10-27 02:33:26,183 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-27 02:33:26,437 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.201': '0'}} with 2025-10-27 02:33:26,437 - INFO - Initial checks done. Running the testcase now 2025-10-27 02:33:26,437 - INFO - 2025-10-27 02:33:26,437 - INFO - ================================================================================ 2025-10-27 02:33:26,437 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-27 02:33:26,437 - 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-27 02:33:26,724 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.201': '0'}} with 2025-10-27 02:33:26,724 - INFO - Initial checks done. Running the testcase now 2025-10-27 02:33:26,724 - INFO - 2025-10-27 02:33:27,064 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-79572476:ctest-vn4-79547236, 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-79572476:ctest-vn4-79547236, 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-79572476:ctest-vn4-79547236, 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-79572476:ctest-vn4-79547236, 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-27 02:33:27,561 - DEBUG - Response for create_network : {'network': {'id': '991c1e8f-9a97-49b1-afab-24193db5aed2', 'name': 'ctest-vn4-79547236', 'tenant_id': 'b0eafa651fa644bc8662e96f01a37da4', 'project_id': 'b0eafa651fa644bc8662e96f01a37da4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-79572476', 'ctest-vn4-79547236'], 'port_security_enabled': True, 'description': ''}} 2025-10-27 02:33:27,724 - DEBUG - Response for create_subnet : {'subnet': {'id': '072a90cd-5772-4da6-bc9d-114f122a9560', 'name': '', 'tenant_id': 'b0eafa651fa644bc8662e96f01a37da4', 'network_id': '991c1e8f-9a97-49b1-afab-24193db5aed2', 'ip_version': 4, 'cidr': '219.68.18.128/26', 'allocation_pools': [{'start': '219.68.18.130', 'end': '219.68.18.190'}], 'gateway_ip': '219.68.18.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '219.68.18.130', 'tags': [], 'project_id': 'b0eafa651fa644bc8662e96f01a37da4'}} 2025-10-27 02:33:27,860 - DEBUG - Response for create_subnet : {'subnet': {'id': '2b9859a4-7370-4b35-b92f-77153737de06', 'name': '', 'tenant_id': 'b0eafa651fa644bc8662e96f01a37da4', 'network_id': '991c1e8f-9a97-49b1-afab-24193db5aed2', 'ip_version': 6, 'cidr': '2bcc:ed54:78be:dcd4:ea25:b645::/96', 'allocation_pools': [{'start': '2bcc:ed54:78be:dcd4:ea25:b645:0:2', 'end': '2bcc:ed54:78be:dcd4:ea25:b645:ffff:fffe'}], 'gateway_ip': '2bcc:ed54:78be:dcd4:ea25:b645:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2bcc:ed54:78be:dcd4:ea25:b645:0:2', 'tags': [], 'project_id': 'b0eafa651fa644bc8662e96f01a37da4'}} 2025-10-27 02:33:27,878 - INFO - Created VN ctest-vn4-79547236 2025-10-27 02:33:27,927 - DEBUG - VN ctest-vn4-79547236 UUID is 991c1e8f-9a97-49b1-afab-24193db5aed2 2025-10-27 02:33:28,129 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '991c1e8f-9a97-49b1-afab-24193db5aed2', 'name': 'ctest-vn4-79547236', 'tenant_id': 'b0eafa651fa644bc8662e96f01a37da4', 'project_id': 'b0eafa651fa644bc8662e96f01a37da4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['072a90cd-5772-4da6-bc9d-114f122a9560', '2b9859a4-7370-4b35-b92f-77153737de06'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-79572476', 'ctest-vn4-79547236'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-79572476', 'ctest-policy1-90003742']], 'subnet_ipam': [{'subnet_cidr': '219.68.18.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2bcc:ed54:78be:dcd4:ea25:b645::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-27 02:33:28,287 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2025-10-27 02:33:28,584 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2025-10-27 02:33:28,611 - DEBUG - Requesting: http://10.0.0.41:8082/domain/96b84c01-413a-4672-841c-1934c18e2ad4 2025-10-27 02:33:28,622 - DEBUG - Requesting: http://10.0.0.41:8082/project/b0eafa65-1fa6-44bc-8662-e96f01a37da4 2025-10-27 02:33:28,694 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/991c1e8f-9a97-49b1-afab-24193db5aed2 2025-10-27 02:33:28,709 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/991c1e8f-9a97-49b1-afab-24193db5aed2 2025-10-27 02:33:28,720 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/b247288a-7e31-40bb-8ab2-06e5a3e1093d 2025-10-27 02:33:28,728 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/b247288a-7e31-40bb-8ab2-06e5a3e1093d 2025-10-27 02:33:28,734 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/3465ce1c-c83d-4aa4-9dac-20de234dd14b 2025-10-27 02:33:28,740 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-27 02:33:28,740 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/991c1e8f-9a97-49b1-afab-24193db5aed2 2025-10-27 02:33:28,748 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/b247288a-7e31-40bb-8ab2-06e5a3e1093d 2025-10-27 02:33:28,763 - INFO - Verified VN network id 12 for VN 991c1e8f-9a97-49b1-afab-24193db5aed2 2025-10-27 02:33:28,763 - INFO - Verifications in API Server for VN ctest-vn4-79547236 passed 2025-10-27 02:33:28,763 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/991c1e8f-9a97-49b1-afab-24193db5aed2 2025-10-27 02:33:28,776 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/b247288a-7e31-40bb-8ab2-06e5a3e1093d 2025-10-27 02:33:28,784 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/b247288a-7e31-40bb-8ab2-06e5a3e1093d 2025-10-27 02:33:28,791 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/3465ce1c-c83d-4aa4-9dac-20de234dd14b 2025-10-27 02:33:28,804 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-79572476:ctest-vn4-79547236', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-79572476', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11032726789273635249', 'uuid-lslong': '12658250868483010258'}, 'enable': 'true', 'created': '2025-10-27T02:33:27', 'last-modified': '2025-10-27T02:33:28', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.699534'} 2025-10-27 02:33:28,810 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-27 02:33:28,810 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-79547236 passed 2025-10-27 02:33:28,810 - DEBUG - ====Verifying policy data for ctest-vn4-79547236 in API_Server ====== 2025-10-27 02:33:28,810 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2025-10-27 02:33:28,815 - DEBUG - Requesting: http://10.0.0.41:8082/domain/96b84c01-413a-4672-841c-1934c18e2ad4 2025-10-27 02:33:28,825 - DEBUG - Requesting: http://10.0.0.41:8082/project/b0eafa65-1fa6-44bc-8662-e96f01a37da4 2025-10-27 02:33:28,909 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/991c1e8f-9a97-49b1-afab-24193db5aed2 2025-10-27 02:33:28,921 - DEBUG - ==>Verifying data for policy with id: 35109e67-95e8-45c9-a7a0-6eb5596de5f1, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-79572476', 'ctest-policy1-90003742'] 2025-10-27 02:33:28,921 - INFO - VN ctest-vn4-79547236 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-27 02:33:28,921 - DEBUG - Verifying the vn in opserver 2025-10-27 02:33:28,921 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-79572476:ctest-vn4-79547236 virtual network link through opserver 10.0.0.41 2025-10-27 02:33:28,921 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks 2025-10-27 02:33:29,220 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks 2025-10-27 02:33:29,284 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-79572476:ctest-vn4-79547236', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-79572476:ctest-vn4-79547236?flat'} 2025-10-27 02:33:29,284 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-79572476:ctest-vn4-79547236 is found in opserver 2025-10-27 02:33:29,296 - DEBUG - Do not have enough data to verify VN in agent 2025-10-27 02:33:29,299 - DEBUG - VRF ids for VN ctest-vn4-79547236: {} 2025-10-27 02:33:29,300 - DEBUG - ====Verifying data for ctest-policy1-90003742 in API_Server ====== 2025-10-27 02:33:29,300 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2025-10-27 02:33:29,306 - DEBUG - Requesting: http://10.0.0.41:8082/domain/96b84c01-413a-4672-841c-1934c18e2ad4 2025-10-27 02:33:29,318 - DEBUG - Requesting: http://10.0.0.41:8082/project/b0eafa65-1fa6-44bc-8662-e96f01a37da4 2025-10-27 02:33:29,388 - DEBUG - Requesting: http://10.0.0.41:8082/network-policy/35109e67-95e8-45c9-a7a0-6eb5596de5f1 2025-10-27 02:33:29,397 - INFO - Verified policy ctest-policy1-90003742 in API Server, Result: True 2025-10-27 02:33:29,397 - INFO - Done with setup and verification, moving onto test .. 2025-10-27 02:33:29,404 - INFO - Deleting VN ctest-vn4-79547236 2025-10-27 02:33:29,514 - DEBUG - Response for deleting network () 2025-10-27 02:33:29,515 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/b247288a-7e31-40bb-8ab2-06e5a3e1093d 2025-10-27 02:33:29,520 - DEBUG - Response Code: 404 2025-10-27 02:33:29,520 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2025-10-27 02:33:29,527 - DEBUG - Requesting: http://10.0.0.41:8082/domain/96b84c01-413a-4672-841c-1934c18e2ad4 2025-10-27 02:33:29,579 - DEBUG - Requesting: http://10.0.0.41:8082/project/b0eafa65-1fa6-44bc-8662-e96f01a37da4 2025-10-27 02:33:29,647 - INFO - Validated that VN ctest-vn4-79547236 is not found in API Server 2025-10-27 02:33:29,656 - DEBUG - VN ctest-vn4-79547236 is not present in Agent 10.0.0.41 2025-10-27 02:33:29,656 - INFO - Validated that VN ctest-vn4-79547236 is not in any agent 2025-10-27 02:33:29,668 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-79547236 info 2025-10-27 02:33:29,692 - INFO - Deleted policy ctest-policy1-90003742 2025-10-27 02:33:29,859 - DEBUG - policy ctest-policy1-90003742 is not found in API Server 2025-10-27 02:33:30,112 - DEBUG - No XMPP flaps were noticed during the test
2025-10-27 02:33:30,112 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-10-27 02:33:30,112 - INFO - -------------------------------------------------------------------------------- 2025-10-27 02:33:30,408 - DEBUG - No XMPP flaps were noticed during the test
2025-10-27 02:33:30,408 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-10-27 02:33:30,408 - INFO - -------------------------------------------------------------------------------- 2025-10-27 02:33:31,058 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-79572476, ID : b0eafa65-1fa6-44bc-8662-e96f01a37da4