2025-11-04 22:49:20,649 - INFO - Domain Default found not creating 2025-11-04 22:49:20,812 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-48707640 not found, creating it 2025-11-04 22:49:21,266 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-48707640, ID : 2423e27e-ec4b-4f0a-a6d6-163fee7f92c2 2025-11-04 22:49:22,627 - INFO - ================================================================================ 2025-11-04 22:49:22,627 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-04 22:49:22,884 - DEBUG - Nothing to compare xmpp stats {'10.0.0.57': {'10.20.0.17': '0'}} with 2025-11-04 22:49:22,884 - INFO - Initial checks done. Running the testcase now 2025-11-04 22:49:22,884 - INFO - 2025-11-04 22:49:22,884 - INFO - ================================================================================ 2025-11-04 22:49:22,884 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-04 22:49:22,884 - 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-04 22:49:23,172 - DEBUG - Nothing to compare xmpp stats {'10.0.0.57': {'10.20.0.17': '0'}} with 2025-11-04 22:49:23,172 - INFO - Initial checks done. Running the testcase now 2025-11-04 22:49:23,172 - INFO - 2025-11-04 22:49:23,518 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-48707640:ctest-vn4-31113890, 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-48707640:ctest-vn4-31113890, 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-48707640:ctest-vn4-31113890, 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-48707640:ctest-vn4-31113890, 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-04 22:49:24,035 - DEBUG - Response for create_network : {'network': {'id': '66ff2917-0af6-425a-9841-697823929126', 'name': 'ctest-vn4-31113890', 'tenant_id': '2423e27eec4b4f0aa6d6163fee7f92c2', 'project_id': '2423e27eec4b4f0aa6d6163fee7f92c2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-48707640', 'ctest-vn4-31113890'], 'port_security_enabled': True, 'description': ''}} 2025-11-04 22:49:24,231 - DEBUG - Response for create_subnet : {'subnet': {'id': '254162b9-b050-4631-8118-7759f43cc62a', 'name': '', 'tenant_id': '2423e27eec4b4f0aa6d6163fee7f92c2', 'network_id': '66ff2917-0af6-425a-9841-697823929126', 'ip_version': 4, 'cidr': '19.6.20.64/26', 'allocation_pools': [{'start': '19.6.20.66', 'end': '19.6.20.126'}], 'gateway_ip': '19.6.20.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '19.6.20.66', 'tags': [], 'project_id': '2423e27eec4b4f0aa6d6163fee7f92c2'}} 2025-11-04 22:49:24,388 - DEBUG - Response for create_subnet : {'subnet': {'id': '4ae8ea9e-899b-475e-bc02-e06141554bd4', 'name': '', 'tenant_id': '2423e27eec4b4f0aa6d6163fee7f92c2', 'network_id': '66ff2917-0af6-425a-9841-697823929126', 'ip_version': 6, 'cidr': '273c:c49:2d91:757d:7a83:316d::/96', 'allocation_pools': [{'start': '273c:c49:2d91:757d:7a83:316d:0:2', 'end': '273c:c49:2d91:757d:7a83:316d:ffff:fffe'}], 'gateway_ip': '273c:c49:2d91:757d:7a83:316d:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '273c:c49:2d91:757d:7a83:316d:0:2', 'tags': [], 'project_id': '2423e27eec4b4f0aa6d6163fee7f92c2'}} 2025-11-04 22:49:24,406 - INFO - Created VN ctest-vn4-31113890 2025-11-04 22:49:24,459 - DEBUG - VN ctest-vn4-31113890 UUID is 66ff2917-0af6-425a-9841-697823929126 2025-11-04 22:49:24,652 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '66ff2917-0af6-425a-9841-697823929126', 'name': 'ctest-vn4-31113890', 'tenant_id': '2423e27eec4b4f0aa6d6163fee7f92c2', 'project_id': '2423e27eec4b4f0aa6d6163fee7f92c2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['254162b9-b050-4631-8118-7759f43cc62a', '4ae8ea9e-899b-475e-bc02-e06141554bd4'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-48707640', 'ctest-vn4-31113890'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-48707640', 'ctest-policy1-71718933']], 'subnet_ipam': [{'subnet_cidr': '19.6.20.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '273c:c49:2d91:757d:7a83:316d::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-11-04 22:49:24,806 - DEBUG - Requesting: http://10.0.0.57:8082/domains 2025-11-04 22:49:25,095 - DEBUG - Requesting: http://10.0.0.57:8082/domains 2025-11-04 22:49:25,124 - DEBUG - Requesting: http://10.0.0.57:8082/domain/59cea508-1c1a-44bd-9672-612d3322e55a 2025-11-04 22:49:25,135 - DEBUG - Requesting: http://10.0.0.57:8082/project/2423e27e-ec4b-4f0a-a6d6-163fee7f92c2 2025-11-04 22:49:25,213 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/66ff2917-0af6-425a-9841-697823929126 2025-11-04 22:49:25,226 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/66ff2917-0af6-425a-9841-697823929126 2025-11-04 22:49:25,235 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/ca325448-ebe1-4ff1-a894-9b104e8dc563 2025-11-04 22:49:25,241 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/ca325448-ebe1-4ff1-a894-9b104e8dc563 2025-11-04 22:49:25,246 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/d8177b05-bcdb-4281-ae4c-77958008af28 2025-11-04 22:49:25,251 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-04 22:49:25,251 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/66ff2917-0af6-425a-9841-697823929126 2025-11-04 22:49:25,260 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/ca325448-ebe1-4ff1-a894-9b104e8dc563 2025-11-04 22:49:25,270 - INFO - Verified VN network id 12 for VN 66ff2917-0af6-425a-9841-697823929126 2025-11-04 22:49:25,270 - INFO - Verifications in API Server for VN ctest-vn4-31113890 passed 2025-11-04 22:49:25,271 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/66ff2917-0af6-425a-9841-697823929126 2025-11-04 22:49:25,278 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/ca325448-ebe1-4ff1-a894-9b104e8dc563 2025-11-04 22:49:25,283 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/ca325448-ebe1-4ff1-a894-9b104e8dc563 2025-11-04 22:49:25,289 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/d8177b05-bcdb-4281-ae4c-77958008af28 2025-11-04 22:49:25,297 - DEBUG - Control-node 10.0.0.57 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-48707640:ctest-vn4-31113890', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-48707640', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7421695889874764378', 'uuid-lslong': '10971166131965038886'}, 'enable': 'true', 'created': '2025-11-04T22:49:23', 'last-modified': '2025-11-04T22:49:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.674844'} 2025-11-04 22:49:25,303 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-04 22:49:25,303 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-31113890 passed 2025-11-04 22:49:25,303 - DEBUG - ====Verifying policy data for ctest-vn4-31113890 in API_Server ====== 2025-11-04 22:49:25,303 - DEBUG - Requesting: http://10.0.0.57:8082/domains 2025-11-04 22:49:25,307 - DEBUG - Requesting: http://10.0.0.57:8082/domain/59cea508-1c1a-44bd-9672-612d3322e55a 2025-11-04 22:49:25,316 - DEBUG - Requesting: http://10.0.0.57:8082/project/2423e27e-ec4b-4f0a-a6d6-163fee7f92c2 2025-11-04 22:49:25,383 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/66ff2917-0af6-425a-9841-697823929126 2025-11-04 22:49:25,391 - DEBUG - ==>Verifying data for policy with id: 9c175926-6119-41b1-ad64-7a9a441993d5, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-48707640', 'ctest-policy1-71718933'] 2025-11-04 22:49:25,391 - INFO - VN ctest-vn4-31113890 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-04 22:49:25,391 - DEBUG - Verifying the vn in opserver 2025-11-04 22:49:25,391 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-48707640:ctest-vn4-31113890 virtual network link through opserver 10.0.0.57 2025-11-04 22:49:25,391 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks 2025-11-04 22:49:25,680 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks 2025-11-04 22:49:25,731 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-48707640:ctest-vn4-31113890', 'href': 'http://10.0.0.57:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-48707640:ctest-vn4-31113890?flat'} 2025-11-04 22:49:25,731 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-48707640:ctest-vn4-31113890 is found in opserver 2025-11-04 22:49:25,740 - DEBUG - Do not have enough data to verify VN in agent 2025-11-04 22:49:25,744 - DEBUG - VRF ids for VN ctest-vn4-31113890: {} 2025-11-04 22:49:25,744 - DEBUG - ====Verifying data for ctest-policy1-71718933 in API_Server ====== 2025-11-04 22:49:25,745 - DEBUG - Requesting: http://10.0.0.57:8082/domains 2025-11-04 22:49:25,749 - DEBUG - Requesting: http://10.0.0.57:8082/domain/59cea508-1c1a-44bd-9672-612d3322e55a 2025-11-04 22:49:25,760 - DEBUG - Requesting: http://10.0.0.57:8082/project/2423e27e-ec4b-4f0a-a6d6-163fee7f92c2 2025-11-04 22:49:25,830 - DEBUG - Requesting: http://10.0.0.57:8082/network-policy/9c175926-6119-41b1-ad64-7a9a441993d5 2025-11-04 22:49:25,842 - INFO - Verified policy ctest-policy1-71718933 in API Server, Result: True 2025-11-04 22:49:25,842 - INFO - Done with setup and verification, moving onto test .. 2025-11-04 22:49:25,849 - INFO - Deleting VN ctest-vn4-31113890 2025-11-04 22:49:26,021 - DEBUG - Response for deleting network () 2025-11-04 22:49:26,021 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/ca325448-ebe1-4ff1-a894-9b104e8dc563 2025-11-04 22:49:26,025 - DEBUG - Response Code: 404 2025-11-04 22:49:26,025 - DEBUG - Requesting: http://10.0.0.57:8082/domains 2025-11-04 22:49:26,030 - DEBUG - Requesting: http://10.0.0.57:8082/domain/59cea508-1c1a-44bd-9672-612d3322e55a 2025-11-04 22:49:26,083 - DEBUG - Requesting: http://10.0.0.57:8082/project/2423e27e-ec4b-4f0a-a6d6-163fee7f92c2 2025-11-04 22:49:26,150 - INFO - Validated that VN ctest-vn4-31113890 is not found in API Server 2025-11-04 22:49:26,159 - DEBUG - VN ctest-vn4-31113890 is not present in Agent 10.0.0.57 2025-11-04 22:49:26,159 - INFO - Validated that VN ctest-vn4-31113890 is not in any agent 2025-11-04 22:49:26,173 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-31113890 info 2025-11-04 22:49:26,195 - INFO - Deleted policy ctest-policy1-71718933 2025-11-04 22:49:26,354 - DEBUG - policy ctest-policy1-71718933 is not found in API Server 2025-11-04 22:49:26,607 - DEBUG - No XMPP flaps were noticed during the test 2025-11-04 22:49:26,607 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-11-04 22:49:26,607 - INFO - -------------------------------------------------------------------------------- 2025-11-04 22:49:26,898 - DEBUG - No XMPP flaps were noticed during the test 2025-11-04 22:49:26,898 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-11-04 22:49:26,899 - INFO - -------------------------------------------------------------------------------- 2025-11-04 22:49:27,547 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-48707640, ID : 2423e27e-ec4b-4f0a-a6d6-163fee7f92c2