2026-03-26 02:16:45,514 - INFO - Domain Default found not creating 2026-03-26 02:16:45,931 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-27649356 not found, creating it 2026-03-26 02:16:46,545 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-27649356, ID : da461d41-35a0-404e-b972-fcded27d81c2 2026-03-26 02:16:48,618 - INFO - ================================================================================ 2026-03-26 02:16:48,618 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-26 02:16:48,937 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with 2026-03-26 02:16:48,938 - INFO - Initial checks done. Running the testcase now 2026-03-26 02:16:48,938 - INFO - 2026-03-26 02:16:48,938 - INFO - ================================================================================ 2026-03-26 02:16:48,938 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-26 02:16:48,938 - 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. 2026-03-26 02:16:49,268 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with 2026-03-26 02:16:49,268 - INFO - Initial checks done. Running the testcase now 2026-03-26 02:16:49,268 - INFO - 2026-03-26 02:16:49,681 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-27649356:ctest-vn4-12370339, 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-27649356:ctest-vn4-12370339, 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-27649356:ctest-vn4-12370339, 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-27649356:ctest-vn4-12370339, 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] 2026-03-26 02:16:50,289 - DEBUG - Response for create_network : {'network': {'id': '9235c7ac-1cc4-4a3e-890a-e327294bd7a2', 'name': 'ctest-vn4-12370339', 'tenant_id': 'da461d4135a0404eb972fcded27d81c2', 'project_id': 'da461d4135a0404eb972fcded27d81c2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-27649356', 'ctest-vn4-12370339'], 'port_security_enabled': True, 'description': ''}} 2026-03-26 02:16:50,469 - DEBUG - Response for create_subnet : {'subnet': {'id': '721f3a1c-522a-47ff-9159-f77342b119cb', 'name': '', 'tenant_id': 'da461d4135a0404eb972fcded27d81c2', 'network_id': '9235c7ac-1cc4-4a3e-890a-e327294bd7a2', 'ip_version': 4, 'cidr': '190.218.174.64/26', 'allocation_pools': [{'start': '190.218.174.66', 'end': '190.218.174.126'}], 'gateway_ip': '190.218.174.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '190.218.174.66', 'tags': [], 'project_id': 'da461d4135a0404eb972fcded27d81c2'}} 2026-03-26 02:16:50,730 - DEBUG - Response for create_subnet : {'subnet': {'id': '78f0c740-b03b-4329-a930-6103fea1ad32', 'name': '', 'tenant_id': 'da461d4135a0404eb972fcded27d81c2', 'network_id': '9235c7ac-1cc4-4a3e-890a-e327294bd7a2', 'ip_version': 6, 'cidr': '3820:8b81:5714:f8eb:5798:f542::/96', 'allocation_pools': [{'start': '3820:8b81:5714:f8eb:5798:f542:0:2', 'end': '3820:8b81:5714:f8eb:5798:f542:ffff:fffe'}], 'gateway_ip': '3820:8b81:5714:f8eb:5798:f542:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3820:8b81:5714:f8eb:5798:f542:0:2', 'tags': [], 'project_id': 'da461d4135a0404eb972fcded27d81c2'}} 2026-03-26 02:16:50,753 - INFO - Created VN ctest-vn4-12370339 2026-03-26 02:16:50,813 - DEBUG - VN ctest-vn4-12370339 UUID is 9235c7ac-1cc4-4a3e-890a-e327294bd7a2 2026-03-26 02:16:51,071 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9235c7ac-1cc4-4a3e-890a-e327294bd7a2', 'name': 'ctest-vn4-12370339', 'tenant_id': 'da461d4135a0404eb972fcded27d81c2', 'project_id': 'da461d4135a0404eb972fcded27d81c2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['721f3a1c-522a-47ff-9159-f77342b119cb', '78f0c740-b03b-4329-a930-6103fea1ad32'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-27649356', 'ctest-vn4-12370339'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-27649356', 'ctest-policy1-23960632']], 'subnet_ipam': [{'subnet_cidr': '190.218.174.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3820:8b81:5714:f8eb:5798:f542::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-03-26 02:16:51,245 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-03-26 02:16:51,580 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-03-26 02:16:51,631 - DEBUG - Requesting: http://10.0.0.33:8082/domain/d02aa1ee-14e5-42fa-9dcf-10f4984e202d 2026-03-26 02:16:51,652 - DEBUG - Requesting: http://10.0.0.33:8082/project/da461d41-35a0-404e-b972-fcded27d81c2 2026-03-26 02:16:51,749 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/9235c7ac-1cc4-4a3e-890a-e327294bd7a2 2026-03-26 02:16:51,763 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/9235c7ac-1cc4-4a3e-890a-e327294bd7a2 2026-03-26 02:16:51,775 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/67e51de1-f39d-4073-a8ad-274068939715 2026-03-26 02:16:51,783 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/67e51de1-f39d-4073-a8ad-274068939715 2026-03-26 02:16:51,792 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/ebc86e78-7050-4b75-8222-ef68760b428e 2026-03-26 02:16:51,802 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-26 02:16:51,802 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/9235c7ac-1cc4-4a3e-890a-e327294bd7a2 2026-03-26 02:16:51,822 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/67e51de1-f39d-4073-a8ad-274068939715 2026-03-26 02:16:51,846 - INFO - Verified VN network id 11 for VN 9235c7ac-1cc4-4a3e-890a-e327294bd7a2 2026-03-26 02:16:51,846 - INFO - Verifications in API Server for VN ctest-vn4-12370339 passed 2026-03-26 02:16:51,846 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/9235c7ac-1cc4-4a3e-890a-e327294bd7a2 2026-03-26 02:16:51,861 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/67e51de1-f39d-4073-a8ad-274068939715 2026-03-26 02:16:51,869 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/67e51de1-f39d-4073-a8ad-274068939715 2026-03-26 02:16:51,876 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/ebc86e78-7050-4b75-8222-ef68760b428e 2026-03-26 02:16:51,889 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-27649356:ctest-vn4-12370339', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-27649356', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10535546445334071870', 'uuid-lslong': '9874954890299299746'}, 'enable': 'true', 'created': '2026-03-26T02:16:50', 'last-modified': '2026-03-26T02:16:51', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.852756'} 2026-03-26 02:16:51,895 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-26 02:16:51,896 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-12370339 passed 2026-03-26 02:16:51,896 - DEBUG - ====Verifying policy data for ctest-vn4-12370339 in API_Server ====== 2026-03-26 02:16:51,896 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-03-26 02:16:51,902 - DEBUG - Requesting: http://10.0.0.33:8082/domain/d02aa1ee-14e5-42fa-9dcf-10f4984e202d 2026-03-26 02:16:51,916 - DEBUG - Requesting: http://10.0.0.33:8082/project/da461d41-35a0-404e-b972-fcded27d81c2 2026-03-26 02:16:51,988 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/9235c7ac-1cc4-4a3e-890a-e327294bd7a2 2026-03-26 02:16:51,998 - DEBUG - ==>Verifying data for policy with id: d8bbaae7-9791-4198-981d-5f62e662c057, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-27649356', 'ctest-policy1-23960632'] 2026-03-26 02:16:51,998 - INFO - VN ctest-vn4-12370339 Policy verification: verify_vn_policy_in_api_server, status: True 2026-03-26 02:16:51,999 - DEBUG - Verifying the vn in opserver 2026-03-26 02:16:51,999 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-27649356:ctest-vn4-12370339 virtual network link through opserver 10.0.0.33 2026-03-26 02:16:51,999 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-03-26 02:16:52,300 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-03-26 02:16:52,390 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-27649356:ctest-vn4-12370339', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-27649356:ctest-vn4-12370339?flat'} 2026-03-26 02:16:52,390 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-27649356:ctest-vn4-12370339 is found in opserver 2026-03-26 02:16:52,404 - DEBUG - Do not have enough data to verify VN in agent 2026-03-26 02:16:52,409 - DEBUG - VRF ids for VN ctest-vn4-12370339: {} 2026-03-26 02:16:52,409 - DEBUG - ====Verifying data for ctest-policy1-23960632 in API_Server ====== 2026-03-26 02:16:52,409 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-03-26 02:16:52,415 - DEBUG - Requesting: http://10.0.0.33:8082/domain/d02aa1ee-14e5-42fa-9dcf-10f4984e202d 2026-03-26 02:16:52,427 - DEBUG - Requesting: http://10.0.0.33:8082/project/da461d41-35a0-404e-b972-fcded27d81c2 2026-03-26 02:16:52,499 - DEBUG - Requesting: http://10.0.0.33:8082/network-policy/d8bbaae7-9791-4198-981d-5f62e662c057 2026-03-26 02:16:52,511 - INFO - Verified policy ctest-policy1-23960632 in API Server, Result: True 2026-03-26 02:16:52,511 - INFO - Done with setup and verification, moving onto test .. 2026-03-26 02:16:52,520 - INFO - Deleting VN ctest-vn4-12370339 2026-03-26 02:16:52,686 - DEBUG - Response for deleting network () 2026-03-26 02:16:52,686 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/67e51de1-f39d-4073-a8ad-274068939715 2026-03-26 02:16:52,692 - DEBUG - Response Code: 404 2026-03-26 02:16:52,692 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-03-26 02:16:52,698 - DEBUG - Requesting: http://10.0.0.33:8082/domain/d02aa1ee-14e5-42fa-9dcf-10f4984e202d 2026-03-26 02:16:52,754 - DEBUG - Requesting: http://10.0.0.33:8082/project/da461d41-35a0-404e-b972-fcded27d81c2 2026-03-26 02:16:52,832 - INFO - Validated that VN ctest-vn4-12370339 is not found in API Server 2026-03-26 02:16:52,842 - DEBUG - VN ctest-vn4-12370339 is not present in Agent 10.0.0.33 2026-03-26 02:16:52,842 - INFO - Validated that VN ctest-vn4-12370339 is not in any agent 2026-03-26 02:16:52,858 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-12370339 info 2026-03-26 02:16:52,891 - INFO - Deleted policy ctest-policy1-23960632 2026-03-26 02:16:53,061 - DEBUG - policy ctest-policy1-23960632 is not found in API Server 2026-03-26 02:16:53,354 - DEBUG - No XMPP flaps were noticed during the test 2026-03-26 02:16:53,354 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2026-03-26 02:16:53,354 - INFO - -------------------------------------------------------------------------------- 2026-03-26 02:16:53,669 - DEBUG - No XMPP flaps were noticed during the test 2026-03-26 02:16:53,669 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2026-03-26 02:16:53,669 - INFO - -------------------------------------------------------------------------------- 2026-03-26 02:16:54,528 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-27649356, ID : da461d41-35a0-404e-b972-fcded27d81c2