2025-10-30 02:16:31,681 - INFO - Domain Default found not creating 2025-10-30 02:16:31,824 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-96048319 not found, creating it 2025-10-30 02:16:32,255 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-96048319, ID : b738a78b-6fe4-4283-90fb-22f5d3f1daad 2025-10-30 02:16:33,647 - INFO - ================================================================================ 2025-10-30 02:16:33,647 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-30 02:16:33,900 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.252': '0'}} with 2025-10-30 02:16:33,900 - INFO - Initial checks done. Running the testcase now 2025-10-30 02:16:33,900 - INFO - 2025-10-30 02:16:33,900 - INFO - ================================================================================ 2025-10-30 02:16:33,900 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-30 02:16:33,900 - 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-30 02:16:34,188 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.252': '0'}} with 2025-10-30 02:16:34,188 - INFO - Initial checks done. Running the testcase now 2025-10-30 02:16:34,188 - INFO - 2025-10-30 02:16:34,543 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-96048319:ctest-vn4-77430117, 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-96048319:ctest-vn4-77430117, 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-96048319:ctest-vn4-77430117, 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-96048319:ctest-vn4-77430117, 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-30 02:16:35,041 - DEBUG - Response for create_network : {'network': {'id': '11460a12-0e0f-4d6a-9840-37bf84c5e093', 'name': 'ctest-vn4-77430117', 'tenant_id': 'b738a78b6fe4428390fb22f5d3f1daad', 'project_id': 'b738a78b6fe4428390fb22f5d3f1daad', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-96048319', 'ctest-vn4-77430117'], 'port_security_enabled': True, 'description': ''}} 2025-10-30 02:16:35,257 - DEBUG - Response for create_subnet : {'subnet': {'id': '1c19ea19-e413-436e-8e64-6ff01a0bbcc0', 'name': '', 'tenant_id': 'b738a78b6fe4428390fb22f5d3f1daad', 'network_id': '11460a12-0e0f-4d6a-9840-37bf84c5e093', 'ip_version': 4, 'cidr': '154.25.250.0/26', 'allocation_pools': [{'start': '154.25.250.2', 'end': '154.25.250.62'}], 'gateway_ip': '154.25.250.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '154.25.250.2', 'tags': [], 'project_id': 'b738a78b6fe4428390fb22f5d3f1daad'}} 2025-10-30 02:16:35,429 - DEBUG - Response for create_subnet : {'subnet': {'id': '74ef120d-cf5e-4edd-a384-a9de41a5d8cf', 'name': '', 'tenant_id': 'b738a78b6fe4428390fb22f5d3f1daad', 'network_id': '11460a12-0e0f-4d6a-9840-37bf84c5e093', 'ip_version': 6, 'cidr': '2bbb:c91a:e9dc:a515:1d81:e955::/96', 'allocation_pools': [{'start': '2bbb:c91a:e9dc:a515:1d81:e955:0:2', 'end': '2bbb:c91a:e9dc:a515:1d81:e955:ffff:fffe'}], 'gateway_ip': '2bbb:c91a:e9dc:a515:1d81:e955:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2bbb:c91a:e9dc:a515:1d81:e955:0:2', 'tags': [], 'project_id': 'b738a78b6fe4428390fb22f5d3f1daad'}} 2025-10-30 02:16:35,448 - INFO - Created VN ctest-vn4-77430117 2025-10-30 02:16:35,499 - DEBUG - VN ctest-vn4-77430117 UUID is 11460a12-0e0f-4d6a-9840-37bf84c5e093 2025-10-30 02:16:35,687 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '11460a12-0e0f-4d6a-9840-37bf84c5e093', 'name': 'ctest-vn4-77430117', 'tenant_id': 'b738a78b6fe4428390fb22f5d3f1daad', 'project_id': 'b738a78b6fe4428390fb22f5d3f1daad', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1c19ea19-e413-436e-8e64-6ff01a0bbcc0', '74ef120d-cf5e-4edd-a384-a9de41a5d8cf'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-96048319', 'ctest-vn4-77430117'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-96048319', 'ctest-policy1-12750407']], 'subnet_ipam': [{'subnet_cidr': '154.25.250.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2bbb:c91a:e9dc:a515:1d81:e955::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-30 02:16:35,847 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-10-30 02:16:36,143 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-10-30 02:16:36,170 - DEBUG - Requesting: http://10.0.0.249:8082/domain/30afc504-f48e-4286-8ac3-f99274dbb366 2025-10-30 02:16:36,182 - DEBUG - Requesting: http://10.0.0.249:8082/project/b738a78b-6fe4-4283-90fb-22f5d3f1daad 2025-10-30 02:16:36,254 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/11460a12-0e0f-4d6a-9840-37bf84c5e093 2025-10-30 02:16:36,265 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/11460a12-0e0f-4d6a-9840-37bf84c5e093 2025-10-30 02:16:36,273 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/58791e3b-349b-41f8-9394-e5f2f1fb09da 2025-10-30 02:16:36,279 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/58791e3b-349b-41f8-9394-e5f2f1fb09da 2025-10-30 02:16:36,285 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/e16dd0be-a04c-4107-93ce-23416046d365 2025-10-30 02:16:36,291 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-30 02:16:36,291 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/11460a12-0e0f-4d6a-9840-37bf84c5e093 2025-10-30 02:16:36,301 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/58791e3b-349b-41f8-9394-e5f2f1fb09da 2025-10-30 02:16:36,314 - INFO - Verified VN network id 11 for VN 11460a12-0e0f-4d6a-9840-37bf84c5e093 2025-10-30 02:16:36,315 - INFO - Verifications in API Server for VN ctest-vn4-77430117 passed 2025-10-30 02:16:36,315 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/11460a12-0e0f-4d6a-9840-37bf84c5e093 2025-10-30 02:16:36,324 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/58791e3b-349b-41f8-9394-e5f2f1fb09da 2025-10-30 02:16:36,330 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/58791e3b-349b-41f8-9394-e5f2f1fb09da 2025-10-30 02:16:36,337 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/e16dd0be-a04c-4107-93ce-23416046d365 2025-10-30 02:16:36,351 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-96048319:ctest-vn4-77430117', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-96048319', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1244693419676093802', 'uuid-lslong': '10970829987980370067'}, 'enable': 'true', 'created': '2025-10-30T02:16:35', 'last-modified': '2025-10-30T02:16:35', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.687340'} 2025-10-30 02:16:36,359 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-30 02:16:36,359 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-77430117 passed 2025-10-30 02:16:36,359 - DEBUG - ====Verifying policy data for ctest-vn4-77430117 in API_Server ====== 2025-10-30 02:16:36,359 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-10-30 02:16:36,364 - DEBUG - Requesting: http://10.0.0.249:8082/domain/30afc504-f48e-4286-8ac3-f99274dbb366 2025-10-30 02:16:36,429 - DEBUG - Requesting: http://10.0.0.249:8082/project/b738a78b-6fe4-4283-90fb-22f5d3f1daad 2025-10-30 02:16:36,502 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/11460a12-0e0f-4d6a-9840-37bf84c5e093 2025-10-30 02:16:36,511 - DEBUG - ==>Verifying data for policy with id: 5bf2dfa3-123a-4fad-9639-8b1fa3d4f0f5, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-96048319', 'ctest-policy1-12750407'] 2025-10-30 02:16:36,511 - INFO - VN ctest-vn4-77430117 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-30 02:16:36,511 - DEBUG - Verifying the vn in opserver 2025-10-30 02:16:36,511 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-96048319:ctest-vn4-77430117 virtual network link through opserver 10.0.0.249 2025-10-30 02:16:36,511 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2025-10-30 02:16:36,800 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2025-10-30 02:16:36,855 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-96048319:ctest-vn4-77430117', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-96048319:ctest-vn4-77430117?flat'} 2025-10-30 02:16:36,855 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-96048319:ctest-vn4-77430117 is found in opserver 2025-10-30 02:16:36,863 - DEBUG - Do not have enough data to verify VN in agent 2025-10-30 02:16:36,867 - DEBUG - VRF ids for VN ctest-vn4-77430117: {} 2025-10-30 02:16:36,868 - DEBUG - ====Verifying data for ctest-policy1-12750407 in API_Server ====== 2025-10-30 02:16:36,868 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-10-30 02:16:36,872 - DEBUG - Requesting: http://10.0.0.249:8082/domain/30afc504-f48e-4286-8ac3-f99274dbb366 2025-10-30 02:16:36,881 - DEBUG - Requesting: http://10.0.0.249:8082/project/b738a78b-6fe4-4283-90fb-22f5d3f1daad 2025-10-30 02:16:36,952 - DEBUG - Requesting: http://10.0.0.249:8082/network-policy/5bf2dfa3-123a-4fad-9639-8b1fa3d4f0f5 2025-10-30 02:16:36,961 - INFO - Verified policy ctest-policy1-12750407 in API Server, Result: True 2025-10-30 02:16:36,962 - INFO - Done with setup and verification, moving onto test .. 2025-10-30 02:16:36,969 - INFO - Deleting VN ctest-vn4-77430117 2025-10-30 02:16:37,236 - DEBUG - Response for deleting network () 2025-10-30 02:16:37,236 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/58791e3b-349b-41f8-9394-e5f2f1fb09da 2025-10-30 02:16:37,244 - DEBUG - Response Code: 404 2025-10-30 02:16:37,245 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-10-30 02:16:37,252 - DEBUG - Requesting: http://10.0.0.249:8082/domain/30afc504-f48e-4286-8ac3-f99274dbb366 2025-10-30 02:16:37,266 - DEBUG - Requesting: http://10.0.0.249:8082/project/b738a78b-6fe4-4283-90fb-22f5d3f1daad 2025-10-30 02:16:37,357 - INFO - Validated that VN ctest-vn4-77430117 is not found in API Server 2025-10-30 02:16:37,365 - DEBUG - VN ctest-vn4-77430117 is not present in Agent 10.0.0.249 2025-10-30 02:16:37,365 - INFO - Validated that VN ctest-vn4-77430117 is not in any agent 2025-10-30 02:16:37,388 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-77430117 info 2025-10-30 02:16:37,440 - INFO - Deleted policy ctest-policy1-12750407 2025-10-30 02:16:37,615 - DEBUG - policy ctest-policy1-12750407 is not found in API Server 2025-10-30 02:16:37,869 - DEBUG - No XMPP flaps were noticed during the test
2025-10-30 02:16:37,869 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-10-30 02:16:37,869 - INFO - -------------------------------------------------------------------------------- 2025-10-30 02:16:38,160 - DEBUG - No XMPP flaps were noticed during the test
2025-10-30 02:16:38,160 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2025-10-30 02:16:38,160 - INFO - -------------------------------------------------------------------------------- 2025-10-30 02:16:38,833 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-96048319, ID : b738a78b-6fe4-4283-90fb-22f5d3f1daad