2025-10-22 23:33:02,990 - INFO - Domain Default found not creating 2025-10-22 23:33:03,138 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-38283320 not found, creating it 2025-10-22 23:33:03,661 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-38283320, ID : d5147c57-054e-4ed0-a867-3a9d5cedbd79 2025-10-22 23:33:05,193 - INFO - ================================================================================ 2025-10-22 23:33:05,193 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-22 23:33:05,453 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with 2025-10-22 23:33:05,453 - INFO - Initial checks done. Running the testcase now 2025-10-22 23:33:05,453 - INFO - 2025-10-22 23:33:05,454 - INFO - ================================================================================ 2025-10-22 23:33:05,454 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-22 23:33:05,454 - 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-22 23:33:05,746 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with 2025-10-22 23:33:05,746 - INFO - Initial checks done. Running the testcase now 2025-10-22 23:33:05,746 - INFO - 2025-10-22 23:33:06,094 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-38283320:ctest-vn4-54893971, 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-38283320:ctest-vn4-54893971, 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-38283320:ctest-vn4-54893971, 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-38283320:ctest-vn4-54893971, 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-22 23:33:06,612 - DEBUG - Response for create_network : {'network': {'id': 'a131ba5a-ebdf-47fb-be02-5a28164601d4', 'name': 'ctest-vn4-54893971', 'tenant_id': 'd5147c57054e4ed0a8673a9d5cedbd79', 'project_id': 'd5147c57054e4ed0a8673a9d5cedbd79', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-38283320', 'ctest-vn4-54893971'], 'port_security_enabled': True, 'description': ''}} 2025-10-22 23:33:06,786 - DEBUG - Response for create_subnet : {'subnet': {'id': '3f408373-dd2a-46d9-b5af-57e57d357733', 'name': '', 'tenant_id': 'd5147c57054e4ed0a8673a9d5cedbd79', 'network_id': 'a131ba5a-ebdf-47fb-be02-5a28164601d4', 'ip_version': 4, 'cidr': '218.102.34.64/26', 'allocation_pools': [{'start': '218.102.34.66', 'end': '218.102.34.126'}], 'gateway_ip': '218.102.34.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '218.102.34.66', 'tags': [], 'project_id': 'd5147c57054e4ed0a8673a9d5cedbd79'}} 2025-10-22 23:33:06,970 - DEBUG - Response for create_subnet : {'subnet': {'id': '62e2bffb-edd8-4e50-a886-456a245d813d', 'name': '', 'tenant_id': 'd5147c57054e4ed0a8673a9d5cedbd79', 'network_id': 'a131ba5a-ebdf-47fb-be02-5a28164601d4', 'ip_version': 6, 'cidr': '3d98:45aa:eb4a:b8bb:15b5:92d3::/96', 'allocation_pools': [{'start': '3d98:45aa:eb4a:b8bb:15b5:92d3:0:2', 'end': '3d98:45aa:eb4a:b8bb:15b5:92d3:ffff:fffe'}], 'gateway_ip': '3d98:45aa:eb4a:b8bb:15b5:92d3:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3d98:45aa:eb4a:b8bb:15b5:92d3:0:2', 'tags': [], 'project_id': 'd5147c57054e4ed0a8673a9d5cedbd79'}} 2025-10-22 23:33:06,991 - INFO - Created VN ctest-vn4-54893971 2025-10-22 23:33:07,041 - DEBUG - VN ctest-vn4-54893971 UUID is a131ba5a-ebdf-47fb-be02-5a28164601d4 2025-10-22 23:33:07,240 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a131ba5a-ebdf-47fb-be02-5a28164601d4', 'name': 'ctest-vn4-54893971', 'tenant_id': 'd5147c57054e4ed0a8673a9d5cedbd79', 'project_id': 'd5147c57054e4ed0a8673a9d5cedbd79', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3f408373-dd2a-46d9-b5af-57e57d357733', '62e2bffb-edd8-4e50-a886-456a245d813d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-38283320', 'ctest-vn4-54893971'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-38283320', 'ctest-policy1-19498387']], 'subnet_ipam': [{'subnet_cidr': '218.102.34.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3d98:45aa:eb4a:b8bb:15b5:92d3::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-22 23:33:07,401 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-10-22 23:33:07,716 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-10-22 23:33:07,747 - DEBUG - Requesting: http://10.0.0.38:8082/domain/6a16559e-3284-48e7-a3c3-5047f618e4f0 2025-10-22 23:33:07,759 - DEBUG - Requesting: http://10.0.0.38:8082/project/d5147c57-054e-4ed0-a867-3a9d5cedbd79 2025-10-22 23:33:07,842 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a131ba5a-ebdf-47fb-be02-5a28164601d4 2025-10-22 23:33:07,853 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a131ba5a-ebdf-47fb-be02-5a28164601d4 2025-10-22 23:33:07,862 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/855e50ac-0dd7-44f1-8a0e-26c9c0840c16 2025-10-22 23:33:07,869 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/855e50ac-0dd7-44f1-8a0e-26c9c0840c16 2025-10-22 23:33:07,876 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/02759cb8-ec15-42e2-b202-994a0204feed 2025-10-22 23:33:07,883 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-22 23:33:07,883 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a131ba5a-ebdf-47fb-be02-5a28164601d4 2025-10-22 23:33:07,892 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/855e50ac-0dd7-44f1-8a0e-26c9c0840c16 2025-10-22 23:33:07,905 - INFO - Verified VN network id 10 for VN a131ba5a-ebdf-47fb-be02-5a28164601d4 2025-10-22 23:33:07,905 - INFO - Verifications in API Server for VN ctest-vn4-54893971 passed 2025-10-22 23:33:07,905 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a131ba5a-ebdf-47fb-be02-5a28164601d4 2025-10-22 23:33:07,913 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/855e50ac-0dd7-44f1-8a0e-26c9c0840c16 2025-10-22 23:33:07,920 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/855e50ac-0dd7-44f1-8a0e-26c9c0840c16 2025-10-22 23:33:07,927 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/02759cb8-ec15-42e2-b202-994a0204feed 2025-10-22 23:33:07,939 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-38283320:ctest-vn4-54893971', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-38283320', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11615269813632321531', 'uuid-lslong': '13691604945378607572'}, 'enable': 'true', 'created': '2025-10-22T23:33:06', 'last-modified': '2025-10-22T23:33:07', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.725199'} 2025-10-22 23:33:07,944 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-22 23:33:07,945 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-54893971 passed 2025-10-22 23:33:07,945 - DEBUG - ====Verifying policy data for ctest-vn4-54893971 in API_Server ====== 2025-10-22 23:33:07,945 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-10-22 23:33:07,950 - DEBUG - Requesting: http://10.0.0.38:8082/domain/6a16559e-3284-48e7-a3c3-5047f618e4f0 2025-10-22 23:33:07,960 - DEBUG - Requesting: http://10.0.0.38:8082/project/d5147c57-054e-4ed0-a867-3a9d5cedbd79 2025-10-22 23:33:08,030 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a131ba5a-ebdf-47fb-be02-5a28164601d4 2025-10-22 23:33:08,039 - DEBUG - ==>Verifying data for policy with id: 4dba661a-1c2f-4b63-8727-893ab7ec4b49, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-38283320', 'ctest-policy1-19498387'] 2025-10-22 23:33:08,039 - INFO - VN ctest-vn4-54893971 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-22 23:33:08,039 - DEBUG - Verifying the vn in opserver 2025-10-22 23:33:08,039 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-38283320:ctest-vn4-54893971 virtual network link through opserver 10.0.0.38 2025-10-22 23:33:08,039 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-10-22 23:33:08,336 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-10-22 23:33:08,389 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-38283320:ctest-vn4-54893971', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-38283320:ctest-vn4-54893971?flat'} 2025-10-22 23:33:08,389 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-38283320:ctest-vn4-54893971 is found in opserver 2025-10-22 23:33:08,398 - DEBUG - Do not have enough data to verify VN in agent 2025-10-22 23:33:08,402 - DEBUG - VRF ids for VN ctest-vn4-54893971: {} 2025-10-22 23:33:08,402 - DEBUG - ====Verifying data for ctest-policy1-19498387 in API_Server ====== 2025-10-22 23:33:08,402 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-10-22 23:33:08,407 - DEBUG - Requesting: http://10.0.0.38:8082/domain/6a16559e-3284-48e7-a3c3-5047f618e4f0 2025-10-22 23:33:08,417 - DEBUG - Requesting: http://10.0.0.38:8082/project/d5147c57-054e-4ed0-a867-3a9d5cedbd79 2025-10-22 23:33:08,485 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/4dba661a-1c2f-4b63-8727-893ab7ec4b49 2025-10-22 23:33:08,495 - INFO - Verified policy ctest-policy1-19498387 in API Server, Result: True 2025-10-22 23:33:08,495 - INFO - Done with setup and verification, moving onto test .. 2025-10-22 23:33:08,502 - INFO - Deleting VN ctest-vn4-54893971 2025-10-22 23:33:08,619 - DEBUG - Response for deleting network () 2025-10-22 23:33:08,619 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/855e50ac-0dd7-44f1-8a0e-26c9c0840c16 2025-10-22 23:33:08,624 - DEBUG - Response Code: 404 2025-10-22 23:33:08,624 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-10-22 23:33:08,629 - DEBUG - Requesting: http://10.0.0.38:8082/domain/6a16559e-3284-48e7-a3c3-5047f618e4f0 2025-10-22 23:33:08,686 - DEBUG - Requesting: http://10.0.0.38:8082/project/d5147c57-054e-4ed0-a867-3a9d5cedbd79 2025-10-22 23:33:08,758 - INFO - Validated that VN ctest-vn4-54893971 is not found in API Server 2025-10-22 23:33:08,768 - DEBUG - VN ctest-vn4-54893971 is not present in Agent 10.0.0.38 2025-10-22 23:33:08,768 - INFO - Validated that VN ctest-vn4-54893971 is not in any agent 2025-10-22 23:33:08,781 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-54893971 info 2025-10-22 23:33:08,807 - INFO - Deleted policy ctest-policy1-19498387 2025-10-22 23:33:08,973 - DEBUG - policy ctest-policy1-19498387 is not found in API Server 2025-10-22 23:33:09,227 - DEBUG - No XMPP flaps were noticed during the test