2025-11-05 08:29:17,183 - INFO - Domain Default found not creating 2025-11-05 08:29:17,362 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-80005995 not found, creating it 2025-11-05 08:29:17,826 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-80005995, ID : b09cef93-eff5-4653-8aa6-35b76ce5cee7 2025-11-05 08:29:19,460 - INFO - ================================================================================ 2025-11-05 08:29:19,460 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-05 08:29:19,722 - DEBUG - Nothing to compare xmpp stats {'10.0.0.137': {'10.20.0.129': '0'}} with 2025-11-05 08:29:19,722 - INFO - Initial checks done. Running the testcase now 2025-11-05 08:29:19,722 - INFO - 2025-11-05 08:29:19,722 - INFO - ================================================================================ 2025-11-05 08:29:19,722 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-05 08:29:19,722 - 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-05 08:29:20,011 - DEBUG - Nothing to compare xmpp stats {'10.0.0.137': {'10.20.0.129': '0'}} with 2025-11-05 08:29:20,011 - INFO - Initial checks done. Running the testcase now 2025-11-05 08:29:20,011 - INFO - 2025-11-05 08:29:20,419 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-80005995:ctest-vn4-93338181, 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-80005995:ctest-vn4-93338181, 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-80005995:ctest-vn4-93338181, 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-80005995:ctest-vn4-93338181, 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-05 08:29:20,962 - DEBUG - Response for create_network : {'network': {'id': '9cbe5f5a-a9d8-4eac-9580-e938123cf094', 'name': 'ctest-vn4-93338181', 'tenant_id': 'b09cef93eff546538aa635b76ce5cee7', 'project_id': 'b09cef93eff546538aa635b76ce5cee7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-80005995', 'ctest-vn4-93338181'], 'port_security_enabled': True, 'description': ''}} 2025-11-05 08:29:21,134 - DEBUG - Response for create_subnet : {'subnet': {'id': '893d9429-2284-4503-a89c-24de97f2ffd1', 'name': '', 'tenant_id': 'b09cef93eff546538aa635b76ce5cee7', 'network_id': '9cbe5f5a-a9d8-4eac-9580-e938123cf094', 'ip_version': 4, 'cidr': '56.227.17.128/26', 'allocation_pools': [{'start': '56.227.17.130', 'end': '56.227.17.190'}], 'gateway_ip': '56.227.17.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '56.227.17.130', 'tags': [], 'project_id': 'b09cef93eff546538aa635b76ce5cee7'}} 2025-11-05 08:29:21,348 - DEBUG - Response for create_subnet : {'subnet': {'id': '34ed89b2-ac01-488d-aeb1-dd1e8f326256', 'name': '', 'tenant_id': 'b09cef93eff546538aa635b76ce5cee7', 'network_id': '9cbe5f5a-a9d8-4eac-9580-e938123cf094', 'ip_version': 6, 'cidr': '2387:7f1a:31ae:8cb6:5c7d:82df::/96', 'allocation_pools': [{'start': '2387:7f1a:31ae:8cb6:5c7d:82df:0:2', 'end': '2387:7f1a:31ae:8cb6:5c7d:82df:ffff:fffe'}], 'gateway_ip': '2387:7f1a:31ae:8cb6:5c7d:82df:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2387:7f1a:31ae:8cb6:5c7d:82df:0:2', 'tags': [], 'project_id': 'b09cef93eff546538aa635b76ce5cee7'}} 2025-11-05 08:29:21,374 - INFO - Created VN ctest-vn4-93338181 2025-11-05 08:29:21,429 - DEBUG - VN ctest-vn4-93338181 UUID is 9cbe5f5a-a9d8-4eac-9580-e938123cf094 2025-11-05 08:29:21,653 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9cbe5f5a-a9d8-4eac-9580-e938123cf094', 'name': 'ctest-vn4-93338181', 'tenant_id': 'b09cef93eff546538aa635b76ce5cee7', 'project_id': 'b09cef93eff546538aa635b76ce5cee7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['893d9429-2284-4503-a89c-24de97f2ffd1', '34ed89b2-ac01-488d-aeb1-dd1e8f326256'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-80005995', 'ctest-vn4-93338181'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-80005995', 'ctest-policy1-85926241']], 'subnet_ipam': [{'subnet_cidr': '56.227.17.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2387:7f1a:31ae:8cb6:5c7d:82df::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-11-05 08:29:21,825 - DEBUG - Requesting: http://10.0.0.137:8082/domains 2025-11-05 08:29:22,177 - DEBUG - Requesting: http://10.0.0.137:8082/domains 2025-11-05 08:29:22,212 - DEBUG - Requesting: http://10.0.0.137:8082/domain/c8459c21-9d03-48dd-8f06-1e66f6b8d132 2025-11-05 08:29:22,226 - DEBUG - Requesting: http://10.0.0.137:8082/project/b09cef93-eff5-4653-8aa6-35b76ce5cee7 2025-11-05 08:29:22,303 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/9cbe5f5a-a9d8-4eac-9580-e938123cf094 2025-11-05 08:29:22,316 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/9cbe5f5a-a9d8-4eac-9580-e938123cf094 2025-11-05 08:29:22,326 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/e69c6f52-879d-4a47-8f83-41dfeb216a60 2025-11-05 08:29:22,333 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/e69c6f52-879d-4a47-8f83-41dfeb216a60 2025-11-05 08:29:22,340 - DEBUG - Requesting: http://10.0.0.137:8082/route-target/76bac46a-80d7-45cb-83a5-87b5d7ba6400 2025-11-05 08:29:22,346 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-05 08:29:22,346 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/9cbe5f5a-a9d8-4eac-9580-e938123cf094 2025-11-05 08:29:22,357 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/e69c6f52-879d-4a47-8f83-41dfeb216a60 2025-11-05 08:29:22,372 - INFO - Verified VN network id 12 for VN 9cbe5f5a-a9d8-4eac-9580-e938123cf094 2025-11-05 08:29:22,372 - INFO - Verifications in API Server for VN ctest-vn4-93338181 passed 2025-11-05 08:29:22,372 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/9cbe5f5a-a9d8-4eac-9580-e938123cf094 2025-11-05 08:29:22,382 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/e69c6f52-879d-4a47-8f83-41dfeb216a60 2025-11-05 08:29:22,389 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/e69c6f52-879d-4a47-8f83-41dfeb216a60 2025-11-05 08:29:22,396 - DEBUG - Requesting: http://10.0.0.137:8082/route-target/76bac46a-80d7-45cb-83a5-87b5d7ba6400 2025-11-05 08:29:22,410 - DEBUG - Control-node 10.0.0.137 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-80005995:ctest-vn4-93338181', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-80005995', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11294569758493003436', 'uuid-lslong': '10772866735703650452'}, 'enable': 'true', 'created': '2025-11-05T08:29:20', 'last-modified': '2025-11-05T08:29:21', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.780891'} 2025-11-05 08:29:22,417 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-05 08:29:22,417 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-93338181 passed 2025-11-05 08:29:22,418 - DEBUG - ====Verifying policy data for ctest-vn4-93338181 in API_Server ====== 2025-11-05 08:29:22,418 - DEBUG - Requesting: http://10.0.0.137:8082/domains 2025-11-05 08:29:22,423 - DEBUG - Requesting: http://10.0.0.137:8082/domain/c8459c21-9d03-48dd-8f06-1e66f6b8d132 2025-11-05 08:29:22,435 - DEBUG - Requesting: http://10.0.0.137:8082/project/b09cef93-eff5-4653-8aa6-35b76ce5cee7 2025-11-05 08:29:22,529 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/9cbe5f5a-a9d8-4eac-9580-e938123cf094 2025-11-05 08:29:22,541 - DEBUG - ==>Verifying data for policy with id: 9c9595d3-5e93-4fa3-b968-8916bfaf2ecd, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-80005995', 'ctest-policy1-85926241'] 2025-11-05 08:29:22,541 - INFO - VN ctest-vn4-93338181 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-05 08:29:22,541 - DEBUG - Verifying the vn in opserver 2025-11-05 08:29:22,541 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-80005995:ctest-vn4-93338181 virtual network link through opserver 10.0.0.137 2025-11-05 08:29:22,542 - DEBUG - Requesting: http://10.0.0.137:8081/analytics/uves/virtual-networks 2025-11-05 08:29:22,910 - DEBUG - Requesting: http://10.0.0.137:8081/analytics/uves/virtual-networks 2025-11-05 08:29:22,988 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-80005995:ctest-vn4-93338181', 'href': 'http://10.0.0.137:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-80005995:ctest-vn4-93338181?flat'} 2025-11-05 08:29:22,988 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-80005995:ctest-vn4-93338181 is found in opserver 2025-11-05 08:29:23,000 - DEBUG - Do not have enough data to verify VN in agent 2025-11-05 08:29:23,005 - DEBUG - VRF ids for VN ctest-vn4-93338181: {} 2025-11-05 08:29:23,006 - DEBUG - ====Verifying data for ctest-policy1-85926241 in API_Server ====== 2025-11-05 08:29:23,006 - DEBUG - Requesting: http://10.0.0.137:8082/domains 2025-11-05 08:29:23,012 - DEBUG - Requesting: http://10.0.0.137:8082/domain/c8459c21-9d03-48dd-8f06-1e66f6b8d132 2025-11-05 08:29:23,026 - DEBUG - Requesting: http://10.0.0.137:8082/project/b09cef93-eff5-4653-8aa6-35b76ce5cee7 2025-11-05 08:29:23,107 - DEBUG - Requesting: http://10.0.0.137:8082/network-policy/9c9595d3-5e93-4fa3-b968-8916bfaf2ecd 2025-11-05 08:29:23,119 - INFO - Verified policy ctest-policy1-85926241 in API Server, Result: True 2025-11-05 08:29:23,119 - INFO - Done with setup and verification, moving onto test .. 2025-11-05 08:29:23,128 - INFO - Deleting VN ctest-vn4-93338181 2025-11-05 08:29:23,263 - DEBUG - Response for deleting network () 2025-11-05 08:29:23,263 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/e69c6f52-879d-4a47-8f83-41dfeb216a60 2025-11-05 08:29:23,268 - DEBUG - Response Code: 404 2025-11-05 08:29:23,268 - DEBUG - Requesting: http://10.0.0.137:8082/domains 2025-11-05 08:29:23,275 - DEBUG - Requesting: http://10.0.0.137:8082/domain/c8459c21-9d03-48dd-8f06-1e66f6b8d132 2025-11-05 08:29:23,331 - DEBUG - Requesting: http://10.0.0.137:8082/project/b09cef93-eff5-4653-8aa6-35b76ce5cee7 2025-11-05 08:29:23,411 - INFO - Validated that VN ctest-vn4-93338181 is not found in API Server 2025-11-05 08:29:23,423 - DEBUG - VN ctest-vn4-93338181 is not present in Agent 10.0.0.137 2025-11-05 08:29:23,423 - INFO - Validated that VN ctest-vn4-93338181 is not in any agent 2025-11-05 08:29:23,441 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-93338181 info 2025-11-05 08:29:23,463 - INFO - Deleted policy ctest-policy1-85926241 2025-11-05 08:29:23,637 - DEBUG - policy ctest-policy1-85926241 is not found in API Server 2025-11-05 08:29:23,898 - DEBUG - No XMPP flaps were noticed during the test 2025-11-05 08:29:23,898 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-11-05 08:29:23,898 - INFO - -------------------------------------------------------------------------------- 2025-11-05 08:29:24,200 - DEBUG - No XMPP flaps were noticed during the test 2025-11-05 08:29:24,200 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2025-11-05 08:29:24,200 - INFO - -------------------------------------------------------------------------------- 2025-11-05 08:29:24,950 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-80005995, ID : b09cef93-eff5-4653-8aa6-35b76ce5cee7