2025-09-11 09:25:48,521 - INFO - Domain Default found not creating 2025-09-11 09:25:48,665 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-99430932 not found, creating it 2025-09-11 09:25:49,088 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-99430932, ID : 68b41579-70e3-4787-9b7f-b833f44c4f53 2025-09-11 09:25:50,473 - INFO - ================================================================================ 2025-09-11 09:25:50,473 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-11 09:25:50,728 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.254': '0'}} with 2025-09-11 09:25:50,728 - INFO - Initial checks done. Running the testcase now 2025-09-11 09:25:50,728 - INFO - 2025-09-11 09:25:50,728 - INFO - ================================================================================ 2025-09-11 09:25:50,728 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-11 09:25:50,728 - 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-09-11 09:25:51,016 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.254': '0'}} with 2025-09-11 09:25:51,016 - INFO - Initial checks done. Running the testcase now 2025-09-11 09:25:51,016 - INFO - 2025-09-11 09:25:51,367 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-99430932:ctest-vn4-13685017, 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-99430932:ctest-vn4-13685017, 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-99430932:ctest-vn4-13685017, 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-99430932:ctest-vn4-13685017, 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-09-11 09:25:51,851 - DEBUG - Response for create_network : {'network': {'id': '71b99b79-481b-423f-91a7-d9b850e6c445', 'name': 'ctest-vn4-13685017', 'tenant_id': '68b4157970e347879b7fb833f44c4f53', 'project_id': '68b4157970e347879b7fb833f44c4f53', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-99430932', 'ctest-vn4-13685017'], 'port_security_enabled': True, 'description': ''}} 2025-09-11 09:25:52,006 - DEBUG - Response for create_subnet : {'subnet': {'id': '1143d6bc-5204-4e51-b769-e5ffc69ebfa5', 'name': '', 'tenant_id': '68b4157970e347879b7fb833f44c4f53', 'network_id': '71b99b79-481b-423f-91a7-d9b850e6c445', 'ip_version': 4, 'cidr': '222.107.115.192/26', 'allocation_pools': [{'start': '222.107.115.194', 'end': '222.107.115.254'}], 'gateway_ip': '222.107.115.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '222.107.115.194', 'tags': [], 'project_id': '68b4157970e347879b7fb833f44c4f53'}} 2025-09-11 09:25:52,175 - DEBUG - Response for create_subnet : {'subnet': {'id': '41fbdedd-1b15-42b1-bb44-62bd78fefc90', 'name': '', 'tenant_id': '68b4157970e347879b7fb833f44c4f53', 'network_id': '71b99b79-481b-423f-91a7-d9b850e6c445', 'ip_version': 6, 'cidr': '2db2:d606:9919:42f0:dd83:7254::/96', 'allocation_pools': [{'start': '2db2:d606:9919:42f0:dd83:7254:0:2', 'end': '2db2:d606:9919:42f0:dd83:7254:ffff:fffe'}], 'gateway_ip': '2db2:d606:9919:42f0:dd83:7254:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2db2:d606:9919:42f0:dd83:7254:0:2', 'tags': [], 'project_id': '68b4157970e347879b7fb833f44c4f53'}} 2025-09-11 09:25:52,193 - INFO - Created VN ctest-vn4-13685017 2025-09-11 09:25:52,243 - DEBUG - VN ctest-vn4-13685017 UUID is 71b99b79-481b-423f-91a7-d9b850e6c445 2025-09-11 09:25:52,421 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '71b99b79-481b-423f-91a7-d9b850e6c445', 'name': 'ctest-vn4-13685017', 'tenant_id': '68b4157970e347879b7fb833f44c4f53', 'project_id': '68b4157970e347879b7fb833f44c4f53', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1143d6bc-5204-4e51-b769-e5ffc69ebfa5', '41fbdedd-1b15-42b1-bb44-62bd78fefc90'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-99430932', 'ctest-vn4-13685017'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-99430932', 'ctest-policy1-16128122']], 'subnet_ipam': [{'subnet_cidr': '222.107.115.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2db2:d606:9919:42f0:dd83:7254::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-09-11 09:25:52,579 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-09-11 09:25:52,870 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-09-11 09:25:52,895 - DEBUG - Requesting: http://10.0.0.22:8082/domain/19580de5-4ced-4cb6-9fe3-dd2072a9de08 2025-09-11 09:25:52,906 - DEBUG - Requesting: http://10.0.0.22:8082/project/68b41579-70e3-4787-9b7f-b833f44c4f53 2025-09-11 09:25:52,981 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/71b99b79-481b-423f-91a7-d9b850e6c445 2025-09-11 09:25:52,991 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/71b99b79-481b-423f-91a7-d9b850e6c445 2025-09-11 09:25:52,999 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/0dfdf0ee-38aa-4a2b-87a3-69a4a63bf6b3 2025-09-11 09:25:53,004 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/0dfdf0ee-38aa-4a2b-87a3-69a4a63bf6b3 2025-09-11 09:25:53,009 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/20c42de7-a9c1-4e93-bbd5-7f4a05557b73 2025-09-11 09:25:53,014 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-11 09:25:53,014 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/71b99b79-481b-423f-91a7-d9b850e6c445 2025-09-11 09:25:53,021 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/0dfdf0ee-38aa-4a2b-87a3-69a4a63bf6b3 2025-09-11 09:25:53,032 - INFO - Verified VN network id 12 for VN 71b99b79-481b-423f-91a7-d9b850e6c445 2025-09-11 09:25:53,032 - INFO - Verifications in API Server for VN ctest-vn4-13685017 passed 2025-09-11 09:25:53,033 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/71b99b79-481b-423f-91a7-d9b850e6c445 2025-09-11 09:25:53,040 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/0dfdf0ee-38aa-4a2b-87a3-69a4a63bf6b3 2025-09-11 09:25:53,045 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/0dfdf0ee-38aa-4a2b-87a3-69a4a63bf6b3 2025-09-11 09:25:53,050 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/20c42de7-a9c1-4e93-bbd5-7f4a05557b73 2025-09-11 09:25:53,058 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-99430932:ctest-vn4-13685017', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-99430932', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8194751942180422207', 'uuid-lslong': '10495596842264740933'}, 'enable': 'true', 'created': '2025-09-11T09:25:51', 'last-modified': '2025-09-11T09:25:52', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.660241'} 2025-09-11 09:25:53,063 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-11 09:25:53,063 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-13685017 passed 2025-09-11 09:25:53,064 - DEBUG - ====Verifying policy data for ctest-vn4-13685017 in API_Server ====== 2025-09-11 09:25:53,064 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-09-11 09:25:53,068 - DEBUG - Requesting: http://10.0.0.22:8082/domain/19580de5-4ced-4cb6-9fe3-dd2072a9de08 2025-09-11 09:25:53,077 - DEBUG - Requesting: http://10.0.0.22:8082/project/68b41579-70e3-4787-9b7f-b833f44c4f53 2025-09-11 09:25:53,145 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/71b99b79-481b-423f-91a7-d9b850e6c445 2025-09-11 09:25:53,153 - DEBUG - ==>Verifying data for policy with id: 5eb7c6ab-f3a9-4807-aace-7fe85cd58ab5, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-99430932', 'ctest-policy1-16128122'] 2025-09-11 09:25:53,153 - INFO - VN ctest-vn4-13685017 Policy verification: verify_vn_policy_in_api_server, status: True 2025-09-11 09:25:53,153 - DEBUG - Verifying the vn in opserver 2025-09-11 09:25:53,153 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-99430932:ctest-vn4-13685017 virtual network link through opserver 10.0.0.22 2025-09-11 09:25:53,153 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-09-11 09:25:53,443 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-09-11 09:25:53,492 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-99430932:ctest-vn4-13685017', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-99430932:ctest-vn4-13685017?flat'} 2025-09-11 09:25:53,492 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-99430932:ctest-vn4-13685017 is found in opserver 2025-09-11 09:25:53,500 - DEBUG - Do not have enough data to verify VN in agent 2025-09-11 09:25:53,504 - DEBUG - VRF ids for VN ctest-vn4-13685017: {} 2025-09-11 09:25:53,504 - DEBUG - ====Verifying data for ctest-policy1-16128122 in API_Server ====== 2025-09-11 09:25:53,504 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-09-11 09:25:53,509 - DEBUG - Requesting: http://10.0.0.22:8082/domain/19580de5-4ced-4cb6-9fe3-dd2072a9de08 2025-09-11 09:25:53,520 - DEBUG - Requesting: http://10.0.0.22:8082/project/68b41579-70e3-4787-9b7f-b833f44c4f53 2025-09-11 09:25:53,588 - DEBUG - Requesting: http://10.0.0.22:8082/network-policy/5eb7c6ab-f3a9-4807-aace-7fe85cd58ab5 2025-09-11 09:25:53,596 - INFO - Verified policy ctest-policy1-16128122 in API Server, Result: True 2025-09-11 09:25:53,596 - INFO - Done with setup and verification, moving onto test .. 2025-09-11 09:25:53,603 - INFO - Deleting VN ctest-vn4-13685017 2025-09-11 09:25:53,711 - DEBUG - Response for deleting network () 2025-09-11 09:25:53,711 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/0dfdf0ee-38aa-4a2b-87a3-69a4a63bf6b3 2025-09-11 09:25:53,715 - DEBUG - Response Code: 404 2025-09-11 09:25:53,716 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-09-11 09:25:53,720 - DEBUG - Requesting: http://10.0.0.22:8082/domain/19580de5-4ced-4cb6-9fe3-dd2072a9de08 2025-09-11 09:25:53,772 - DEBUG - Requesting: http://10.0.0.22:8082/project/68b41579-70e3-4787-9b7f-b833f44c4f53 2025-09-11 09:25:53,841 - INFO - Validated that VN ctest-vn4-13685017 is not found in API Server 2025-09-11 09:25:53,849 - DEBUG - VN ctest-vn4-13685017 is not present in Agent 10.0.0.22 2025-09-11 09:25:53,849 - INFO - Validated that VN ctest-vn4-13685017 is not in any agent 2025-09-11 09:25:53,862 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-13685017 info 2025-09-11 09:25:53,882 - INFO - Deleted policy ctest-policy1-16128122 2025-09-11 09:25:54,043 - DEBUG - policy ctest-policy1-16128122 is not found in API Server 2025-09-11 09:25:54,296 - DEBUG - No XMPP flaps were noticed during the test