2026-03-09 02:13:17,671 - INFO - Domain Default found not creating 2026-03-09 02:13:17,847 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-16634101 not found, creating it 2026-03-09 02:13:18,314 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-16634101, ID : 28d2e336-9f73-425f-96ac-8f1e7afdc6c6 2026-03-09 02:13:19,822 - INFO - ================================================================================ 2026-03-09 02:13:19,823 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-09 02:13:20,088 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.252': '0'}} with 2026-03-09 02:13:20,088 - INFO - Initial checks done. Running the testcase now 2026-03-09 02:13:20,088 - INFO - 2026-03-09 02:13:20,088 - INFO - ================================================================================ 2026-03-09 02:13:20,088 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-09 02:13:20,088 - 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-03-09 02:13:20,383 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.252': '0'}} with 2026-03-09 02:13:20,383 - INFO - Initial checks done. Running the testcase now 2026-03-09 02:13:20,383 - INFO - 2026-03-09 02:13:20,743 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-16634101:ctest-vn4-72679274, 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-16634101:ctest-vn4-72679274, 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-16634101:ctest-vn4-72679274, 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-16634101:ctest-vn4-72679274, 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-03-09 02:13:21,268 - DEBUG - Response for create_network : {'network': {'id': '4b8ac9e5-87e6-4700-827f-37a331afc91e', 'name': 'ctest-vn4-72679274', 'tenant_id': '28d2e3369f73425f96ac8f1e7afdc6c6', 'project_id': '28d2e3369f73425f96ac8f1e7afdc6c6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-16634101', 'ctest-vn4-72679274'], 'port_security_enabled': True, 'description': ''}} 2026-03-09 02:13:21,445 - DEBUG - Response for create_subnet : {'subnet': {'id': '1333e5d9-9505-4d86-99a3-bbd542689e34', 'name': '', 'tenant_id': '28d2e3369f73425f96ac8f1e7afdc6c6', 'network_id': '4b8ac9e5-87e6-4700-827f-37a331afc91e', 'ip_version': 4, 'cidr': '31.87.14.0/26', 'allocation_pools': [{'start': '31.87.14.2', 'end': '31.87.14.62'}], 'gateway_ip': '31.87.14.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '31.87.14.2', 'tags': [], 'project_id': '28d2e3369f73425f96ac8f1e7afdc6c6'}} 2026-03-09 02:13:21,655 - DEBUG - Response for create_subnet : {'subnet': {'id': '0e33490f-6ca6-4a76-90de-f826fccb7b53', 'name': '', 'tenant_id': '28d2e3369f73425f96ac8f1e7afdc6c6', 'network_id': '4b8ac9e5-87e6-4700-827f-37a331afc91e', 'ip_version': 6, 'cidr': '208a:263f:29a0:bd30:a828:dca2::/96', 'allocation_pools': [{'start': '208a:263f:29a0:bd30:a828:dca2:0:2', 'end': '208a:263f:29a0:bd30:a828:dca2:ffff:fffe'}], 'gateway_ip': '208a:263f:29a0:bd30:a828:dca2:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '208a:263f:29a0:bd30:a828:dca2:0:2', 'tags': [], 'project_id': '28d2e3369f73425f96ac8f1e7afdc6c6'}} 2026-03-09 02:13:21,673 - INFO - Created VN ctest-vn4-72679274 2026-03-09 02:13:21,723 - DEBUG - VN ctest-vn4-72679274 UUID is 4b8ac9e5-87e6-4700-827f-37a331afc91e 2026-03-09 02:13:21,926 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4b8ac9e5-87e6-4700-827f-37a331afc91e', 'name': 'ctest-vn4-72679274', 'tenant_id': '28d2e3369f73425f96ac8f1e7afdc6c6', 'project_id': '28d2e3369f73425f96ac8f1e7afdc6c6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1333e5d9-9505-4d86-99a3-bbd542689e34', '0e33490f-6ca6-4a76-90de-f826fccb7b53'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-16634101', 'ctest-vn4-72679274'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-16634101', 'ctest-policy1-92058632']], 'subnet_ipam': [{'subnet_cidr': '31.87.14.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '208a:263f:29a0:bd30:a828:dca2::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-03-09 02:13:22,083 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-03-09 02:13:22,380 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-03-09 02:13:22,415 - DEBUG - Requesting: http://10.0.0.141:8082/domain/da56c12e-8b84-4207-88d9-b77d9e8757cc 2026-03-09 02:13:22,427 - DEBUG - Requesting: http://10.0.0.141:8082/project/28d2e336-9f73-425f-96ac-8f1e7afdc6c6 2026-03-09 02:13:22,516 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/4b8ac9e5-87e6-4700-827f-37a331afc91e 2026-03-09 02:13:22,529 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/4b8ac9e5-87e6-4700-827f-37a331afc91e 2026-03-09 02:13:22,538 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/4cce83eb-80bf-4458-bd95-0bb4c43940f0 2026-03-09 02:13:22,546 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/4cce83eb-80bf-4458-bd95-0bb4c43940f0 2026-03-09 02:13:22,552 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/3510b019-5dbe-44c3-8ea1-6d4bc661628f 2026-03-09 02:13:22,560 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-09 02:13:22,560 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/4b8ac9e5-87e6-4700-827f-37a331afc91e 2026-03-09 02:13:22,570 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/4cce83eb-80bf-4458-bd95-0bb4c43940f0 2026-03-09 02:13:22,589 - INFO - Verified VN network id 11 for VN 4b8ac9e5-87e6-4700-827f-37a331afc91e 2026-03-09 02:13:22,589 - INFO - Verifications in API Server for VN ctest-vn4-72679274 passed 2026-03-09 02:13:22,589 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/4b8ac9e5-87e6-4700-827f-37a331afc91e 2026-03-09 02:13:22,599 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/4cce83eb-80bf-4458-bd95-0bb4c43940f0 2026-03-09 02:13:22,606 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/4cce83eb-80bf-4458-bd95-0bb4c43940f0 2026-03-09 02:13:22,614 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/3510b019-5dbe-44c3-8ea1-6d4bc661628f 2026-03-09 02:13:22,626 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-16634101:ctest-vn4-72679274', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-16634101', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5443385087295375104', 'uuid-lslong': '9403295721025685790'}, 'enable': 'true', 'created': '2026-03-09T02:13:21', 'last-modified': '2026-03-09T02:13:21', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.725669'} 2026-03-09 02:13:22,632 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-09 02:13:22,632 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-72679274 passed 2026-03-09 02:13:22,632 - DEBUG - ====Verifying policy data for ctest-vn4-72679274 in API_Server ====== 2026-03-09 02:13:22,632 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-03-09 02:13:22,638 - DEBUG - Requesting: http://10.0.0.141:8082/domain/da56c12e-8b84-4207-88d9-b77d9e8757cc 2026-03-09 02:13:22,647 - DEBUG - Requesting: http://10.0.0.141:8082/project/28d2e336-9f73-425f-96ac-8f1e7afdc6c6 2026-03-09 02:13:22,717 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/4b8ac9e5-87e6-4700-827f-37a331afc91e 2026-03-09 02:13:22,727 - DEBUG - ==>Verifying data for policy with id: dc5705d0-a492-4d98-9802-71588eee4749, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-16634101', 'ctest-policy1-92058632'] 2026-03-09 02:13:22,727 - INFO - VN ctest-vn4-72679274 Policy verification: verify_vn_policy_in_api_server, status: True 2026-03-09 02:13:22,727 - DEBUG - Verifying the vn in opserver 2026-03-09 02:13:22,727 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-16634101:ctest-vn4-72679274 virtual network link through opserver 10.0.0.141 2026-03-09 02:13:22,727 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2026-03-09 02:13:23,018 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2026-03-09 02:13:23,075 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-16634101:ctest-vn4-72679274', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-16634101:ctest-vn4-72679274?flat'} 2026-03-09 02:13:23,075 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-16634101:ctest-vn4-72679274 is found in opserver 2026-03-09 02:13:23,084 - DEBUG - Do not have enough data to verify VN in agent 2026-03-09 02:13:23,088 - DEBUG - VRF ids for VN ctest-vn4-72679274: {} 2026-03-09 02:13:23,088 - DEBUG - ====Verifying data for ctest-policy1-92058632 in API_Server ====== 2026-03-09 02:13:23,088 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-03-09 02:13:23,093 - DEBUG - Requesting: http://10.0.0.141:8082/domain/da56c12e-8b84-4207-88d9-b77d9e8757cc 2026-03-09 02:13:23,103 - DEBUG - Requesting: http://10.0.0.141:8082/project/28d2e336-9f73-425f-96ac-8f1e7afdc6c6 2026-03-09 02:13:23,172 - DEBUG - Requesting: http://10.0.0.141:8082/network-policy/dc5705d0-a492-4d98-9802-71588eee4749 2026-03-09 02:13:23,181 - INFO - Verified policy ctest-policy1-92058632 in API Server, Result: True 2026-03-09 02:13:23,181 - INFO - Done with setup and verification, moving onto test .. 2026-03-09 02:13:23,188 - INFO - Deleting VN ctest-vn4-72679274 2026-03-09 02:13:23,305 - DEBUG - Response for deleting network () 2026-03-09 02:13:23,305 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/4cce83eb-80bf-4458-bd95-0bb4c43940f0 2026-03-09 02:13:23,309 - DEBUG - Response Code: 404 2026-03-09 02:13:23,309 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-03-09 02:13:23,313 - DEBUG - Requesting: http://10.0.0.141:8082/domain/da56c12e-8b84-4207-88d9-b77d9e8757cc 2026-03-09 02:13:23,367 - DEBUG - Requesting: http://10.0.0.141:8082/project/28d2e336-9f73-425f-96ac-8f1e7afdc6c6 2026-03-09 02:13:23,437 - INFO - Validated that VN ctest-vn4-72679274 is not found in API Server 2026-03-09 02:13:23,447 - DEBUG - VN ctest-vn4-72679274 is not present in Agent 10.0.0.141 2026-03-09 02:13:23,447 - INFO - Validated that VN ctest-vn4-72679274 is not in any agent 2026-03-09 02:13:23,468 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-72679274 info 2026-03-09 02:13:23,516 - INFO - Deleted policy ctest-policy1-92058632 2026-03-09 02:13:23,682 - DEBUG - policy ctest-policy1-92058632 is not found in API Server 2026-03-09 02:13:23,935 - DEBUG - No XMPP flaps were noticed during the test