2026-04-17 19:32:26,311 - INFO - Domain Default found not creating 2026-04-17 19:32:26,537 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-23142120 not found, creating it 2026-04-17 19:32:27,031 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-23142120, ID : 1ea8d955-b89b-47ab-b6d9-2fb796a4b082 2026-04-17 19:32:28,715 - INFO - ================================================================================ 2026-04-17 19:32:28,715 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-04-17 19:32:28,988 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with 2026-04-17 19:32:28,988 - INFO - Initial checks done. Running the testcase now 2026-04-17 19:32:28,988 - INFO - 2026-04-17 19:32:28,988 - INFO - ================================================================================ 2026-04-17 19:32:28,988 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-04-17 19:32:28,988 - 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-04-17 19:32:29,267 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with 2026-04-17 19:32:29,267 - INFO - Initial checks done. Running the testcase now 2026-04-17 19:32:29,267 - INFO - 2026-04-17 19:32:29,683 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-23142120:ctest-vn4-22288255, 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-23142120:ctest-vn4-22288255, 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-23142120:ctest-vn4-22288255, 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-23142120:ctest-vn4-22288255, 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-04-17 19:32:30,230 - DEBUG - Response for create_network : {'network': {'id': 'a6cbc557-e88b-4c5f-a010-b021d1199577', 'name': 'ctest-vn4-22288255', 'tenant_id': '1ea8d955b89b47abb6d92fb796a4b082', 'project_id': '1ea8d955b89b47abb6d92fb796a4b082', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-23142120', 'ctest-vn4-22288255'], 'port_security_enabled': True, 'description': ''}} 2026-04-17 19:32:30,453 - DEBUG - Response for create_subnet : {'subnet': {'id': '27b647cb-1237-49b9-93fe-7bf6df6fe39b', 'name': '', 'tenant_id': '1ea8d955b89b47abb6d92fb796a4b082', 'network_id': 'a6cbc557-e88b-4c5f-a010-b021d1199577', 'ip_version': 4, 'cidr': '9.39.93.128/26', 'allocation_pools': [{'start': '9.39.93.130', 'end': '9.39.93.190'}], 'gateway_ip': '9.39.93.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '9.39.93.130', 'tags': [], 'project_id': '1ea8d955b89b47abb6d92fb796a4b082'}} 2026-04-17 19:32:30,611 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ff375bcf-bce7-4db4-952a-f6f5695aee47', 'name': '', 'tenant_id': '1ea8d955b89b47abb6d92fb796a4b082', 'network_id': 'a6cbc557-e88b-4c5f-a010-b021d1199577', 'ip_version': 6, 'cidr': '2279:ab9e:103d:9dde:654:43e2::/96', 'allocation_pools': [{'start': '2279:ab9e:103d:9dde:654:43e2:0:2', 'end': '2279:ab9e:103d:9dde:654:43e2:ffff:fffe'}], 'gateway_ip': '2279:ab9e:103d:9dde:654:43e2:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2279:ab9e:103d:9dde:654:43e2:0:2', 'tags': [], 'project_id': '1ea8d955b89b47abb6d92fb796a4b082'}} 2026-04-17 19:32:30,633 - INFO - Created VN ctest-vn4-22288255 2026-04-17 19:32:30,686 - DEBUG - VN ctest-vn4-22288255 UUID is a6cbc557-e88b-4c5f-a010-b021d1199577 2026-04-17 19:32:30,900 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a6cbc557-e88b-4c5f-a010-b021d1199577', 'name': 'ctest-vn4-22288255', 'tenant_id': '1ea8d955b89b47abb6d92fb796a4b082', 'project_id': '1ea8d955b89b47abb6d92fb796a4b082', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['27b647cb-1237-49b9-93fe-7bf6df6fe39b', 'ff375bcf-bce7-4db4-952a-f6f5695aee47'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-23142120', 'ctest-vn4-22288255'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-23142120', 'ctest-policy1-78892891']], 'subnet_ipam': [{'subnet_cidr': '9.39.93.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2279:ab9e:103d:9dde:654:43e2::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-04-17 19:32:31,062 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-04-17 19:32:31,404 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-04-17 19:32:31,443 - DEBUG - Requesting: http://10.0.0.33:8082/domain/f2cc9547-5ac2-4ca4-a756-f5cfaae1bbe0 2026-04-17 19:32:31,458 - DEBUG - Requesting: http://10.0.0.33:8082/project/1ea8d955-b89b-47ab-b6d9-2fb796a4b082 2026-04-17 19:32:31,531 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/a6cbc557-e88b-4c5f-a010-b021d1199577 2026-04-17 19:32:31,544 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/a6cbc557-e88b-4c5f-a010-b021d1199577 2026-04-17 19:32:31,555 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/06fa2533-df14-41f0-a7fa-0f201741d443 2026-04-17 19:32:31,564 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/06fa2533-df14-41f0-a7fa-0f201741d443 2026-04-17 19:32:31,572 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/9da3a13f-13ee-4dfe-8b5d-daaa5cc53b4b 2026-04-17 19:32:31,581 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-17 19:32:31,581 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/a6cbc557-e88b-4c5f-a010-b021d1199577 2026-04-17 19:32:31,593 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/06fa2533-df14-41f0-a7fa-0f201741d443 2026-04-17 19:32:31,611 - INFO - Verified VN network id 11 for VN a6cbc557-e88b-4c5f-a010-b021d1199577 2026-04-17 19:32:31,612 - INFO - Verifications in API Server for VN ctest-vn4-22288255 passed 2026-04-17 19:32:31,612 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/a6cbc557-e88b-4c5f-a010-b021d1199577 2026-04-17 19:32:31,625 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/06fa2533-df14-41f0-a7fa-0f201741d443 2026-04-17 19:32:31,636 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/06fa2533-df14-41f0-a7fa-0f201741d443 2026-04-17 19:32:31,646 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/9da3a13f-13ee-4dfe-8b5d-daaa5cc53b4b 2026-04-17 19:32:31,662 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-23142120:ctest-vn4-22288255', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-23142120', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12018917011922570335', 'uuid-lslong': '11533912304984364407'}, 'enable': 'true', 'created': '2026-04-17T19:32:30', 'last-modified': '2026-04-17T19:32:30', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.793797'} 2026-04-17 19:32:31,669 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-17 19:32:31,669 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-22288255 passed 2026-04-17 19:32:31,669 - DEBUG - ====Verifying policy data for ctest-vn4-22288255 in API_Server ====== 2026-04-17 19:32:31,669 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-04-17 19:32:31,676 - DEBUG - Requesting: http://10.0.0.33:8082/domain/f2cc9547-5ac2-4ca4-a756-f5cfaae1bbe0 2026-04-17 19:32:31,688 - DEBUG - Requesting: http://10.0.0.33:8082/project/1ea8d955-b89b-47ab-b6d9-2fb796a4b082 2026-04-17 19:32:31,762 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/a6cbc557-e88b-4c5f-a010-b021d1199577 2026-04-17 19:32:31,773 - DEBUG - ==>Verifying data for policy with id: e1b8a4eb-9cb3-416c-b406-bf717f4ff7ce, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-23142120', 'ctest-policy1-78892891'] 2026-04-17 19:32:31,773 - INFO - VN ctest-vn4-22288255 Policy verification: verify_vn_policy_in_api_server, status: True 2026-04-17 19:32:31,773 - DEBUG - Verifying the vn in opserver 2026-04-17 19:32:31,773 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-23142120:ctest-vn4-22288255 virtual network link through opserver 10.0.0.33 2026-04-17 19:32:31,774 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-04-17 19:32:32,113 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-04-17 19:32:32,180 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-23142120:ctest-vn4-22288255', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-23142120:ctest-vn4-22288255?flat'} 2026-04-17 19:32:32,180 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-23142120:ctest-vn4-22288255 is found in opserver 2026-04-17 19:32:32,190 - DEBUG - Do not have enough data to verify VN in agent 2026-04-17 19:32:32,194 - DEBUG - VRF ids for VN ctest-vn4-22288255: {} 2026-04-17 19:32:32,195 - DEBUG - ====Verifying data for ctest-policy1-78892891 in API_Server ====== 2026-04-17 19:32:32,195 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-04-17 19:32:32,200 - DEBUG - Requesting: http://10.0.0.33:8082/domain/f2cc9547-5ac2-4ca4-a756-f5cfaae1bbe0 2026-04-17 19:32:32,211 - DEBUG - Requesting: http://10.0.0.33:8082/project/1ea8d955-b89b-47ab-b6d9-2fb796a4b082 2026-04-17 19:32:32,286 - DEBUG - Requesting: http://10.0.0.33:8082/network-policy/e1b8a4eb-9cb3-416c-b406-bf717f4ff7ce 2026-04-17 19:32:32,297 - INFO - Verified policy ctest-policy1-78892891 in API Server, Result: True 2026-04-17 19:32:32,297 - INFO - Done with setup and verification, moving onto test .. 2026-04-17 19:32:32,306 - INFO - Deleting VN ctest-vn4-22288255 2026-04-17 19:32:32,445 - DEBUG - Response for deleting network () 2026-04-17 19:32:32,445 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/06fa2533-df14-41f0-a7fa-0f201741d443 2026-04-17 19:32:32,450 - DEBUG - Response Code: 404 2026-04-17 19:32:32,451 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-04-17 19:32:32,456 - DEBUG - Requesting: http://10.0.0.33:8082/domain/f2cc9547-5ac2-4ca4-a756-f5cfaae1bbe0 2026-04-17 19:32:32,512 - DEBUG - Requesting: http://10.0.0.33:8082/project/1ea8d955-b89b-47ab-b6d9-2fb796a4b082 2026-04-17 19:32:32,585 - INFO - Validated that VN ctest-vn4-22288255 is not found in API Server 2026-04-17 19:32:32,595 - DEBUG - VN ctest-vn4-22288255 is not present in Agent 10.0.0.33 2026-04-17 19:32:32,595 - INFO - Validated that VN ctest-vn4-22288255 is not in any agent 2026-04-17 19:32:32,608 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-22288255 info 2026-04-17 19:32:32,632 - INFO - Deleted policy ctest-policy1-78892891 2026-04-17 19:32:32,794 - DEBUG - policy ctest-policy1-78892891 is not found in API Server 2026-04-17 19:32:33,047 - DEBUG - No XMPP flaps were noticed during the test