2025-12-23 03:32:36,484 - INFO - Domain Default found not creating 2025-12-23 03:32:36,647 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-39687955 not found, creating it 2025-12-23 03:32:37,095 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-39687955, ID : 6b240c11-d69b-4114-be1c-25165812cd59 2025-12-23 03:32:38,697 - INFO - ================================================================================ 2025-12-23 03:32:38,697 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-12-23 03:32:38,952 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with 2025-12-23 03:32:38,952 - INFO - Initial checks done. Running the testcase now 2025-12-23 03:32:38,952 - INFO - 2025-12-23 03:32:38,952 - INFO - ================================================================================ 2025-12-23 03:32:38,952 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-12-23 03:32:38,952 - 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-12-23 03:32:39,239 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with 2025-12-23 03:32:39,239 - INFO - Initial checks done. Running the testcase now 2025-12-23 03:32:39,239 - INFO - 2025-12-23 03:32:39,626 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-39687955:ctest-vn4-82496357, 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-39687955:ctest-vn4-82496357, 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-39687955:ctest-vn4-82496357, 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-39687955:ctest-vn4-82496357, 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-12-23 03:32:40,142 - DEBUG - Response for create_network : {'network': {'id': 'f957c0de-a9ed-4ed5-a570-d860994d3842', 'name': 'ctest-vn4-82496357', 'tenant_id': '6b240c11d69b4114be1c25165812cd59', 'project_id': '6b240c11d69b4114be1c25165812cd59', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-39687955', 'ctest-vn4-82496357'], 'port_security_enabled': True, 'description': ''}} 2025-12-23 03:32:40,331 - DEBUG - Response for create_subnet : {'subnet': {'id': '9d55c4a7-ad10-41ce-9575-658803f3975f', 'name': '', 'tenant_id': '6b240c11d69b4114be1c25165812cd59', 'network_id': 'f957c0de-a9ed-4ed5-a570-d860994d3842', 'ip_version': 4, 'cidr': '222.8.253.64/26', 'allocation_pools': [{'start': '222.8.253.66', 'end': '222.8.253.126'}], 'gateway_ip': '222.8.253.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '222.8.253.66', 'tags': [], 'project_id': '6b240c11d69b4114be1c25165812cd59'}} 2025-12-23 03:32:40,478 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ef8f6686-cfc4-4558-ad72-57bd13d1092e', 'name': '', 'tenant_id': '6b240c11d69b4114be1c25165812cd59', 'network_id': 'f957c0de-a9ed-4ed5-a570-d860994d3842', 'ip_version': 6, 'cidr': '3397:cced:45d2:1ce7:d4bf:1563::/96', 'allocation_pools': [{'start': '3397:cced:45d2:1ce7:d4bf:1563:0:2', 'end': '3397:cced:45d2:1ce7:d4bf:1563:ffff:fffe'}], 'gateway_ip': '3397:cced:45d2:1ce7:d4bf:1563:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3397:cced:45d2:1ce7:d4bf:1563:0:2', 'tags': [], 'project_id': '6b240c11d69b4114be1c25165812cd59'}} 2025-12-23 03:32:40,501 - INFO - Created VN ctest-vn4-82496357 2025-12-23 03:32:40,554 - DEBUG - VN ctest-vn4-82496357 UUID is f957c0de-a9ed-4ed5-a570-d860994d3842 2025-12-23 03:32:40,770 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f957c0de-a9ed-4ed5-a570-d860994d3842', 'name': 'ctest-vn4-82496357', 'tenant_id': '6b240c11d69b4114be1c25165812cd59', 'project_id': '6b240c11d69b4114be1c25165812cd59', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9d55c4a7-ad10-41ce-9575-658803f3975f', 'ef8f6686-cfc4-4558-ad72-57bd13d1092e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-39687955', 'ctest-vn4-82496357'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-39687955', 'ctest-policy1-87596845']], 'subnet_ipam': [{'subnet_cidr': '222.8.253.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3397:cced:45d2:1ce7:d4bf:1563::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-12-23 03:32:40,930 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-12-23 03:32:41,274 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-12-23 03:32:41,305 - DEBUG - Requesting: http://10.0.0.33:8082/domain/746932a5-36d0-4dd8-b6b2-c4c0a384dd02 2025-12-23 03:32:41,317 - DEBUG - Requesting: http://10.0.0.33:8082/project/6b240c11-d69b-4114-be1c-25165812cd59 2025-12-23 03:32:41,387 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/f957c0de-a9ed-4ed5-a570-d860994d3842 2025-12-23 03:32:41,399 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/f957c0de-a9ed-4ed5-a570-d860994d3842 2025-12-23 03:32:41,410 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/c597f6a9-d3b7-41ec-8fc1-5454da6f991d 2025-12-23 03:32:41,417 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/c597f6a9-d3b7-41ec-8fc1-5454da6f991d 2025-12-23 03:32:41,422 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/9b521289-80f9-42c4-8190-73bf1a82fdaf 2025-12-23 03:32:41,428 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-23 03:32:41,428 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/f957c0de-a9ed-4ed5-a570-d860994d3842 2025-12-23 03:32:41,436 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/c597f6a9-d3b7-41ec-8fc1-5454da6f991d 2025-12-23 03:32:41,447 - INFO - Verified VN network id 11 for VN f957c0de-a9ed-4ed5-a570-d860994d3842 2025-12-23 03:32:41,447 - INFO - Verifications in API Server for VN ctest-vn4-82496357 passed 2025-12-23 03:32:41,447 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/f957c0de-a9ed-4ed5-a570-d860994d3842 2025-12-23 03:32:41,455 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/c597f6a9-d3b7-41ec-8fc1-5454da6f991d 2025-12-23 03:32:41,461 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/c597f6a9-d3b7-41ec-8fc1-5454da6f991d 2025-12-23 03:32:41,468 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/9b521289-80f9-42c4-8190-73bf1a82fdaf 2025-12-23 03:32:41,479 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-39687955:ctest-vn4-82496357', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-39687955', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17967041300984057557', 'uuid-lslong': '11921266123050137666'}, 'enable': 'true', 'created': '2025-12-23T03:32:40', 'last-modified': '2025-12-23T03:32:40', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.742587'} 2025-12-23 03:32:41,486 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-23 03:32:41,486 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-82496357 passed 2025-12-23 03:32:41,486 - DEBUG - ====Verifying policy data for ctest-vn4-82496357 in API_Server ====== 2025-12-23 03:32:41,486 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-12-23 03:32:41,491 - DEBUG - Requesting: http://10.0.0.33:8082/domain/746932a5-36d0-4dd8-b6b2-c4c0a384dd02 2025-12-23 03:32:41,503 - DEBUG - Requesting: http://10.0.0.33:8082/project/6b240c11-d69b-4114-be1c-25165812cd59 2025-12-23 03:32:41,575 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/f957c0de-a9ed-4ed5-a570-d860994d3842 2025-12-23 03:32:41,585 - DEBUG - ==>Verifying data for policy with id: d5a137c7-93fe-4875-9478-52bb1059e5ea, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-39687955', 'ctest-policy1-87596845'] 2025-12-23 03:32:41,585 - INFO - VN ctest-vn4-82496357 Policy verification: verify_vn_policy_in_api_server, status: True 2025-12-23 03:32:41,585 - DEBUG - Verifying the vn in opserver 2025-12-23 03:32:41,585 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-39687955:ctest-vn4-82496357 virtual network link through opserver 10.0.0.33 2025-12-23 03:32:41,585 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-12-23 03:32:41,921 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-12-23 03:32:41,982 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-39687955:ctest-vn4-82496357', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-39687955:ctest-vn4-82496357?flat'} 2025-12-23 03:32:41,982 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-39687955:ctest-vn4-82496357 is found in opserver 2025-12-23 03:32:41,992 - DEBUG - Do not have enough data to verify VN in agent 2025-12-23 03:32:41,996 - DEBUG - VRF ids for VN ctest-vn4-82496357: {} 2025-12-23 03:32:41,996 - DEBUG - ====Verifying data for ctest-policy1-87596845 in API_Server ====== 2025-12-23 03:32:41,996 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-12-23 03:32:42,001 - DEBUG - Requesting: http://10.0.0.33:8082/domain/746932a5-36d0-4dd8-b6b2-c4c0a384dd02 2025-12-23 03:32:42,012 - DEBUG - Requesting: http://10.0.0.33:8082/project/6b240c11-d69b-4114-be1c-25165812cd59 2025-12-23 03:32:42,083 - DEBUG - Requesting: http://10.0.0.33:8082/network-policy/d5a137c7-93fe-4875-9478-52bb1059e5ea 2025-12-23 03:32:42,092 - INFO - Verified policy ctest-policy1-87596845 in API Server, Result: True 2025-12-23 03:32:42,092 - INFO - Done with setup and verification, moving onto test .. 2025-12-23 03:32:42,100 - INFO - Deleting VN ctest-vn4-82496357 2025-12-23 03:32:42,211 - DEBUG - Response for deleting network () 2025-12-23 03:32:42,212 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/c597f6a9-d3b7-41ec-8fc1-5454da6f991d 2025-12-23 03:32:42,218 - DEBUG - Response Code: 404 2025-12-23 03:32:42,218 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-12-23 03:32:42,224 - DEBUG - Requesting: http://10.0.0.33:8082/domain/746932a5-36d0-4dd8-b6b2-c4c0a384dd02 2025-12-23 03:32:42,279 - DEBUG - Requesting: http://10.0.0.33:8082/project/6b240c11-d69b-4114-be1c-25165812cd59 2025-12-23 03:32:42,349 - INFO - Validated that VN ctest-vn4-82496357 is not found in API Server 2025-12-23 03:32:42,358 - DEBUG - VN ctest-vn4-82496357 is not present in Agent 10.0.0.33 2025-12-23 03:32:42,358 - INFO - Validated that VN ctest-vn4-82496357 is not in any agent 2025-12-23 03:32:42,373 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-82496357 info 2025-12-23 03:32:42,395 - INFO - Deleted policy ctest-policy1-87596845 2025-12-23 03:32:42,562 - DEBUG - policy ctest-policy1-87596845 is not found in API Server 2025-12-23 03:32:42,823 - DEBUG - No XMPP flaps were noticed during the test
2025-12-23 03:32:42,823 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-12-23 03:32:42,823 - INFO - -------------------------------------------------------------------------------- 2025-12-23 03:32:43,111 - DEBUG - No XMPP flaps were noticed during the test
2025-12-23 03:32:43,111 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2025-12-23 03:32:43,111 - INFO - -------------------------------------------------------------------------------- 2025-12-23 03:32:43,861 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-39687955, ID : 6b240c11-d69b-4114-be1c-25165812cd59