2026-09-09 10:33:13,860 - INFO - Domain Default found not creating 2026-09-09 10:33:14,032 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-45562448 not found, creating it 2026-09-09 10:33:14,515 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-45562448, ID : ba6d81f5-774d-426a-9654-a6a75d95955a 2026-09-09 10:33:16,080 - INFO - ================================================================================ 2026-09-09 10:33:16,080 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-09-09 10:33:16,348 - DEBUG - Nothing to compare xmpp stats {'10.0.0.248': {'10.20.0.17': '0'}} with 2026-09-09 10:33:16,349 - INFO - Initial checks done. Running the testcase now 2026-09-09 10:33:16,349 - INFO - 2026-09-09 10:33:16,349 - INFO - ================================================================================ 2026-09-09 10:33:16,349 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-09-09 10:33:16,349 - 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-09-09 10:33:16,653 - DEBUG - Nothing to compare xmpp stats {'10.0.0.248': {'10.20.0.17': '0'}} with 2026-09-09 10:33:16,653 - INFO - Initial checks done. Running the testcase now 2026-09-09 10:33:16,653 - INFO - 2026-09-09 10:33:17,037 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-45562448:ctest-vn4-34050784, 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-45562448:ctest-vn4-34050784, 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-45562448:ctest-vn4-34050784, 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-45562448:ctest-vn4-34050784, 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-09-09 10:33:17,576 - DEBUG - Response for create_network : {'network': {'id': 'a549526f-c1ad-4df0-941c-b8dabb885382', 'name': 'ctest-vn4-34050784', 'tenant_id': 'ba6d81f5774d426a9654a6a75d95955a', 'project_id': 'ba6d81f5774d426a9654a6a75d95955a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-45562448', 'ctest-vn4-34050784'], 'port_security_enabled': True, 'description': ''}} 2026-09-09 10:33:17,824 - DEBUG - Response for create_subnet : {'subnet': {'id': '67b53111-2a8e-4351-b1b3-82c0f1cfe756', 'name': '', 'tenant_id': 'ba6d81f5774d426a9654a6a75d95955a', 'network_id': 'a549526f-c1ad-4df0-941c-b8dabb885382', 'ip_version': 4, 'cidr': '124.47.83.192/26', 'allocation_pools': [{'start': '124.47.83.194', 'end': '124.47.83.254'}], 'gateway_ip': '124.47.83.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '124.47.83.194', 'tags': [], 'project_id': 'ba6d81f5774d426a9654a6a75d95955a'}} 2026-09-09 10:33:18,014 - DEBUG - Response for create_subnet : {'subnet': {'id': '2fad3bbb-05c9-4afb-ac2d-f2fc56f8a995', 'name': '', 'tenant_id': 'ba6d81f5774d426a9654a6a75d95955a', 'network_id': 'a549526f-c1ad-4df0-941c-b8dabb885382', 'ip_version': 6, 'cidr': '2c90:6dcf:97ac:2dd9:62b3:47df::/96', 'allocation_pools': [{'start': '2c90:6dcf:97ac:2dd9:62b3:47df:0:2', 'end': '2c90:6dcf:97ac:2dd9:62b3:47df:ffff:fffe'}], 'gateway_ip': '2c90:6dcf:97ac:2dd9:62b3:47df:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2c90:6dcf:97ac:2dd9:62b3:47df:0:2', 'tags': [], 'project_id': 'ba6d81f5774d426a9654a6a75d95955a'}} 2026-09-09 10:33:18,034 - INFO - Created VN ctest-vn4-34050784 2026-09-09 10:33:18,087 - DEBUG - VN ctest-vn4-34050784 UUID is a549526f-c1ad-4df0-941c-b8dabb885382 2026-09-09 10:33:18,330 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a549526f-c1ad-4df0-941c-b8dabb885382', 'name': 'ctest-vn4-34050784', 'tenant_id': 'ba6d81f5774d426a9654a6a75d95955a', 'project_id': 'ba6d81f5774d426a9654a6a75d95955a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['67b53111-2a8e-4351-b1b3-82c0f1cfe756', '2fad3bbb-05c9-4afb-ac2d-f2fc56f8a995'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-45562448', 'ctest-vn4-34050784'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-45562448', 'ctest-policy1-11794731']], 'subnet_ipam': [{'subnet_cidr': '124.47.83.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2c90:6dcf:97ac:2dd9:62b3:47df::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-09-09 10:33:18,508 - DEBUG - Requesting: http://10.0.0.248:8082/domains 2026-09-09 10:33:18,831 - DEBUG - Requesting: http://10.0.0.248:8082/domains 2026-09-09 10:33:18,862 - DEBUG - Requesting: http://10.0.0.248:8082/domain/3a10f71c-5833-4f2c-9d49-2349459ae864 2026-09-09 10:33:18,874 - DEBUG - Requesting: http://10.0.0.248:8082/project/ba6d81f5-774d-426a-9654-a6a75d95955a 2026-09-09 10:33:18,954 - DEBUG - Requesting: http://10.0.0.248:8082/virtual-network/a549526f-c1ad-4df0-941c-b8dabb885382 2026-09-09 10:33:18,969 - DEBUG - Requesting: http://10.0.0.248:8082/virtual-network/a549526f-c1ad-4df0-941c-b8dabb885382 2026-09-09 10:33:18,981 - DEBUG - Requesting: http://10.0.0.248:8082/routing-instance/3007d9e8-7654-4e13-937a-e79aec0c7148 2026-09-09 10:33:18,989 - DEBUG - Requesting: http://10.0.0.248:8082/routing-instance/3007d9e8-7654-4e13-937a-e79aec0c7148 2026-09-09 10:33:18,997 - DEBUG - Requesting: http://10.0.0.248:8082/route-target/65dcff5c-8b23-41e7-acdb-b0739fa7b022 2026-09-09 10:33:19,006 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-09-09 10:33:19,006 - DEBUG - Requesting: http://10.0.0.248:8082/virtual-network/a549526f-c1ad-4df0-941c-b8dabb885382 2026-09-09 10:33:19,018 - DEBUG - Requesting: http://10.0.0.248:8082/routing-instance/3007d9e8-7654-4e13-937a-e79aec0c7148 2026-09-09 10:33:19,033 - INFO - Verified VN network id 12 for VN a549526f-c1ad-4df0-941c-b8dabb885382 2026-09-09 10:33:19,033 - INFO - Verifications in API Server for VN ctest-vn4-34050784 passed 2026-09-09 10:33:19,033 - DEBUG - Requesting: http://10.0.0.248:8082/virtual-network/a549526f-c1ad-4df0-941c-b8dabb885382 2026-09-09 10:33:19,046 - DEBUG - Requesting: http://10.0.0.248:8082/routing-instance/3007d9e8-7654-4e13-937a-e79aec0c7148 2026-09-09 10:33:19,055 - DEBUG - Requesting: http://10.0.0.248:8082/routing-instance/3007d9e8-7654-4e13-937a-e79aec0c7148 2026-09-09 10:33:19,062 - DEBUG - Requesting: http://10.0.0.248:8082/route-target/65dcff5c-8b23-41e7-acdb-b0739fa7b022 2026-09-09 10:33:19,076 - DEBUG - Control-node 10.0.0.248 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-45562448:ctest-vn4-34050784', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-45562448', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11910141329502195184', 'uuid-lslong': '10672608466549887874'}, 'enable': 'true', 'created': '2026-09-09T10:33:17', 'last-modified': '2026-09-09T10:33:18', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.785088'} 2026-09-09 10:33:19,086 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-09-09 10:33:19,086 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-34050784 passed 2026-09-09 10:33:19,086 - DEBUG - ====Verifying policy data for ctest-vn4-34050784 in API_Server ====== 2026-09-09 10:33:19,086 - DEBUG - Requesting: http://10.0.0.248:8082/domains 2026-09-09 10:33:19,099 - DEBUG - Requesting: http://10.0.0.248:8082/domain/3a10f71c-5833-4f2c-9d49-2349459ae864 2026-09-09 10:33:19,114 - DEBUG - Requesting: http://10.0.0.248:8082/project/ba6d81f5-774d-426a-9654-a6a75d95955a 2026-09-09 10:33:19,194 - DEBUG - Requesting: http://10.0.0.248:8082/virtual-network/a549526f-c1ad-4df0-941c-b8dabb885382 2026-09-09 10:33:19,205 - DEBUG - ==>Verifying data for policy with id: e65057a9-fffb-402e-bc45-51cb2e0c2bd8, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-45562448', 'ctest-policy1-11794731'] 2026-09-09 10:33:19,205 - INFO - VN ctest-vn4-34050784 Policy verification: verify_vn_policy_in_api_server, status: True 2026-09-09 10:33:19,205 - DEBUG - Verifying the vn in opserver 2026-09-09 10:33:19,205 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-45562448:ctest-vn4-34050784 virtual network link through opserver 10.0.0.248 2026-09-09 10:33:19,205 - DEBUG - Requesting: http://10.0.0.248:8081/analytics/uves/virtual-networks 2026-09-09 10:33:19,532 - DEBUG - Requesting: http://10.0.0.248:8081/analytics/uves/virtual-networks 2026-09-09 10:33:19,598 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-45562448:ctest-vn4-34050784', 'href': 'http://10.0.0.248:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-45562448:ctest-vn4-34050784?flat'} 2026-09-09 10:33:19,598 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-45562448:ctest-vn4-34050784 is found in opserver 2026-09-09 10:33:19,611 - DEBUG - Do not have enough data to verify VN in agent 2026-09-09 10:33:19,616 - DEBUG - VRF ids for VN ctest-vn4-34050784: {} 2026-09-09 10:33:19,617 - DEBUG - ====Verifying data for ctest-policy1-11794731 in API_Server ====== 2026-09-09 10:33:19,617 - DEBUG - Requesting: http://10.0.0.248:8082/domains 2026-09-09 10:33:19,624 - DEBUG - Requesting: http://10.0.0.248:8082/domain/3a10f71c-5833-4f2c-9d49-2349459ae864 2026-09-09 10:33:19,638 - DEBUG - Requesting: http://10.0.0.248:8082/project/ba6d81f5-774d-426a-9654-a6a75d95955a 2026-09-09 10:33:19,725 - DEBUG - Requesting: http://10.0.0.248:8082/network-policy/e65057a9-fffb-402e-bc45-51cb2e0c2bd8 2026-09-09 10:33:19,737 - INFO - Verified policy ctest-policy1-11794731 in API Server, Result: True 2026-09-09 10:33:19,737 - INFO - Done with setup and verification, moving onto test .. 2026-09-09 10:33:19,748 - INFO - Deleting VN ctest-vn4-34050784 2026-09-09 10:33:19,907 - DEBUG - Response for deleting network () 2026-09-09 10:33:19,907 - DEBUG - Requesting: http://10.0.0.248:8082/routing-instance/3007d9e8-7654-4e13-937a-e79aec0c7148 2026-09-09 10:33:19,914 - DEBUG - Response Code: 404 2026-09-09 10:33:19,914 - DEBUG - Requesting: http://10.0.0.248:8082/domains 2026-09-09 10:33:19,921 - DEBUG - Requesting: http://10.0.0.248:8082/domain/3a10f71c-5833-4f2c-9d49-2349459ae864 2026-09-09 10:33:19,977 - DEBUG - Requesting: http://10.0.0.248:8082/project/ba6d81f5-774d-426a-9654-a6a75d95955a 2026-09-09 10:33:20,060 - INFO - Validated that VN ctest-vn4-34050784 is not found in API Server 2026-09-09 10:33:20,072 - DEBUG - VN ctest-vn4-34050784 is not present in Agent 10.0.0.248 2026-09-09 10:33:20,072 - INFO - Validated that VN ctest-vn4-34050784 is not in any agent 2026-09-09 10:33:20,096 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-34050784 info 2026-09-09 10:33:20,127 - INFO - Deleted policy ctest-policy1-11794731 2026-09-09 10:33:20,311 - DEBUG - policy ctest-policy1-11794731 is not found in API Server 2026-09-09 10:33:20,586 - DEBUG - No XMPP flaps were noticed during the test
2026-09-09 10:33:20,586 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-09-09 10:33:20,586 - INFO - -------------------------------------------------------------------------------- 2026-09-09 10:33:20,895 - DEBUG - No XMPP flaps were noticed during the test
2026-09-09 10:33:20,895 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-09-09 10:33:20,895 - INFO - -------------------------------------------------------------------------------- 2026-09-09 10:33:21,645 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-45562448, ID : ba6d81f5-774d-426a-9654-a6a75d95955a