2025-08-28 02:41:06,993 - INFO - Domain Default found not creating 2025-08-28 02:41:07,178 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-32498449 not found, creating it 2025-08-28 02:41:07,677 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-32498449, ID : 3dfc6180-d5dc-4fed-b195-f0723bd63f52 2025-08-28 02:41:09,417 - INFO - ================================================================================ 2025-08-28 02:41:09,417 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-28 02:41:09,678 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.209': '0'}} with 2025-08-28 02:41:09,678 - INFO - Initial checks done. Running the testcase now 2025-08-28 02:41:09,678 - INFO - 2025-08-28 02:41:09,678 - INFO - ================================================================================ 2025-08-28 02:41:09,679 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-28 02:41:09,679 - 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-08-28 02:41:09,990 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.209': '0'}} with 2025-08-28 02:41:09,990 - INFO - Initial checks done. Running the testcase now 2025-08-28 02:41:09,990 - INFO - 2025-08-28 02:41:10,393 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-32498449:ctest-vn4-33807731, 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-32498449:ctest-vn4-33807731, 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-32498449:ctest-vn4-33807731, 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-32498449:ctest-vn4-33807731, 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-08-28 02:41:10,932 - DEBUG - Response for create_network : {'network': {'id': '26957a4b-7d35-4a81-a27d-bec3b80b856c', 'name': 'ctest-vn4-33807731', 'tenant_id': '3dfc6180d5dc4fedb195f0723bd63f52', 'project_id': '3dfc6180d5dc4fedb195f0723bd63f52', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-32498449', 'ctest-vn4-33807731'], 'port_security_enabled': True, 'description': ''}} 2025-08-28 02:41:11,119 - DEBUG - Response for create_subnet : {'subnet': {'id': '2acbf185-a15c-4cd2-a50f-1a2f55a35fea', 'name': '', 'tenant_id': '3dfc6180d5dc4fedb195f0723bd63f52', 'network_id': '26957a4b-7d35-4a81-a27d-bec3b80b856c', 'ip_version': 4, 'cidr': '23.86.168.64/26', 'allocation_pools': [{'start': '23.86.168.66', 'end': '23.86.168.126'}], 'gateway_ip': '23.86.168.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '23.86.168.66', 'tags': [], 'project_id': '3dfc6180d5dc4fedb195f0723bd63f52'}} 2025-08-28 02:41:11,311 - DEBUG - Response for create_subnet : {'subnet': {'id': '01b16ba6-afd7-44f1-bd62-50d6c8ce3a5a', 'name': '', 'tenant_id': '3dfc6180d5dc4fedb195f0723bd63f52', 'network_id': '26957a4b-7d35-4a81-a27d-bec3b80b856c', 'ip_version': 6, 'cidr': '3105:66eb:3c52:72ad:e3b5:6e00::/96', 'allocation_pools': [{'start': '3105:66eb:3c52:72ad:e3b5:6e00:0:2', 'end': '3105:66eb:3c52:72ad:e3b5:6e00:ffff:fffe'}], 'gateway_ip': '3105:66eb:3c52:72ad:e3b5:6e00:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3105:66eb:3c52:72ad:e3b5:6e00:0:2', 'tags': [], 'project_id': '3dfc6180d5dc4fedb195f0723bd63f52'}} 2025-08-28 02:41:11,335 - INFO - Created VN ctest-vn4-33807731 2025-08-28 02:41:11,390 - DEBUG - VN ctest-vn4-33807731 UUID is 26957a4b-7d35-4a81-a27d-bec3b80b856c 2025-08-28 02:41:11,623 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '26957a4b-7d35-4a81-a27d-bec3b80b856c', 'name': 'ctest-vn4-33807731', 'tenant_id': '3dfc6180d5dc4fedb195f0723bd63f52', 'project_id': '3dfc6180d5dc4fedb195f0723bd63f52', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2acbf185-a15c-4cd2-a50f-1a2f55a35fea', '01b16ba6-afd7-44f1-bd62-50d6c8ce3a5a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-32498449', 'ctest-vn4-33807731'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-32498449', 'ctest-policy1-52679790']], 'subnet_ipam': [{'subnet_cidr': '23.86.168.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3105:66eb:3c52:72ad:e3b5:6e00::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-28 02:41:11,790 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-08-28 02:41:12,135 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-08-28 02:41:12,169 - DEBUG - Requesting: http://10.0.0.249:8082/domain/58a52db9-5c75-431f-b090-7480be74f975 2025-08-28 02:41:12,183 - DEBUG - Requesting: http://10.0.0.249:8082/project/3dfc6180-d5dc-4fed-b195-f0723bd63f52 2025-08-28 02:41:12,256 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/26957a4b-7d35-4a81-a27d-bec3b80b856c 2025-08-28 02:41:12,269 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/26957a4b-7d35-4a81-a27d-bec3b80b856c 2025-08-28 02:41:12,280 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/4ec0c423-f593-4272-a0f5-b43b76b1ce5f 2025-08-28 02:41:12,288 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/4ec0c423-f593-4272-a0f5-b43b76b1ce5f 2025-08-28 02:41:12,297 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/0257f117-317f-4917-83e9-a66d475e10c2 2025-08-28 02:41:12,307 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-28 02:41:12,307 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/26957a4b-7d35-4a81-a27d-bec3b80b856c 2025-08-28 02:41:12,318 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/4ec0c423-f593-4272-a0f5-b43b76b1ce5f 2025-08-28 02:41:12,336 - INFO - Verified VN network id 12 for VN 26957a4b-7d35-4a81-a27d-bec3b80b856c 2025-08-28 02:41:12,337 - INFO - Verifications in API Server for VN ctest-vn4-33807731 passed 2025-08-28 02:41:12,337 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/26957a4b-7d35-4a81-a27d-bec3b80b856c 2025-08-28 02:41:12,348 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/4ec0c423-f593-4272-a0f5-b43b76b1ce5f 2025-08-28 02:41:12,357 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/4ec0c423-f593-4272-a0f5-b43b76b1ce5f 2025-08-28 02:41:12,365 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/0257f117-317f-4917-83e9-a66d475e10c2 2025-08-28 02:41:12,377 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-32498449:ctest-vn4-33807731', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-32498449', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2780262809612929665', 'uuid-lslong': '11708724354048820588'}, 'enable': 'true', 'created': '2025-08-28T02:41:10', 'last-modified': '2025-08-28T02:41:11', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.795419'} 2025-08-28 02:41:12,384 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-28 02:41:12,384 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-33807731 passed 2025-08-28 02:41:12,385 - DEBUG - ====Verifying policy data for ctest-vn4-33807731 in API_Server ====== 2025-08-28 02:41:12,385 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-08-28 02:41:12,390 - DEBUG - Requesting: http://10.0.0.249:8082/domain/58a52db9-5c75-431f-b090-7480be74f975 2025-08-28 02:41:12,402 - DEBUG - Requesting: http://10.0.0.249:8082/project/3dfc6180-d5dc-4fed-b195-f0723bd63f52 2025-08-28 02:41:12,474 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/26957a4b-7d35-4a81-a27d-bec3b80b856c 2025-08-28 02:41:12,485 - DEBUG - ==>Verifying data for policy with id: b4781efc-e863-44aa-99b7-e5adba16961d, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-32498449', 'ctest-policy1-52679790'] 2025-08-28 02:41:12,485 - INFO - VN ctest-vn4-33807731 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-28 02:41:12,485 - DEBUG - Verifying the vn in opserver 2025-08-28 02:41:12,485 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-32498449:ctest-vn4-33807731 virtual network link through opserver 10.0.0.249 2025-08-28 02:41:12,485 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2025-08-28 02:41:12,845 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2025-08-28 02:41:12,929 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-32498449:ctest-vn4-33807731', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-32498449:ctest-vn4-33807731?flat'} 2025-08-28 02:41:12,930 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-32498449:ctest-vn4-33807731 is found in opserver 2025-08-28 02:41:12,942 - DEBUG - Do not have enough data to verify VN in agent 2025-08-28 02:41:12,947 - DEBUG - VRF ids for VN ctest-vn4-33807731: {} 2025-08-28 02:41:12,948 - DEBUG - ====Verifying data for ctest-policy1-52679790 in API_Server ====== 2025-08-28 02:41:12,948 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-08-28 02:41:12,955 - DEBUG - Requesting: http://10.0.0.249:8082/domain/58a52db9-5c75-431f-b090-7480be74f975 2025-08-28 02:41:12,985 - DEBUG - Requesting: http://10.0.0.249:8082/project/3dfc6180-d5dc-4fed-b195-f0723bd63f52 2025-08-28 02:41:13,060 - DEBUG - Requesting: http://10.0.0.249:8082/network-policy/b4781efc-e863-44aa-99b7-e5adba16961d 2025-08-28 02:41:13,071 - INFO - Verified policy ctest-policy1-52679790 in API Server, Result: True 2025-08-28 02:41:13,071 - INFO - Done with setup and verification, moving onto test .. 2025-08-28 02:41:13,080 - INFO - Deleting VN ctest-vn4-33807731 2025-08-28 02:41:13,213 - DEBUG - Response for deleting network () 2025-08-28 02:41:13,214 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/4ec0c423-f593-4272-a0f5-b43b76b1ce5f 2025-08-28 02:41:13,220 - DEBUG - Response Code: 404 2025-08-28 02:41:13,220 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-08-28 02:41:13,226 - DEBUG - Requesting: http://10.0.0.249:8082/domain/58a52db9-5c75-431f-b090-7480be74f975 2025-08-28 02:41:13,279 - DEBUG - Requesting: http://10.0.0.249:8082/project/3dfc6180-d5dc-4fed-b195-f0723bd63f52 2025-08-28 02:41:13,348 - INFO - Validated that VN ctest-vn4-33807731 is not found in API Server 2025-08-28 02:41:13,358 - DEBUG - VN ctest-vn4-33807731 is not present in Agent 10.0.0.249 2025-08-28 02:41:13,358 - INFO - Validated that VN ctest-vn4-33807731 is not in any agent 2025-08-28 02:41:13,373 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-33807731 info 2025-08-28 02:41:13,398 - INFO - Deleted policy ctest-policy1-52679790 2025-08-28 02:41:13,565 - DEBUG - policy ctest-policy1-52679790 is not found in API Server 2025-08-28 02:41:13,822 - DEBUG - No XMPP flaps were noticed during the test
2025-08-28 02:41:13,822 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-08-28 02:41:13,823 - INFO - -------------------------------------------------------------------------------- 2025-08-28 02:41:14,116 - DEBUG - No XMPP flaps were noticed during the test
2025-08-28 02:41:14,116 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2025-08-28 02:41:14,116 - INFO - -------------------------------------------------------------------------------- 2025-08-28 02:41:14,907 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-32498449, ID : 3dfc6180-d5dc-4fed-b195-f0723bd63f52