2025-09-29 02:15:06,490 - INFO - Domain Default found not creating 2025-09-29 02:15:06,641 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-65709749 not found, creating it 2025-09-29 02:15:07,238 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-65709749, ID : 09befc13-b81b-4f05-a02f-6f3af357eda9 2025-09-29 02:15:08,693 - INFO - ================================================================================ 2025-09-29 02:15:08,693 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-29 02:15:10,025 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.129': '0', '10.20.0.17': '0'}, '10.0.0.131': {'10.20.0.129': '0', '10.20.0.17': '0'}} with 2025-09-29 02:15:10,025 - INFO - Initial checks done. Running the testcase now 2025-09-29 02:15:10,025 - INFO - 2025-09-29 02:15:10,025 - INFO - ================================================================================ 2025-09-29 02:15:10,026 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-29 02:15:10,026 - 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-29 02:15:11,378 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.129': '0', '10.20.0.17': '0'}, '10.0.0.131': {'10.20.0.129': '0', '10.20.0.17': '0'}} with 2025-09-29 02:15:11,378 - INFO - Initial checks done. Running the testcase now 2025-09-29 02:15:11,378 - INFO - 2025-09-29 02:15:11,735 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-65709749:ctest-vn4-62359992, 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-65709749:ctest-vn4-62359992, 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-65709749:ctest-vn4-62359992, 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-65709749:ctest-vn4-62359992, 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-29 02:15:12,639 - DEBUG - Response for create_network : {'network': {'id': '6409bc7e-7d0d-4dd0-9036-9b06386b41b2', 'name': 'ctest-vn4-62359992', 'tenant_id': '09befc13b81b4f05a02f6f3af357eda9', 'project_id': '09befc13b81b4f05a02f6f3af357eda9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-65709749', 'ctest-vn4-62359992'], 'port_security_enabled': True, 'description': ''}} 2025-09-29 02:15:12,986 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e48291ac-668a-4345-b920-e5b19aa3ec09', 'name': '', 'tenant_id': '09befc13b81b4f05a02f6f3af357eda9', 'network_id': '6409bc7e-7d0d-4dd0-9036-9b06386b41b2', 'ip_version': 4, 'cidr': '121.245.46.64/26', 'allocation_pools': [{'start': '121.245.46.66', 'end': '121.245.46.126'}], 'gateway_ip': '121.245.46.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '121.245.46.66', 'tags': [], 'project_id': '09befc13b81b4f05a02f6f3af357eda9'}} 2025-09-29 02:15:13,274 - DEBUG - Response for create_subnet : {'subnet': {'id': '2bfe840a-eb9d-473e-ba3a-c2d1b4da480b', 'name': '', 'tenant_id': '09befc13b81b4f05a02f6f3af357eda9', 'network_id': '6409bc7e-7d0d-4dd0-9036-9b06386b41b2', 'ip_version': 6, 'cidr': '2b9b:f05:7977:5200:dfab:45c7::/96', 'allocation_pools': [{'start': '2b9b:f05:7977:5200:dfab:45c7:0:2', 'end': '2b9b:f05:7977:5200:dfab:45c7:ffff:fffe'}], 'gateway_ip': '2b9b:f05:7977:5200:dfab:45c7:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2b9b:f05:7977:5200:dfab:45c7:0:2', 'tags': [], 'project_id': '09befc13b81b4f05a02f6f3af357eda9'}} 2025-09-29 02:15:13,313 - INFO - Created VN ctest-vn4-62359992 2025-09-29 02:15:13,327 - DEBUG - VN ctest-vn4-62359992 UUID is 6409bc7e-7d0d-4dd0-9036-9b06386b41b2 2025-09-29 02:15:13,554 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6409bc7e-7d0d-4dd0-9036-9b06386b41b2', 'name': 'ctest-vn4-62359992', 'tenant_id': '09befc13b81b4f05a02f6f3af357eda9', 'project_id': '09befc13b81b4f05a02f6f3af357eda9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e48291ac-668a-4345-b920-e5b19aa3ec09', '2bfe840a-eb9d-473e-ba3a-c2d1b4da480b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-65709749', 'ctest-vn4-62359992'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-65709749', 'ctest-policy1-05826808']], 'subnet_ipam': [{'subnet_cidr': '121.245.46.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2b9b:f05:7977:5200:dfab:45c7::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-09-29 02:15:13,662 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-09-29 02:15:13,962 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-09-29 02:15:13,990 - DEBUG - Requesting: http://10.0.0.38:8082/domain/026b1476-0afc-4093-a11e-3a5638365dda 2025-09-29 02:15:14,038 - DEBUG - Requesting: http://10.0.0.38:8082/project/09befc13-b81b-4f05-a02f-6f3af357eda9 2025-09-29 02:15:14,101 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/6409bc7e-7d0d-4dd0-9036-9b06386b41b2 2025-09-29 02:15:14,116 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/6409bc7e-7d0d-4dd0-9036-9b06386b41b2 2025-09-29 02:15:14,125 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/344f4754-e422-470f-aaf1-0168248d5650 2025-09-29 02:15:14,133 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/344f4754-e422-470f-aaf1-0168248d5650 2025-09-29 02:15:14,139 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/842a6d1c-5c7f-43c5-99ef-3e57c10ab679 2025-09-29 02:15:14,146 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-29 02:15:14,146 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/6409bc7e-7d0d-4dd0-9036-9b06386b41b2 2025-09-29 02:15:14,155 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/344f4754-e422-470f-aaf1-0168248d5650 2025-09-29 02:15:14,172 - INFO - Verified VN network id 15 for VN 6409bc7e-7d0d-4dd0-9036-9b06386b41b2 2025-09-29 02:15:14,173 - INFO - Verifications in API Server for VN ctest-vn4-62359992 passed 2025-09-29 02:15:14,173 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/6409bc7e-7d0d-4dd0-9036-9b06386b41b2 2025-09-29 02:15:14,182 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/344f4754-e422-470f-aaf1-0168248d5650 2025-09-29 02:15:14,189 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/344f4754-e422-470f-aaf1-0168248d5650 2025-09-29 02:15:14,195 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/842a6d1c-5c7f-43c5-99ef-3e57c10ab679 2025-09-29 02:15:14,205 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-65709749:ctest-vn4-62359992', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-65709749', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7208499930033114576', 'uuid-lslong': '10391663641222660530'}, 'enable': 'true', 'created': '2025-09-29T02:15:12', 'last-modified': '2025-09-29T02:15:13', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.688936'} 2025-09-29 02:15:14,212 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-29 02:15:14,217 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-65709749:ctest-vn4-62359992', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-65709749', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7208499930033114576', 'uuid-lslong': '10391663641222660530'}, 'enable': 'true', 'created': '2025-09-29T02:15:12', 'last-modified': '2025-09-29T02:15:13', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.698586'} 2025-09-29 02:15:14,222 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-29 02:15:14,228 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-65709749:ctest-vn4-62359992', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-65709749', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7208499930033114576', 'uuid-lslong': '10391663641222660530'}, 'enable': 'true', 'created': '2025-09-29T02:15:12', 'last-modified': '2025-09-29T02:15:13', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.711270'} 2025-09-29 02:15:14,236 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-29 02:15:14,236 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-62359992 passed 2025-09-29 02:15:14,236 - DEBUG - ====Verifying policy data for ctest-vn4-62359992 in API_Server ====== 2025-09-29 02:15:14,236 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-09-29 02:15:14,241 - DEBUG - Requesting: http://10.0.0.38:8082/domain/026b1476-0afc-4093-a11e-3a5638365dda 2025-09-29 02:15:14,252 - DEBUG - Requesting: http://10.0.0.38:8082/project/09befc13-b81b-4f05-a02f-6f3af357eda9 2025-09-29 02:15:14,349 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/6409bc7e-7d0d-4dd0-9036-9b06386b41b2 2025-09-29 02:15:14,358 - DEBUG - ==>Verifying data for policy with id: a94a7253-fe02-446b-b967-a107cb70083d, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-65709749', 'ctest-policy1-05826808'] 2025-09-29 02:15:14,358 - INFO - VN ctest-vn4-62359992 Policy verification: verify_vn_policy_in_api_server, status: True 2025-09-29 02:15:14,358 - DEBUG - Verifying the vn in opserver 2025-09-29 02:15:14,358 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-65709749:ctest-vn4-62359992 virtual network link through opserver 10.0.0.38 2025-09-29 02:15:14,359 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-09-29 02:15:14,651 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-09-29 02:15:14,705 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-65709749:ctest-vn4-62359992', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-65709749:ctest-vn4-62359992?flat'} 2025-09-29 02:15:14,705 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-65709749:ctest-vn4-62359992 virtual network link through opserver 10.0.0.33 2025-09-29 02:15:14,705 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-09-29 02:15:15,003 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-09-29 02:15:15,067 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-65709749:ctest-vn4-62359992', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-65709749:ctest-vn4-62359992?flat'} 2025-09-29 02:15:15,067 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-65709749:ctest-vn4-62359992 virtual network link through opserver 10.0.0.249 2025-09-29 02:15:15,067 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2025-09-29 02:15:15,363 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2025-09-29 02:15:15,428 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-65709749:ctest-vn4-62359992', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-65709749:ctest-vn4-62359992?flat'} 2025-09-29 02:15:15,428 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-65709749:ctest-vn4-62359992 is found in opserver 2025-09-29 02:15:15,447 - DEBUG - Do not have enough data to verify VN in agent 2025-09-29 02:15:15,455 - DEBUG - VRF ids for VN ctest-vn4-62359992: {} 2025-09-29 02:15:15,456 - DEBUG - ====Verifying data for ctest-policy1-05826808 in API_Server ====== 2025-09-29 02:15:15,456 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-09-29 02:15:15,462 - DEBUG - Requesting: http://10.0.0.38:8082/domain/026b1476-0afc-4093-a11e-3a5638365dda 2025-09-29 02:15:15,474 - DEBUG - Requesting: http://10.0.0.38:8082/project/09befc13-b81b-4f05-a02f-6f3af357eda9 2025-09-29 02:15:15,562 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/a94a7253-fe02-446b-b967-a107cb70083d 2025-09-29 02:15:15,579 - INFO - Verified policy ctest-policy1-05826808 in API Server, Result: True 2025-09-29 02:15:15,579 - INFO - Done with setup and verification, moving onto test .. 2025-09-29 02:15:15,602 - INFO - Deleting VN ctest-vn4-62359992 2025-09-29 02:15:15,832 - DEBUG - Response for deleting network () 2025-09-29 02:15:15,832 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/344f4754-e422-470f-aaf1-0168248d5650 2025-09-29 02:15:15,843 - DEBUG - Response Code: 404 2025-09-29 02:15:15,843 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-09-29 02:15:15,849 - DEBUG - Requesting: http://10.0.0.38:8082/domain/026b1476-0afc-4093-a11e-3a5638365dda 2025-09-29 02:15:15,859 - DEBUG - Requesting: http://10.0.0.38:8082/project/09befc13-b81b-4f05-a02f-6f3af357eda9 2025-09-29 02:15:15,955 - INFO - Validated that VN ctest-vn4-62359992 is not found in API Server 2025-09-29 02:15:15,967 - DEBUG - VN ctest-vn4-62359992 is not present in Agent 10.0.0.27 2025-09-29 02:15:15,977 - DEBUG - VN ctest-vn4-62359992 is not present in Agent 10.0.0.131 2025-09-29 02:15:15,977 - INFO - Validated that VN ctest-vn4-62359992 is not in any agent 2025-09-29 02:15:16,009 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-62359992 info 2025-09-29 02:15:16,048 - INFO - Deleted policy ctest-policy1-05826808 2025-09-29 02:15:16,243 - DEBUG - policy ctest-policy1-05826808 is not found in API Server 2025-09-29 02:15:17,564 - DEBUG - No XMPP flaps were noticed during the test