2025-08-11 15:50:54,819 - INFO - Domain Default found not creating 2025-08-11 15:50:54,938 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-35968890 not found, creating it 2025-08-11 15:50:55,347 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-35968890, ID : 0add3b08-8975-4621-af9d-158ad2cb77e9 2025-08-11 15:50:56,627 - INFO - ================================================================================ 2025-08-11 15:50:56,628 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-11 15:50:56,879 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.254': '0'}} with 2025-08-11 15:50:56,879 - INFO - Initial checks done. Running the testcase now 2025-08-11 15:50:56,879 - INFO - 2025-08-11 15:50:56,879 - INFO - ================================================================================ 2025-08-11 15:50:56,879 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-11 15:50:56,879 - 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-11 15:50:57,164 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.254': '0'}} with 2025-08-11 15:50:57,164 - INFO - Initial checks done. Running the testcase now 2025-08-11 15:50:57,164 - INFO - 2025-08-11 15:50:57,498 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-35968890:ctest-vn4-46830266, 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-35968890:ctest-vn4-46830266, 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-35968890:ctest-vn4-46830266, 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-35968890:ctest-vn4-46830266, 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-11 15:50:57,983 - DEBUG - Response for create_network : {'network': {'id': 'c0fe7adf-9d89-46fe-99c3-ca4de588da8c', 'name': 'ctest-vn4-46830266', 'tenant_id': '0add3b0889754621af9d158ad2cb77e9', 'project_id': '0add3b0889754621af9d158ad2cb77e9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-35968890', 'ctest-vn4-46830266'], 'port_security_enabled': True, 'description': ''}} 2025-08-11 15:50:58,177 - DEBUG - Response for create_subnet : {'subnet': {'id': '11ffccdf-bfaa-43b6-bd88-1111edf015e2', 'name': '', 'tenant_id': '0add3b0889754621af9d158ad2cb77e9', 'network_id': 'c0fe7adf-9d89-46fe-99c3-ca4de588da8c', 'ip_version': 4, 'cidr': '205.136.128.128/26', 'allocation_pools': [{'start': '205.136.128.130', 'end': '205.136.128.190'}], 'gateway_ip': '205.136.128.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '205.136.128.130', 'tags': [], 'project_id': '0add3b0889754621af9d158ad2cb77e9'}} 2025-08-11 15:50:58,319 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd671b1ab-b0d2-41a8-a569-406cc4e3f9fd', 'name': '', 'tenant_id': '0add3b0889754621af9d158ad2cb77e9', 'network_id': 'c0fe7adf-9d89-46fe-99c3-ca4de588da8c', 'ip_version': 6, 'cidr': '3045:d3f1:4452:90c3:3b36:3d3::/96', 'allocation_pools': [{'start': '3045:d3f1:4452:90c3:3b36:3d3:0:2', 'end': '3045:d3f1:4452:90c3:3b36:3d3:ffff:fffe'}], 'gateway_ip': '3045:d3f1:4452:90c3:3b36:3d3:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3045:d3f1:4452:90c3:3b36:3d3:0:2', 'tags': [], 'project_id': '0add3b0889754621af9d158ad2cb77e9'}} 2025-08-11 15:50:58,336 - INFO - Created VN ctest-vn4-46830266 2025-08-11 15:50:58,387 - DEBUG - VN ctest-vn4-46830266 UUID is c0fe7adf-9d89-46fe-99c3-ca4de588da8c 2025-08-11 15:50:58,560 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c0fe7adf-9d89-46fe-99c3-ca4de588da8c', 'name': 'ctest-vn4-46830266', 'tenant_id': '0add3b0889754621af9d158ad2cb77e9', 'project_id': '0add3b0889754621af9d158ad2cb77e9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['11ffccdf-bfaa-43b6-bd88-1111edf015e2', 'd671b1ab-b0d2-41a8-a569-406cc4e3f9fd'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-35968890', 'ctest-vn4-46830266'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-35968890', 'ctest-policy1-11753444']], 'subnet_ipam': [{'subnet_cidr': '205.136.128.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3045:d3f1:4452:90c3:3b36:3d3::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-11 15:50:58,723 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-08-11 15:50:59,009 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-08-11 15:50:59,032 - DEBUG - Requesting: http://10.0.0.50:8082/domain/d0598bc6-8b1f-48a3-92e1-9024fd400f49 2025-08-11 15:50:59,044 - DEBUG - Requesting: http://10.0.0.50:8082/project/0add3b08-8975-4621-af9d-158ad2cb77e9 2025-08-11 15:50:59,114 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/c0fe7adf-9d89-46fe-99c3-ca4de588da8c 2025-08-11 15:50:59,125 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/c0fe7adf-9d89-46fe-99c3-ca4de588da8c 2025-08-11 15:50:59,136 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/eca6506e-689e-4427-87d5-f056803d30bb 2025-08-11 15:50:59,142 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/eca6506e-689e-4427-87d5-f056803d30bb 2025-08-11 15:50:59,148 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/4279cc1f-cfa7-4c67-ba39-552691ac6277 2025-08-11 15:50:59,153 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-11 15:50:59,154 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/c0fe7adf-9d89-46fe-99c3-ca4de588da8c 2025-08-11 15:50:59,162 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/eca6506e-689e-4427-87d5-f056803d30bb 2025-08-11 15:50:59,174 - INFO - Verified VN network id 11 for VN c0fe7adf-9d89-46fe-99c3-ca4de588da8c 2025-08-11 15:50:59,174 - INFO - Verifications in API Server for VN ctest-vn4-46830266 passed 2025-08-11 15:50:59,174 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/c0fe7adf-9d89-46fe-99c3-ca4de588da8c 2025-08-11 15:50:59,183 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/eca6506e-689e-4427-87d5-f056803d30bb 2025-08-11 15:50:59,188 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/eca6506e-689e-4427-87d5-f056803d30bb 2025-08-11 15:50:59,194 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/4279cc1f-cfa7-4c67-ba39-552691ac6277 2025-08-11 15:50:59,204 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-35968890:ctest-vn4-46830266', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-35968890', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13906687800205985534', 'uuid-lslong': '11079921944173795980'}, 'enable': 'true', 'created': '2025-08-11T15:50:57', 'last-modified': '2025-08-11T15:50:58', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.674140'} 2025-08-11 15:50:59,210 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-11 15:50:59,210 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-46830266 passed 2025-08-11 15:50:59,210 - DEBUG - ====Verifying policy data for ctest-vn4-46830266 in API_Server ====== 2025-08-11 15:50:59,210 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-08-11 15:50:59,214 - DEBUG - Requesting: http://10.0.0.50:8082/domain/d0598bc6-8b1f-48a3-92e1-9024fd400f49 2025-08-11 15:50:59,224 - DEBUG - Requesting: http://10.0.0.50:8082/project/0add3b08-8975-4621-af9d-158ad2cb77e9 2025-08-11 15:50:59,291 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/c0fe7adf-9d89-46fe-99c3-ca4de588da8c 2025-08-11 15:50:59,300 - DEBUG - ==>Verifying data for policy with id: 67273072-cfe8-466e-9f8f-f988ae1f0c91, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-35968890', 'ctest-policy1-11753444'] 2025-08-11 15:50:59,300 - INFO - VN ctest-vn4-46830266 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-11 15:50:59,300 - DEBUG - Verifying the vn in opserver 2025-08-11 15:50:59,300 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-35968890:ctest-vn4-46830266 virtual network link through opserver 10.0.0.50 2025-08-11 15:50:59,300 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-08-11 15:50:59,587 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-08-11 15:50:59,633 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-35968890:ctest-vn4-46830266', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-35968890:ctest-vn4-46830266?flat'} 2025-08-11 15:50:59,633 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-35968890:ctest-vn4-46830266 is found in opserver 2025-08-11 15:50:59,643 - DEBUG - Do not have enough data to verify VN in agent 2025-08-11 15:50:59,647 - DEBUG - VRF ids for VN ctest-vn4-46830266: {} 2025-08-11 15:50:59,647 - DEBUG - ====Verifying data for ctest-policy1-11753444 in API_Server ====== 2025-08-11 15:50:59,648 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-08-11 15:50:59,652 - DEBUG - Requesting: http://10.0.0.50:8082/domain/d0598bc6-8b1f-48a3-92e1-9024fd400f49 2025-08-11 15:50:59,662 - DEBUG - Requesting: http://10.0.0.50:8082/project/0add3b08-8975-4621-af9d-158ad2cb77e9 2025-08-11 15:50:59,730 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/67273072-cfe8-466e-9f8f-f988ae1f0c91 2025-08-11 15:50:59,738 - INFO - Verified policy ctest-policy1-11753444 in API Server, Result: True 2025-08-11 15:50:59,739 - INFO - Done with setup and verification, moving onto test .. 2025-08-11 15:50:59,745 - INFO - Deleting VN ctest-vn4-46830266 2025-08-11 15:50:59,842 - DEBUG - Response for deleting network () 2025-08-11 15:50:59,842 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/eca6506e-689e-4427-87d5-f056803d30bb 2025-08-11 15:50:59,846 - DEBUG - Response Code: 404 2025-08-11 15:50:59,846 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-08-11 15:50:59,850 - DEBUG - Requesting: http://10.0.0.50:8082/domain/d0598bc6-8b1f-48a3-92e1-9024fd400f49 2025-08-11 15:50:59,904 - DEBUG - Requesting: http://10.0.0.50:8082/project/0add3b08-8975-4621-af9d-158ad2cb77e9 2025-08-11 15:50:59,970 - INFO - Validated that VN ctest-vn4-46830266 is not found in API Server 2025-08-11 15:50:59,980 - DEBUG - VN ctest-vn4-46830266 is not present in Agent 10.0.0.50 2025-08-11 15:50:59,980 - INFO - Validated that VN ctest-vn4-46830266 is not in any agent 2025-08-11 15:50:59,993 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-46830266 info 2025-08-11 15:51:00,014 - INFO - Deleted policy ctest-policy1-11753444 2025-08-11 15:51:00,178 - DEBUG - policy ctest-policy1-11753444 is not found in API Server 2025-08-11 15:51:00,433 - DEBUG - No XMPP flaps were noticed during the test 2025-08-11 15:51:00,434 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-08-11 15:51:00,434 - INFO - -------------------------------------------------------------------------------- 2025-08-11 15:51:00,719 - DEBUG - No XMPP flaps were noticed during the test 2025-08-11 15:51:00,720 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-08-11 15:51:00,720 - INFO - -------------------------------------------------------------------------------- 2025-08-11 15:51:01,356 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-35968890, ID : 0add3b08-8975-4621-af9d-158ad2cb77e9