2025-11-14 10:09:17,130 - INFO - Domain Default found not creating 2025-11-14 10:09:17,389 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-18402320 not found, creating it 2025-11-14 10:09:17,959 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-18402320, ID : b1d443de-a3b9-4b9d-8f4c-f5c2fcfc9bad 2025-11-14 10:09:19,862 - INFO - ================================================================================ 2025-11-14 10:09:19,862 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-14 10:09:20,157 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.254': '0'}} with 2025-11-14 10:09:20,158 - INFO - Initial checks done. Running the testcase now 2025-11-14 10:09:20,158 - INFO - 2025-11-14 10:09:20,158 - INFO - ================================================================================ 2025-11-14 10:09:20,158 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-14 10:09:20,158 - 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-14 10:09:20,488 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.254': '0'}} with 2025-11-14 10:09:20,489 - INFO - Initial checks done. Running the testcase now 2025-11-14 10:09:20,489 - INFO - 2025-11-14 10:09:20,983 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-18402320:ctest-vn4-44270216, 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-18402320:ctest-vn4-44270216, 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-18402320:ctest-vn4-44270216, 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-18402320:ctest-vn4-44270216, 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-14 10:09:21,682 - DEBUG - Response for create_network : {'network': {'id': '09387d51-55dd-4aaf-8449-f3f411bc9768', 'name': 'ctest-vn4-44270216', 'tenant_id': 'b1d443dea3b94b9d8f4cf5c2fcfc9bad', 'project_id': 'b1d443dea3b94b9d8f4cf5c2fcfc9bad', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-18402320', 'ctest-vn4-44270216'], 'port_security_enabled': True, 'description': ''}} 2025-11-14 10:09:21,861 - DEBUG - Response for create_subnet : {'subnet': {'id': '199a7bbf-c38f-43c3-84f7-c48741ccb796', 'name': '', 'tenant_id': 'b1d443dea3b94b9d8f4cf5c2fcfc9bad', 'network_id': '09387d51-55dd-4aaf-8449-f3f411bc9768', 'ip_version': 4, 'cidr': '194.226.74.192/26', 'allocation_pools': [{'start': '194.226.74.194', 'end': '194.226.74.254'}], 'gateway_ip': '194.226.74.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '194.226.74.194', 'tags': [], 'project_id': 'b1d443dea3b94b9d8f4cf5c2fcfc9bad'}} 2025-11-14 10:09:22,071 - DEBUG - Response for create_subnet : {'subnet': {'id': '56dee016-1e73-4d53-b109-a6a16351f061', 'name': '', 'tenant_id': 'b1d443dea3b94b9d8f4cf5c2fcfc9bad', 'network_id': '09387d51-55dd-4aaf-8449-f3f411bc9768', 'ip_version': 6, 'cidr': '382f:9085:bc9:7999:9e6d:6215::/96', 'allocation_pools': [{'start': '382f:9085:bc9:7999:9e6d:6215:0:2', 'end': '382f:9085:bc9:7999:9e6d:6215:ffff:fffe'}], 'gateway_ip': '382f:9085:bc9:7999:9e6d:6215:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '382f:9085:bc9:7999:9e6d:6215:0:2', 'tags': [], 'project_id': 'b1d443dea3b94b9d8f4cf5c2fcfc9bad'}} 2025-11-14 10:09:22,096 - INFO - Created VN ctest-vn4-44270216 2025-11-14 10:09:22,151 - DEBUG - VN ctest-vn4-44270216 UUID is 09387d51-55dd-4aaf-8449-f3f411bc9768 2025-11-14 10:09:22,512 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '09387d51-55dd-4aaf-8449-f3f411bc9768', 'name': 'ctest-vn4-44270216', 'tenant_id': 'b1d443dea3b94b9d8f4cf5c2fcfc9bad', 'project_id': 'b1d443dea3b94b9d8f4cf5c2fcfc9bad', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['199a7bbf-c38f-43c3-84f7-c48741ccb796', '56dee016-1e73-4d53-b109-a6a16351f061'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-18402320', 'ctest-vn4-44270216'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-18402320', 'ctest-policy1-02060766']], 'subnet_ipam': [{'subnet_cidr': '194.226.74.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '382f:9085:bc9:7999:9e6d:6215::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-11-14 10:09:22,695 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-11-14 10:09:23,036 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-11-14 10:09:23,079 - DEBUG - Requesting: http://10.0.0.50:8082/domain/12bb2cbd-de3a-465c-9bb0-60b891b99a6b 2025-11-14 10:09:23,115 - DEBUG - Requesting: http://10.0.0.50:8082/project/b1d443de-a3b9-4b9d-8f4c-f5c2fcfc9bad 2025-11-14 10:09:23,204 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/09387d51-55dd-4aaf-8449-f3f411bc9768 2025-11-14 10:09:23,221 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/09387d51-55dd-4aaf-8449-f3f411bc9768 2025-11-14 10:09:23,239 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/91e5217b-731b-462d-b757-209e043846f8 2025-11-14 10:09:23,251 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/91e5217b-731b-462d-b757-209e043846f8 2025-11-14 10:09:23,262 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/5ef9cc4d-7b80-49cb-98f8-9538c7736643 2025-11-14 10:09:23,274 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-14 10:09:23,274 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/09387d51-55dd-4aaf-8449-f3f411bc9768 2025-11-14 10:09:23,290 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/91e5217b-731b-462d-b757-209e043846f8 2025-11-14 10:09:23,318 - INFO - Verified VN network id 10 for VN 09387d51-55dd-4aaf-8449-f3f411bc9768 2025-11-14 10:09:23,318 - INFO - Verifications in API Server for VN ctest-vn4-44270216 passed 2025-11-14 10:09:23,319 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/09387d51-55dd-4aaf-8449-f3f411bc9768 2025-11-14 10:09:23,336 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/91e5217b-731b-462d-b757-209e043846f8 2025-11-14 10:09:23,348 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/91e5217b-731b-462d-b757-209e043846f8 2025-11-14 10:09:23,359 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/5ef9cc4d-7b80-49cb-98f8-9538c7736643 2025-11-14 10:09:23,381 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-18402320:ctest-vn4-44270216', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-18402320', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '664418733323537071', 'uuid-lslong': '9532418315901507432'}, 'enable': 'true', 'created': '2025-11-14T10:09:21', 'last-modified': '2025-11-14T10:09:22', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.924878'} 2025-11-14 10:09:23,392 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-14 10:09:23,392 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-44270216 passed 2025-11-14 10:09:23,393 - DEBUG - ====Verifying policy data for ctest-vn4-44270216 in API_Server ====== 2025-11-14 10:09:23,393 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-11-14 10:09:23,402 - DEBUG - Requesting: http://10.0.0.50:8082/domain/12bb2cbd-de3a-465c-9bb0-60b891b99a6b 2025-11-14 10:09:23,419 - DEBUG - Requesting: http://10.0.0.50:8082/project/b1d443de-a3b9-4b9d-8f4c-f5c2fcfc9bad 2025-11-14 10:09:23,499 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/09387d51-55dd-4aaf-8449-f3f411bc9768 2025-11-14 10:09:23,513 - DEBUG - ==>Verifying data for policy with id: 4b407336-6dc6-4972-b166-7d9cce70f846, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-18402320', 'ctest-policy1-02060766'] 2025-11-14 10:09:23,513 - INFO - VN ctest-vn4-44270216 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-14 10:09:23,513 - DEBUG - Verifying the vn in opserver 2025-11-14 10:09:23,513 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-18402320:ctest-vn4-44270216 virtual network link through opserver 10.0.0.50 2025-11-14 10:09:23,514 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-11-14 10:09:23,856 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-11-14 10:09:23,979 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-18402320:ctest-vn4-44270216', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-18402320:ctest-vn4-44270216?flat'} 2025-11-14 10:09:23,979 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-18402320:ctest-vn4-44270216 is found in opserver 2025-11-14 10:09:24,007 - DEBUG - Do not have enough data to verify VN in agent 2025-11-14 10:09:24,016 - DEBUG - VRF ids for VN ctest-vn4-44270216: {} 2025-11-14 10:09:24,016 - DEBUG - ====Verifying data for ctest-policy1-02060766 in API_Server ====== 2025-11-14 10:09:24,016 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-11-14 10:09:24,027 - DEBUG - Requesting: http://10.0.0.50:8082/domain/12bb2cbd-de3a-465c-9bb0-60b891b99a6b 2025-11-14 10:09:24,040 - DEBUG - Requesting: http://10.0.0.50:8082/project/b1d443de-a3b9-4b9d-8f4c-f5c2fcfc9bad 2025-11-14 10:09:24,125 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/4b407336-6dc6-4972-b166-7d9cce70f846 2025-11-14 10:09:24,147 - INFO - Verified policy ctest-policy1-02060766 in API Server, Result: True 2025-11-14 10:09:24,147 - INFO - Done with setup and verification, moving onto test .. 2025-11-14 10:09:24,161 - INFO - Deleting VN ctest-vn4-44270216 2025-11-14 10:09:24,332 - DEBUG - Response for deleting network () 2025-11-14 10:09:24,332 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/91e5217b-731b-462d-b757-209e043846f8 2025-11-14 10:09:24,340 - DEBUG - Response Code: 404 2025-11-14 10:09:24,340 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-11-14 10:09:24,346 - DEBUG - Requesting: http://10.0.0.50:8082/domain/12bb2cbd-de3a-465c-9bb0-60b891b99a6b 2025-11-14 10:09:24,403 - DEBUG - Requesting: http://10.0.0.50:8082/project/b1d443de-a3b9-4b9d-8f4c-f5c2fcfc9bad 2025-11-14 10:09:24,485 - INFO - Validated that VN ctest-vn4-44270216 is not found in API Server 2025-11-14 10:09:24,500 - DEBUG - VN ctest-vn4-44270216 is not present in Agent 10.0.0.50 2025-11-14 10:09:24,500 - INFO - Validated that VN ctest-vn4-44270216 is not in any agent 2025-11-14 10:09:24,521 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-44270216 info 2025-11-14 10:09:24,563 - INFO - Deleted policy ctest-policy1-02060766 2025-11-14 10:09:24,774 - DEBUG - policy ctest-policy1-02060766 is not found in API Server 2025-11-14 10:09:25,072 - DEBUG - No XMPP flaps were noticed during the test