2025-11-13 08:06:09,834 - INFO - Domain Default found not creating 2025-11-13 08:06:10,000 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-61706084 not found, creating it 2025-11-13 08:06:10,446 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-61706084, ID : 6685d4fd-2934-48ad-9c04-d21a69595d49 2025-11-13 08:06:11,889 - INFO - ================================================================================ 2025-11-13 08:06:11,890 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-13 08:06:12,150 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0'}} with 2025-11-13 08:06:12,150 - INFO - Initial checks done. Running the testcase now 2025-11-13 08:06:12,150 - INFO - 2025-11-13 08:06:12,150 - INFO - ================================================================================ 2025-11-13 08:06:12,150 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-13 08:06:12,150 - 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-11-13 08:06:12,438 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0'}} with 2025-11-13 08:06:12,438 - INFO - Initial checks done. Running the testcase now 2025-11-13 08:06:12,439 - INFO - 2025-11-13 08:06:12,801 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-61706084:ctest-vn4-72264919, 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-61706084:ctest-vn4-72264919, 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-61706084:ctest-vn4-72264919, 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-61706084:ctest-vn4-72264919, 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-11-13 08:06:13,320 - DEBUG - Response for create_network : {'network': {'id': '87c9c53c-cf55-4e00-889a-6824058ce86e', 'name': 'ctest-vn4-72264919', 'tenant_id': '6685d4fd293448ad9c04d21a69595d49', 'project_id': '6685d4fd293448ad9c04d21a69595d49', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-61706084', 'ctest-vn4-72264919'], 'port_security_enabled': True, 'description': ''}} 2025-11-13 08:06:13,561 - DEBUG - Response for create_subnet : {'subnet': {'id': '30f40e4e-ec26-43b8-8fe2-1a0ba3ac3227', 'name': '', 'tenant_id': '6685d4fd293448ad9c04d21a69595d49', 'network_id': '87c9c53c-cf55-4e00-889a-6824058ce86e', 'ip_version': 4, 'cidr': '112.186.194.192/26', 'allocation_pools': [{'start': '112.186.194.194', 'end': '112.186.194.254'}], 'gateway_ip': '112.186.194.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '112.186.194.194', 'tags': [], 'project_id': '6685d4fd293448ad9c04d21a69595d49'}} 2025-11-13 08:06:13,791 - DEBUG - Response for create_subnet : {'subnet': {'id': '83b162f2-f897-450e-a55e-74d9275db4a0', 'name': '', 'tenant_id': '6685d4fd293448ad9c04d21a69595d49', 'network_id': '87c9c53c-cf55-4e00-889a-6824058ce86e', 'ip_version': 6, 'cidr': '2a38:ead4:4f5d:5343:f461:f819::/96', 'allocation_pools': [{'start': '2a38:ead4:4f5d:5343:f461:f819:0:2', 'end': '2a38:ead4:4f5d:5343:f461:f819:ffff:fffe'}], 'gateway_ip': '2a38:ead4:4f5d:5343:f461:f819:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2a38:ead4:4f5d:5343:f461:f819:0:2', 'tags': [], 'project_id': '6685d4fd293448ad9c04d21a69595d49'}} 2025-11-13 08:06:13,819 - INFO - Created VN ctest-vn4-72264919 2025-11-13 08:06:13,876 - DEBUG - VN ctest-vn4-72264919 UUID is 87c9c53c-cf55-4e00-889a-6824058ce86e 2025-11-13 08:06:14,093 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '87c9c53c-cf55-4e00-889a-6824058ce86e', 'name': 'ctest-vn4-72264919', 'tenant_id': '6685d4fd293448ad9c04d21a69595d49', 'project_id': '6685d4fd293448ad9c04d21a69595d49', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['30f40e4e-ec26-43b8-8fe2-1a0ba3ac3227', '83b162f2-f897-450e-a55e-74d9275db4a0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-61706084', 'ctest-vn4-72264919'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-61706084', 'ctest-policy1-56633380']], 'subnet_ipam': [{'subnet_cidr': '112.186.194.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2a38:ead4:4f5d:5343:f461:f819::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-11-13 08:06:14,263 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-11-13 08:06:14,594 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-11-13 08:06:14,636 - DEBUG - Requesting: http://10.0.0.22:8082/domain/a9e198d9-8c6c-4de5-9268-33ced65d0661 2025-11-13 08:06:14,649 - DEBUG - Requesting: http://10.0.0.22:8082/project/6685d4fd-2934-48ad-9c04-d21a69595d49 2025-11-13 08:06:14,726 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/87c9c53c-cf55-4e00-889a-6824058ce86e 2025-11-13 08:06:14,738 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/87c9c53c-cf55-4e00-889a-6824058ce86e 2025-11-13 08:06:14,748 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/6de78a52-38be-4fde-a803-a2ebde7467bf 2025-11-13 08:06:14,755 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/6de78a52-38be-4fde-a803-a2ebde7467bf 2025-11-13 08:06:14,762 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/947b5e9a-4e3a-4d87-a5fd-cfaf991f6eb8 2025-11-13 08:06:14,768 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-13 08:06:14,768 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/87c9c53c-cf55-4e00-889a-6824058ce86e 2025-11-13 08:06:14,778 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/6de78a52-38be-4fde-a803-a2ebde7467bf 2025-11-13 08:06:14,793 - INFO - Verified VN network id 11 for VN 87c9c53c-cf55-4e00-889a-6824058ce86e 2025-11-13 08:06:14,793 - INFO - Verifications in API Server for VN ctest-vn4-72264919 passed 2025-11-13 08:06:14,794 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/87c9c53c-cf55-4e00-889a-6824058ce86e 2025-11-13 08:06:14,804 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/6de78a52-38be-4fde-a803-a2ebde7467bf 2025-11-13 08:06:14,810 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/6de78a52-38be-4fde-a803-a2ebde7467bf 2025-11-13 08:06:14,817 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/947b5e9a-4e3a-4d87-a5fd-cfaf991f6eb8 2025-11-13 08:06:14,831 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-61706084:ctest-vn4-72264919', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-61706084', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9784568530406297088', 'uuid-lslong': '9843294439492872302'}, 'enable': 'true', 'created': '2025-11-13T08:06:13', 'last-modified': '2025-11-13T08:06:14', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.776377'} 2025-11-13 08:06:14,837 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-13 08:06:14,837 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-72264919 passed 2025-11-13 08:06:14,838 - DEBUG - ====Verifying policy data for ctest-vn4-72264919 in API_Server ====== 2025-11-13 08:06:14,838 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-11-13 08:06:14,843 - DEBUG - Requesting: http://10.0.0.22:8082/domain/a9e198d9-8c6c-4de5-9268-33ced65d0661 2025-11-13 08:06:14,854 - DEBUG - Requesting: http://10.0.0.22:8082/project/6685d4fd-2934-48ad-9c04-d21a69595d49 2025-11-13 08:06:14,934 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/87c9c53c-cf55-4e00-889a-6824058ce86e 2025-11-13 08:06:14,947 - DEBUG - ==>Verifying data for policy with id: dbe377b1-b0c1-4403-82e2-9004def2d415, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-61706084', 'ctest-policy1-56633380'] 2025-11-13 08:06:14,947 - INFO - VN ctest-vn4-72264919 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-13 08:06:14,947 - DEBUG - Verifying the vn in opserver 2025-11-13 08:06:14,947 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-61706084:ctest-vn4-72264919 virtual network link through opserver 10.0.0.22 2025-11-13 08:06:14,947 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-11-13 08:06:15,255 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-11-13 08:06:15,335 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-61706084:ctest-vn4-72264919', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-61706084:ctest-vn4-72264919?flat'} 2025-11-13 08:06:15,335 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-61706084:ctest-vn4-72264919 is found in opserver 2025-11-13 08:06:15,345 - DEBUG - Do not have enough data to verify VN in agent 2025-11-13 08:06:15,351 - DEBUG - VRF ids for VN ctest-vn4-72264919: {} 2025-11-13 08:06:15,352 - DEBUG - ====Verifying data for ctest-policy1-56633380 in API_Server ====== 2025-11-13 08:06:15,352 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-11-13 08:06:15,358 - DEBUG - Requesting: http://10.0.0.22:8082/domain/a9e198d9-8c6c-4de5-9268-33ced65d0661 2025-11-13 08:06:15,370 - DEBUG - Requesting: http://10.0.0.22:8082/project/6685d4fd-2934-48ad-9c04-d21a69595d49 2025-11-13 08:06:15,439 - DEBUG - Requesting: http://10.0.0.22:8082/network-policy/dbe377b1-b0c1-4403-82e2-9004def2d415 2025-11-13 08:06:15,450 - INFO - Verified policy ctest-policy1-56633380 in API Server, Result: True 2025-11-13 08:06:15,450 - INFO - Done with setup and verification, moving onto test .. 2025-11-13 08:06:15,457 - INFO - Deleting VN ctest-vn4-72264919 2025-11-13 08:06:15,563 - DEBUG - Response for deleting network () 2025-11-13 08:06:15,563 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/6de78a52-38be-4fde-a803-a2ebde7467bf 2025-11-13 08:06:15,568 - DEBUG - Response Code: 404 2025-11-13 08:06:15,569 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-11-13 08:06:15,573 - DEBUG - Requesting: http://10.0.0.22:8082/domain/a9e198d9-8c6c-4de5-9268-33ced65d0661 2025-11-13 08:06:15,628 - DEBUG - Requesting: http://10.0.0.22:8082/project/6685d4fd-2934-48ad-9c04-d21a69595d49 2025-11-13 08:06:15,702 - INFO - Validated that VN ctest-vn4-72264919 is not found in API Server 2025-11-13 08:06:15,712 - DEBUG - VN ctest-vn4-72264919 is not present in Agent 10.0.0.22 2025-11-13 08:06:15,712 - INFO - Validated that VN ctest-vn4-72264919 is not in any agent 2025-11-13 08:06:15,731 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-72264919 info 2025-11-13 08:06:15,758 - INFO - Deleted policy ctest-policy1-56633380 2025-11-13 08:06:15,923 - DEBUG - policy ctest-policy1-56633380 is not found in API Server 2025-11-13 08:06:16,176 - DEBUG - No XMPP flaps were noticed during the test 2025-11-13 08:06:16,176 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-11-13 08:06:16,176 - INFO - -------------------------------------------------------------------------------- 2025-11-13 08:06:16,467 - DEBUG - No XMPP flaps were noticed during the test 2025-11-13 08:06:16,467 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2025-11-13 08:06:16,467 - INFO - -------------------------------------------------------------------------------- 2025-11-13 08:06:17,153 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-61706084, ID : 6685d4fd-2934-48ad-9c04-d21a69595d49