2025-10-06 02:09:36,084 - INFO - Domain Default found not creating 2025-10-06 02:09:36,209 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-48217853 not found, creating it 2025-10-06 02:09:36,690 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-48217853, ID : fb60e73f-ed25-4ad8-bf2a-a3af137479d6 2025-10-06 02:09:38,039 - INFO - ================================================================================ 2025-10-06 02:09:38,039 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-06 02:09:39,312 - DEBUG - Nothing to compare xmpp stats {'10.0.0.49': {'10.20.0.193': '0', '10.20.0.25': '0'}, '10.0.0.19': {'10.20.0.25': '0', '10.20.0.17': '0'}} with 2025-10-06 02:09:39,312 - INFO - Initial checks done. Running the testcase now 2025-10-06 02:09:39,312 - INFO - 2025-10-06 02:09:39,313 - INFO - ================================================================================ 2025-10-06 02:09:39,313 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-06 02:09:39,313 - 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-06 02:09:40,551 - DEBUG - Nothing to compare xmpp stats {'10.0.0.49': {'10.20.0.193': '0', '10.20.0.25': '0'}, '10.0.0.19': {'10.20.0.25': '0', '10.20.0.17': '0'}} with 2025-10-06 02:09:40,551 - INFO - Initial checks done. Running the testcase now 2025-10-06 02:09:40,551 - INFO - 2025-10-06 02:09:40,894 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-48217853:ctest-vn4-28468090, 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-48217853:ctest-vn4-28468090, 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-48217853:ctest-vn4-28468090, 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-48217853:ctest-vn4-28468090, 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-06 02:09:41,509 - DEBUG - Response for create_network : {'network': {'id': 'e3964bc3-2a81-44c5-9b2c-3559ca6b41a6', 'name': 'ctest-vn4-28468090', 'tenant_id': 'fb60e73fed254ad8bf2aa3af137479d6', 'project_id': 'fb60e73fed254ad8bf2aa3af137479d6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-48217853', 'ctest-vn4-28468090'], 'port_security_enabled': True, 'description': ''}} 2025-10-06 02:09:41,774 - DEBUG - Response for create_subnet : {'subnet': {'id': '6c2a95ba-4a96-4a24-8b3f-a35abb7b72da', 'name': '', 'tenant_id': 'fb60e73fed254ad8bf2aa3af137479d6', 'network_id': 'e3964bc3-2a81-44c5-9b2c-3559ca6b41a6', 'ip_version': 4, 'cidr': '101.202.200.128/26', 'allocation_pools': [{'start': '101.202.200.130', 'end': '101.202.200.190'}], 'gateway_ip': '101.202.200.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '101.202.200.130', 'tags': [], 'project_id': 'fb60e73fed254ad8bf2aa3af137479d6'}} 2025-10-06 02:09:42,010 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b39f8ebc-462f-46e5-b7c2-7743302bdb95', 'name': '', 'tenant_id': 'fb60e73fed254ad8bf2aa3af137479d6', 'network_id': 'e3964bc3-2a81-44c5-9b2c-3559ca6b41a6', 'ip_version': 6, 'cidr': '2dda:b5cd:c3ae:e15e:546f:3b49::/96', 'allocation_pools': [{'start': '2dda:b5cd:c3ae:e15e:546f:3b49:0:2', 'end': '2dda:b5cd:c3ae:e15e:546f:3b49:ffff:fffe'}], 'gateway_ip': '2dda:b5cd:c3ae:e15e:546f:3b49:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2dda:b5cd:c3ae:e15e:546f:3b49:0:2', 'tags': [], 'project_id': 'fb60e73fed254ad8bf2aa3af137479d6'}} 2025-10-06 02:09:42,036 - INFO - Created VN ctest-vn4-28468090 2025-10-06 02:09:42,047 - DEBUG - VN ctest-vn4-28468090 UUID is e3964bc3-2a81-44c5-9b2c-3559ca6b41a6 2025-10-06 02:09:42,267 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e3964bc3-2a81-44c5-9b2c-3559ca6b41a6', 'name': 'ctest-vn4-28468090', 'tenant_id': 'fb60e73fed254ad8bf2aa3af137479d6', 'project_id': 'fb60e73fed254ad8bf2aa3af137479d6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6c2a95ba-4a96-4a24-8b3f-a35abb7b72da', 'b39f8ebc-462f-46e5-b7c2-7743302bdb95'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-48217853', 'ctest-vn4-28468090'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-48217853', 'ctest-policy1-12934687']], 'subnet_ipam': [{'subnet_cidr': '101.202.200.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2dda:b5cd:c3ae:e15e:546f:3b49::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-06 02:09:42,390 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-10-06 02:09:42,696 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-10-06 02:09:42,726 - DEBUG - Requesting: http://10.0.0.33:8082/domain/8177ca4a-5181-4745-ae27-f33c0972392c 2025-10-06 02:09:42,739 - DEBUG - Requesting: http://10.0.0.33:8082/project/fb60e73f-ed25-4ad8-bf2a-a3af137479d6 2025-10-06 02:09:42,835 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/e3964bc3-2a81-44c5-9b2c-3559ca6b41a6 2025-10-06 02:09:42,846 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/e3964bc3-2a81-44c5-9b2c-3559ca6b41a6 2025-10-06 02:09:42,854 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/f5c9c648-cbcd-4dcf-8855-10381f434a20 2025-10-06 02:09:42,861 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/f5c9c648-cbcd-4dcf-8855-10381f434a20 2025-10-06 02:09:42,868 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/200bd40f-8f11-442e-bd17-d3c2413096e2 2025-10-06 02:09:42,877 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-06 02:09:42,877 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/e3964bc3-2a81-44c5-9b2c-3559ca6b41a6 2025-10-06 02:09:42,886 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/f5c9c648-cbcd-4dcf-8855-10381f434a20 2025-10-06 02:09:42,902 - INFO - Verified VN network id 10 for VN e3964bc3-2a81-44c5-9b2c-3559ca6b41a6 2025-10-06 02:09:42,902 - INFO - Verifications in API Server for VN ctest-vn4-28468090 passed 2025-10-06 02:09:42,902 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/e3964bc3-2a81-44c5-9b2c-3559ca6b41a6 2025-10-06 02:09:42,912 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/f5c9c648-cbcd-4dcf-8855-10381f434a20 2025-10-06 02:09:42,921 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/f5c9c648-cbcd-4dcf-8855-10381f434a20 2025-10-06 02:09:42,928 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/200bd40f-8f11-442e-bd17-d3c2413096e2 2025-10-06 02:09:42,941 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-48217853:ctest-vn4-28468090', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-48217853', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16399378394720060613', 'uuid-lslong': '11181370634618487206'}, 'enable': 'true', 'created': '2025-10-06T02:09:41', 'last-modified': '2025-10-06T02:09:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.718626'} 2025-10-06 02:09:42,948 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-06 02:09:42,954 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-48217853:ctest-vn4-28468090', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-48217853', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16399378394720060613', 'uuid-lslong': '11181370634618487206'}, 'enable': 'true', 'created': '2025-10-06T02:09:41', 'last-modified': '2025-10-06T02:09:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.733358'} 2025-10-06 02:09:42,959 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-06 02:09:42,965 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-48217853:ctest-vn4-28468090', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-48217853', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16399378394720060613', 'uuid-lslong': '11181370634618487206'}, 'enable': 'true', 'created': '2025-10-06T02:09:41', 'last-modified': '2025-10-06T02:09:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.730043'} 2025-10-06 02:09:42,970 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-06 02:09:42,970 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-28468090 passed 2025-10-06 02:09:42,970 - DEBUG - ====Verifying policy data for ctest-vn4-28468090 in API_Server ====== 2025-10-06 02:09:42,970 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-10-06 02:09:42,975 - DEBUG - Requesting: http://10.0.0.33:8082/domain/8177ca4a-5181-4745-ae27-f33c0972392c 2025-10-06 02:09:42,985 - DEBUG - Requesting: http://10.0.0.33:8082/project/fb60e73f-ed25-4ad8-bf2a-a3af137479d6 2025-10-06 02:09:43,077 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/e3964bc3-2a81-44c5-9b2c-3559ca6b41a6 2025-10-06 02:09:43,089 - DEBUG - ==>Verifying data for policy with id: 3a1429ca-9d05-4985-b6c3-27b445dd5835, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-48217853', 'ctest-policy1-12934687'] 2025-10-06 02:09:43,089 - INFO - VN ctest-vn4-28468090 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-06 02:09:43,089 - DEBUG - Verifying the vn in opserver 2025-10-06 02:09:43,089 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-48217853:ctest-vn4-28468090 virtual network link through opserver 10.0.0.33 2025-10-06 02:09:43,090 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-10-06 02:09:43,390 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-10-06 02:09:43,446 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-48217853:ctest-vn4-28468090', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-48217853:ctest-vn4-28468090?flat'} 2025-10-06 02:09:43,446 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-48217853:ctest-vn4-28468090 virtual network link through opserver 10.0.0.38 2025-10-06 02:09:43,446 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-10-06 02:09:43,739 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-10-06 02:09:43,792 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-48217853:ctest-vn4-28468090', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-48217853:ctest-vn4-28468090?flat'} 2025-10-06 02:09:43,792 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-48217853:ctest-vn4-28468090 virtual network link through opserver 10.0.0.249 2025-10-06 02:09:43,792 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2025-10-06 02:09:44,082 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2025-10-06 02:09:44,144 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-48217853:ctest-vn4-28468090', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-48217853:ctest-vn4-28468090?flat'} 2025-10-06 02:09:44,144 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-48217853:ctest-vn4-28468090 is found in opserver 2025-10-06 02:09:44,163 - DEBUG - Do not have enough data to verify VN in agent 2025-10-06 02:09:44,178 - DEBUG - VRF ids for VN ctest-vn4-28468090: {} 2025-10-06 02:09:44,178 - DEBUG - ====Verifying data for ctest-policy1-12934687 in API_Server ====== 2025-10-06 02:09:44,178 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-10-06 02:09:44,194 - DEBUG - Requesting: http://10.0.0.33:8082/domain/8177ca4a-5181-4745-ae27-f33c0972392c 2025-10-06 02:09:44,223 - DEBUG - Requesting: http://10.0.0.33:8082/project/fb60e73f-ed25-4ad8-bf2a-a3af137479d6 2025-10-06 02:09:44,324 - DEBUG - Requesting: http://10.0.0.33:8082/network-policy/3a1429ca-9d05-4985-b6c3-27b445dd5835 2025-10-06 02:09:44,338 - INFO - Verified policy ctest-policy1-12934687 in API Server, Result: True 2025-10-06 02:09:44,339 - INFO - Done with setup and verification, moving onto test .. 2025-10-06 02:09:44,351 - INFO - Deleting VN ctest-vn4-28468090 2025-10-06 02:09:44,591 - DEBUG - Response for deleting network () 2025-10-06 02:09:44,592 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/f5c9c648-cbcd-4dcf-8855-10381f434a20 2025-10-06 02:09:44,600 - DEBUG - Response Code: 404 2025-10-06 02:09:44,600 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-10-06 02:09:44,615 - DEBUG - Requesting: http://10.0.0.33:8082/domain/8177ca4a-5181-4745-ae27-f33c0972392c 2025-10-06 02:09:44,673 - DEBUG - Requesting: http://10.0.0.33:8082/project/fb60e73f-ed25-4ad8-bf2a-a3af137479d6 2025-10-06 02:09:44,783 - INFO - Validated that VN ctest-vn4-28468090 is not found in API Server 2025-10-06 02:09:44,793 - DEBUG - VN ctest-vn4-28468090 is not present in Agent 10.0.0.49 2025-10-06 02:09:44,802 - DEBUG - VN ctest-vn4-28468090 is not present in Agent 10.0.0.19 2025-10-06 02:09:44,802 - INFO - Validated that VN ctest-vn4-28468090 is not in any agent 2025-10-06 02:09:44,831 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-28468090 info 2025-10-06 02:09:44,868 - INFO - Deleted policy ctest-policy1-12934687 2025-10-06 02:09:45,049 - DEBUG - policy ctest-policy1-12934687 is not found in API Server 2025-10-06 02:09:46,329 - DEBUG - No XMPP flaps were noticed during the test