2025-11-10 02:24:08,844 - INFO - Domain Default found not creating 2025-11-10 02:24:08,998 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-42490064 not found, creating it 2025-11-10 02:24:09,599 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-42490064, ID : c4f39557-746b-4bc5-865d-bc72d9ef2da7 2025-11-10 02:24:11,319 - INFO - ================================================================================ 2025-11-10 02:24:11,320 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-10 02:24:12,603 - DEBUG - Nothing to compare xmpp stats {'10.0.0.65': {'10.20.0.193': '0', '10.20.0.129': '0'}, '10.0.0.130': {'10.20.0.193': '0', '10.20.0.18': '0'}} with 2025-11-10 02:24:12,603 - INFO - Initial checks done. Running the testcase now 2025-11-10 02:24:12,603 - INFO - 2025-11-10 02:24:12,603 - INFO - ================================================================================ 2025-11-10 02:24:12,603 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-10 02:24:12,603 - 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-10 02:24:13,883 - DEBUG - Nothing to compare xmpp stats {'10.0.0.65': {'10.20.0.193': '0', '10.20.0.129': '0'}, '10.0.0.130': {'10.20.0.193': '0', '10.20.0.18': '0'}} with 2025-11-10 02:24:13,883 - INFO - Initial checks done. Running the testcase now 2025-11-10 02:24:13,883 - INFO - 2025-11-10 02:24:14,219 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-42490064:ctest-vn4-10636664, 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-42490064:ctest-vn4-10636664, 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-42490064:ctest-vn4-10636664, 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-42490064:ctest-vn4-10636664, 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-10 02:24:14,871 - DEBUG - Response for create_network : {'network': {'id': '205850b5-a5f5-4c88-bade-bcab1a43046f', 'name': 'ctest-vn4-10636664', 'tenant_id': 'c4f39557746b4bc5865dbc72d9ef2da7', 'project_id': 'c4f39557746b4bc5865dbc72d9ef2da7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-42490064', 'ctest-vn4-10636664'], 'port_security_enabled': True, 'description': ''}} 2025-11-10 02:24:15,121 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ed5bc5df-4469-4e54-b5ab-a92bcc82dc05', 'name': '', 'tenant_id': 'c4f39557746b4bc5865dbc72d9ef2da7', 'network_id': '205850b5-a5f5-4c88-bade-bcab1a43046f', 'ip_version': 4, 'cidr': '114.46.77.128/26', 'allocation_pools': [{'start': '114.46.77.130', 'end': '114.46.77.190'}], 'gateway_ip': '114.46.77.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '114.46.77.130', 'tags': [], 'project_id': 'c4f39557746b4bc5865dbc72d9ef2da7'}} 2025-11-10 02:24:15,361 - DEBUG - Response for create_subnet : {'subnet': {'id': '141baab7-bc23-493d-bb55-80ea2a60395b', 'name': '', 'tenant_id': 'c4f39557746b4bc5865dbc72d9ef2da7', 'network_id': '205850b5-a5f5-4c88-bade-bcab1a43046f', 'ip_version': 6, 'cidr': '30d8:f2a1:4600:22ab:a016:3200::/96', 'allocation_pools': [{'start': '30d8:f2a1:4600:22ab:a016:3200:0:2', 'end': '30d8:f2a1:4600:22ab:a016:3200:ffff:fffe'}], 'gateway_ip': '30d8:f2a1:4600:22ab:a016:3200:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '30d8:f2a1:4600:22ab:a016:3200:0:2', 'tags': [], 'project_id': 'c4f39557746b4bc5865dbc72d9ef2da7'}} 2025-11-10 02:24:15,386 - INFO - Created VN ctest-vn4-10636664 2025-11-10 02:24:15,398 - DEBUG - VN ctest-vn4-10636664 UUID is 205850b5-a5f5-4c88-bade-bcab1a43046f 2025-11-10 02:24:15,671 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '205850b5-a5f5-4c88-bade-bcab1a43046f', 'name': 'ctest-vn4-10636664', 'tenant_id': 'c4f39557746b4bc5865dbc72d9ef2da7', 'project_id': 'c4f39557746b4bc5865dbc72d9ef2da7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ed5bc5df-4469-4e54-b5ab-a92bcc82dc05', '141baab7-bc23-493d-bb55-80ea2a60395b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-42490064', 'ctest-vn4-10636664'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-42490064', 'ctest-policy1-59826992']], 'subnet_ipam': [{'subnet_cidr': '114.46.77.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '30d8:f2a1:4600:22ab:a016:3200::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-11-10 02:24:15,801 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-11-10 02:24:16,102 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-11-10 02:24:16,138 - DEBUG - Requesting: http://10.0.0.22:8082/domain/dbdabfa7-f87c-4117-b05b-68cc6fd252ce 2025-11-10 02:24:16,167 - DEBUG - Requesting: http://10.0.0.22:8082/project/c4f39557-746b-4bc5-865d-bc72d9ef2da7 2025-11-10 02:24:16,274 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/205850b5-a5f5-4c88-bade-bcab1a43046f 2025-11-10 02:24:16,287 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/205850b5-a5f5-4c88-bade-bcab1a43046f 2025-11-10 02:24:16,299 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/47521d6d-29aa-4254-b873-41da23a35991 2025-11-10 02:24:16,309 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/47521d6d-29aa-4254-b873-41da23a35991 2025-11-10 02:24:16,317 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/f5351d22-e9dc-4fac-9b41-33e91eee724b 2025-11-10 02:24:16,323 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-10 02:24:16,324 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/205850b5-a5f5-4c88-bade-bcab1a43046f 2025-11-10 02:24:16,333 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/47521d6d-29aa-4254-b873-41da23a35991 2025-11-10 02:24:16,353 - INFO - Verified VN network id 15 for VN 205850b5-a5f5-4c88-bade-bcab1a43046f 2025-11-10 02:24:16,353 - INFO - Verifications in API Server for VN ctest-vn4-10636664 passed 2025-11-10 02:24:16,354 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/205850b5-a5f5-4c88-bade-bcab1a43046f 2025-11-10 02:24:16,364 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/47521d6d-29aa-4254-b873-41da23a35991 2025-11-10 02:24:16,373 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/47521d6d-29aa-4254-b873-41da23a35991 2025-11-10 02:24:16,383 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/f5351d22-e9dc-4fac-9b41-33e91eee724b 2025-11-10 02:24:16,395 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-42490064:ctest-vn4-10636664', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-42490064', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2330701548267850888', 'uuid-lslong': '13465407378950390895'}, 'enable': 'true', 'created': '2025-11-10T02:24:14', 'last-modified': '2025-11-10T02:24:15', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.823380'} 2025-11-10 02:24:16,403 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-10 02:24:16,409 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-42490064:ctest-vn4-10636664', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-42490064', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2330701548267850888', 'uuid-lslong': '13465407378950390895'}, 'enable': 'true', 'created': '2025-11-10T02:24:14', 'last-modified': '2025-11-10T02:24:15', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.832690'} 2025-11-10 02:24:16,415 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-10 02:24:16,420 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-42490064:ctest-vn4-10636664', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-42490064', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2330701548267850888', 'uuid-lslong': '13465407378950390895'}, 'enable': 'true', 'created': '2025-11-10T02:24:14', 'last-modified': '2025-11-10T02:24:15', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.842472'} 2025-11-10 02:24:16,427 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-10 02:24:16,427 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-10636664 passed 2025-11-10 02:24:16,427 - DEBUG - ====Verifying policy data for ctest-vn4-10636664 in API_Server ====== 2025-11-10 02:24:16,427 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-11-10 02:24:16,434 - DEBUG - Requesting: http://10.0.0.22:8082/domain/dbdabfa7-f87c-4117-b05b-68cc6fd252ce 2025-11-10 02:24:16,446 - DEBUG - Requesting: http://10.0.0.22:8082/project/c4f39557-746b-4bc5-865d-bc72d9ef2da7 2025-11-10 02:24:16,543 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/205850b5-a5f5-4c88-bade-bcab1a43046f 2025-11-10 02:24:16,553 - DEBUG - ==>Verifying data for policy with id: b1b20d28-5cd7-4408-aa44-184f73ccf95e, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-42490064', 'ctest-policy1-59826992'] 2025-11-10 02:24:16,553 - INFO - VN ctest-vn4-10636664 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-10 02:24:16,554 - DEBUG - Verifying the vn in opserver 2025-11-10 02:24:16,554 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-42490064:ctest-vn4-10636664 virtual network link through opserver 10.0.0.22 2025-11-10 02:24:16,554 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-11-10 02:24:16,873 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-11-10 02:24:16,937 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-42490064:ctest-vn4-10636664', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-42490064:ctest-vn4-10636664?flat'} 2025-11-10 02:24:16,937 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-42490064:ctest-vn4-10636664 virtual network link through opserver 10.0.0.50 2025-11-10 02:24:16,937 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-11-10 02:24:17,237 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-11-10 02:24:17,301 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-42490064:ctest-vn4-10636664', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-42490064:ctest-vn4-10636664?flat'} 2025-11-10 02:24:17,301 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-42490064:ctest-vn4-10636664 virtual network link through opserver 10.0.0.23 2025-11-10 02:24:17,301 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2025-11-10 02:24:17,607 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2025-11-10 02:24:17,682 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-42490064:ctest-vn4-10636664', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-42490064:ctest-vn4-10636664?flat'} 2025-11-10 02:24:17,682 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-42490064:ctest-vn4-10636664 is found in opserver 2025-11-10 02:24:17,707 - DEBUG - Do not have enough data to verify VN in agent 2025-11-10 02:24:17,718 - DEBUG - VRF ids for VN ctest-vn4-10636664: {} 2025-11-10 02:24:17,718 - DEBUG - ====Verifying data for ctest-policy1-59826992 in API_Server ====== 2025-11-10 02:24:17,719 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-11-10 02:24:17,725 - DEBUG - Requesting: http://10.0.0.22:8082/domain/dbdabfa7-f87c-4117-b05b-68cc6fd252ce 2025-11-10 02:24:17,737 - DEBUG - Requesting: http://10.0.0.22:8082/project/c4f39557-746b-4bc5-865d-bc72d9ef2da7 2025-11-10 02:24:17,836 - DEBUG - Requesting: http://10.0.0.22:8082/network-policy/b1b20d28-5cd7-4408-aa44-184f73ccf95e 2025-11-10 02:24:17,847 - INFO - Verified policy ctest-policy1-59826992 in API Server, Result: True 2025-11-10 02:24:17,847 - INFO - Done with setup and verification, moving onto test .. 2025-11-10 02:24:17,859 - INFO - Deleting VN ctest-vn4-10636664 2025-11-10 02:24:18,079 - DEBUG - Response for deleting network () 2025-11-10 02:24:18,079 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/47521d6d-29aa-4254-b873-41da23a35991 2025-11-10 02:24:18,091 - DEBUG - Response Code: 404 2025-11-10 02:24:18,091 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-11-10 02:24:18,106 - DEBUG - Requesting: http://10.0.0.22:8082/domain/dbdabfa7-f87c-4117-b05b-68cc6fd252ce 2025-11-10 02:24:18,158 - DEBUG - Requesting: http://10.0.0.22:8082/project/c4f39557-746b-4bc5-865d-bc72d9ef2da7 2025-11-10 02:24:18,253 - INFO - Validated that VN ctest-vn4-10636664 is not found in API Server 2025-11-10 02:24:18,265 - DEBUG - VN ctest-vn4-10636664 is not present in Agent 10.0.0.65 2025-11-10 02:24:18,278 - DEBUG - VN ctest-vn4-10636664 is not present in Agent 10.0.0.130 2025-11-10 02:24:18,278 - INFO - Validated that VN ctest-vn4-10636664 is not in any agent 2025-11-10 02:24:18,312 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-10636664 info 2025-11-10 02:24:18,349 - INFO - Deleted policy ctest-policy1-59826992 2025-11-10 02:24:18,537 - DEBUG - policy ctest-policy1-59826992 is not found in API Server 2025-11-10 02:24:19,813 - DEBUG - No XMPP flaps were noticed during the test