2025-09-18 10:23:35,729 - INFO - Domain Default found not creating 2025-09-18 10:23:35,887 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-85053043 not found, creating it 2025-09-18 10:23:36,341 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-85053043, ID : b5aff546-910e-4bb6-a1e7-f1119a5ee9a2 2025-09-18 10:23:37,724 - INFO - ================================================================================ 2025-09-18 10:23:37,724 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-18 10:23:37,846 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-09-18 10:23:37,846 - INFO - Initial checks done. Running the testcase now 2025-09-18 10:23:37,846 - INFO - 2025-09-18 10:23:37,846 - INFO - ================================================================================ 2025-09-18 10:23:37,846 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-18 10:23:37,846 - 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-18 10:23:38,002 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-09-18 10:23:38,002 - INFO - Initial checks done. Running the testcase now 2025-09-18 10:23:38,002 - INFO - 2025-09-18 10:23:38,341 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-85053043:ctest-vn4-27203763, 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-85053043:ctest-vn4-27203763, 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-85053043:ctest-vn4-27203763, 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-85053043:ctest-vn4-27203763, 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-18 10:23:38,853 - DEBUG - Response for create_network : {'network': {'id': 'd15bdf44-cb90-4ea5-b7bb-1a8e5960c77d', 'name': 'ctest-vn4-27203763', 'tenant_id': 'b5aff546910e4bb6a1e7f1119a5ee9a2', 'project_id': 'b5aff546910e4bb6a1e7f1119a5ee9a2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-85053043', 'ctest-vn4-27203763'], 'port_security_enabled': True, 'description': ''}} 2025-09-18 10:23:39,009 - DEBUG - Response for create_subnet : {'subnet': {'id': '1044e9e4-e5b6-4233-b9ed-24f4e8ee53af', 'name': '', 'tenant_id': 'b5aff546910e4bb6a1e7f1119a5ee9a2', 'network_id': 'd15bdf44-cb90-4ea5-b7bb-1a8e5960c77d', 'ip_version': 4, 'cidr': '129.46.145.128/26', 'allocation_pools': [{'start': '129.46.145.130', 'end': '129.46.145.190'}], 'gateway_ip': '129.46.145.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '129.46.145.130', 'tags': [], 'project_id': 'b5aff546910e4bb6a1e7f1119a5ee9a2'}} 2025-09-18 10:23:39,196 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a389427e-0a28-484d-9449-04fd7141a3c1', 'name': '', 'tenant_id': 'b5aff546910e4bb6a1e7f1119a5ee9a2', 'network_id': 'd15bdf44-cb90-4ea5-b7bb-1a8e5960c77d', 'ip_version': 6, 'cidr': '314d:cc2b:5cdc:1aac:10cf:99c6::/96', 'allocation_pools': [{'start': '314d:cc2b:5cdc:1aac:10cf:99c6:0:2', 'end': '314d:cc2b:5cdc:1aac:10cf:99c6:ffff:fffe'}], 'gateway_ip': '314d:cc2b:5cdc:1aac:10cf:99c6:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '314d:cc2b:5cdc:1aac:10cf:99c6:0:2', 'tags': [], 'project_id': 'b5aff546910e4bb6a1e7f1119a5ee9a2'}} 2025-09-18 10:23:39,218 - INFO - Created VN ctest-vn4-27203763 2025-09-18 10:23:39,272 - DEBUG - VN ctest-vn4-27203763 UUID is d15bdf44-cb90-4ea5-b7bb-1a8e5960c77d 2025-09-18 10:23:39,474 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd15bdf44-cb90-4ea5-b7bb-1a8e5960c77d', 'name': 'ctest-vn4-27203763', 'tenant_id': 'b5aff546910e4bb6a1e7f1119a5ee9a2', 'project_id': 'b5aff546910e4bb6a1e7f1119a5ee9a2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1044e9e4-e5b6-4233-b9ed-24f4e8ee53af', 'a389427e-0a28-484d-9449-04fd7141a3c1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-85053043', 'ctest-vn4-27203763'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-85053043', 'ctest-policy1-73471207']], 'subnet_ipam': [{'subnet_cidr': '129.46.145.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '314d:cc2b:5cdc:1aac:10cf:99c6::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-09-18 10:23:39,644 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-09-18 10:23:39,948 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-09-18 10:23:39,978 - DEBUG - Requesting: http://10.0.0.254:8082/domain/cefcf260-3738-4f46-b0c5-1a5d683f924c 2025-09-18 10:23:39,991 - DEBUG - Requesting: http://10.0.0.254:8082/project/b5aff546-910e-4bb6-a1e7-f1119a5ee9a2 2025-09-18 10:23:40,063 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/d15bdf44-cb90-4ea5-b7bb-1a8e5960c77d 2025-09-18 10:23:40,076 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/d15bdf44-cb90-4ea5-b7bb-1a8e5960c77d 2025-09-18 10:23:40,087 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/e41998b2-8bdf-4841-9d64-0dc0bd42afc9 2025-09-18 10:23:40,094 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/e41998b2-8bdf-4841-9d64-0dc0bd42afc9 2025-09-18 10:23:40,101 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/76d85c11-bd04-46de-9705-e49207ccc34c 2025-09-18 10:23:40,107 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-18 10:23:40,107 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/d15bdf44-cb90-4ea5-b7bb-1a8e5960c77d 2025-09-18 10:23:40,117 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/e41998b2-8bdf-4841-9d64-0dc0bd42afc9 2025-09-18 10:23:40,132 - INFO - Verified VN network id 12 for VN d15bdf44-cb90-4ea5-b7bb-1a8e5960c77d 2025-09-18 10:23:40,132 - INFO - Verifications in API Server for VN ctest-vn4-27203763 passed 2025-09-18 10:23:40,132 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/d15bdf44-cb90-4ea5-b7bb-1a8e5960c77d 2025-09-18 10:23:40,142 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/e41998b2-8bdf-4841-9d64-0dc0bd42afc9 2025-09-18 10:23:40,149 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/e41998b2-8bdf-4841-9d64-0dc0bd42afc9 2025-09-18 10:23:40,155 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/76d85c11-bd04-46de-9705-e49207ccc34c 2025-09-18 10:23:40,166 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-85053043:ctest-vn4-27203763', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-85053043', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15085896863373610661', 'uuid-lslong': '13239204728272897917'}, 'enable': 'true', 'created': '2025-09-18T10:23:38', 'last-modified': '2025-09-18T10:23:39', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.719112'} 2025-09-18 10:23:40,172 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-18 10:23:40,173 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-27203763 passed 2025-09-18 10:23:40,173 - DEBUG - ====Verifying policy data for ctest-vn4-27203763 in API_Server ====== 2025-09-18 10:23:40,173 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-09-18 10:23:40,178 - DEBUG - Requesting: http://10.0.0.254:8082/domain/cefcf260-3738-4f46-b0c5-1a5d683f924c 2025-09-18 10:23:40,189 - DEBUG - Requesting: http://10.0.0.254:8082/project/b5aff546-910e-4bb6-a1e7-f1119a5ee9a2 2025-09-18 10:23:40,259 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/d15bdf44-cb90-4ea5-b7bb-1a8e5960c77d 2025-09-18 10:23:40,270 - DEBUG - ==>Verifying data for policy with id: 08b6ffed-dfba-40ac-a313-55cb9f5be1cd, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-85053043', 'ctest-policy1-73471207'] 2025-09-18 10:23:40,270 - INFO - VN ctest-vn4-27203763 Policy verification: verify_vn_policy_in_api_server, status: True 2025-09-18 10:23:40,270 - DEBUG - Verifying the vn in opserver 2025-09-18 10:23:40,271 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-85053043:ctest-vn4-27203763 virtual network link through opserver 10.0.0.254 2025-09-18 10:23:40,271 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-09-18 10:23:40,579 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-09-18 10:23:40,634 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-85053043:ctest-vn4-27203763', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-85053043:ctest-vn4-27203763?flat'} 2025-09-18 10:23:40,634 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-85053043:ctest-vn4-27203763 is found in opserver 2025-09-18 10:23:40,644 - DEBUG - Do not have enough data to verify VN in agent 2025-09-18 10:23:40,649 - DEBUG - VRF ids for VN ctest-vn4-27203763: {} 2025-09-18 10:23:40,650 - DEBUG - ====Verifying data for ctest-policy1-73471207 in API_Server ====== 2025-09-18 10:23:40,650 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-09-18 10:23:40,655 - DEBUG - Requesting: http://10.0.0.254:8082/domain/cefcf260-3738-4f46-b0c5-1a5d683f924c 2025-09-18 10:23:40,666 - DEBUG - Requesting: http://10.0.0.254:8082/project/b5aff546-910e-4bb6-a1e7-f1119a5ee9a2 2025-09-18 10:23:40,737 - DEBUG - Requesting: http://10.0.0.254:8082/network-policy/08b6ffed-dfba-40ac-a313-55cb9f5be1cd 2025-09-18 10:23:40,746 - INFO - Verified policy ctest-policy1-73471207 in API Server, Result: True 2025-09-18 10:23:40,746 - INFO - Done with setup and verification, moving onto test .. 2025-09-18 10:23:40,753 - INFO - Deleting VN ctest-vn4-27203763 2025-09-18 10:23:40,868 - DEBUG - Response for deleting network () 2025-09-18 10:23:40,868 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/e41998b2-8bdf-4841-9d64-0dc0bd42afc9 2025-09-18 10:23:40,874 - DEBUG - Response Code: 404 2025-09-18 10:23:40,874 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-09-18 10:23:40,879 - DEBUG - Requesting: http://10.0.0.254:8082/domain/cefcf260-3738-4f46-b0c5-1a5d683f924c 2025-09-18 10:23:40,932 - DEBUG - Requesting: http://10.0.0.254:8082/project/b5aff546-910e-4bb6-a1e7-f1119a5ee9a2 2025-09-18 10:23:40,998 - INFO - Validated that VN ctest-vn4-27203763 is not found in API Server 2025-09-18 10:23:41,008 - DEBUG - VN ctest-vn4-27203763 is not present in Agent 10.0.0.254 2025-09-18 10:23:41,008 - INFO - Validated that VN ctest-vn4-27203763 is not in any agent 2025-09-18 10:23:41,021 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-27203763 info 2025-09-18 10:23:41,045 - INFO - Deleted policy ctest-policy1-73471207 2025-09-18 10:23:41,207 - DEBUG - policy ctest-policy1-73471207 is not found in API Server 2025-09-18 10:23:41,333 - DEBUG - No XMPP flaps were noticed during the test
2025-09-18 10:23:41,333 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-09-18 10:23:41,333 - INFO - -------------------------------------------------------------------------------- 2025-09-18 10:23:41,493 - DEBUG - No XMPP flaps were noticed during the test
2025-09-18 10:23:41,493 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-09-18 10:23:41,493 - INFO - -------------------------------------------------------------------------------- 2025-09-18 10:23:42,147 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-85053043, ID : b5aff546-910e-4bb6-a1e7-f1119a5ee9a2