2025-11-12 18:12:12,984 - INFO - Domain Default found not creating 2025-11-12 18:12:13,145 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-70203029 not found, creating it 2025-11-12 18:12:13,587 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-70203029, ID : bf6f95da-0510-4a1e-a740-f12f44fd2495 2025-11-12 18:12:15,093 - INFO - ================================================================================ 2025-11-12 18:12:15,093 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-12 18:12:15,350 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.254': '0'}} with 2025-11-12 18:12:15,351 - INFO - Initial checks done. Running the testcase now 2025-11-12 18:12:15,351 - INFO - 2025-11-12 18:12:15,351 - INFO - ================================================================================ 2025-11-12 18:12:15,351 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-12 18:12:15,351 - 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. 2025-11-12 18:12:15,636 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.254': '0'}} with 2025-11-12 18:12:15,636 - INFO - Initial checks done. Running the testcase now 2025-11-12 18:12:15,636 - INFO - 2025-11-12 18:12:16,015 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-70203029:ctest-vn4-45406334, 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-70203029:ctest-vn4-45406334, 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-70203029:ctest-vn4-45406334, 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-70203029:ctest-vn4-45406334, 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] 2025-11-12 18:12:16,511 - DEBUG - Response for create_network : {'network': {'id': 'a9c8774a-0d6c-420b-b55a-fea587f67e2d', 'name': 'ctest-vn4-45406334', 'tenant_id': 'bf6f95da05104a1ea740f12f44fd2495', 'project_id': 'bf6f95da05104a1ea740f12f44fd2495', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-70203029', 'ctest-vn4-45406334'], 'port_security_enabled': True, 'description': ''}} 2025-11-12 18:12:16,692 - DEBUG - Response for create_subnet : {'subnet': {'id': 'dd275db4-3a35-4a8e-a4ab-0ee2fa90787e', 'name': '', 'tenant_id': 'bf6f95da05104a1ea740f12f44fd2495', 'network_id': 'a9c8774a-0d6c-420b-b55a-fea587f67e2d', 'ip_version': 4, 'cidr': '190.244.203.128/26', 'allocation_pools': [{'start': '190.244.203.130', 'end': '190.244.203.190'}], 'gateway_ip': '190.244.203.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '190.244.203.130', 'tags': [], 'project_id': 'bf6f95da05104a1ea740f12f44fd2495'}} 2025-11-12 18:12:16,869 - DEBUG - Response for create_subnet : {'subnet': {'id': '9a741f08-45c4-4099-b2c1-d1afbade57a4', 'name': '', 'tenant_id': 'bf6f95da05104a1ea740f12f44fd2495', 'network_id': 'a9c8774a-0d6c-420b-b55a-fea587f67e2d', 'ip_version': 6, 'cidr': '22d3:6007:7388:f283:fff6:e2b1::/96', 'allocation_pools': [{'start': '22d3:6007:7388:f283:fff6:e2b1:0:2', 'end': '22d3:6007:7388:f283:fff6:e2b1:ffff:fffe'}], 'gateway_ip': '22d3:6007:7388:f283:fff6:e2b1:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '22d3:6007:7388:f283:fff6:e2b1:0:2', 'tags': [], 'project_id': 'bf6f95da05104a1ea740f12f44fd2495'}} 2025-11-12 18:12:16,886 - INFO - Created VN ctest-vn4-45406334 2025-11-12 18:12:16,938 - DEBUG - VN ctest-vn4-45406334 UUID is a9c8774a-0d6c-420b-b55a-fea587f67e2d 2025-11-12 18:12:17,116 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a9c8774a-0d6c-420b-b55a-fea587f67e2d', 'name': 'ctest-vn4-45406334', 'tenant_id': 'bf6f95da05104a1ea740f12f44fd2495', 'project_id': 'bf6f95da05104a1ea740f12f44fd2495', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['dd275db4-3a35-4a8e-a4ab-0ee2fa90787e', '9a741f08-45c4-4099-b2c1-d1afbade57a4'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-70203029', 'ctest-vn4-45406334'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-70203029', 'ctest-policy1-36595713']], 'subnet_ipam': [{'subnet_cidr': '190.244.203.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '22d3:6007:7388:f283:fff6:e2b1::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-11-12 18:12:17,278 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-11-12 18:12:17,597 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-11-12 18:12:17,625 - DEBUG - Requesting: http://10.0.0.33:8082/domain/f6779ccb-67a0-43a3-8c33-9f87de91637b 2025-11-12 18:12:17,637 - DEBUG - Requesting: http://10.0.0.33:8082/project/bf6f95da-0510-4a1e-a740-f12f44fd2495 2025-11-12 18:12:17,704 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/a9c8774a-0d6c-420b-b55a-fea587f67e2d 2025-11-12 18:12:17,714 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/a9c8774a-0d6c-420b-b55a-fea587f67e2d 2025-11-12 18:12:17,722 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/9d6cf34c-28fe-4ae1-b5e9-65c304bdb48e 2025-11-12 18:12:17,729 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/9d6cf34c-28fe-4ae1-b5e9-65c304bdb48e 2025-11-12 18:12:17,735 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/944445fe-d9d9-46a5-9235-27501a4303d0 2025-11-12 18:12:17,740 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-12 18:12:17,740 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/a9c8774a-0d6c-420b-b55a-fea587f67e2d 2025-11-12 18:12:17,748 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/9d6cf34c-28fe-4ae1-b5e9-65c304bdb48e 2025-11-12 18:12:17,760 - INFO - Verified VN network id 11 for VN a9c8774a-0d6c-420b-b55a-fea587f67e2d 2025-11-12 18:12:17,761 - INFO - Verifications in API Server for VN ctest-vn4-45406334 passed 2025-11-12 18:12:17,761 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/a9c8774a-0d6c-420b-b55a-fea587f67e2d 2025-11-12 18:12:17,770 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/9d6cf34c-28fe-4ae1-b5e9-65c304bdb48e 2025-11-12 18:12:17,776 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/9d6cf34c-28fe-4ae1-b5e9-65c304bdb48e 2025-11-12 18:12:17,782 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/944445fe-d9d9-46a5-9235-27501a4303d0 2025-11-12 18:12:17,792 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-70203029:ctest-vn4-45406334', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-70203029', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12234159547688436235', 'uuid-lslong': '13068037255673052717'}, 'enable': 'true', 'created': '2025-11-12T18:12:16', 'last-modified': '2025-11-12T18:12:17', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.697344'} 2025-11-12 18:12:17,797 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-12 18:12:17,797 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-45406334 passed 2025-11-12 18:12:17,797 - DEBUG - ====Verifying policy data for ctest-vn4-45406334 in API_Server ====== 2025-11-12 18:12:17,797 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-11-12 18:12:17,802 - DEBUG - Requesting: http://10.0.0.33:8082/domain/f6779ccb-67a0-43a3-8c33-9f87de91637b 2025-11-12 18:12:17,812 - DEBUG - Requesting: http://10.0.0.33:8082/project/bf6f95da-0510-4a1e-a740-f12f44fd2495 2025-11-12 18:12:17,949 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/a9c8774a-0d6c-420b-b55a-fea587f67e2d 2025-11-12 18:12:17,957 - DEBUG - ==>Verifying data for policy with id: 70a0dffd-8c1c-4419-9e9e-d4d52fc7487a, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-70203029', 'ctest-policy1-36595713'] 2025-11-12 18:12:17,957 - INFO - VN ctest-vn4-45406334 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-12 18:12:17,957 - DEBUG - Verifying the vn in opserver 2025-11-12 18:12:17,957 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-70203029:ctest-vn4-45406334 virtual network link through opserver 10.0.0.33 2025-11-12 18:12:17,957 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-11-12 18:12:18,277 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-11-12 18:12:18,332 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-70203029:ctest-vn4-45406334', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-70203029:ctest-vn4-45406334?flat'} 2025-11-12 18:12:18,332 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-70203029:ctest-vn4-45406334 is found in opserver 2025-11-12 18:12:18,342 - DEBUG - Do not have enough data to verify VN in agent 2025-11-12 18:12:18,346 - DEBUG - VRF ids for VN ctest-vn4-45406334: {} 2025-11-12 18:12:18,346 - DEBUG - ====Verifying data for ctest-policy1-36595713 in API_Server ====== 2025-11-12 18:12:18,346 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-11-12 18:12:18,353 - DEBUG - Requesting: http://10.0.0.33:8082/domain/f6779ccb-67a0-43a3-8c33-9f87de91637b 2025-11-12 18:12:18,364 - DEBUG - Requesting: http://10.0.0.33:8082/project/bf6f95da-0510-4a1e-a740-f12f44fd2495 2025-11-12 18:12:18,434 - DEBUG - Requesting: http://10.0.0.33:8082/network-policy/70a0dffd-8c1c-4419-9e9e-d4d52fc7487a 2025-11-12 18:12:18,444 - INFO - Verified policy ctest-policy1-36595713 in API Server, Result: True 2025-11-12 18:12:18,444 - INFO - Done with setup and verification, moving onto test .. 2025-11-12 18:12:18,451 - INFO - Deleting VN ctest-vn4-45406334 2025-11-12 18:12:18,565 - DEBUG - Response for deleting network () 2025-11-12 18:12:18,565 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/9d6cf34c-28fe-4ae1-b5e9-65c304bdb48e 2025-11-12 18:12:18,569 - DEBUG - Response Code: 404 2025-11-12 18:12:18,569 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-11-12 18:12:18,574 - DEBUG - Requesting: http://10.0.0.33:8082/domain/f6779ccb-67a0-43a3-8c33-9f87de91637b 2025-11-12 18:12:18,623 - DEBUG - Requesting: http://10.0.0.33:8082/project/bf6f95da-0510-4a1e-a740-f12f44fd2495 2025-11-12 18:12:18,691 - INFO - Validated that VN ctest-vn4-45406334 is not found in API Server 2025-11-12 18:12:18,700 - DEBUG - VN ctest-vn4-45406334 is not present in Agent 10.0.0.33 2025-11-12 18:12:18,700 - INFO - Validated that VN ctest-vn4-45406334 is not in any agent 2025-11-12 18:12:18,713 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-45406334 info 2025-11-12 18:12:18,740 - INFO - Deleted policy ctest-policy1-36595713 2025-11-12 18:12:18,910 - DEBUG - policy ctest-policy1-36595713 is not found in API Server 2025-11-12 18:12:19,167 - DEBUG - No XMPP flaps were noticed during the test