2025-10-16 16:36:32,736 - INFO - Domain Default found not creating 2025-10-16 16:36:32,951 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-74365245 not found, creating it 2025-10-16 16:36:33,483 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-74365245, ID : abe46563-cf0e-4dc4-b24d-d71fd36518ac 2025-10-16 16:36:35,197 - INFO - ================================================================================ 2025-10-16 16:36:35,198 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-16 16:36:35,474 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.17': '0'}} with 2025-10-16 16:36:35,474 - INFO - Initial checks done. Running the testcase now 2025-10-16 16:36:35,474 - INFO - 2025-10-16 16:36:35,474 - INFO - ================================================================================ 2025-10-16 16:36:35,474 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-16 16:36:35,474 - 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-16 16:36:35,757 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.17': '0'}} with 2025-10-16 16:36:35,757 - INFO - Initial checks done. Running the testcase now 2025-10-16 16:36:35,757 - INFO - 2025-10-16 16:36:36,126 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-74365245:ctest-vn4-74584183, 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-74365245:ctest-vn4-74584183, 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-74365245:ctest-vn4-74584183, 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-74365245:ctest-vn4-74584183, 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-16 16:36:37,167 - DEBUG - Response for create_network : {'network': {'id': 'b17b498f-24c1-4163-88b2-1b32f5cbb8f9', 'name': 'ctest-vn4-74584183', 'tenant_id': 'abe46563cf0e4dc4b24dd71fd36518ac', 'project_id': 'abe46563cf0e4dc4b24dd71fd36518ac', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-74365245', 'ctest-vn4-74584183'], 'port_security_enabled': True, 'description': ''}} 2025-10-16 16:36:37,681 - DEBUG - Response for create_subnet : {'subnet': {'id': '38c9b42e-e577-4ed6-bd26-5928882c7a98', 'name': '', 'tenant_id': 'abe46563cf0e4dc4b24dd71fd36518ac', 'network_id': 'b17b498f-24c1-4163-88b2-1b32f5cbb8f9', 'ip_version': 4, 'cidr': '53.232.123.128/26', 'allocation_pools': [{'start': '53.232.123.130', 'end': '53.232.123.190'}], 'gateway_ip': '53.232.123.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '53.232.123.130', 'tags': [], 'project_id': 'abe46563cf0e4dc4b24dd71fd36518ac'}} 2025-10-16 16:36:37,885 - DEBUG - Response for create_subnet : {'subnet': {'id': '30ecb681-0f7c-43ab-800e-159fc58ab79a', 'name': '', 'tenant_id': 'abe46563cf0e4dc4b24dd71fd36518ac', 'network_id': 'b17b498f-24c1-4163-88b2-1b32f5cbb8f9', 'ip_version': 6, 'cidr': '2819:4db6:ad3c:e66:a50:d45e::/96', 'allocation_pools': [{'start': '2819:4db6:ad3c:e66:a50:d45e:0:2', 'end': '2819:4db6:ad3c:e66:a50:d45e:ffff:fffe'}], 'gateway_ip': '2819:4db6:ad3c:e66:a50:d45e:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2819:4db6:ad3c:e66:a50:d45e:0:2', 'tags': [], 'project_id': 'abe46563cf0e4dc4b24dd71fd36518ac'}} 2025-10-16 16:36:37,923 - INFO - Created VN ctest-vn4-74584183 2025-10-16 16:36:37,987 - DEBUG - VN ctest-vn4-74584183 UUID is b17b498f-24c1-4163-88b2-1b32f5cbb8f9 2025-10-16 16:36:38,279 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b17b498f-24c1-4163-88b2-1b32f5cbb8f9', 'name': 'ctest-vn4-74584183', 'tenant_id': 'abe46563cf0e4dc4b24dd71fd36518ac', 'project_id': 'abe46563cf0e4dc4b24dd71fd36518ac', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['38c9b42e-e577-4ed6-bd26-5928882c7a98', '30ecb681-0f7c-43ab-800e-159fc58ab79a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-74365245', 'ctest-vn4-74584183'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-74365245', 'ctest-policy1-92846855']], 'subnet_ipam': [{'subnet_cidr': '53.232.123.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2819:4db6:ad3c:e66:a50:d45e::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-16 16:36:38,451 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-10-16 16:36:38,759 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-10-16 16:36:38,807 - DEBUG - Requesting: http://10.0.0.141:8082/domain/1668739b-5fe2-4541-997a-8b143dd79dd2 2025-10-16 16:36:38,823 - DEBUG - Requesting: http://10.0.0.141:8082/project/abe46563-cf0e-4dc4-b24d-d71fd36518ac 2025-10-16 16:36:38,912 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/b17b498f-24c1-4163-88b2-1b32f5cbb8f9 2025-10-16 16:36:38,929 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/b17b498f-24c1-4163-88b2-1b32f5cbb8f9 2025-10-16 16:36:38,942 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/469fa187-15ef-489a-979e-df33aed3e23a 2025-10-16 16:36:38,952 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/469fa187-15ef-489a-979e-df33aed3e23a 2025-10-16 16:36:38,962 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/0f35edcb-62de-4975-8e0a-7393a3480ac1 2025-10-16 16:36:38,972 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-16 16:36:38,972 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/b17b498f-24c1-4163-88b2-1b32f5cbb8f9 2025-10-16 16:36:38,985 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/469fa187-15ef-489a-979e-df33aed3e23a 2025-10-16 16:36:39,012 - INFO - Verified VN network id 12 for VN b17b498f-24c1-4163-88b2-1b32f5cbb8f9 2025-10-16 16:36:39,013 - INFO - Verifications in API Server for VN ctest-vn4-74584183 passed 2025-10-16 16:36:39,013 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/b17b498f-24c1-4163-88b2-1b32f5cbb8f9 2025-10-16 16:36:39,032 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/469fa187-15ef-489a-979e-df33aed3e23a 2025-10-16 16:36:39,043 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/469fa187-15ef-489a-979e-df33aed3e23a 2025-10-16 16:36:39,054 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/0f35edcb-62de-4975-8e0a-7393a3480ac1 2025-10-16 16:36:39,080 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-74365245:ctest-vn4-74584183', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-74365245', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12788896445994451299', 'uuid-lslong': '9849965240698779897'}, 'enable': 'true', 'created': '2025-10-16T16:36:37', 'last-modified': '2025-10-16T16:36:38', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.840499'} 2025-10-16 16:36:39,090 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-16 16:36:39,090 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-74584183 passed 2025-10-16 16:36:39,090 - DEBUG - ====Verifying policy data for ctest-vn4-74584183 in API_Server ====== 2025-10-16 16:36:39,090 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-10-16 16:36:39,100 - DEBUG - Requesting: http://10.0.0.141:8082/domain/1668739b-5fe2-4541-997a-8b143dd79dd2 2025-10-16 16:36:39,115 - DEBUG - Requesting: http://10.0.0.141:8082/project/abe46563-cf0e-4dc4-b24d-d71fd36518ac 2025-10-16 16:36:39,197 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/b17b498f-24c1-4163-88b2-1b32f5cbb8f9 2025-10-16 16:36:39,211 - DEBUG - ==>Verifying data for policy with id: 305f6afb-b2b5-4205-bf4a-1647f85b1c0b, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-74365245', 'ctest-policy1-92846855'] 2025-10-16 16:36:39,211 - INFO - VN ctest-vn4-74584183 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-16 16:36:39,211 - DEBUG - Verifying the vn in opserver 2025-10-16 16:36:39,211 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-74365245:ctest-vn4-74584183 virtual network link through opserver 10.0.0.141 2025-10-16 16:36:39,211 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2025-10-16 16:36:39,515 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2025-10-16 16:36:39,590 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-74365245:ctest-vn4-74584183', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-74365245:ctest-vn4-74584183?flat'} 2025-10-16 16:36:39,590 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-74365245:ctest-vn4-74584183 is found in opserver 2025-10-16 16:36:39,604 - DEBUG - Do not have enough data to verify VN in agent 2025-10-16 16:36:39,611 - DEBUG - VRF ids for VN ctest-vn4-74584183: {} 2025-10-16 16:36:39,612 - DEBUG - ====Verifying data for ctest-policy1-92846855 in API_Server ====== 2025-10-16 16:36:39,612 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-10-16 16:36:39,621 - DEBUG - Requesting: http://10.0.0.141:8082/domain/1668739b-5fe2-4541-997a-8b143dd79dd2 2025-10-16 16:36:39,635 - DEBUG - Requesting: http://10.0.0.141:8082/project/abe46563-cf0e-4dc4-b24d-d71fd36518ac 2025-10-16 16:36:39,721 - DEBUG - Requesting: http://10.0.0.141:8082/network-policy/305f6afb-b2b5-4205-bf4a-1647f85b1c0b 2025-10-16 16:36:39,734 - INFO - Verified policy ctest-policy1-92846855 in API Server, Result: True 2025-10-16 16:36:39,734 - INFO - Done with setup and verification, moving onto test .. 2025-10-16 16:36:39,748 - INFO - Deleting VN ctest-vn4-74584183 2025-10-16 16:36:39,945 - DEBUG - Response for deleting network () 2025-10-16 16:36:39,946 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/469fa187-15ef-489a-979e-df33aed3e23a 2025-10-16 16:36:39,953 - DEBUG - Response Code: 404 2025-10-16 16:36:39,953 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-10-16 16:36:39,961 - DEBUG - Requesting: http://10.0.0.141:8082/domain/1668739b-5fe2-4541-997a-8b143dd79dd2 2025-10-16 16:36:40,022 - DEBUG - Requesting: http://10.0.0.141:8082/project/abe46563-cf0e-4dc4-b24d-d71fd36518ac 2025-10-16 16:36:40,106 - INFO - Validated that VN ctest-vn4-74584183 is not found in API Server 2025-10-16 16:36:40,118 - DEBUG - VN ctest-vn4-74584183 is not present in Agent 10.0.0.141 2025-10-16 16:36:40,118 - INFO - Validated that VN ctest-vn4-74584183 is not in any agent 2025-10-16 16:36:40,141 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-74584183 info 2025-10-16 16:36:40,175 - INFO - Deleted policy ctest-policy1-92846855 2025-10-16 16:36:40,367 - DEBUG - policy ctest-policy1-92846855 is not found in API Server 2025-10-16 16:36:40,641 - DEBUG - No XMPP flaps were noticed during the test
2025-10-16 16:36:40,641 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2025-10-16 16:36:40,641 - INFO - -------------------------------------------------------------------------------- 2025-10-16 16:36:40,932 - DEBUG - No XMPP flaps were noticed during the test
2025-10-16 16:36:40,932 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2025-10-16 16:36:40,932 - INFO - -------------------------------------------------------------------------------- 2025-10-16 16:36:42,138 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-74365245, ID : abe46563-cf0e-4dc4-b24d-d71fd36518ac