2025-11-24 17:44:43,792 - INFO - Domain Default found not creating 2025-11-24 17:44:43,970 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-91016046 not found, creating it 2025-11-24 17:44:44,447 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-91016046, ID : 2e4d1b5d-559b-45a1-917d-bf3a7144889f 2025-11-24 17:44:46,066 - INFO - ================================================================================ 2025-11-24 17:44:46,066 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-24 17:44:46,323 - DEBUG - Nothing to compare xmpp stats {'10.0.0.57': {'10.20.0.130': '0'}} with 2025-11-24 17:44:46,323 - INFO - Initial checks done. Running the testcase now 2025-11-24 17:44:46,323 - INFO - 2025-11-24 17:44:46,323 - INFO - ================================================================================ 2025-11-24 17:44:46,323 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-24 17:44:46,324 - 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-24 17:44:46,611 - DEBUG - Nothing to compare xmpp stats {'10.0.0.57': {'10.20.0.130': '0'}} with 2025-11-24 17:44:46,611 - INFO - Initial checks done. Running the testcase now 2025-11-24 17:44:46,611 - INFO - 2025-11-24 17:44:47,009 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-91016046:ctest-vn4-66560564, 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-91016046:ctest-vn4-66560564, 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-91016046:ctest-vn4-66560564, 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-91016046:ctest-vn4-66560564, 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-24 17:44:47,527 - DEBUG - Response for create_network : {'network': {'id': 'c9094575-5057-4b32-a94c-0365fb1d8e86', 'name': 'ctest-vn4-66560564', 'tenant_id': '2e4d1b5d559b45a1917dbf3a7144889f', 'project_id': '2e4d1b5d559b45a1917dbf3a7144889f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-91016046', 'ctest-vn4-66560564'], 'port_security_enabled': True, 'description': ''}} 2025-11-24 17:44:47,712 - DEBUG - Response for create_subnet : {'subnet': {'id': '63d61fec-f404-4255-a46b-b60b7d33e0f5', 'name': '', 'tenant_id': '2e4d1b5d559b45a1917dbf3a7144889f', 'network_id': 'c9094575-5057-4b32-a94c-0365fb1d8e86', 'ip_version': 4, 'cidr': '186.217.63.0/26', 'allocation_pools': [{'start': '186.217.63.2', 'end': '186.217.63.62'}], 'gateway_ip': '186.217.63.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '186.217.63.2', 'tags': [], 'project_id': '2e4d1b5d559b45a1917dbf3a7144889f'}} 2025-11-24 17:44:47,940 - DEBUG - Response for create_subnet : {'subnet': {'id': '6865ef3b-9fc3-48d1-b8a5-ff1d850c2ec1', 'name': '', 'tenant_id': '2e4d1b5d559b45a1917dbf3a7144889f', 'network_id': 'c9094575-5057-4b32-a94c-0365fb1d8e86', 'ip_version': 6, 'cidr': '2dbf:2a9a:dfe9:9d4c:f6f0:6589::/96', 'allocation_pools': [{'start': '2dbf:2a9a:dfe9:9d4c:f6f0:6589:0:2', 'end': '2dbf:2a9a:dfe9:9d4c:f6f0:6589:ffff:fffe'}], 'gateway_ip': '2dbf:2a9a:dfe9:9d4c:f6f0:6589:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2dbf:2a9a:dfe9:9d4c:f6f0:6589:0:2', 'tags': [], 'project_id': '2e4d1b5d559b45a1917dbf3a7144889f'}} 2025-11-24 17:44:47,962 - INFO - Created VN ctest-vn4-66560564 2025-11-24 17:44:48,013 - DEBUG - VN ctest-vn4-66560564 UUID is c9094575-5057-4b32-a94c-0365fb1d8e86 2025-11-24 17:44:48,243 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c9094575-5057-4b32-a94c-0365fb1d8e86', 'name': 'ctest-vn4-66560564', 'tenant_id': '2e4d1b5d559b45a1917dbf3a7144889f', 'project_id': '2e4d1b5d559b45a1917dbf3a7144889f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['63d61fec-f404-4255-a46b-b60b7d33e0f5', '6865ef3b-9fc3-48d1-b8a5-ff1d850c2ec1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-91016046', 'ctest-vn4-66560564'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-91016046', 'ctest-policy1-30025696']], 'subnet_ipam': [{'subnet_cidr': '186.217.63.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2dbf:2a9a:dfe9:9d4c:f6f0:6589::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-11-24 17:44:48,413 - DEBUG - Requesting: http://10.0.0.57:8082/domains 2025-11-24 17:44:48,749 - DEBUG - Requesting: http://10.0.0.57:8082/domains 2025-11-24 17:44:48,781 - DEBUG - Requesting: http://10.0.0.57:8082/domain/cd2b91d1-5e8a-4e33-80e4-f7beee2b3706 2025-11-24 17:44:48,793 - DEBUG - Requesting: http://10.0.0.57:8082/project/2e4d1b5d-559b-45a1-917d-bf3a7144889f 2025-11-24 17:44:48,862 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/c9094575-5057-4b32-a94c-0365fb1d8e86 2025-11-24 17:44:48,874 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/c9094575-5057-4b32-a94c-0365fb1d8e86 2025-11-24 17:44:48,883 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/a779b060-de87-45fb-9064-a3c291798657 2025-11-24 17:44:48,891 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/a779b060-de87-45fb-9064-a3c291798657 2025-11-24 17:44:48,897 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/0004155f-c304-4496-b089-ceca7531f957 2025-11-24 17:44:48,904 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-24 17:44:48,904 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/c9094575-5057-4b32-a94c-0365fb1d8e86 2025-11-24 17:44:48,913 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/a779b060-de87-45fb-9064-a3c291798657 2025-11-24 17:44:48,926 - INFO - Verified VN network id 11 for VN c9094575-5057-4b32-a94c-0365fb1d8e86 2025-11-24 17:44:48,926 - INFO - Verifications in API Server for VN ctest-vn4-66560564 passed 2025-11-24 17:44:48,926 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/c9094575-5057-4b32-a94c-0365fb1d8e86 2025-11-24 17:44:48,935 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/a779b060-de87-45fb-9064-a3c291798657 2025-11-24 17:44:48,941 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/a779b060-de87-45fb-9064-a3c291798657 2025-11-24 17:44:48,947 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/0004155f-c304-4496-b089-ceca7531f957 2025-11-24 17:44:48,957 - DEBUG - Control-node 10.0.0.57 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-91016046:ctest-vn4-66560564', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-91016046', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14486186046575299378', 'uuid-lslong': '12199129227179429510'}, 'enable': 'true', 'created': '2025-11-24T17:44:47', 'last-modified': '2025-11-24T17:44:48', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.750140'} 2025-11-24 17:44:48,965 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-24 17:44:48,965 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-66560564 passed 2025-11-24 17:44:48,965 - DEBUG - ====Verifying policy data for ctest-vn4-66560564 in API_Server ====== 2025-11-24 17:44:48,965 - DEBUG - Requesting: http://10.0.0.57:8082/domains 2025-11-24 17:44:48,971 - DEBUG - Requesting: http://10.0.0.57:8082/domain/cd2b91d1-5e8a-4e33-80e4-f7beee2b3706 2025-11-24 17:44:48,980 - DEBUG - Requesting: http://10.0.0.57:8082/project/2e4d1b5d-559b-45a1-917d-bf3a7144889f 2025-11-24 17:44:49,052 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/c9094575-5057-4b32-a94c-0365fb1d8e86 2025-11-24 17:44:49,063 - DEBUG - ==>Verifying data for policy with id: d93af047-9b3d-482b-9411-f8f83b8954f6, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-91016046', 'ctest-policy1-30025696'] 2025-11-24 17:44:49,064 - INFO - VN ctest-vn4-66560564 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-24 17:44:49,064 - DEBUG - Verifying the vn in opserver 2025-11-24 17:44:49,064 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-91016046:ctest-vn4-66560564 virtual network link through opserver 10.0.0.57 2025-11-24 17:44:49,064 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks 2025-11-24 17:44:49,398 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks 2025-11-24 17:44:49,467 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-91016046:ctest-vn4-66560564', 'href': 'http://10.0.0.57:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-91016046:ctest-vn4-66560564?flat'} 2025-11-24 17:44:49,467 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-91016046:ctest-vn4-66560564 is found in opserver 2025-11-24 17:44:49,477 - DEBUG - Do not have enough data to verify VN in agent 2025-11-24 17:44:49,482 - DEBUG - VRF ids for VN ctest-vn4-66560564: {} 2025-11-24 17:44:49,482 - DEBUG - ====Verifying data for ctest-policy1-30025696 in API_Server ====== 2025-11-24 17:44:49,482 - DEBUG - Requesting: http://10.0.0.57:8082/domains 2025-11-24 17:44:49,488 - DEBUG - Requesting: http://10.0.0.57:8082/domain/cd2b91d1-5e8a-4e33-80e4-f7beee2b3706 2025-11-24 17:44:49,498 - DEBUG - Requesting: http://10.0.0.57:8082/project/2e4d1b5d-559b-45a1-917d-bf3a7144889f 2025-11-24 17:44:49,569 - DEBUG - Requesting: http://10.0.0.57:8082/network-policy/d93af047-9b3d-482b-9411-f8f83b8954f6 2025-11-24 17:44:49,578 - INFO - Verified policy ctest-policy1-30025696 in API Server, Result: True 2025-11-24 17:44:49,578 - INFO - Done with setup and verification, moving onto test .. 2025-11-24 17:44:49,585 - INFO - Deleting VN ctest-vn4-66560564 2025-11-24 17:44:49,702 - DEBUG - Response for deleting network () 2025-11-24 17:44:49,702 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/a779b060-de87-45fb-9064-a3c291798657 2025-11-24 17:44:49,708 - DEBUG - Response Code: 404 2025-11-24 17:44:49,708 - DEBUG - Requesting: http://10.0.0.57:8082/domains 2025-11-24 17:44:49,713 - DEBUG - Requesting: http://10.0.0.57:8082/domain/cd2b91d1-5e8a-4e33-80e4-f7beee2b3706 2025-11-24 17:44:49,770 - DEBUG - Requesting: http://10.0.0.57:8082/project/2e4d1b5d-559b-45a1-917d-bf3a7144889f 2025-11-24 17:44:49,848 - INFO - Validated that VN ctest-vn4-66560564 is not found in API Server 2025-11-24 17:44:49,859 - DEBUG - VN ctest-vn4-66560564 is not present in Agent 10.0.0.57 2025-11-24 17:44:49,859 - INFO - Validated that VN ctest-vn4-66560564 is not in any agent 2025-11-24 17:44:49,873 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-66560564 info 2025-11-24 17:44:49,897 - INFO - Deleted policy ctest-policy1-30025696 2025-11-24 17:44:50,065 - DEBUG - policy ctest-policy1-30025696 is not found in API Server 2025-11-24 17:44:50,327 - DEBUG - No XMPP flaps were noticed during the test
2025-11-24 17:44:50,327 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-11-24 17:44:50,327 - INFO - -------------------------------------------------------------------------------- 2025-11-24 17:44:50,620 - DEBUG - No XMPP flaps were noticed during the test
2025-11-24 17:44:50,620 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-11-24 17:44:50,620 - INFO - -------------------------------------------------------------------------------- 2025-11-24 17:44:51,341 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-91016046, ID : 2e4d1b5d-559b-45a1-917d-bf3a7144889f