2026-01-30 09:50:14,206 - INFO - Domain Default found not creating 2026-01-30 09:50:14,388 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-72280886 not found, creating it 2026-01-30 09:50:14,906 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-72280886, ID : 3c985906-2f84-4197-8467-47d2d9431df5 2026-01-30 09:50:16,492 - INFO - ================================================================================ 2026-01-30 09:50:16,492 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-30 09:50:16,759 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-01-30 09:50:16,759 - INFO - Initial checks done. Running the testcase now 2026-01-30 09:50:16,759 - INFO - 2026-01-30 09:50:16,760 - INFO - ================================================================================ 2026-01-30 09:50:16,760 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-30 09:50:16,760 - 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-30 09:50:17,043 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-01-30 09:50:17,044 - INFO - Initial checks done. Running the testcase now 2026-01-30 09:50:17,044 - INFO - 2026-01-30 09:50:17,451 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-72280886:ctest-vn4-93168310, 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-72280886:ctest-vn4-93168310, 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-72280886:ctest-vn4-93168310, 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-72280886:ctest-vn4-93168310, 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-30 09:50:18,081 - DEBUG - Response for create_network : {'network': {'id': 'bf9b09e6-33c0-4026-9ba1-d254578fef19', 'name': 'ctest-vn4-93168310', 'tenant_id': '3c9859062f844197846747d2d9431df5', 'project_id': '3c9859062f844197846747d2d9431df5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-72280886', 'ctest-vn4-93168310'], 'port_security_enabled': True, 'description': ''}} 2026-01-30 09:50:18,290 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd0900720-8809-41a2-8bf9-3b73c95d5503', 'name': '', 'tenant_id': '3c9859062f844197846747d2d9431df5', 'network_id': 'bf9b09e6-33c0-4026-9ba1-d254578fef19', 'ip_version': 4, 'cidr': '187.85.102.192/26', 'allocation_pools': [{'start': '187.85.102.194', 'end': '187.85.102.254'}], 'gateway_ip': '187.85.102.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '187.85.102.194', 'tags': [], 'project_id': '3c9859062f844197846747d2d9431df5'}} 2026-01-30 09:50:18,448 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cdda8b37-6693-4781-922c-337df75212b3', 'name': '', 'tenant_id': '3c9859062f844197846747d2d9431df5', 'network_id': 'bf9b09e6-33c0-4026-9ba1-d254578fef19', 'ip_version': 6, 'cidr': '280a:4c35:f2b8:8918:a4ed:db7e::/96', 'allocation_pools': [{'start': '280a:4c35:f2b8:8918:a4ed:db7e:0:2', 'end': '280a:4c35:f2b8:8918:a4ed:db7e:ffff:fffe'}], 'gateway_ip': '280a:4c35:f2b8:8918:a4ed:db7e:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '280a:4c35:f2b8:8918:a4ed:db7e:0:2', 'tags': [], 'project_id': '3c9859062f844197846747d2d9431df5'}} 2026-01-30 09:50:18,472 - INFO - Created VN ctest-vn4-93168310 2026-01-30 09:50:18,526 - DEBUG - VN ctest-vn4-93168310 UUID is bf9b09e6-33c0-4026-9ba1-d254578fef19 2026-01-30 09:50:18,756 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'bf9b09e6-33c0-4026-9ba1-d254578fef19', 'name': 'ctest-vn4-93168310', 'tenant_id': '3c9859062f844197846747d2d9431df5', 'project_id': '3c9859062f844197846747d2d9431df5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d0900720-8809-41a2-8bf9-3b73c95d5503', 'cdda8b37-6693-4781-922c-337df75212b3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-72280886', 'ctest-vn4-93168310'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-72280886', 'ctest-policy1-55799396']], 'subnet_ipam': [{'subnet_cidr': '187.85.102.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '280a:4c35:f2b8:8918:a4ed:db7e::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-01-30 09:50:18,914 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-01-30 09:50:19,224 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-01-30 09:50:19,262 - DEBUG - Requesting: http://10.0.0.38:8082/domain/bebb46fa-28d4-4591-a497-35cf3ec2a9ec 2026-01-30 09:50:19,274 - DEBUG - Requesting: http://10.0.0.38:8082/project/3c985906-2f84-4197-8467-47d2d9431df5 2026-01-30 09:50:19,345 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/bf9b09e6-33c0-4026-9ba1-d254578fef19 2026-01-30 09:50:19,359 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/bf9b09e6-33c0-4026-9ba1-d254578fef19 2026-01-30 09:50:19,372 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5c8b96f7-34b9-427c-b93a-c0ae7e9fe051 2026-01-30 09:50:19,381 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5c8b96f7-34b9-427c-b93a-c0ae7e9fe051 2026-01-30 09:50:19,390 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/031b9e49-190c-43dc-b24f-a95064313a60 2026-01-30 09:50:19,398 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-30 09:50:19,398 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/bf9b09e6-33c0-4026-9ba1-d254578fef19 2026-01-30 09:50:19,407 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5c8b96f7-34b9-427c-b93a-c0ae7e9fe051 2026-01-30 09:50:19,422 - INFO - Verified VN network id 11 for VN bf9b09e6-33c0-4026-9ba1-d254578fef19 2026-01-30 09:50:19,422 - INFO - Verifications in API Server for VN ctest-vn4-93168310 passed 2026-01-30 09:50:19,422 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/bf9b09e6-33c0-4026-9ba1-d254578fef19 2026-01-30 09:50:19,434 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5c8b96f7-34b9-427c-b93a-c0ae7e9fe051 2026-01-30 09:50:19,444 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5c8b96f7-34b9-427c-b93a-c0ae7e9fe051 2026-01-30 09:50:19,455 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/031b9e49-190c-43dc-b24f-a95064313a60 2026-01-30 09:50:19,467 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-72280886:ctest-vn4-93168310', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-72280886', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13806639966949752870', 'uuid-lslong': '11214475806817382169'}, 'enable': 'true', 'created': '2026-01-30T09:50:18', 'last-modified': '2026-01-30T09:50:18', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.745322'} 2026-01-30 09:50:19,472 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-30 09:50:19,472 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-93168310 passed 2026-01-30 09:50:19,473 - DEBUG - ====Verifying policy data for ctest-vn4-93168310 in API_Server ====== 2026-01-30 09:50:19,473 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-01-30 09:50:19,478 - DEBUG - Requesting: http://10.0.0.38:8082/domain/bebb46fa-28d4-4591-a497-35cf3ec2a9ec 2026-01-30 09:50:19,489 - DEBUG - Requesting: http://10.0.0.38:8082/project/3c985906-2f84-4197-8467-47d2d9431df5 2026-01-30 09:50:19,561 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/bf9b09e6-33c0-4026-9ba1-d254578fef19 2026-01-30 09:50:19,571 - DEBUG - ==>Verifying data for policy with id: 5edc0c37-9c25-420f-b9fd-847d6aadb44a, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-72280886', 'ctest-policy1-55799396'] 2026-01-30 09:50:19,571 - INFO - VN ctest-vn4-93168310 Policy verification: verify_vn_policy_in_api_server, status: True 2026-01-30 09:50:19,571 - DEBUG - Verifying the vn in opserver 2026-01-30 09:50:19,571 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-72280886:ctest-vn4-93168310 virtual network link through opserver 10.0.0.38 2026-01-30 09:50:19,571 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-01-30 09:50:19,876 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-01-30 09:50:19,937 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-72280886:ctest-vn4-93168310', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-72280886:ctest-vn4-93168310?flat'} 2026-01-30 09:50:19,937 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-72280886:ctest-vn4-93168310 is found in opserver 2026-01-30 09:50:19,948 - DEBUG - Do not have enough data to verify VN in agent 2026-01-30 09:50:19,952 - DEBUG - VRF ids for VN ctest-vn4-93168310: {} 2026-01-30 09:50:19,952 - DEBUG - ====Verifying data for ctest-policy1-55799396 in API_Server ====== 2026-01-30 09:50:19,952 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-01-30 09:50:19,958 - DEBUG - Requesting: http://10.0.0.38:8082/domain/bebb46fa-28d4-4591-a497-35cf3ec2a9ec 2026-01-30 09:50:19,969 - DEBUG - Requesting: http://10.0.0.38:8082/project/3c985906-2f84-4197-8467-47d2d9431df5 2026-01-30 09:50:20,040 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/5edc0c37-9c25-420f-b9fd-847d6aadb44a 2026-01-30 09:50:20,050 - INFO - Verified policy ctest-policy1-55799396 in API Server, Result: True 2026-01-30 09:50:20,050 - INFO - Done with setup and verification, moving onto test .. 2026-01-30 09:50:20,057 - INFO - Deleting VN ctest-vn4-93168310 2026-01-30 09:50:20,184 - DEBUG - Response for deleting network () 2026-01-30 09:50:20,184 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5c8b96f7-34b9-427c-b93a-c0ae7e9fe051 2026-01-30 09:50:20,190 - DEBUG - Response Code: 404 2026-01-30 09:50:20,190 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-01-30 09:50:20,195 - DEBUG - Requesting: http://10.0.0.38:8082/domain/bebb46fa-28d4-4591-a497-35cf3ec2a9ec 2026-01-30 09:50:20,255 - DEBUG - Requesting: http://10.0.0.38:8082/project/3c985906-2f84-4197-8467-47d2d9431df5 2026-01-30 09:50:20,329 - INFO - Validated that VN ctest-vn4-93168310 is not found in API Server 2026-01-30 09:50:20,340 - DEBUG - VN ctest-vn4-93168310 is not present in Agent 10.0.0.38 2026-01-30 09:50:20,340 - INFO - Validated that VN ctest-vn4-93168310 is not in any agent 2026-01-30 09:50:20,356 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-93168310 info 2026-01-30 09:50:20,381 - INFO - Deleted policy ctest-policy1-55799396 2026-01-30 09:50:20,550 - DEBUG - policy ctest-policy1-55799396 is not found in API Server 2026-01-30 09:50:20,802 - DEBUG - No XMPP flaps were noticed during the test 2026-01-30 09:50:20,802 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-01-30 09:50:20,803 - INFO - -------------------------------------------------------------------------------- 2026-01-30 09:50:21,095 - DEBUG - No XMPP flaps were noticed during the test 2026-01-30 09:50:21,095 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2026-01-30 09:50:21,095 - INFO - -------------------------------------------------------------------------------- 2026-01-30 09:50:21,806 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-72280886, ID : 3c985906-2f84-4197-8467-47d2d9431df5