2026-07-28 19:16:39,384 - INFO - Domain Default found not creating 2026-07-28 19:16:39,564 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-10007319 not found, creating it 2026-07-28 19:16:40,099 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-10007319, ID : 7ebd7acb-5c6b-4f05-9cfb-ce37e1a37cd2 2026-07-28 19:16:41,989 - INFO - ================================================================================ 2026-07-28 19:16:41,990 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-07-28 19:16:42,256 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-07-28 19:16:42,257 - INFO - Initial checks done. Running the testcase now 2026-07-28 19:16:42,257 - INFO - 2026-07-28 19:16:42,257 - INFO - ================================================================================ 2026-07-28 19:16:42,257 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-07-28 19:16:42,257 - 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-07-28 19:16:42,560 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-07-28 19:16:42,560 - INFO - Initial checks done. Running the testcase now 2026-07-28 19:16:42,560 - INFO - 2026-07-28 19:16:42,999 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-10007319:ctest-vn4-09218447, 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-10007319:ctest-vn4-09218447, 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-10007319:ctest-vn4-09218447, 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-10007319:ctest-vn4-09218447, 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-07-28 19:16:43,575 - DEBUG - Response for create_network : {'network': {'id': 'fa573239-8b58-49cf-a07c-39a2baf737bf', 'name': 'ctest-vn4-09218447', 'tenant_id': '7ebd7acb5c6b4f059cfbce37e1a37cd2', 'project_id': '7ebd7acb5c6b4f059cfbce37e1a37cd2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-10007319', 'ctest-vn4-09218447'], 'port_security_enabled': True, 'description': ''}} 2026-07-28 19:16:43,829 - DEBUG - Response for create_subnet : {'subnet': {'id': '43dfeec2-39e3-4921-a608-f2775d82a4ff', 'name': '', 'tenant_id': '7ebd7acb5c6b4f059cfbce37e1a37cd2', 'network_id': 'fa573239-8b58-49cf-a07c-39a2baf737bf', 'ip_version': 4, 'cidr': '28.253.196.192/26', 'allocation_pools': [{'start': '28.253.196.194', 'end': '28.253.196.254'}], 'gateway_ip': '28.253.196.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '28.253.196.194', 'tags': [], 'project_id': '7ebd7acb5c6b4f059cfbce37e1a37cd2'}} 2026-07-28 19:16:44,076 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b79cac14-0672-44f9-946b-c3093a6d6643', 'name': '', 'tenant_id': '7ebd7acb5c6b4f059cfbce37e1a37cd2', 'network_id': 'fa573239-8b58-49cf-a07c-39a2baf737bf', 'ip_version': 6, 'cidr': '23fa:1dc4:4ef0:c3d1:6e60:407f::/96', 'allocation_pools': [{'start': '23fa:1dc4:4ef0:c3d1:6e60:407f:0:2', 'end': '23fa:1dc4:4ef0:c3d1:6e60:407f:ffff:fffe'}], 'gateway_ip': '23fa:1dc4:4ef0:c3d1:6e60:407f:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '23fa:1dc4:4ef0:c3d1:6e60:407f:0:2', 'tags': [], 'project_id': '7ebd7acb5c6b4f059cfbce37e1a37cd2'}} 2026-07-28 19:16:44,103 - INFO - Created VN ctest-vn4-09218447 2026-07-28 19:16:44,157 - DEBUG - VN ctest-vn4-09218447 UUID is fa573239-8b58-49cf-a07c-39a2baf737bf 2026-07-28 19:16:44,431 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'fa573239-8b58-49cf-a07c-39a2baf737bf', 'name': 'ctest-vn4-09218447', 'tenant_id': '7ebd7acb5c6b4f059cfbce37e1a37cd2', 'project_id': '7ebd7acb5c6b4f059cfbce37e1a37cd2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['43dfeec2-39e3-4921-a608-f2775d82a4ff', 'b79cac14-0672-44f9-946b-c3093a6d6643'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-10007319', 'ctest-vn4-09218447'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-10007319', 'ctest-policy1-74556656']], 'subnet_ipam': [{'subnet_cidr': '28.253.196.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '23fa:1dc4:4ef0:c3d1:6e60:407f::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-07-28 19:16:44,609 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-07-28 19:16:45,001 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-07-28 19:16:45,038 - DEBUG - Requesting: http://10.0.0.38:8082/domain/abc7e751-644c-4a6f-9477-52ed744d21f4 2026-07-28 19:16:45,052 - DEBUG - Requesting: http://10.0.0.38:8082/project/7ebd7acb-5c6b-4f05-9cfb-ce37e1a37cd2 2026-07-28 19:16:45,151 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/fa573239-8b58-49cf-a07c-39a2baf737bf 2026-07-28 19:16:45,166 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/fa573239-8b58-49cf-a07c-39a2baf737bf 2026-07-28 19:16:45,178 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/03d8e8ac-8bfd-4175-8147-f68268b34492 2026-07-28 19:16:45,200 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/03d8e8ac-8bfd-4175-8147-f68268b34492 2026-07-28 19:16:45,209 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/7b2c822c-8531-41e9-a546-c953e10c5536 2026-07-28 19:16:45,217 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-07-28 19:16:45,217 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/fa573239-8b58-49cf-a07c-39a2baf737bf 2026-07-28 19:16:45,229 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/03d8e8ac-8bfd-4175-8147-f68268b34492 2026-07-28 19:16:45,258 - INFO - Verified VN network id 11 for VN fa573239-8b58-49cf-a07c-39a2baf737bf 2026-07-28 19:16:45,258 - INFO - Verifications in API Server for VN ctest-vn4-09218447 passed 2026-07-28 19:16:45,259 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/fa573239-8b58-49cf-a07c-39a2baf737bf 2026-07-28 19:16:45,270 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/03d8e8ac-8bfd-4175-8147-f68268b34492 2026-07-28 19:16:45,279 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/03d8e8ac-8bfd-4175-8147-f68268b34492 2026-07-28 19:16:45,287 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/7b2c822c-8531-41e9-a546-c953e10c5536 2026-07-28 19:16:45,302 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-10007319:ctest-vn4-09218447', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-10007319', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18038942055188154831', 'uuid-lslong': '11564181314264840127'}, 'enable': 'true', 'created': '2026-07-28T19:16:43', 'last-modified': '2026-07-28T19:16:44', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.926492'} 2026-07-28 19:16:45,310 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-07-28 19:16:45,310 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-09218447 passed 2026-07-28 19:16:45,310 - DEBUG - ====Verifying policy data for ctest-vn4-09218447 in API_Server ====== 2026-07-28 19:16:45,310 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-07-28 19:16:45,318 - DEBUG - Requesting: http://10.0.0.38:8082/domain/abc7e751-644c-4a6f-9477-52ed744d21f4 2026-07-28 19:16:45,333 - DEBUG - Requesting: http://10.0.0.38:8082/project/7ebd7acb-5c6b-4f05-9cfb-ce37e1a37cd2 2026-07-28 19:16:45,416 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/fa573239-8b58-49cf-a07c-39a2baf737bf 2026-07-28 19:16:45,433 - DEBUG - ==>Verifying data for policy with id: fe5b9a04-c102-48c5-bcb0-04a35e3cfac0, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-10007319', 'ctest-policy1-74556656'] 2026-07-28 19:16:45,433 - INFO - VN ctest-vn4-09218447 Policy verification: verify_vn_policy_in_api_server, status: True 2026-07-28 19:16:45,433 - DEBUG - Verifying the vn in opserver 2026-07-28 19:16:45,433 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-10007319:ctest-vn4-09218447 virtual network link through opserver 10.0.0.38 2026-07-28 19:16:45,433 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-07-28 19:16:45,805 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-07-28 19:16:46,252 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-10007319:ctest-vn4-09218447', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-10007319:ctest-vn4-09218447?flat'} 2026-07-28 19:16:46,252 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-10007319:ctest-vn4-09218447 is found in opserver 2026-07-28 19:16:46,268 - DEBUG - Do not have enough data to verify VN in agent 2026-07-28 19:16:46,279 - DEBUG - VRF ids for VN ctest-vn4-09218447: {} 2026-07-28 19:16:46,280 - DEBUG - ====Verifying data for ctest-policy1-74556656 in API_Server ====== 2026-07-28 19:16:46,280 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-07-28 19:16:46,287 - DEBUG - Requesting: http://10.0.0.38:8082/domain/abc7e751-644c-4a6f-9477-52ed744d21f4 2026-07-28 19:16:46,304 - DEBUG - Requesting: http://10.0.0.38:8082/project/7ebd7acb-5c6b-4f05-9cfb-ce37e1a37cd2 2026-07-28 19:16:46,390 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/fe5b9a04-c102-48c5-bcb0-04a35e3cfac0 2026-07-28 19:16:46,403 - INFO - Verified policy ctest-policy1-74556656 in API Server, Result: True 2026-07-28 19:16:46,403 - INFO - Done with setup and verification, moving onto test .. 2026-07-28 19:16:46,416 - INFO - Deleting VN ctest-vn4-09218447 2026-07-28 19:16:46,624 - DEBUG - Response for deleting network () 2026-07-28 19:16:46,624 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/03d8e8ac-8bfd-4175-8147-f68268b34492 2026-07-28 19:16:46,631 - DEBUG - Response Code: 404 2026-07-28 19:16:46,631 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-07-28 19:16:46,637 - DEBUG - Requesting: http://10.0.0.38:8082/domain/abc7e751-644c-4a6f-9477-52ed744d21f4 2026-07-28 19:16:46,699 - DEBUG - Requesting: http://10.0.0.38:8082/project/7ebd7acb-5c6b-4f05-9cfb-ce37e1a37cd2 2026-07-28 19:16:46,783 - INFO - Validated that VN ctest-vn4-09218447 is not found in API Server 2026-07-28 19:16:46,794 - DEBUG - VN ctest-vn4-09218447 is not present in Agent 10.0.0.38 2026-07-28 19:16:46,794 - INFO - Validated that VN ctest-vn4-09218447 is not in any agent 2026-07-28 19:16:46,815 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-09218447 info 2026-07-28 19:16:46,846 - INFO - Deleted policy ctest-policy1-74556656 2026-07-28 19:16:47,036 - DEBUG - policy ctest-policy1-74556656 is not found in API Server 2026-07-28 19:16:47,310 - DEBUG - No XMPP flaps were noticed during the test