2026-05-15 13:20:38,633 - INFO - Domain Default found not creating 2026-05-15 13:20:38,823 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-29044313 not found, creating it 2026-05-15 13:20:39,306 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-29044313, ID : 30ab787a-81fe-4926-9178-269b09786aaf 2026-05-15 13:20:40,902 - INFO - ================================================================================ 2026-05-15 13:20:40,902 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-05-15 13:20:41,170 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.17': '0'}} with 2026-05-15 13:20:41,170 - INFO - Initial checks done. Running the testcase now 2026-05-15 13:20:41,170 - INFO - 2026-05-15 13:20:41,170 - INFO - ================================================================================ 2026-05-15 13:20:41,170 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-05-15 13:20:41,170 - 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-05-15 13:20:41,461 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.17': '0'}} with 2026-05-15 13:20:41,461 - INFO - Initial checks done. Running the testcase now 2026-05-15 13:20:41,461 - INFO - 2026-05-15 13:20:41,831 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-29044313:ctest-vn4-92696227, 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-29044313:ctest-vn4-92696227, 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-29044313:ctest-vn4-92696227, 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-29044313:ctest-vn4-92696227, 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-05-15 13:20:42,361 - DEBUG - Response for create_network : {'network': {'id': '7b928a8f-9f1e-44a0-bd95-d0e106363810', 'name': 'ctest-vn4-92696227', 'tenant_id': '30ab787a81fe49269178269b09786aaf', 'project_id': '30ab787a81fe49269178269b09786aaf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-29044313', 'ctest-vn4-92696227'], 'port_security_enabled': True, 'description': ''}} 2026-05-15 13:20:42,540 - DEBUG - Response for create_subnet : {'subnet': {'id': '71156ef2-27ea-471d-95f7-229c756b96bb', 'name': '', 'tenant_id': '30ab787a81fe49269178269b09786aaf', 'network_id': '7b928a8f-9f1e-44a0-bd95-d0e106363810', 'ip_version': 4, 'cidr': '122.179.66.0/26', 'allocation_pools': [{'start': '122.179.66.2', 'end': '122.179.66.62'}], 'gateway_ip': '122.179.66.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '122.179.66.2', 'tags': [], 'project_id': '30ab787a81fe49269178269b09786aaf'}} 2026-05-15 13:20:42,730 - DEBUG - Response for create_subnet : {'subnet': {'id': '27897d7a-f0de-4bc4-ad37-70618449d254', 'name': '', 'tenant_id': '30ab787a81fe49269178269b09786aaf', 'network_id': '7b928a8f-9f1e-44a0-bd95-d0e106363810', 'ip_version': 6, 'cidr': '3543:6f13:2c18:ca77:2c6:5a0b::/96', 'allocation_pools': [{'start': '3543:6f13:2c18:ca77:2c6:5a0b:0:2', 'end': '3543:6f13:2c18:ca77:2c6:5a0b:ffff:fffe'}], 'gateway_ip': '3543:6f13:2c18:ca77:2c6:5a0b:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3543:6f13:2c18:ca77:2c6:5a0b:0:2', 'tags': [], 'project_id': '30ab787a81fe49269178269b09786aaf'}} 2026-05-15 13:20:42,751 - INFO - Created VN ctest-vn4-92696227 2026-05-15 13:20:42,804 - DEBUG - VN ctest-vn4-92696227 UUID is 7b928a8f-9f1e-44a0-bd95-d0e106363810 2026-05-15 13:20:43,032 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7b928a8f-9f1e-44a0-bd95-d0e106363810', 'name': 'ctest-vn4-92696227', 'tenant_id': '30ab787a81fe49269178269b09786aaf', 'project_id': '30ab787a81fe49269178269b09786aaf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['71156ef2-27ea-471d-95f7-229c756b96bb', '27897d7a-f0de-4bc4-ad37-70618449d254'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-29044313', 'ctest-vn4-92696227'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-29044313', 'ctest-policy1-08818190']], 'subnet_ipam': [{'subnet_cidr': '122.179.66.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3543:6f13:2c18:ca77:2c6:5a0b::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-05-15 13:20:43,196 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-05-15 13:20:43,491 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-05-15 13:20:43,524 - DEBUG - Requesting: http://10.0.0.242:8082/domain/9619467f-079e-4f61-af04-20f51b9f4526 2026-05-15 13:20:43,536 - DEBUG - Requesting: http://10.0.0.242:8082/project/30ab787a-81fe-4926-9178-269b09786aaf 2026-05-15 13:20:43,614 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/7b928a8f-9f1e-44a0-bd95-d0e106363810 2026-05-15 13:20:43,628 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/7b928a8f-9f1e-44a0-bd95-d0e106363810 2026-05-15 13:20:43,642 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/6aae2c97-83b4-4925-8d7d-80d13012a55e 2026-05-15 13:20:43,651 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/6aae2c97-83b4-4925-8d7d-80d13012a55e 2026-05-15 13:20:43,659 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/6fa2153f-b854-4fbd-a99c-97a70dab637c 2026-05-15 13:20:43,665 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-15 13:20:43,666 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/7b928a8f-9f1e-44a0-bd95-d0e106363810 2026-05-15 13:20:43,675 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/6aae2c97-83b4-4925-8d7d-80d13012a55e 2026-05-15 13:20:43,694 - INFO - Verified VN network id 11 for VN 7b928a8f-9f1e-44a0-bd95-d0e106363810 2026-05-15 13:20:43,694 - INFO - Verifications in API Server for VN ctest-vn4-92696227 passed 2026-05-15 13:20:43,694 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/7b928a8f-9f1e-44a0-bd95-d0e106363810 2026-05-15 13:20:43,706 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/6aae2c97-83b4-4925-8d7d-80d13012a55e 2026-05-15 13:20:43,715 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/6aae2c97-83b4-4925-8d7d-80d13012a55e 2026-05-15 13:20:43,723 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/6fa2153f-b854-4fbd-a99c-97a70dab637c 2026-05-15 13:20:43,735 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-29044313:ctest-vn4-92696227', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-29044313', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8904331762719409312', 'uuid-lslong': '13661054709588703248'}, 'enable': 'true', 'created': '2026-05-15T13:20:42', 'last-modified': '2026-05-15T13:20:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.737975'} 2026-05-15 13:20:43,742 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-15 13:20:43,742 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-92696227 passed 2026-05-15 13:20:43,742 - DEBUG - ====Verifying policy data for ctest-vn4-92696227 in API_Server ====== 2026-05-15 13:20:43,742 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-05-15 13:20:43,748 - DEBUG - Requesting: http://10.0.0.242:8082/domain/9619467f-079e-4f61-af04-20f51b9f4526 2026-05-15 13:20:43,759 - DEBUG - Requesting: http://10.0.0.242:8082/project/30ab787a-81fe-4926-9178-269b09786aaf 2026-05-15 13:20:43,831 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/7b928a8f-9f1e-44a0-bd95-d0e106363810 2026-05-15 13:20:43,840 - DEBUG - ==>Verifying data for policy with id: ea525627-3ec0-40d4-9e57-ccbac37d311e, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-29044313', 'ctest-policy1-08818190'] 2026-05-15 13:20:43,840 - INFO - VN ctest-vn4-92696227 Policy verification: verify_vn_policy_in_api_server, status: True 2026-05-15 13:20:43,840 - DEBUG - Verifying the vn in opserver 2026-05-15 13:20:43,840 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-29044313:ctest-vn4-92696227 virtual network link through opserver 10.0.0.242 2026-05-15 13:20:43,840 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2026-05-15 13:20:44,134 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2026-05-15 13:20:44,209 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-29044313:ctest-vn4-92696227', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-29044313:ctest-vn4-92696227?flat'} 2026-05-15 13:20:44,209 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-29044313:ctest-vn4-92696227 is found in opserver 2026-05-15 13:20:44,218 - DEBUG - Do not have enough data to verify VN in agent 2026-05-15 13:20:44,223 - DEBUG - VRF ids for VN ctest-vn4-92696227: {} 2026-05-15 13:20:44,224 - DEBUG - ====Verifying data for ctest-policy1-08818190 in API_Server ====== 2026-05-15 13:20:44,224 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-05-15 13:20:44,229 - DEBUG - Requesting: http://10.0.0.242:8082/domain/9619467f-079e-4f61-af04-20f51b9f4526 2026-05-15 13:20:44,241 - DEBUG - Requesting: http://10.0.0.242:8082/project/30ab787a-81fe-4926-9178-269b09786aaf 2026-05-15 13:20:44,312 - DEBUG - Requesting: http://10.0.0.242:8082/network-policy/ea525627-3ec0-40d4-9e57-ccbac37d311e 2026-05-15 13:20:44,321 - INFO - Verified policy ctest-policy1-08818190 in API Server, Result: True 2026-05-15 13:20:44,321 - INFO - Done with setup and verification, moving onto test .. 2026-05-15 13:20:44,331 - INFO - Deleting VN ctest-vn4-92696227 2026-05-15 13:20:44,455 - DEBUG - Response for deleting network () 2026-05-15 13:20:44,455 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/6aae2c97-83b4-4925-8d7d-80d13012a55e 2026-05-15 13:20:44,461 - DEBUG - Response Code: 404 2026-05-15 13:20:44,461 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-05-15 13:20:44,467 - DEBUG - Requesting: http://10.0.0.242:8082/domain/9619467f-079e-4f61-af04-20f51b9f4526 2026-05-15 13:20:44,521 - DEBUG - Requesting: http://10.0.0.242:8082/project/30ab787a-81fe-4926-9178-269b09786aaf 2026-05-15 13:20:44,593 - INFO - Validated that VN ctest-vn4-92696227 is not found in API Server 2026-05-15 13:20:44,602 - DEBUG - VN ctest-vn4-92696227 is not present in Agent 10.0.0.242 2026-05-15 13:20:44,602 - INFO - Validated that VN ctest-vn4-92696227 is not in any agent 2026-05-15 13:20:44,618 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-92696227 info 2026-05-15 13:20:44,646 - INFO - Deleted policy ctest-policy1-08818190 2026-05-15 13:20:44,812 - DEBUG - policy ctest-policy1-08818190 is not found in API Server 2026-05-15 13:20:45,066 - DEBUG - No XMPP flaps were noticed during the test