2026-11-06 14:36:43,938 - INFO - Domain Default found not creating 2026-11-06 14:36:44,134 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-17443134 not found, creating it 2026-11-06 14:36:44,640 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-17443134, ID : 56690216-50ca-41fb-aeaa-d826be46a4f8 2026-11-06 14:36:46,276 - INFO - ================================================================================ 2026-11-06 14:36:46,276 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-11-06 14:36:46,530 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-11-06 14:36:46,530 - INFO - Initial checks done. Running the testcase now 2026-11-06 14:36:46,530 - INFO - 2026-11-06 14:36:46,530 - INFO - ================================================================================ 2026-11-06 14:36:46,530 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-11-06 14:36:46,530 - 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-11-06 14:36:46,822 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-11-06 14:36:46,822 - INFO - Initial checks done. Running the testcase now 2026-11-06 14:36:46,822 - INFO - 2026-11-06 14:36:47,220 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-17443134:ctest-vn4-16606700, 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-17443134:ctest-vn4-16606700, 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-17443134:ctest-vn4-16606700, 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-17443134:ctest-vn4-16606700, 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-11-06 14:36:47,754 - DEBUG - Response for create_network : {'network': {'id': '58d0387f-3f2f-4d40-be24-b34148e46522', 'name': 'ctest-vn4-16606700', 'tenant_id': '5669021650ca41fbaeaad826be46a4f8', 'project_id': '5669021650ca41fbaeaad826be46a4f8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-17443134', 'ctest-vn4-16606700'], 'port_security_enabled': True, 'description': ''}} 2026-11-06 14:36:47,959 - DEBUG - Response for create_subnet : {'subnet': {'id': '5d432d22-a0e8-43e1-9fa7-6163911d62e8', 'name': '', 'tenant_id': '5669021650ca41fbaeaad826be46a4f8', 'network_id': '58d0387f-3f2f-4d40-be24-b34148e46522', 'ip_version': 4, 'cidr': '40.165.1.64/26', 'allocation_pools': [{'start': '40.165.1.66', 'end': '40.165.1.126'}], 'gateway_ip': '40.165.1.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '40.165.1.66', 'tags': [], 'project_id': '5669021650ca41fbaeaad826be46a4f8'}} 2026-11-06 14:36:48,167 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd2a473df-6c07-46bf-9ddc-8dbc2a82a806', 'name': '', 'tenant_id': '5669021650ca41fbaeaad826be46a4f8', 'network_id': '58d0387f-3f2f-4d40-be24-b34148e46522', 'ip_version': 6, 'cidr': '28b9:c166:b6e8:d86b:432:47d4::/96', 'allocation_pools': [{'start': '28b9:c166:b6e8:d86b:432:47d4:0:2', 'end': '28b9:c166:b6e8:d86b:432:47d4:ffff:fffe'}], 'gateway_ip': '28b9:c166:b6e8:d86b:432:47d4:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '28b9:c166:b6e8:d86b:432:47d4:0:2', 'tags': [], 'project_id': '5669021650ca41fbaeaad826be46a4f8'}} 2026-11-06 14:36:48,189 - INFO - Created VN ctest-vn4-16606700 2026-11-06 14:36:48,244 - DEBUG - VN ctest-vn4-16606700 UUID is 58d0387f-3f2f-4d40-be24-b34148e46522 2026-11-06 14:36:48,451 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '58d0387f-3f2f-4d40-be24-b34148e46522', 'name': 'ctest-vn4-16606700', 'tenant_id': '5669021650ca41fbaeaad826be46a4f8', 'project_id': '5669021650ca41fbaeaad826be46a4f8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['5d432d22-a0e8-43e1-9fa7-6163911d62e8', 'd2a473df-6c07-46bf-9ddc-8dbc2a82a806'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-17443134', 'ctest-vn4-16606700'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-17443134', 'ctest-policy1-63607182']], 'subnet_ipam': [{'subnet_cidr': '40.165.1.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '28b9:c166:b6e8:d86b:432:47d4::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-11-06 14:36:48,620 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-11-06 14:36:48,943 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-11-06 14:36:48,973 - DEBUG - Requesting: http://10.0.0.38:8082/domain/f56d05e6-50cc-4c34-bfa5-c3e4c856b5f3 2026-11-06 14:36:48,990 - DEBUG - Requesting: http://10.0.0.38:8082/project/56690216-50ca-41fb-aeaa-d826be46a4f8 2026-11-06 14:36:49,067 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/58d0387f-3f2f-4d40-be24-b34148e46522 2026-11-06 14:36:49,079 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/58d0387f-3f2f-4d40-be24-b34148e46522 2026-11-06 14:36:49,091 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/4b3edbc4-0cb3-4494-b259-3e49245552ea 2026-11-06 14:36:49,100 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/4b3edbc4-0cb3-4494-b259-3e49245552ea 2026-11-06 14:36:49,108 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/51aeb8b7-b869-4bb6-860c-855a32b959d6 2026-11-06 14:36:49,116 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-11-06 14:36:49,116 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/58d0387f-3f2f-4d40-be24-b34148e46522 2026-11-06 14:36:49,126 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/4b3edbc4-0cb3-4494-b259-3e49245552ea 2026-11-06 14:36:49,141 - INFO - Verified VN network id 10 for VN 58d0387f-3f2f-4d40-be24-b34148e46522 2026-11-06 14:36:49,141 - INFO - Verifications in API Server for VN ctest-vn4-16606700 passed 2026-11-06 14:36:49,141 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/58d0387f-3f2f-4d40-be24-b34148e46522 2026-11-06 14:36:49,152 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/4b3edbc4-0cb3-4494-b259-3e49245552ea 2026-11-06 14:36:49,159 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/4b3edbc4-0cb3-4494-b259-3e49245552ea 2026-11-06 14:36:49,168 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/51aeb8b7-b869-4bb6-860c-855a32b959d6 2026-11-06 14:36:49,183 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-17443134:ctest-vn4-16606700', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-17443134', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6399677189665541440', 'uuid-lslong': '13701273059345065250'}, 'enable': 'true', 'created': '2026-11-06T14:36:47', 'last-modified': '2026-11-06T14:36:48', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.753273'} 2026-11-06 14:36:49,192 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-11-06 14:36:49,193 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-16606700 passed 2026-11-06 14:36:49,193 - DEBUG - ====Verifying policy data for ctest-vn4-16606700 in API_Server ====== 2026-11-06 14:36:49,193 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-11-06 14:36:49,201 - DEBUG - Requesting: http://10.0.0.38:8082/domain/f56d05e6-50cc-4c34-bfa5-c3e4c856b5f3 2026-11-06 14:36:49,213 - DEBUG - Requesting: http://10.0.0.38:8082/project/56690216-50ca-41fb-aeaa-d826be46a4f8 2026-11-06 14:36:49,287 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/58d0387f-3f2f-4d40-be24-b34148e46522 2026-11-06 14:36:49,299 - DEBUG - ==>Verifying data for policy with id: e75e02ee-12f9-4652-9a17-08bfb71e2c52, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-17443134', 'ctest-policy1-63607182'] 2026-11-06 14:36:49,299 - INFO - VN ctest-vn4-16606700 Policy verification: verify_vn_policy_in_api_server, status: True 2026-11-06 14:36:49,299 - DEBUG - Verifying the vn in opserver 2026-11-06 14:36:49,299 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-17443134:ctest-vn4-16606700 virtual network link through opserver 10.0.0.38 2026-11-06 14:36:49,299 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-11-06 14:36:49,622 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-11-06 14:36:49,679 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-17443134:ctest-vn4-16606700', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-17443134:ctest-vn4-16606700?flat'} 2026-11-06 14:36:49,679 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-17443134:ctest-vn4-16606700 is found in opserver 2026-11-06 14:36:49,690 - DEBUG - Do not have enough data to verify VN in agent 2026-11-06 14:36:49,695 - DEBUG - VRF ids for VN ctest-vn4-16606700: {} 2026-11-06 14:36:49,696 - DEBUG - ====Verifying data for ctest-policy1-63607182 in API_Server ====== 2026-11-06 14:36:49,696 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-11-06 14:36:49,702 - DEBUG - Requesting: http://10.0.0.38:8082/domain/f56d05e6-50cc-4c34-bfa5-c3e4c856b5f3 2026-11-06 14:36:49,716 - DEBUG - Requesting: http://10.0.0.38:8082/project/56690216-50ca-41fb-aeaa-d826be46a4f8 2026-11-06 14:36:49,789 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/e75e02ee-12f9-4652-9a17-08bfb71e2c52 2026-11-06 14:36:49,799 - INFO - Verified policy ctest-policy1-63607182 in API Server, Result: True 2026-11-06 14:36:49,799 - INFO - Done with setup and verification, moving onto test .. 2026-11-06 14:36:49,808 - INFO - Deleting VN ctest-vn4-16606700 2026-11-06 14:36:49,942 - DEBUG - Response for deleting network () 2026-11-06 14:36:49,942 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/4b3edbc4-0cb3-4494-b259-3e49245552ea 2026-11-06 14:36:49,948 - DEBUG - Response Code: 404 2026-11-06 14:36:49,948 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-11-06 14:36:49,955 - DEBUG - Requesting: http://10.0.0.38:8082/domain/f56d05e6-50cc-4c34-bfa5-c3e4c856b5f3 2026-11-06 14:36:50,009 - DEBUG - Requesting: http://10.0.0.38:8082/project/56690216-50ca-41fb-aeaa-d826be46a4f8 2026-11-06 14:36:50,087 - INFO - Validated that VN ctest-vn4-16606700 is not found in API Server 2026-11-06 14:36:50,098 - DEBUG - VN ctest-vn4-16606700 is not present in Agent 10.0.0.38 2026-11-06 14:36:50,098 - INFO - Validated that VN ctest-vn4-16606700 is not in any agent 2026-11-06 14:36:50,115 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-16606700 info 2026-11-06 14:36:50,143 - INFO - Deleted policy ctest-policy1-63607182 2026-11-06 14:36:50,320 - DEBUG - policy ctest-policy1-63607182 is not found in API Server 2026-11-06 14:36:50,610 - DEBUG - No XMPP flaps were noticed during the test
2026-11-06 14:36:50,611 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-11-06 14:36:50,611 - INFO - -------------------------------------------------------------------------------- 2026-11-06 14:36:50,890 - DEBUG - No XMPP flaps were noticed during the test
2026-11-06 14:36:50,890 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-11-06 14:36:50,890 - INFO - -------------------------------------------------------------------------------- 2026-11-06 14:36:51,645 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-17443134, ID : 56690216-50ca-41fb-aeaa-d826be46a4f8