2025-10-15 19:39:11,261 - INFO - Domain Default found not creating 2025-10-15 19:39:11,432 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-72890000 not found, creating it 2025-10-15 19:39:11,941 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-72890000, ID : a77fd7b2-6b7b-4e73-b04d-557f720746af 2025-10-15 19:39:13,462 - INFO - ================================================================================ 2025-10-15 19:39:13,462 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-15 19:39:13,715 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.18': '0'}} with 2025-10-15 19:39:13,716 - INFO - Initial checks done. Running the testcase now 2025-10-15 19:39:13,716 - INFO - 2025-10-15 19:39:13,716 - INFO - ================================================================================ 2025-10-15 19:39:13,716 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-15 19:39:13,716 - 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-10-15 19:39:14,015 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.18': '0'}} with 2025-10-15 19:39:14,015 - INFO - Initial checks done. Running the testcase now 2025-10-15 19:39:14,016 - INFO - 2025-10-15 19:39:14,376 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-72890000:ctest-vn4-14701236, 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-72890000:ctest-vn4-14701236, 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-72890000:ctest-vn4-14701236, 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-72890000:ctest-vn4-14701236, 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-10-15 19:39:14,886 - DEBUG - Response for create_network : {'network': {'id': 'da9049d6-7776-4044-92be-96e2a9dc9ea2', 'name': 'ctest-vn4-14701236', 'tenant_id': 'a77fd7b26b7b4e73b04d557f720746af', 'project_id': 'a77fd7b26b7b4e73b04d557f720746af', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-72890000', 'ctest-vn4-14701236'], 'port_security_enabled': True, 'description': ''}} 2025-10-15 19:39:15,089 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f0a3b821-1816-4a91-b0fd-a88b5968097f', 'name': '', 'tenant_id': 'a77fd7b26b7b4e73b04d557f720746af', 'network_id': 'da9049d6-7776-4044-92be-96e2a9dc9ea2', 'ip_version': 4, 'cidr': '183.132.122.192/26', 'allocation_pools': [{'start': '183.132.122.194', 'end': '183.132.122.254'}], 'gateway_ip': '183.132.122.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '183.132.122.194', 'tags': [], 'project_id': 'a77fd7b26b7b4e73b04d557f720746af'}} 2025-10-15 19:39:15,362 - DEBUG - Response for create_subnet : {'subnet': {'id': '05384894-825e-4b6e-ae65-93b0a8b05402', 'name': '', 'tenant_id': 'a77fd7b26b7b4e73b04d557f720746af', 'network_id': 'da9049d6-7776-4044-92be-96e2a9dc9ea2', 'ip_version': 6, 'cidr': '34b2:7fd6:1cca:95d6:7b31:f5df::/96', 'allocation_pools': [{'start': '34b2:7fd6:1cca:95d6:7b31:f5df:0:2', 'end': '34b2:7fd6:1cca:95d6:7b31:f5df:ffff:fffe'}], 'gateway_ip': '34b2:7fd6:1cca:95d6:7b31:f5df:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '34b2:7fd6:1cca:95d6:7b31:f5df:0:2', 'tags': [], 'project_id': 'a77fd7b26b7b4e73b04d557f720746af'}} 2025-10-15 19:39:15,381 - INFO - Created VN ctest-vn4-14701236 2025-10-15 19:39:15,434 - DEBUG - VN ctest-vn4-14701236 UUID is da9049d6-7776-4044-92be-96e2a9dc9ea2 2025-10-15 19:39:15,640 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'da9049d6-7776-4044-92be-96e2a9dc9ea2', 'name': 'ctest-vn4-14701236', 'tenant_id': 'a77fd7b26b7b4e73b04d557f720746af', 'project_id': 'a77fd7b26b7b4e73b04d557f720746af', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f0a3b821-1816-4a91-b0fd-a88b5968097f', '05384894-825e-4b6e-ae65-93b0a8b05402'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-72890000', 'ctest-vn4-14701236'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-72890000', 'ctest-policy1-76828410']], 'subnet_ipam': [{'subnet_cidr': '183.132.122.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '34b2:7fd6:1cca:95d6:7b31:f5df::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-15 19:39:15,802 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-10-15 19:39:16,104 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-10-15 19:39:16,131 - DEBUG - Requesting: http://10.0.0.22:8082/domain/cd71de06-90f0-40c9-b923-2a3d6bfa1e51 2025-10-15 19:39:16,144 - DEBUG - Requesting: http://10.0.0.22:8082/project/a77fd7b2-6b7b-4e73-b04d-557f720746af 2025-10-15 19:39:16,214 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/da9049d6-7776-4044-92be-96e2a9dc9ea2 2025-10-15 19:39:16,226 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/da9049d6-7776-4044-92be-96e2a9dc9ea2 2025-10-15 19:39:16,235 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/149f9623-4b20-47a1-ad00-e450909b9af3 2025-10-15 19:39:16,242 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/149f9623-4b20-47a1-ad00-e450909b9af3 2025-10-15 19:39:16,249 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/bd75a207-d158-4dc6-babb-456de5667e9f 2025-10-15 19:39:16,256 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-15 19:39:16,257 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/da9049d6-7776-4044-92be-96e2a9dc9ea2 2025-10-15 19:39:16,266 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/149f9623-4b20-47a1-ad00-e450909b9af3 2025-10-15 19:39:16,280 - INFO - Verified VN network id 11 for VN da9049d6-7776-4044-92be-96e2a9dc9ea2 2025-10-15 19:39:16,281 - INFO - Verifications in API Server for VN ctest-vn4-14701236 passed 2025-10-15 19:39:16,281 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/da9049d6-7776-4044-92be-96e2a9dc9ea2 2025-10-15 19:39:16,290 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/149f9623-4b20-47a1-ad00-e450909b9af3 2025-10-15 19:39:16,297 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/149f9623-4b20-47a1-ad00-e450909b9af3 2025-10-15 19:39:16,304 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/bd75a207-d158-4dc6-babb-456de5667e9f 2025-10-15 19:39:16,317 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-72890000:ctest-vn4-14701236', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-72890000', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15749169082390691908', 'uuid-lslong': '10574054875369086626'}, 'enable': 'true', 'created': '2025-10-15T19:39:14', 'last-modified': '2025-10-15T19:39:15', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.704516'} 2025-10-15 19:39:16,324 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-15 19:39:16,324 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-14701236 passed 2025-10-15 19:39:16,325 - DEBUG - ====Verifying policy data for ctest-vn4-14701236 in API_Server ====== 2025-10-15 19:39:16,325 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-10-15 19:39:16,330 - DEBUG - Requesting: http://10.0.0.22:8082/domain/cd71de06-90f0-40c9-b923-2a3d6bfa1e51 2025-10-15 19:39:16,341 - DEBUG - Requesting: http://10.0.0.22:8082/project/a77fd7b2-6b7b-4e73-b04d-557f720746af 2025-10-15 19:39:16,420 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/da9049d6-7776-4044-92be-96e2a9dc9ea2 2025-10-15 19:39:16,429 - DEBUG - ==>Verifying data for policy with id: 28c0bd0b-0c61-4cd7-8736-6995d70fa7b9, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-72890000', 'ctest-policy1-76828410'] 2025-10-15 19:39:16,429 - INFO - VN ctest-vn4-14701236 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-15 19:39:16,429 - DEBUG - Verifying the vn in opserver 2025-10-15 19:39:16,429 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-72890000:ctest-vn4-14701236 virtual network link through opserver 10.0.0.22 2025-10-15 19:39:16,429 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-10-15 19:39:16,732 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-10-15 19:39:16,790 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-72890000:ctest-vn4-14701236', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-72890000:ctest-vn4-14701236?flat'} 2025-10-15 19:39:16,791 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-72890000:ctest-vn4-14701236 is found in opserver 2025-10-15 19:39:16,799 - DEBUG - Do not have enough data to verify VN in agent 2025-10-15 19:39:16,804 - DEBUG - VRF ids for VN ctest-vn4-14701236: {} 2025-10-15 19:39:16,804 - DEBUG - ====Verifying data for ctest-policy1-76828410 in API_Server ====== 2025-10-15 19:39:16,804 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-10-15 19:39:16,810 - DEBUG - Requesting: http://10.0.0.22:8082/domain/cd71de06-90f0-40c9-b923-2a3d6bfa1e51 2025-10-15 19:39:16,820 - DEBUG - Requesting: http://10.0.0.22:8082/project/a77fd7b2-6b7b-4e73-b04d-557f720746af 2025-10-15 19:39:16,899 - DEBUG - Requesting: http://10.0.0.22:8082/network-policy/28c0bd0b-0c61-4cd7-8736-6995d70fa7b9 2025-10-15 19:39:16,913 - INFO - Verified policy ctest-policy1-76828410 in API Server, Result: True 2025-10-15 19:39:16,913 - INFO - Done with setup and verification, moving onto test .. 2025-10-15 19:39:16,922 - INFO - Deleting VN ctest-vn4-14701236 2025-10-15 19:39:17,072 - DEBUG - Response for deleting network () 2025-10-15 19:39:17,072 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/149f9623-4b20-47a1-ad00-e450909b9af3 2025-10-15 19:39:17,077 - DEBUG - Response Code: 404 2025-10-15 19:39:17,077 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-10-15 19:39:17,083 - DEBUG - Requesting: http://10.0.0.22:8082/domain/cd71de06-90f0-40c9-b923-2a3d6bfa1e51 2025-10-15 19:39:17,135 - DEBUG - Requesting: http://10.0.0.22:8082/project/a77fd7b2-6b7b-4e73-b04d-557f720746af 2025-10-15 19:39:17,205 - INFO - Validated that VN ctest-vn4-14701236 is not found in API Server 2025-10-15 19:39:17,214 - DEBUG - VN ctest-vn4-14701236 is not present in Agent 10.0.0.22 2025-10-15 19:39:17,214 - INFO - Validated that VN ctest-vn4-14701236 is not in any agent 2025-10-15 19:39:17,229 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-14701236 info 2025-10-15 19:39:17,260 - INFO - Deleted policy ctest-policy1-76828410 2025-10-15 19:39:17,426 - DEBUG - policy ctest-policy1-76828410 is not found in API Server 2025-10-15 19:39:17,692 - DEBUG - No XMPP flaps were noticed during the test 2025-10-15 19:39:17,692 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-10-15 19:39:17,692 - INFO - -------------------------------------------------------------------------------- 2025-10-15 19:39:17,985 - DEBUG - No XMPP flaps were noticed during the test 2025-10-15 19:39:17,985 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-10-15 19:39:17,985 - INFO - -------------------------------------------------------------------------------- 2025-10-15 19:39:18,689 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-72890000, ID : a77fd7b2-6b7b-4e73-b04d-557f720746af