2025-11-20 01:54:54,102 - INFO - Domain Default found not creating 2025-11-20 01:54:54,252 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-71746675 not found, creating it 2025-11-20 01:54:54,744 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-71746675, ID : ce2da7ed-44fa-47b6-bc4c-8f28796c87b0 2025-11-20 01:54:56,178 - INFO - ================================================================================ 2025-11-20 01:54:56,178 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-20 01:54:56,431 - DEBUG - Nothing to compare xmpp stats {'10.0.0.65': {'10.20.0.192': '0'}} with 2025-11-20 01:54:56,431 - INFO - Initial checks done. Running the testcase now 2025-11-20 01:54:56,431 - INFO - 2025-11-20 01:54:56,431 - INFO - ================================================================================ 2025-11-20 01:54:56,431 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-20 01:54:56,431 - 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-20 01:54:56,720 - DEBUG - Nothing to compare xmpp stats {'10.0.0.65': {'10.20.0.192': '0'}} with 2025-11-20 01:54:56,720 - INFO - Initial checks done. Running the testcase now 2025-11-20 01:54:56,720 - INFO - 2025-11-20 01:54:57,076 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-71746675:ctest-vn4-96269098, 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-71746675:ctest-vn4-96269098, 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-71746675:ctest-vn4-96269098, 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-71746675:ctest-vn4-96269098, 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-20 01:54:57,573 - DEBUG - Response for create_network : {'network': {'id': 'a9574e86-e58c-4df6-8173-3d4389a385f5', 'name': 'ctest-vn4-96269098', 'tenant_id': 'ce2da7ed44fa47b6bc4c8f28796c87b0', 'project_id': 'ce2da7ed44fa47b6bc4c8f28796c87b0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-71746675', 'ctest-vn4-96269098'], 'port_security_enabled': True, 'description': ''}} 2025-11-20 01:54:57,738 - DEBUG - Response for create_subnet : {'subnet': {'id': '99c8a7cf-fe39-4545-b532-67d94bed4d4d', 'name': '', 'tenant_id': 'ce2da7ed44fa47b6bc4c8f28796c87b0', 'network_id': 'a9574e86-e58c-4df6-8173-3d4389a385f5', 'ip_version': 4, 'cidr': '177.227.236.128/26', 'allocation_pools': [{'start': '177.227.236.130', 'end': '177.227.236.190'}], 'gateway_ip': '177.227.236.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '177.227.236.130', 'tags': [], 'project_id': 'ce2da7ed44fa47b6bc4c8f28796c87b0'}} 2025-11-20 01:54:57,946 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f9269554-d7ca-45e6-b9ef-72b810e70974', 'name': '', 'tenant_id': 'ce2da7ed44fa47b6bc4c8f28796c87b0', 'network_id': 'a9574e86-e58c-4df6-8173-3d4389a385f5', 'ip_version': 6, 'cidr': '2fa7:bb50:8a8a:e5ad:f690:59d1::/96', 'allocation_pools': [{'start': '2fa7:bb50:8a8a:e5ad:f690:59d1:0:2', 'end': '2fa7:bb50:8a8a:e5ad:f690:59d1:ffff:fffe'}], 'gateway_ip': '2fa7:bb50:8a8a:e5ad:f690:59d1:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2fa7:bb50:8a8a:e5ad:f690:59d1:0:2', 'tags': [], 'project_id': 'ce2da7ed44fa47b6bc4c8f28796c87b0'}} 2025-11-20 01:54:57,964 - INFO - Created VN ctest-vn4-96269098 2025-11-20 01:54:58,015 - DEBUG - VN ctest-vn4-96269098 UUID is a9574e86-e58c-4df6-8173-3d4389a385f5 2025-11-20 01:54:58,199 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a9574e86-e58c-4df6-8173-3d4389a385f5', 'name': 'ctest-vn4-96269098', 'tenant_id': 'ce2da7ed44fa47b6bc4c8f28796c87b0', 'project_id': 'ce2da7ed44fa47b6bc4c8f28796c87b0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['99c8a7cf-fe39-4545-b532-67d94bed4d4d', 'f9269554-d7ca-45e6-b9ef-72b810e70974'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-71746675', 'ctest-vn4-96269098'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-71746675', 'ctest-policy1-27989428']], 'subnet_ipam': [{'subnet_cidr': '177.227.236.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2fa7:bb50:8a8a:e5ad:f690:59d1::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-11-20 01:54:58,354 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2025-11-20 01:54:58,644 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2025-11-20 01:54:58,673 - DEBUG - Requesting: http://10.0.0.65:8082/domain/d59eb88c-646b-4d8b-974c-cdd99cfde1f8 2025-11-20 01:54:58,685 - DEBUG - Requesting: http://10.0.0.65:8082/project/ce2da7ed-44fa-47b6-bc4c-8f28796c87b0 2025-11-20 01:54:58,752 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/a9574e86-e58c-4df6-8173-3d4389a385f5 2025-11-20 01:54:58,762 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/a9574e86-e58c-4df6-8173-3d4389a385f5 2025-11-20 01:54:58,770 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/ad9d1a09-d518-4795-8dee-787275f6b325 2025-11-20 01:54:58,776 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/ad9d1a09-d518-4795-8dee-787275f6b325 2025-11-20 01:54:58,781 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/36a8feba-2bf9-412a-838f-2a59b2a8ddc2 2025-11-20 01:54:58,786 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-20 01:54:58,786 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/a9574e86-e58c-4df6-8173-3d4389a385f5 2025-11-20 01:54:58,793 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/ad9d1a09-d518-4795-8dee-787275f6b325 2025-11-20 01:54:58,804 - INFO - Verified VN network id 12 for VN a9574e86-e58c-4df6-8173-3d4389a385f5 2025-11-20 01:54:58,804 - INFO - Verifications in API Server for VN ctest-vn4-96269098 passed 2025-11-20 01:54:58,804 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/a9574e86-e58c-4df6-8173-3d4389a385f5 2025-11-20 01:54:58,813 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/ad9d1a09-d518-4795-8dee-787275f6b325 2025-11-20 01:54:58,818 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/ad9d1a09-d518-4795-8dee-787275f6b325 2025-11-20 01:54:58,823 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/36a8feba-2bf9-412a-838f-2a59b2a8ddc2 2025-11-20 01:54:58,832 - DEBUG - Control-node 10.0.0.65 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-71746675:ctest-vn4-96269098', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-71746675', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12202308056667409910', 'uuid-lslong': '9327866613495727605'}, 'enable': 'true', 'created': '2025-11-20T01:54:57', 'last-modified': '2025-11-20T01:54:58', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.659922'} 2025-11-20 01:54:58,837 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-20 01:54:58,837 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-96269098 passed 2025-11-20 01:54:58,838 - DEBUG - ====Verifying policy data for ctest-vn4-96269098 in API_Server ====== 2025-11-20 01:54:58,838 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2025-11-20 01:54:58,842 - DEBUG - Requesting: http://10.0.0.65:8082/domain/d59eb88c-646b-4d8b-974c-cdd99cfde1f8 2025-11-20 01:54:58,850 - DEBUG - Requesting: http://10.0.0.65:8082/project/ce2da7ed-44fa-47b6-bc4c-8f28796c87b0 2025-11-20 01:54:58,917 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/a9574e86-e58c-4df6-8173-3d4389a385f5 2025-11-20 01:54:58,925 - DEBUG - ==>Verifying data for policy with id: 49944174-91f5-487d-9a83-e2965c5cd5fe, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-71746675', 'ctest-policy1-27989428'] 2025-11-20 01:54:58,925 - INFO - VN ctest-vn4-96269098 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-20 01:54:58,925 - DEBUG - Verifying the vn in opserver 2025-11-20 01:54:58,925 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-71746675:ctest-vn4-96269098 virtual network link through opserver 10.0.0.65 2025-11-20 01:54:58,926 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks 2025-11-20 01:54:59,216 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks 2025-11-20 01:54:59,270 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-71746675:ctest-vn4-96269098', 'href': 'http://10.0.0.65:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-71746675:ctest-vn4-96269098?flat'} 2025-11-20 01:54:59,270 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-71746675:ctest-vn4-96269098 is found in opserver 2025-11-20 01:54:59,279 - DEBUG - Do not have enough data to verify VN in agent 2025-11-20 01:54:59,283 - DEBUG - VRF ids for VN ctest-vn4-96269098: {} 2025-11-20 01:54:59,284 - DEBUG - ====Verifying data for ctest-policy1-27989428 in API_Server ====== 2025-11-20 01:54:59,284 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2025-11-20 01:54:59,288 - DEBUG - Requesting: http://10.0.0.65:8082/domain/d59eb88c-646b-4d8b-974c-cdd99cfde1f8 2025-11-20 01:54:59,297 - DEBUG - Requesting: http://10.0.0.65:8082/project/ce2da7ed-44fa-47b6-bc4c-8f28796c87b0 2025-11-20 01:54:59,363 - DEBUG - Requesting: http://10.0.0.65:8082/network-policy/49944174-91f5-487d-9a83-e2965c5cd5fe 2025-11-20 01:54:59,372 - INFO - Verified policy ctest-policy1-27989428 in API Server, Result: True 2025-11-20 01:54:59,372 - INFO - Done with setup and verification, moving onto test .. 2025-11-20 01:54:59,380 - INFO - Deleting VN ctest-vn4-96269098 2025-11-20 01:54:59,483 - DEBUG - Response for deleting network () 2025-11-20 01:54:59,483 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/ad9d1a09-d518-4795-8dee-787275f6b325 2025-11-20 01:54:59,487 - DEBUG - Response Code: 404 2025-11-20 01:54:59,487 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2025-11-20 01:54:59,491 - DEBUG - Requesting: http://10.0.0.65:8082/domain/d59eb88c-646b-4d8b-974c-cdd99cfde1f8 2025-11-20 01:54:59,543 - DEBUG - Requesting: http://10.0.0.65:8082/project/ce2da7ed-44fa-47b6-bc4c-8f28796c87b0 2025-11-20 01:54:59,613 - INFO - Validated that VN ctest-vn4-96269098 is not found in API Server 2025-11-20 01:54:59,621 - DEBUG - VN ctest-vn4-96269098 is not present in Agent 10.0.0.65 2025-11-20 01:54:59,621 - INFO - Validated that VN ctest-vn4-96269098 is not in any agent 2025-11-20 01:54:59,633 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-96269098 info 2025-11-20 01:54:59,660 - INFO - Deleted policy ctest-policy1-27989428 2025-11-20 01:54:59,818 - DEBUG - policy ctest-policy1-27989428 is not found in API Server 2025-11-20 01:55:00,076 - DEBUG - No XMPP flaps were noticed during the test