2025-10-14 18:15:52,374 - INFO - Domain Default found not creating 2025-10-14 18:15:52,531 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-55117152 not found, creating it 2025-10-14 18:15:52,984 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-55117152, ID : ac5a3f16-86a3-4a07-acc8-5228cba893ea 2025-10-14 18:15:54,383 - INFO - ================================================================================ 2025-10-14 18:15:54,383 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-14 18:15:54,638 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.18': '0'}} with 2025-10-14 18:15:54,638 - INFO - Initial checks done. Running the testcase now 2025-10-14 18:15:54,638 - INFO - 2025-10-14 18:15:54,638 - INFO - ================================================================================ 2025-10-14 18:15:54,638 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-14 18:15:54,638 - 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-14 18:15:54,925 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.18': '0'}} with 2025-10-14 18:15:54,925 - INFO - Initial checks done. Running the testcase now 2025-10-14 18:15:54,925 - INFO - 2025-10-14 18:15:55,274 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-55117152:ctest-vn4-04252660, 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-55117152:ctest-vn4-04252660, 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-55117152:ctest-vn4-04252660, 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-55117152:ctest-vn4-04252660, 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-14 18:15:56,065 - DEBUG - Response for create_network : {'network': {'id': '1df5db11-3e34-49ef-bcae-9c4ae38d1b39', 'name': 'ctest-vn4-04252660', 'tenant_id': 'ac5a3f1686a34a07acc85228cba893ea', 'project_id': 'ac5a3f1686a34a07acc85228cba893ea', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-55117152', 'ctest-vn4-04252660'], 'port_security_enabled': True, 'description': ''}} 2025-10-14 18:15:56,289 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fa663953-318b-4e5f-bd81-082615a1cf3a', 'name': '', 'tenant_id': 'ac5a3f1686a34a07acc85228cba893ea', 'network_id': '1df5db11-3e34-49ef-bcae-9c4ae38d1b39', 'ip_version': 4, 'cidr': '14.189.132.0/26', 'allocation_pools': [{'start': '14.189.132.2', 'end': '14.189.132.62'}], 'gateway_ip': '14.189.132.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '14.189.132.2', 'tags': [], 'project_id': 'ac5a3f1686a34a07acc85228cba893ea'}} 2025-10-14 18:15:56,448 - DEBUG - Response for create_subnet : {'subnet': {'id': '0a149954-61cd-46dc-8d57-8c2a4cccfe1b', 'name': '', 'tenant_id': 'ac5a3f1686a34a07acc85228cba893ea', 'network_id': '1df5db11-3e34-49ef-bcae-9c4ae38d1b39', 'ip_version': 6, 'cidr': '2cb0:c7d:1cac:e315:3a39:7b99::/96', 'allocation_pools': [{'start': '2cb0:c7d:1cac:e315:3a39:7b99:0:2', 'end': '2cb0:c7d:1cac:e315:3a39:7b99:ffff:fffe'}], 'gateway_ip': '2cb0:c7d:1cac:e315:3a39:7b99:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2cb0:c7d:1cac:e315:3a39:7b99:0:2', 'tags': [], 'project_id': 'ac5a3f1686a34a07acc85228cba893ea'}} 2025-10-14 18:15:56,471 - INFO - Created VN ctest-vn4-04252660 2025-10-14 18:15:56,525 - DEBUG - VN ctest-vn4-04252660 UUID is 1df5db11-3e34-49ef-bcae-9c4ae38d1b39 2025-10-14 18:15:56,722 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1df5db11-3e34-49ef-bcae-9c4ae38d1b39', 'name': 'ctest-vn4-04252660', 'tenant_id': 'ac5a3f1686a34a07acc85228cba893ea', 'project_id': 'ac5a3f1686a34a07acc85228cba893ea', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['fa663953-318b-4e5f-bd81-082615a1cf3a', '0a149954-61cd-46dc-8d57-8c2a4cccfe1b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-55117152', 'ctest-vn4-04252660'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-55117152', 'ctest-policy1-57582756']], 'subnet_ipam': [{'subnet_cidr': '14.189.132.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2cb0:c7d:1cac:e315:3a39:7b99::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-14 18:15:56,945 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-10-14 18:15:57,241 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-10-14 18:15:57,270 - DEBUG - Requesting: http://10.0.0.27:8082/domain/2692cba0-abf7-414a-9e88-22f114476d73 2025-10-14 18:15:57,282 - DEBUG - Requesting: http://10.0.0.27:8082/project/ac5a3f16-86a3-4a07-acc8-5228cba893ea 2025-10-14 18:15:57,359 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/1df5db11-3e34-49ef-bcae-9c4ae38d1b39 2025-10-14 18:15:57,372 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/1df5db11-3e34-49ef-bcae-9c4ae38d1b39 2025-10-14 18:15:57,380 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/90c8ab5b-49d4-4f38-b0d1-8525102112c9 2025-10-14 18:15:57,387 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/90c8ab5b-49d4-4f38-b0d1-8525102112c9 2025-10-14 18:15:57,395 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/ea3bec0b-4771-45c8-a839-f089471b5bc2 2025-10-14 18:15:57,401 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-14 18:15:57,401 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/1df5db11-3e34-49ef-bcae-9c4ae38d1b39 2025-10-14 18:15:57,409 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/90c8ab5b-49d4-4f38-b0d1-8525102112c9 2025-10-14 18:15:57,422 - INFO - Verified VN network id 11 for VN 1df5db11-3e34-49ef-bcae-9c4ae38d1b39 2025-10-14 18:15:57,423 - INFO - Verifications in API Server for VN ctest-vn4-04252660 passed 2025-10-14 18:15:57,423 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/1df5db11-3e34-49ef-bcae-9c4ae38d1b39 2025-10-14 18:15:57,431 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/90c8ab5b-49d4-4f38-b0d1-8525102112c9 2025-10-14 18:15:57,438 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/90c8ab5b-49d4-4f38-b0d1-8525102112c9 2025-10-14 18:15:57,445 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/ea3bec0b-4771-45c8-a839-f089471b5bc2 2025-10-14 18:15:57,458 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-55117152:ctest-vn4-04252660', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-55117152', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2158872463498562031', 'uuid-lslong': '13595976170537294649'}, 'enable': 'true', 'created': '2025-10-14T18:15:56', 'last-modified': '2025-10-14T18:15:56', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.762970'} 2025-10-14 18:15:57,464 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-14 18:15:57,464 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-04252660 passed 2025-10-14 18:15:57,464 - DEBUG - ====Verifying policy data for ctest-vn4-04252660 in API_Server ====== 2025-10-14 18:15:57,464 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-10-14 18:15:57,470 - DEBUG - Requesting: http://10.0.0.27:8082/domain/2692cba0-abf7-414a-9e88-22f114476d73 2025-10-14 18:15:57,480 - DEBUG - Requesting: http://10.0.0.27:8082/project/ac5a3f16-86a3-4a07-acc8-5228cba893ea 2025-10-14 18:15:57,554 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/1df5db11-3e34-49ef-bcae-9c4ae38d1b39 2025-10-14 18:15:57,564 - DEBUG - ==>Verifying data for policy with id: 60dace7c-79cf-4212-b519-28de2327b1ad, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-55117152', 'ctest-policy1-57582756'] 2025-10-14 18:15:57,564 - INFO - VN ctest-vn4-04252660 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-14 18:15:57,564 - DEBUG - Verifying the vn in opserver 2025-10-14 18:15:57,564 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-55117152:ctest-vn4-04252660 virtual network link through opserver 10.0.0.27 2025-10-14 18:15:57,564 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2025-10-14 18:15:57,860 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2025-10-14 18:15:57,912 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-55117152:ctest-vn4-04252660', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-55117152:ctest-vn4-04252660?flat'} 2025-10-14 18:15:57,912 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-55117152:ctest-vn4-04252660 is found in opserver 2025-10-14 18:15:57,921 - DEBUG - Do not have enough data to verify VN in agent 2025-10-14 18:15:57,926 - DEBUG - VRF ids for VN ctest-vn4-04252660: {} 2025-10-14 18:15:57,926 - DEBUG - ====Verifying data for ctest-policy1-57582756 in API_Server ====== 2025-10-14 18:15:57,926 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-10-14 18:15:57,932 - DEBUG - Requesting: http://10.0.0.27:8082/domain/2692cba0-abf7-414a-9e88-22f114476d73 2025-10-14 18:15:57,943 - DEBUG - Requesting: http://10.0.0.27:8082/project/ac5a3f16-86a3-4a07-acc8-5228cba893ea 2025-10-14 18:15:58,020 - DEBUG - Requesting: http://10.0.0.27:8082/network-policy/60dace7c-79cf-4212-b519-28de2327b1ad 2025-10-14 18:15:58,029 - INFO - Verified policy ctest-policy1-57582756 in API Server, Result: True 2025-10-14 18:15:58,029 - INFO - Done with setup and verification, moving onto test .. 2025-10-14 18:15:58,037 - INFO - Deleting VN ctest-vn4-04252660 2025-10-14 18:15:58,178 - DEBUG - Response for deleting network () 2025-10-14 18:15:58,178 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/90c8ab5b-49d4-4f38-b0d1-8525102112c9 2025-10-14 18:15:58,184 - DEBUG - Response Code: 404 2025-10-14 18:15:58,185 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-10-14 18:15:58,190 - DEBUG - Requesting: http://10.0.0.27:8082/domain/2692cba0-abf7-414a-9e88-22f114476d73 2025-10-14 18:15:58,242 - DEBUG - Requesting: http://10.0.0.27:8082/project/ac5a3f16-86a3-4a07-acc8-5228cba893ea 2025-10-14 18:15:58,318 - INFO - Validated that VN ctest-vn4-04252660 is not found in API Server 2025-10-14 18:15:58,330 - DEBUG - VN ctest-vn4-04252660 is not present in Agent 10.0.0.27 2025-10-14 18:15:58,330 - INFO - Validated that VN ctest-vn4-04252660 is not in any agent 2025-10-14 18:15:58,344 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-04252660 info 2025-10-14 18:15:58,374 - INFO - Deleted policy ctest-policy1-57582756 2025-10-14 18:15:58,537 - DEBUG - policy ctest-policy1-57582756 is not found in API Server 2025-10-14 18:15:58,802 - DEBUG - No XMPP flaps were noticed during the test
2025-10-14 18:15:58,802 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-10-14 18:15:58,802 - INFO - -------------------------------------------------------------------------------- 2025-10-14 18:15:59,083 - DEBUG - No XMPP flaps were noticed during the test
2025-10-14 18:15:59,083 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2025-10-14 18:15:59,083 - INFO - -------------------------------------------------------------------------------- 2025-10-14 18:15:59,750 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-55117152, ID : ac5a3f16-86a3-4a07-acc8-5228cba893ea