2026-01-05 03:04:01,027 - INFO - Domain Default found not creating 2026-01-05 03:04:01,228 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-17844959 not found, creating it 2026-01-05 03:04:01,714 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-17844959, ID : 1c4609c1-decd-4283-9309-f99f5c8d01dd 2026-01-05 03:04:03,246 - INFO - ================================================================================ 2026-01-05 03:04:03,247 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-05 03:04:03,502 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.14': '0'}} with 2026-01-05 03:04:03,502 - INFO - Initial checks done. Running the testcase now 2026-01-05 03:04:03,503 - INFO - 2026-01-05 03:04:03,503 - INFO - ================================================================================ 2026-01-05 03:04:03,503 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-05 03:04:03,503 - 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-01-05 03:04:03,793 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.14': '0'}} with 2026-01-05 03:04:03,794 - INFO - Initial checks done. Running the testcase now 2026-01-05 03:04:03,794 - INFO - 2026-01-05 03:04:04,163 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-17844959:ctest-vn4-92971262, 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-17844959:ctest-vn4-92971262, 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-17844959:ctest-vn4-92971262, 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-17844959:ctest-vn4-92971262, 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-01-05 03:04:04,682 - DEBUG - Response for create_network : {'network': {'id': '668b6df4-2629-4266-8a6a-06fb3d245d72', 'name': 'ctest-vn4-92971262', 'tenant_id': '1c4609c1decd42839309f99f5c8d01dd', 'project_id': '1c4609c1decd42839309f99f5c8d01dd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-17844959', 'ctest-vn4-92971262'], 'port_security_enabled': True, 'description': ''}} 2026-01-05 03:04:04,829 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e68f4277-f79f-4886-8889-09263598cd0e', 'name': '', 'tenant_id': '1c4609c1decd42839309f99f5c8d01dd', 'network_id': '668b6df4-2629-4266-8a6a-06fb3d245d72', 'ip_version': 4, 'cidr': '79.144.55.64/26', 'allocation_pools': [{'start': '79.144.55.66', 'end': '79.144.55.126'}], 'gateway_ip': '79.144.55.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '79.144.55.66', 'tags': [], 'project_id': '1c4609c1decd42839309f99f5c8d01dd'}} 2026-01-05 03:04:05,044 - DEBUG - Response for create_subnet : {'subnet': {'id': '4e499253-c7f9-485a-93a1-92a9d342abbc', 'name': '', 'tenant_id': '1c4609c1decd42839309f99f5c8d01dd', 'network_id': '668b6df4-2629-4266-8a6a-06fb3d245d72', 'ip_version': 6, 'cidr': '3e36:b99b:5726:a4b3:8f57:cc19::/96', 'allocation_pools': [{'start': '3e36:b99b:5726:a4b3:8f57:cc19:0:2', 'end': '3e36:b99b:5726:a4b3:8f57:cc19:ffff:fffe'}], 'gateway_ip': '3e36:b99b:5726:a4b3:8f57:cc19:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3e36:b99b:5726:a4b3:8f57:cc19:0:2', 'tags': [], 'project_id': '1c4609c1decd42839309f99f5c8d01dd'}} 2026-01-05 03:04:05,069 - INFO - Created VN ctest-vn4-92971262 2026-01-05 03:04:05,123 - DEBUG - VN ctest-vn4-92971262 UUID is 668b6df4-2629-4266-8a6a-06fb3d245d72 2026-01-05 03:04:05,311 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '668b6df4-2629-4266-8a6a-06fb3d245d72', 'name': 'ctest-vn4-92971262', 'tenant_id': '1c4609c1decd42839309f99f5c8d01dd', 'project_id': '1c4609c1decd42839309f99f5c8d01dd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e68f4277-f79f-4886-8889-09263598cd0e', '4e499253-c7f9-485a-93a1-92a9d342abbc'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-17844959', 'ctest-vn4-92971262'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-17844959', 'ctest-policy1-36461056']], 'subnet_ipam': [{'subnet_cidr': '79.144.55.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3e36:b99b:5726:a4b3:8f57:cc19::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-01-05 03:04:05,479 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-01-05 03:04:05,781 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-01-05 03:04:05,815 - DEBUG - Requesting: http://10.0.0.22:8082/domain/26072c94-ea38-40a8-8151-a418d6e0b95d 2026-01-05 03:04:05,828 - DEBUG - Requesting: http://10.0.0.22:8082/project/1c4609c1-decd-4283-9309-f99f5c8d01dd 2026-01-05 03:04:05,900 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/668b6df4-2629-4266-8a6a-06fb3d245d72 2026-01-05 03:04:05,912 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/668b6df4-2629-4266-8a6a-06fb3d245d72 2026-01-05 03:04:05,921 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/a46f3ca1-bed8-4c98-b372-cf965502cf82 2026-01-05 03:04:05,927 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/a46f3ca1-bed8-4c98-b372-cf965502cf82 2026-01-05 03:04:05,933 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/7d90d230-b6d3-482a-b1e2-6e02177f13da 2026-01-05 03:04:05,939 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-05 03:04:05,939 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/668b6df4-2629-4266-8a6a-06fb3d245d72 2026-01-05 03:04:05,948 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/a46f3ca1-bed8-4c98-b372-cf965502cf82 2026-01-05 03:04:05,961 - INFO - Verified VN network id 11 for VN 668b6df4-2629-4266-8a6a-06fb3d245d72 2026-01-05 03:04:05,961 - INFO - Verifications in API Server for VN ctest-vn4-92971262 passed 2026-01-05 03:04:05,961 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/668b6df4-2629-4266-8a6a-06fb3d245d72 2026-01-05 03:04:05,970 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/a46f3ca1-bed8-4c98-b372-cf965502cf82 2026-01-05 03:04:05,977 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/a46f3ca1-bed8-4c98-b372-cf965502cf82 2026-01-05 03:04:05,984 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/7d90d230-b6d3-482a-b1e2-6e02177f13da 2026-01-05 03:04:05,996 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-17844959:ctest-vn4-92971262', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-17844959', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7389120509011116646', 'uuid-lslong': '9973792000897736050'}, 'enable': 'true', 'created': '2026-01-05T03:04:04', 'last-modified': '2026-01-05T03:04:05', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.706810'} 2026-01-05 03:04:06,004 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-05 03:04:06,004 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-92971262 passed 2026-01-05 03:04:06,004 - DEBUG - ====Verifying policy data for ctest-vn4-92971262 in API_Server ====== 2026-01-05 03:04:06,004 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-01-05 03:04:06,010 - DEBUG - Requesting: http://10.0.0.22:8082/domain/26072c94-ea38-40a8-8151-a418d6e0b95d 2026-01-05 03:04:06,020 - DEBUG - Requesting: http://10.0.0.22:8082/project/1c4609c1-decd-4283-9309-f99f5c8d01dd 2026-01-05 03:04:06,093 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/668b6df4-2629-4266-8a6a-06fb3d245d72 2026-01-05 03:04:06,105 - DEBUG - ==>Verifying data for policy with id: 2d707276-48d6-46a4-8234-9b871f7aa07a, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-17844959', 'ctest-policy1-36461056'] 2026-01-05 03:04:06,105 - INFO - VN ctest-vn4-92971262 Policy verification: verify_vn_policy_in_api_server, status: True 2026-01-05 03:04:06,105 - DEBUG - Verifying the vn in opserver 2026-01-05 03:04:06,105 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-17844959:ctest-vn4-92971262 virtual network link through opserver 10.0.0.22 2026-01-05 03:04:06,106 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2026-01-05 03:04:06,419 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2026-01-05 03:04:06,485 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-17844959:ctest-vn4-92971262', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-17844959:ctest-vn4-92971262?flat'} 2026-01-05 03:04:06,485 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-17844959:ctest-vn4-92971262 is found in opserver 2026-01-05 03:04:06,495 - DEBUG - Do not have enough data to verify VN in agent 2026-01-05 03:04:06,499 - DEBUG - VRF ids for VN ctest-vn4-92971262: {} 2026-01-05 03:04:06,500 - DEBUG - ====Verifying data for ctest-policy1-36461056 in API_Server ====== 2026-01-05 03:04:06,500 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-01-05 03:04:06,505 - DEBUG - Requesting: http://10.0.0.22:8082/domain/26072c94-ea38-40a8-8151-a418d6e0b95d 2026-01-05 03:04:06,515 - DEBUG - Requesting: http://10.0.0.22:8082/project/1c4609c1-decd-4283-9309-f99f5c8d01dd 2026-01-05 03:04:06,588 - DEBUG - Requesting: http://10.0.0.22:8082/network-policy/2d707276-48d6-46a4-8234-9b871f7aa07a 2026-01-05 03:04:06,598 - INFO - Verified policy ctest-policy1-36461056 in API Server, Result: True 2026-01-05 03:04:06,598 - INFO - Done with setup and verification, moving onto test .. 2026-01-05 03:04:06,606 - INFO - Deleting VN ctest-vn4-92971262 2026-01-05 03:04:06,740 - DEBUG - Response for deleting network () 2026-01-05 03:04:06,740 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/a46f3ca1-bed8-4c98-b372-cf965502cf82 2026-01-05 03:04:06,745 - DEBUG - Response Code: 404 2026-01-05 03:04:06,745 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-01-05 03:04:06,750 - DEBUG - Requesting: http://10.0.0.22:8082/domain/26072c94-ea38-40a8-8151-a418d6e0b95d 2026-01-05 03:04:06,803 - DEBUG - Requesting: http://10.0.0.22:8082/project/1c4609c1-decd-4283-9309-f99f5c8d01dd 2026-01-05 03:04:06,878 - INFO - Validated that VN ctest-vn4-92971262 is not found in API Server 2026-01-05 03:04:06,889 - DEBUG - VN ctest-vn4-92971262 is not present in Agent 10.0.0.22 2026-01-05 03:04:06,889 - INFO - Validated that VN ctest-vn4-92971262 is not in any agent 2026-01-05 03:04:06,905 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-92971262 info 2026-01-05 03:04:06,934 - INFO - Deleted policy ctest-policy1-36461056 2026-01-05 03:04:07,098 - DEBUG - policy ctest-policy1-36461056 is not found in API Server 2026-01-05 03:04:07,353 - DEBUG - No XMPP flaps were noticed during the test 2026-01-05 03:04:07,353 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-01-05 03:04:07,353 - INFO - -------------------------------------------------------------------------------- 2026-01-05 03:04:07,640 - DEBUG - No XMPP flaps were noticed during the test 2026-01-05 03:04:07,640 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-01-05 03:04:07,640 - INFO - -------------------------------------------------------------------------------- 2026-01-05 03:04:08,345 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-17844959, ID : 1c4609c1-decd-4283-9309-f99f5c8d01dd