2026-11-27 21:41:14,113 - INFO - Domain Default found not creating 2026-11-27 21:41:14,287 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-79218520 not found, creating it 2026-11-27 21:41:14,785 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-79218520, ID : 6f576b92-60a6-4334-8e78-8841fd981704 2026-11-27 21:41:16,498 - INFO - ================================================================================ 2026-11-27 21:41:16,498 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-11-27 21:41:16,766 - DEBUG - Nothing to compare xmpp stats {'10.0.0.162': {'10.20.0.25': '0'}} with 2026-11-27 21:41:16,766 - INFO - Initial checks done. Running the testcase now 2026-11-27 21:41:16,766 - INFO - 2026-11-27 21:41:16,766 - INFO - ================================================================================ 2026-11-27 21:41:16,766 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-11-27 21:41:16,766 - 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-27 21:41:17,091 - DEBUG - Nothing to compare xmpp stats {'10.0.0.162': {'10.20.0.25': '0'}} with 2026-11-27 21:41:17,091 - INFO - Initial checks done. Running the testcase now 2026-11-27 21:41:17,091 - INFO - 2026-11-27 21:41:17,517 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-79218520:ctest-vn4-70216980, 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-79218520:ctest-vn4-70216980, 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-79218520:ctest-vn4-70216980, 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-79218520:ctest-vn4-70216980, 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-27 21:41:18,066 - DEBUG - Response for create_network : {'network': {'id': '88c96e24-5347-4a10-8d2c-390c2d08fbf1', 'name': 'ctest-vn4-70216980', 'tenant_id': '6f576b9260a643348e788841fd981704', 'project_id': '6f576b9260a643348e788841fd981704', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-79218520', 'ctest-vn4-70216980'], 'port_security_enabled': True, 'description': ''}} 2026-11-27 21:41:18,234 - DEBUG - Response for create_subnet : {'subnet': {'id': '316b27c6-7e75-4de0-a982-d9d36d42f3bb', 'name': '', 'tenant_id': '6f576b9260a643348e788841fd981704', 'network_id': '88c96e24-5347-4a10-8d2c-390c2d08fbf1', 'ip_version': 4, 'cidr': '176.15.37.64/26', 'allocation_pools': [{'start': '176.15.37.66', 'end': '176.15.37.126'}], 'gateway_ip': '176.15.37.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '176.15.37.66', 'tags': [], 'project_id': '6f576b9260a643348e788841fd981704'}} 2026-11-27 21:41:18,423 - DEBUG - Response for create_subnet : {'subnet': {'id': '842cdc8a-353e-4c00-9572-07e6690952e8', 'name': '', 'tenant_id': '6f576b9260a643348e788841fd981704', 'network_id': '88c96e24-5347-4a10-8d2c-390c2d08fbf1', 'ip_version': 6, 'cidr': '375f:a94f:3b5:2332:f631:7ac0::/96', 'allocation_pools': [{'start': '375f:a94f:3b5:2332:f631:7ac0:0:2', 'end': '375f:a94f:3b5:2332:f631:7ac0:ffff:fffe'}], 'gateway_ip': '375f:a94f:3b5:2332:f631:7ac0:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '375f:a94f:3b5:2332:f631:7ac0:0:2', 'tags': [], 'project_id': '6f576b9260a643348e788841fd981704'}} 2026-11-27 21:41:18,444 - INFO - Created VN ctest-vn4-70216980 2026-11-27 21:41:18,496 - DEBUG - VN ctest-vn4-70216980 UUID is 88c96e24-5347-4a10-8d2c-390c2d08fbf1 2026-11-27 21:41:18,706 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '88c96e24-5347-4a10-8d2c-390c2d08fbf1', 'name': 'ctest-vn4-70216980', 'tenant_id': '6f576b9260a643348e788841fd981704', 'project_id': '6f576b9260a643348e788841fd981704', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['316b27c6-7e75-4de0-a982-d9d36d42f3bb', '842cdc8a-353e-4c00-9572-07e6690952e8'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-79218520', 'ctest-vn4-70216980'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-79218520', 'ctest-policy1-26910963']], 'subnet_ipam': [{'subnet_cidr': '176.15.37.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '375f:a94f:3b5:2332:f631:7ac0::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-11-27 21:41:18,864 - DEBUG - Requesting: http://10.0.0.162:8082/domains 2026-11-27 21:41:19,226 - DEBUG - Requesting: http://10.0.0.162:8082/domains 2026-11-27 21:41:19,253 - DEBUG - Requesting: http://10.0.0.162:8082/domain/dede3b9a-f1a2-45f9-a1f4-4597e880389f 2026-11-27 21:41:19,267 - DEBUG - Requesting: http://10.0.0.162:8082/project/6f576b92-60a6-4334-8e78-8841fd981704 2026-11-27 21:41:19,351 - DEBUG - Requesting: http://10.0.0.162:8082/virtual-network/88c96e24-5347-4a10-8d2c-390c2d08fbf1 2026-11-27 21:41:19,368 - DEBUG - Requesting: http://10.0.0.162:8082/virtual-network/88c96e24-5347-4a10-8d2c-390c2d08fbf1 2026-11-27 21:41:19,380 - DEBUG - Requesting: http://10.0.0.162:8082/routing-instance/b3757ff3-7cd8-46c6-85b0-26d1c7bbbdb8 2026-11-27 21:41:19,388 - DEBUG - Requesting: http://10.0.0.162:8082/routing-instance/b3757ff3-7cd8-46c6-85b0-26d1c7bbbdb8 2026-11-27 21:41:19,395 - DEBUG - Requesting: http://10.0.0.162:8082/route-target/3864ecab-0e0a-4c69-a2d7-74c9e37119cb 2026-11-27 21:41:19,403 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-11-27 21:41:19,403 - DEBUG - Requesting: http://10.0.0.162:8082/virtual-network/88c96e24-5347-4a10-8d2c-390c2d08fbf1 2026-11-27 21:41:19,415 - DEBUG - Requesting: http://10.0.0.162:8082/routing-instance/b3757ff3-7cd8-46c6-85b0-26d1c7bbbdb8 2026-11-27 21:41:19,429 - INFO - Verified VN network id 10 for VN 88c96e24-5347-4a10-8d2c-390c2d08fbf1 2026-11-27 21:41:19,429 - INFO - Verifications in API Server for VN ctest-vn4-70216980 passed 2026-11-27 21:41:19,430 - DEBUG - Requesting: http://10.0.0.162:8082/virtual-network/88c96e24-5347-4a10-8d2c-390c2d08fbf1 2026-11-27 21:41:19,439 - DEBUG - Requesting: http://10.0.0.162:8082/routing-instance/b3757ff3-7cd8-46c6-85b0-26d1c7bbbdb8 2026-11-27 21:41:19,445 - DEBUG - Requesting: http://10.0.0.162:8082/routing-instance/b3757ff3-7cd8-46c6-85b0-26d1c7bbbdb8 2026-11-27 21:41:19,450 - DEBUG - Requesting: http://10.0.0.162:8082/route-target/3864ecab-0e0a-4c69-a2d7-74c9e37119cb 2026-11-27 21:41:19,464 - DEBUG - Control-node 10.0.0.162 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-79218520:ctest-vn4-70216980', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-79218520', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9856530361772100112', 'uuid-lslong': '10172568382781062129'}, 'enable': 'true', 'created': '2026-11-27T21:41:18', 'last-modified': '2026-11-27T21:41:18', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.791290'} 2026-11-27 21:41:19,471 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-11-27 21:41:19,471 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-70216980 passed 2026-11-27 21:41:19,472 - DEBUG - ====Verifying policy data for ctest-vn4-70216980 in API_Server ====== 2026-11-27 21:41:19,472 - DEBUG - Requesting: http://10.0.0.162:8082/domains 2026-11-27 21:41:19,478 - DEBUG - Requesting: http://10.0.0.162:8082/domain/dede3b9a-f1a2-45f9-a1f4-4597e880389f 2026-11-27 21:41:19,488 - DEBUG - Requesting: http://10.0.0.162:8082/project/6f576b92-60a6-4334-8e78-8841fd981704 2026-11-27 21:41:19,562 - DEBUG - Requesting: http://10.0.0.162:8082/virtual-network/88c96e24-5347-4a10-8d2c-390c2d08fbf1 2026-11-27 21:41:19,573 - DEBUG - ==>Verifying data for policy with id: d4892bb6-75ff-421f-9abf-3d1ebf2295f9, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-79218520', 'ctest-policy1-26910963'] 2026-11-27 21:41:19,573 - INFO - VN ctest-vn4-70216980 Policy verification: verify_vn_policy_in_api_server, status: True 2026-11-27 21:41:19,573 - DEBUG - Verifying the vn in opserver 2026-11-27 21:41:19,573 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-79218520:ctest-vn4-70216980 virtual network link through opserver 10.0.0.162 2026-11-27 21:41:19,573 - DEBUG - Requesting: http://10.0.0.162:8081/analytics/uves/virtual-networks 2026-11-27 21:41:19,934 - DEBUG - Requesting: http://10.0.0.162:8081/analytics/uves/virtual-networks 2026-11-27 21:41:19,989 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-79218520:ctest-vn4-70216980', 'href': 'http://10.0.0.162:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-79218520:ctest-vn4-70216980?flat'} 2026-11-27 21:41:19,990 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-79218520:ctest-vn4-70216980 is found in opserver 2026-11-27 21:41:20,001 - DEBUG - Do not have enough data to verify VN in agent 2026-11-27 21:41:20,005 - DEBUG - VRF ids for VN ctest-vn4-70216980: {} 2026-11-27 21:41:20,006 - DEBUG - ====Verifying data for ctest-policy1-26910963 in API_Server ====== 2026-11-27 21:41:20,006 - DEBUG - Requesting: http://10.0.0.162:8082/domains 2026-11-27 21:41:20,012 - DEBUG - Requesting: http://10.0.0.162:8082/domain/dede3b9a-f1a2-45f9-a1f4-4597e880389f 2026-11-27 21:41:20,023 - DEBUG - Requesting: http://10.0.0.162:8082/project/6f576b92-60a6-4334-8e78-8841fd981704 2026-11-27 21:41:20,099 - DEBUG - Requesting: http://10.0.0.162:8082/network-policy/d4892bb6-75ff-421f-9abf-3d1ebf2295f9 2026-11-27 21:41:20,108 - INFO - Verified policy ctest-policy1-26910963 in API Server, Result: True 2026-11-27 21:41:20,109 - INFO - Done with setup and verification, moving onto test .. 2026-11-27 21:41:20,116 - INFO - Deleting VN ctest-vn4-70216980 2026-11-27 21:41:20,241 - DEBUG - Response for deleting network () 2026-11-27 21:41:20,241 - DEBUG - Requesting: http://10.0.0.162:8082/routing-instance/b3757ff3-7cd8-46c6-85b0-26d1c7bbbdb8 2026-11-27 21:41:20,247 - DEBUG - Response Code: 404 2026-11-27 21:41:20,247 - DEBUG - Requesting: http://10.0.0.162:8082/domains 2026-11-27 21:41:20,253 - DEBUG - Requesting: http://10.0.0.162:8082/domain/dede3b9a-f1a2-45f9-a1f4-4597e880389f 2026-11-27 21:41:20,305 - DEBUG - Requesting: http://10.0.0.162:8082/project/6f576b92-60a6-4334-8e78-8841fd981704 2026-11-27 21:41:20,381 - INFO - Validated that VN ctest-vn4-70216980 is not found in API Server 2026-11-27 21:41:20,392 - DEBUG - VN ctest-vn4-70216980 is not present in Agent 10.0.0.162 2026-11-27 21:41:20,392 - INFO - Validated that VN ctest-vn4-70216980 is not in any agent 2026-11-27 21:41:20,410 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-70216980 info 2026-11-27 21:41:20,437 - INFO - Deleted policy ctest-policy1-26910963 2026-11-27 21:41:20,607 - DEBUG - policy ctest-policy1-26910963 is not found in API Server 2026-11-27 21:41:20,879 - DEBUG - No XMPP flaps were noticed during the test
2026-11-27 21:41:20,879 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-11-27 21:41:20,879 - INFO - -------------------------------------------------------------------------------- 2026-11-27 21:41:21,162 - DEBUG - No XMPP flaps were noticed during the test
2026-11-27 21:41:21,162 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-11-27 21:41:21,162 - INFO - -------------------------------------------------------------------------------- 2026-11-27 21:41:21,919 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-79218520, ID : 6f576b92-60a6-4334-8e78-8841fd981704