2025-10-31 22:17:39,212 - INFO - Domain Default found not creating 2025-10-31 22:17:39,347 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-19456468 not found, creating it 2025-10-31 22:17:39,779 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-19456468, ID : e142f8e2-206c-41e1-9584-c0709f48a3c2 2025-10-31 22:17:41,170 - INFO - ================================================================================ 2025-10-31 22:17:41,171 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-31 22:17:41,426 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.254': '0'}} with 2025-10-31 22:17:41,426 - INFO - Initial checks done. Running the testcase now 2025-10-31 22:17:41,426 - INFO - 2025-10-31 22:17:41,426 - INFO - ================================================================================ 2025-10-31 22:17:41,426 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-31 22:17:41,426 - 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-31 22:17:41,714 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.254': '0'}} with 2025-10-31 22:17:41,714 - INFO - Initial checks done. Running the testcase now 2025-10-31 22:17:41,714 - INFO - 2025-10-31 22:17:42,063 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-19456468:ctest-vn4-68073371, 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-19456468:ctest-vn4-68073371, 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-19456468:ctest-vn4-68073371, 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-19456468:ctest-vn4-68073371, 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-31 22:17:42,547 - DEBUG - Response for create_network : {'network': {'id': '7f14c43a-462c-4180-8c61-89a6fb0f6c66', 'name': 'ctest-vn4-68073371', 'tenant_id': 'e142f8e2206c41e19584c0709f48a3c2', 'project_id': 'e142f8e2206c41e19584c0709f48a3c2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-19456468', 'ctest-vn4-68073371'], 'port_security_enabled': True, 'description': ''}} 2025-10-31 22:17:42,731 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ae2fdc25-d961-4ae5-b1cd-90e94cd33669', 'name': '', 'tenant_id': 'e142f8e2206c41e19584c0709f48a3c2', 'network_id': '7f14c43a-462c-4180-8c61-89a6fb0f6c66', 'ip_version': 4, 'cidr': '108.1.116.0/26', 'allocation_pools': [{'start': '108.1.116.2', 'end': '108.1.116.62'}], 'gateway_ip': '108.1.116.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '108.1.116.2', 'tags': [], 'project_id': 'e142f8e2206c41e19584c0709f48a3c2'}} 2025-10-31 22:17:42,881 - DEBUG - Response for create_subnet : {'subnet': {'id': 'bf53c756-495e-4111-a3e8-a7bb0b330eed', 'name': '', 'tenant_id': 'e142f8e2206c41e19584c0709f48a3c2', 'network_id': '7f14c43a-462c-4180-8c61-89a6fb0f6c66', 'ip_version': 6, 'cidr': '339b:cbec:4070:9342:230f:db38::/96', 'allocation_pools': [{'start': '339b:cbec:4070:9342:230f:db38:0:2', 'end': '339b:cbec:4070:9342:230f:db38:ffff:fffe'}], 'gateway_ip': '339b:cbec:4070:9342:230f:db38:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '339b:cbec:4070:9342:230f:db38:0:2', 'tags': [], 'project_id': 'e142f8e2206c41e19584c0709f48a3c2'}} 2025-10-31 22:17:42,900 - INFO - Created VN ctest-vn4-68073371 2025-10-31 22:17:42,949 - DEBUG - VN ctest-vn4-68073371 UUID is 7f14c43a-462c-4180-8c61-89a6fb0f6c66 2025-10-31 22:17:43,131 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7f14c43a-462c-4180-8c61-89a6fb0f6c66', 'name': 'ctest-vn4-68073371', 'tenant_id': 'e142f8e2206c41e19584c0709f48a3c2', 'project_id': 'e142f8e2206c41e19584c0709f48a3c2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ae2fdc25-d961-4ae5-b1cd-90e94cd33669', 'bf53c756-495e-4111-a3e8-a7bb0b330eed'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-19456468', 'ctest-vn4-68073371'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-19456468', 'ctest-policy1-25677034']], 'subnet_ipam': [{'subnet_cidr': '108.1.116.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '339b:cbec:4070:9342:230f:db38::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-31 22:17:43,297 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-10-31 22:17:43,590 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-10-31 22:17:43,624 - DEBUG - Requesting: http://10.0.0.50:8082/domain/b1cd44bd-cd8e-4086-8411-09798cb9530b 2025-10-31 22:17:43,638 - DEBUG - Requesting: http://10.0.0.50:8082/project/e142f8e2-206c-41e1-9584-c0709f48a3c2 2025-10-31 22:17:43,709 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/7f14c43a-462c-4180-8c61-89a6fb0f6c66 2025-10-31 22:17:43,721 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/7f14c43a-462c-4180-8c61-89a6fb0f6c66 2025-10-31 22:17:43,730 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/1dc462b1-cee1-4b39-aea7-61ec7170b9be 2025-10-31 22:17:43,735 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/1dc462b1-cee1-4b39-aea7-61ec7170b9be 2025-10-31 22:17:43,740 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/3e763d94-072f-4b8c-96e5-3b9953aee875 2025-10-31 22:17:43,745 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-31 22:17:43,745 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/7f14c43a-462c-4180-8c61-89a6fb0f6c66 2025-10-31 22:17:43,752 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/1dc462b1-cee1-4b39-aea7-61ec7170b9be 2025-10-31 22:17:43,763 - INFO - Verified VN network id 10 for VN 7f14c43a-462c-4180-8c61-89a6fb0f6c66 2025-10-31 22:17:43,763 - INFO - Verifications in API Server for VN ctest-vn4-68073371 passed 2025-10-31 22:17:43,763 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/7f14c43a-462c-4180-8c61-89a6fb0f6c66 2025-10-31 22:17:43,771 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/1dc462b1-cee1-4b39-aea7-61ec7170b9be 2025-10-31 22:17:43,776 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/1dc462b1-cee1-4b39-aea7-61ec7170b9be 2025-10-31 22:17:43,781 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/3e763d94-072f-4b8c-96e5-3b9953aee875 2025-10-31 22:17:43,790 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-19456468:ctest-vn4-68073371', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-19456468', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9157159696915513728', 'uuid-lslong': '10115517588320513126'}, 'enable': 'true', 'created': '2025-10-31T22:17:42', 'last-modified': '2025-10-31T22:17:43', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.682816'} 2025-10-31 22:17:43,795 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-31 22:17:43,795 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-68073371 passed 2025-10-31 22:17:43,795 - DEBUG - ====Verifying policy data for ctest-vn4-68073371 in API_Server ====== 2025-10-31 22:17:43,795 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-10-31 22:17:43,799 - DEBUG - Requesting: http://10.0.0.50:8082/domain/b1cd44bd-cd8e-4086-8411-09798cb9530b 2025-10-31 22:17:43,807 - DEBUG - Requesting: http://10.0.0.50:8082/project/e142f8e2-206c-41e1-9584-c0709f48a3c2 2025-10-31 22:17:43,876 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/7f14c43a-462c-4180-8c61-89a6fb0f6c66 2025-10-31 22:17:43,885 - DEBUG - ==>Verifying data for policy with id: d7e464ed-ca0b-4942-83dc-61cc84e3d9db, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-19456468', 'ctest-policy1-25677034'] 2025-10-31 22:17:43,885 - INFO - VN ctest-vn4-68073371 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-31 22:17:43,885 - DEBUG - Verifying the vn in opserver 2025-10-31 22:17:43,885 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-19456468:ctest-vn4-68073371 virtual network link through opserver 10.0.0.50 2025-10-31 22:17:43,886 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-10-31 22:17:44,177 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-10-31 22:17:44,230 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-19456468:ctest-vn4-68073371', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-19456468:ctest-vn4-68073371?flat'} 2025-10-31 22:17:44,230 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-19456468:ctest-vn4-68073371 is found in opserver 2025-10-31 22:17:44,238 - DEBUG - Do not have enough data to verify VN in agent 2025-10-31 22:17:44,242 - DEBUG - VRF ids for VN ctest-vn4-68073371: {} 2025-10-31 22:17:44,242 - DEBUG - ====Verifying data for ctest-policy1-25677034 in API_Server ====== 2025-10-31 22:17:44,242 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-10-31 22:17:44,247 - DEBUG - Requesting: http://10.0.0.50:8082/domain/b1cd44bd-cd8e-4086-8411-09798cb9530b 2025-10-31 22:17:44,259 - DEBUG - Requesting: http://10.0.0.50:8082/project/e142f8e2-206c-41e1-9584-c0709f48a3c2 2025-10-31 22:17:44,326 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/d7e464ed-ca0b-4942-83dc-61cc84e3d9db 2025-10-31 22:17:44,334 - INFO - Verified policy ctest-policy1-25677034 in API Server, Result: True 2025-10-31 22:17:44,334 - INFO - Done with setup and verification, moving onto test .. 2025-10-31 22:17:44,341 - INFO - Deleting VN ctest-vn4-68073371 2025-10-31 22:17:44,450 - DEBUG - Response for deleting network () 2025-10-31 22:17:44,450 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/1dc462b1-cee1-4b39-aea7-61ec7170b9be 2025-10-31 22:17:44,454 - DEBUG - Response Code: 404 2025-10-31 22:17:44,454 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-10-31 22:17:44,459 - DEBUG - Requesting: http://10.0.0.50:8082/domain/b1cd44bd-cd8e-4086-8411-09798cb9530b 2025-10-31 22:17:44,509 - DEBUG - Requesting: http://10.0.0.50:8082/project/e142f8e2-206c-41e1-9584-c0709f48a3c2 2025-10-31 22:17:44,641 - INFO - Validated that VN ctest-vn4-68073371 is not found in API Server 2025-10-31 22:17:44,650 - DEBUG - VN ctest-vn4-68073371 is not present in Agent 10.0.0.50 2025-10-31 22:17:44,651 - INFO - Validated that VN ctest-vn4-68073371 is not in any agent 2025-10-31 22:17:44,663 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-68073371 info 2025-10-31 22:17:44,687 - INFO - Deleted policy ctest-policy1-25677034 2025-10-31 22:17:44,849 - DEBUG - policy ctest-policy1-25677034 is not found in API Server 2025-10-31 22:17:45,102 - DEBUG - No XMPP flaps were noticed during the test 2025-10-31 22:17:45,102 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-10-31 22:17:45,102 - INFO - -------------------------------------------------------------------------------- 2025-10-31 22:17:45,394 - DEBUG - No XMPP flaps were noticed during the test 2025-10-31 22:17:45,394 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-10-31 22:17:45,394 - INFO - -------------------------------------------------------------------------------- 2025-10-31 22:17:46,039 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-19456468, ID : e142f8e2-206c-41e1-9584-c0709f48a3c2