2025-11-21 17:51:11,430 - INFO - Domain Default found not creating 2025-11-21 17:51:11,611 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-04835728 not found, creating it 2025-11-21 17:51:12,093 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-04835728, ID : 28169a22-29f8-4e40-89ef-bd81cd97d853 2025-11-21 17:51:13,888 - INFO - ================================================================================ 2025-11-21 17:51:13,888 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-21 17:51:14,161 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.18': '0'}} with 2025-11-21 17:51:14,161 - INFO - Initial checks done. Running the testcase now 2025-11-21 17:51:14,161 - INFO - 2025-11-21 17:51:14,161 - INFO - ================================================================================ 2025-11-21 17:51:14,161 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-21 17:51:14,161 - 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-21 17:51:14,456 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.18': '0'}} with 2025-11-21 17:51:14,456 - INFO - Initial checks done. Running the testcase now 2025-11-21 17:51:14,456 - INFO - 2025-11-21 17:51:14,900 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-04835728:ctest-vn4-65010425, 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-04835728:ctest-vn4-65010425, 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-04835728:ctest-vn4-65010425, 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-04835728:ctest-vn4-65010425, 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-21 17:51:15,486 - DEBUG - Response for create_network : {'network': {'id': '0df619d9-b706-4111-98e8-cec200aed407', 'name': 'ctest-vn4-65010425', 'tenant_id': '28169a2229f84e4089efbd81cd97d853', 'project_id': '28169a2229f84e4089efbd81cd97d853', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-04835728', 'ctest-vn4-65010425'], 'port_security_enabled': True, 'description': ''}} 2025-11-21 17:51:15,674 - DEBUG - Response for create_subnet : {'subnet': {'id': '59ca2581-4f3b-4ec9-966a-fc81ab3f4d73', 'name': '', 'tenant_id': '28169a2229f84e4089efbd81cd97d853', 'network_id': '0df619d9-b706-4111-98e8-cec200aed407', 'ip_version': 4, 'cidr': '45.92.138.0/26', 'allocation_pools': [{'start': '45.92.138.2', 'end': '45.92.138.62'}], 'gateway_ip': '45.92.138.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '45.92.138.2', 'tags': [], 'project_id': '28169a2229f84e4089efbd81cd97d853'}} 2025-11-21 17:51:15,850 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b90444bb-b98b-44cb-80dc-45e28f967cb9', 'name': '', 'tenant_id': '28169a2229f84e4089efbd81cd97d853', 'network_id': '0df619d9-b706-4111-98e8-cec200aed407', 'ip_version': 6, 'cidr': '26e6:6b69:b8b1:cabd:7648:959b::/96', 'allocation_pools': [{'start': '26e6:6b69:b8b1:cabd:7648:959b:0:2', 'end': '26e6:6b69:b8b1:cabd:7648:959b:ffff:fffe'}], 'gateway_ip': '26e6:6b69:b8b1:cabd:7648:959b:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '26e6:6b69:b8b1:cabd:7648:959b:0:2', 'tags': [], 'project_id': '28169a2229f84e4089efbd81cd97d853'}} 2025-11-21 17:51:15,876 - INFO - Created VN ctest-vn4-65010425 2025-11-21 17:51:15,931 - DEBUG - VN ctest-vn4-65010425 UUID is 0df619d9-b706-4111-98e8-cec200aed407 2025-11-21 17:51:16,157 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0df619d9-b706-4111-98e8-cec200aed407', 'name': 'ctest-vn4-65010425', 'tenant_id': '28169a2229f84e4089efbd81cd97d853', 'project_id': '28169a2229f84e4089efbd81cd97d853', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['59ca2581-4f3b-4ec9-966a-fc81ab3f4d73', 'b90444bb-b98b-44cb-80dc-45e28f967cb9'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-04835728', 'ctest-vn4-65010425'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-04835728', 'ctest-policy1-30593225']], 'subnet_ipam': [{'subnet_cidr': '45.92.138.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '26e6:6b69:b8b1:cabd:7648:959b::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-11-21 17:51:16,327 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-11-21 17:51:16,668 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-11-21 17:51:16,703 - DEBUG - Requesting: http://10.0.0.38:8082/domain/2e9e2302-54c2-4afe-9d57-d7ec484ec2c7 2025-11-21 17:51:16,718 - DEBUG - Requesting: http://10.0.0.38:8082/project/28169a22-29f8-4e40-89ef-bd81cd97d853 2025-11-21 17:51:16,796 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/0df619d9-b706-4111-98e8-cec200aed407 2025-11-21 17:51:16,810 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/0df619d9-b706-4111-98e8-cec200aed407 2025-11-21 17:51:16,821 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/cbeb3751-3be9-4fa9-b0ac-930263689f54 2025-11-21 17:51:16,829 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/cbeb3751-3be9-4fa9-b0ac-930263689f54 2025-11-21 17:51:16,839 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/d9fe3eff-75bc-4f66-88bc-7824edba3ad7 2025-11-21 17:51:16,848 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-21 17:51:16,848 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/0df619d9-b706-4111-98e8-cec200aed407 2025-11-21 17:51:16,862 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/cbeb3751-3be9-4fa9-b0ac-930263689f54 2025-11-21 17:51:16,882 - INFO - Verified VN network id 11 for VN 0df619d9-b706-4111-98e8-cec200aed407 2025-11-21 17:51:16,882 - INFO - Verifications in API Server for VN ctest-vn4-65010425 passed 2025-11-21 17:51:16,882 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/0df619d9-b706-4111-98e8-cec200aed407 2025-11-21 17:51:16,898 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/cbeb3751-3be9-4fa9-b0ac-930263689f54 2025-11-21 17:51:16,907 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/cbeb3751-3be9-4fa9-b0ac-930263689f54 2025-11-21 17:51:16,916 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/d9fe3eff-75bc-4f66-88bc-7824edba3ad7 2025-11-21 17:51:16,930 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-04835728:ctest-vn4-65010425', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-04835728', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1006019989633122577', 'uuid-lslong': '11018283820992353287'}, 'enable': 'true', 'created': '2025-11-21T17:51:15', 'last-modified': '2025-11-21T17:51:16', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.801662'} 2025-11-21 17:51:16,937 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-21 17:51:16,937 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-65010425 passed 2025-11-21 17:51:16,937 - DEBUG - ====Verifying policy data for ctest-vn4-65010425 in API_Server ====== 2025-11-21 17:51:16,938 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-11-21 17:51:16,944 - DEBUG - Requesting: http://10.0.0.38:8082/domain/2e9e2302-54c2-4afe-9d57-d7ec484ec2c7 2025-11-21 17:51:16,958 - DEBUG - Requesting: http://10.0.0.38:8082/project/28169a22-29f8-4e40-89ef-bd81cd97d853 2025-11-21 17:51:17,036 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/0df619d9-b706-4111-98e8-cec200aed407 2025-11-21 17:51:17,048 - DEBUG - ==>Verifying data for policy with id: 4728f63c-0fff-4a35-bd7a-b17b1b0cb0c1, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-04835728', 'ctest-policy1-30593225'] 2025-11-21 17:51:17,048 - INFO - VN ctest-vn4-65010425 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-21 17:51:17,048 - DEBUG - Verifying the vn in opserver 2025-11-21 17:51:17,048 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-04835728:ctest-vn4-65010425 virtual network link through opserver 10.0.0.38 2025-11-21 17:51:17,049 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-11-21 17:51:17,389 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-11-21 17:51:17,464 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-04835728:ctest-vn4-65010425', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-04835728:ctest-vn4-65010425?flat'} 2025-11-21 17:51:17,464 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-04835728:ctest-vn4-65010425 is found in opserver 2025-11-21 17:51:17,475 - DEBUG - Do not have enough data to verify VN in agent 2025-11-21 17:51:17,481 - DEBUG - VRF ids for VN ctest-vn4-65010425: {} 2025-11-21 17:51:17,481 - DEBUG - ====Verifying data for ctest-policy1-30593225 in API_Server ====== 2025-11-21 17:51:17,481 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-11-21 17:51:17,488 - DEBUG - Requesting: http://10.0.0.38:8082/domain/2e9e2302-54c2-4afe-9d57-d7ec484ec2c7 2025-11-21 17:51:17,501 - DEBUG - Requesting: http://10.0.0.38:8082/project/28169a22-29f8-4e40-89ef-bd81cd97d853 2025-11-21 17:51:17,580 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/4728f63c-0fff-4a35-bd7a-b17b1b0cb0c1 2025-11-21 17:51:17,594 - INFO - Verified policy ctest-policy1-30593225 in API Server, Result: True 2025-11-21 17:51:17,595 - INFO - Done with setup and verification, moving onto test .. 2025-11-21 17:51:17,606 - INFO - Deleting VN ctest-vn4-65010425 2025-11-21 17:51:17,757 - DEBUG - Response for deleting network () 2025-11-21 17:51:17,757 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/cbeb3751-3be9-4fa9-b0ac-930263689f54 2025-11-21 17:51:17,764 - DEBUG - Response Code: 404 2025-11-21 17:51:17,764 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-11-21 17:51:17,772 - DEBUG - Requesting: http://10.0.0.38:8082/domain/2e9e2302-54c2-4afe-9d57-d7ec484ec2c7 2025-11-21 17:51:17,830 - DEBUG - Requesting: http://10.0.0.38:8082/project/28169a22-29f8-4e40-89ef-bd81cd97d853 2025-11-21 17:51:17,909 - INFO - Validated that VN ctest-vn4-65010425 is not found in API Server 2025-11-21 17:51:17,921 - DEBUG - VN ctest-vn4-65010425 is not present in Agent 10.0.0.38 2025-11-21 17:51:17,921 - INFO - Validated that VN ctest-vn4-65010425 is not in any agent 2025-11-21 17:51:17,937 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-65010425 info 2025-11-21 17:51:17,965 - INFO - Deleted policy ctest-policy1-30593225 2025-11-21 17:51:18,143 - DEBUG - policy ctest-policy1-30593225 is not found in API Server 2025-11-21 17:51:18,412 - DEBUG - No XMPP flaps were noticed during the test 2025-11-21 17:51:18,412 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-11-21 17:51:18,412 - INFO - -------------------------------------------------------------------------------- 2025-11-21 17:51:18,708 - DEBUG - No XMPP flaps were noticed during the test 2025-11-21 17:51:18,708 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2025-11-21 17:51:18,708 - INFO - -------------------------------------------------------------------------------- 2025-11-21 17:51:19,486 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-04835728, ID : 28169a22-29f8-4e40-89ef-bd81cd97d853