2025-11-10 12:05:40,432 - INFO - Domain Default found not creating 2025-11-10 12:05:40,617 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-43363980 not found, creating it 2025-11-10 12:05:41,143 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-43363980, ID : 07d45a1e-abf0-41de-bcd9-f6d0bf6b3bf4 2025-11-10 12:05:42,677 - INFO - ================================================================================ 2025-11-10 12:05:42,677 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-10 12:05:42,937 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.14': '0'}} with 2025-11-10 12:05:42,937 - INFO - Initial checks done. Running the testcase now 2025-11-10 12:05:42,937 - INFO - 2025-11-10 12:05:42,937 - INFO - ================================================================================ 2025-11-10 12:05:42,937 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-10 12:05:42,937 - 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 12:05:43,225 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.14': '0'}} with 2025-11-10 12:05:43,225 - INFO - Initial checks done. Running the testcase now 2025-11-10 12:05:43,225 - INFO - 2025-11-10 12:05:43,627 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-43363980:ctest-vn4-64082721, 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-43363980:ctest-vn4-64082721, 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-43363980:ctest-vn4-64082721, 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-43363980:ctest-vn4-64082721, 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 12:05:44,155 - DEBUG - Response for create_network : {'network': {'id': 'd10391ad-fabc-4a18-922b-9ccdf5f044c7', 'name': 'ctest-vn4-64082721', 'tenant_id': '07d45a1eabf041debcd9f6d0bf6b3bf4', 'project_id': '07d45a1eabf041debcd9f6d0bf6b3bf4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-43363980', 'ctest-vn4-64082721'], 'port_security_enabled': True, 'description': ''}} 2025-11-10 12:05:44,351 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c4ce4c53-8133-49aa-9304-197ada01031c', 'name': '', 'tenant_id': '07d45a1eabf041debcd9f6d0bf6b3bf4', 'network_id': 'd10391ad-fabc-4a18-922b-9ccdf5f044c7', 'ip_version': 4, 'cidr': '109.58.223.192/26', 'allocation_pools': [{'start': '109.58.223.194', 'end': '109.58.223.254'}], 'gateway_ip': '109.58.223.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '109.58.223.194', 'tags': [], 'project_id': '07d45a1eabf041debcd9f6d0bf6b3bf4'}} 2025-11-10 12:05:44,513 - DEBUG - Response for create_subnet : {'subnet': {'id': '47e1bf89-3c0c-4cdd-bc61-67d2808942c1', 'name': '', 'tenant_id': '07d45a1eabf041debcd9f6d0bf6b3bf4', 'network_id': 'd10391ad-fabc-4a18-922b-9ccdf5f044c7', 'ip_version': 6, 'cidr': '31a3:82ed:697d:d479:c297:7c9b::/96', 'allocation_pools': [{'start': '31a3:82ed:697d:d479:c297:7c9b:0:2', 'end': '31a3:82ed:697d:d479:c297:7c9b:ffff:fffe'}], 'gateway_ip': '31a3:82ed:697d:d479:c297:7c9b:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '31a3:82ed:697d:d479:c297:7c9b:0:2', 'tags': [], 'project_id': '07d45a1eabf041debcd9f6d0bf6b3bf4'}} 2025-11-10 12:05:44,536 - INFO - Created VN ctest-vn4-64082721 2025-11-10 12:05:44,591 - DEBUG - VN ctest-vn4-64082721 UUID is d10391ad-fabc-4a18-922b-9ccdf5f044c7 2025-11-10 12:05:44,807 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd10391ad-fabc-4a18-922b-9ccdf5f044c7', 'name': 'ctest-vn4-64082721', 'tenant_id': '07d45a1eabf041debcd9f6d0bf6b3bf4', 'project_id': '07d45a1eabf041debcd9f6d0bf6b3bf4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c4ce4c53-8133-49aa-9304-197ada01031c', '47e1bf89-3c0c-4cdd-bc61-67d2808942c1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-43363980', 'ctest-vn4-64082721'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-43363980', 'ctest-policy1-37502821']], 'subnet_ipam': [{'subnet_cidr': '109.58.223.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '31a3:82ed:697d:d479:c297:7c9b::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-11-10 12:05:44,967 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-11-10 12:05:45,258 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-11-10 12:05:45,287 - DEBUG - Requesting: http://10.0.0.33:8082/domain/8564d5ce-dcfe-4d49-9782-e8743e94d429 2025-11-10 12:05:45,299 - DEBUG - Requesting: http://10.0.0.33:8082/project/07d45a1e-abf0-41de-bcd9-f6d0bf6b3bf4 2025-11-10 12:05:45,374 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/d10391ad-fabc-4a18-922b-9ccdf5f044c7 2025-11-10 12:05:45,388 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/d10391ad-fabc-4a18-922b-9ccdf5f044c7 2025-11-10 12:05:45,399 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/988f1210-451f-4590-b12b-0207c0a07f0d 2025-11-10 12:05:45,408 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/988f1210-451f-4590-b12b-0207c0a07f0d 2025-11-10 12:05:45,415 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/8c1d3549-c6b6-46ad-9082-547d01d8551f 2025-11-10 12:05:45,422 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-10 12:05:45,422 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/d10391ad-fabc-4a18-922b-9ccdf5f044c7 2025-11-10 12:05:45,432 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/988f1210-451f-4590-b12b-0207c0a07f0d 2025-11-10 12:05:45,449 - INFO - Verified VN network id 11 for VN d10391ad-fabc-4a18-922b-9ccdf5f044c7 2025-11-10 12:05:45,450 - INFO - Verifications in API Server for VN ctest-vn4-64082721 passed 2025-11-10 12:05:45,450 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/d10391ad-fabc-4a18-922b-9ccdf5f044c7 2025-11-10 12:05:45,461 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/988f1210-451f-4590-b12b-0207c0a07f0d 2025-11-10 12:05:45,468 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/988f1210-451f-4590-b12b-0207c0a07f0d 2025-11-10 12:05:45,477 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/8c1d3549-c6b6-46ad-9082-547d01d8551f 2025-11-10 12:05:45,489 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-43363980:ctest-vn4-64082721', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-43363980', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15061041755279084056', 'uuid-lslong': '10532684561944429767'}, 'enable': 'true', 'created': '2025-11-10T12:05:44', 'last-modified': '2025-11-10T12:05:44', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.709678'} 2025-11-10 12:05:45,495 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-10 12:05:45,495 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-64082721 passed 2025-11-10 12:05:45,495 - DEBUG - ====Verifying policy data for ctest-vn4-64082721 in API_Server ====== 2025-11-10 12:05:45,496 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-11-10 12:05:45,502 - DEBUG - Requesting: http://10.0.0.33:8082/domain/8564d5ce-dcfe-4d49-9782-e8743e94d429 2025-11-10 12:05:45,513 - DEBUG - Requesting: http://10.0.0.33:8082/project/07d45a1e-abf0-41de-bcd9-f6d0bf6b3bf4 2025-11-10 12:05:45,586 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/d10391ad-fabc-4a18-922b-9ccdf5f044c7 2025-11-10 12:05:45,596 - DEBUG - ==>Verifying data for policy with id: aa3cb1c0-881b-44a9-b0a3-7755984372d4, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-43363980', 'ctest-policy1-37502821'] 2025-11-10 12:05:45,596 - INFO - VN ctest-vn4-64082721 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-10 12:05:45,596 - DEBUG - Verifying the vn in opserver 2025-11-10 12:05:45,596 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-43363980:ctest-vn4-64082721 virtual network link through opserver 10.0.0.33 2025-11-10 12:05:45,596 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-11-10 12:05:45,897 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-11-10 12:05:45,955 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-43363980:ctest-vn4-64082721', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-43363980:ctest-vn4-64082721?flat'} 2025-11-10 12:05:45,956 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-43363980:ctest-vn4-64082721 is found in opserver 2025-11-10 12:05:45,966 - DEBUG - Do not have enough data to verify VN in agent 2025-11-10 12:05:45,970 - DEBUG - VRF ids for VN ctest-vn4-64082721: {} 2025-11-10 12:05:45,971 - DEBUG - ====Verifying data for ctest-policy1-37502821 in API_Server ====== 2025-11-10 12:05:45,971 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-11-10 12:05:45,977 - DEBUG - Requesting: http://10.0.0.33:8082/domain/8564d5ce-dcfe-4d49-9782-e8743e94d429 2025-11-10 12:05:45,988 - DEBUG - Requesting: http://10.0.0.33:8082/project/07d45a1e-abf0-41de-bcd9-f6d0bf6b3bf4 2025-11-10 12:05:46,059 - DEBUG - Requesting: http://10.0.0.33:8082/network-policy/aa3cb1c0-881b-44a9-b0a3-7755984372d4 2025-11-10 12:05:46,069 - INFO - Verified policy ctest-policy1-37502821 in API Server, Result: True 2025-11-10 12:05:46,069 - INFO - Done with setup and verification, moving onto test .. 2025-11-10 12:05:46,078 - INFO - Deleting VN ctest-vn4-64082721 2025-11-10 12:05:46,187 - DEBUG - Response for deleting network () 2025-11-10 12:05:46,187 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/988f1210-451f-4590-b12b-0207c0a07f0d 2025-11-10 12:05:46,192 - DEBUG - Response Code: 404 2025-11-10 12:05:46,192 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-11-10 12:05:46,197 - DEBUG - Requesting: http://10.0.0.33:8082/domain/8564d5ce-dcfe-4d49-9782-e8743e94d429 2025-11-10 12:05:46,248 - DEBUG - Requesting: http://10.0.0.33:8082/project/07d45a1e-abf0-41de-bcd9-f6d0bf6b3bf4 2025-11-10 12:05:46,316 - INFO - Validated that VN ctest-vn4-64082721 is not found in API Server 2025-11-10 12:05:46,326 - DEBUG - VN ctest-vn4-64082721 is not present in Agent 10.0.0.33 2025-11-10 12:05:46,326 - INFO - Validated that VN ctest-vn4-64082721 is not in any agent 2025-11-10 12:05:46,340 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-64082721 info 2025-11-10 12:05:46,369 - INFO - Deleted policy ctest-policy1-37502821 2025-11-10 12:05:46,535 - DEBUG - policy ctest-policy1-37502821 is not found in API Server 2025-11-10 12:05:46,797 - DEBUG - No XMPP flaps were noticed during the test