2025-10-30 09:54:00,558 - INFO - Domain Default found not creating 2025-10-30 09:54:00,714 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-67341296 not found, creating it 2025-10-30 09:54:01,159 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-67341296, ID : d246935c-0f83-444d-8343-d061a38b413c 2025-10-30 09:54:02,721 - INFO - ================================================================================ 2025-10-30 09:54:02,721 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-30 09:54:02,976 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with 2025-10-30 09:54:02,976 - INFO - Initial checks done. Running the testcase now 2025-10-30 09:54:02,976 - INFO - 2025-10-30 09:54:02,976 - INFO - ================================================================================ 2025-10-30 09:54:02,976 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-30 09:54:02,976 - 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-10-30 09:54:03,269 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with 2025-10-30 09:54:03,269 - INFO - Initial checks done. Running the testcase now 2025-10-30 09:54:03,269 - INFO - 2025-10-30 09:54:03,661 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-67341296:ctest-vn4-55442916, 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-67341296:ctest-vn4-55442916, 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-67341296:ctest-vn4-55442916, 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-67341296:ctest-vn4-55442916, 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-10-30 09:54:04,205 - DEBUG - Response for create_network : {'network': {'id': '86388bc6-c0f2-4a00-bc23-c66365af4959', 'name': 'ctest-vn4-55442916', 'tenant_id': 'd246935c0f83444d8343d061a38b413c', 'project_id': 'd246935c0f83444d8343d061a38b413c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-67341296', 'ctest-vn4-55442916'], 'port_security_enabled': True, 'description': ''}} 2025-10-30 09:54:04,447 - DEBUG - Response for create_subnet : {'subnet': {'id': '0469933a-dcab-4e54-9c74-d1a3c7f37ca5', 'name': '', 'tenant_id': 'd246935c0f83444d8343d061a38b413c', 'network_id': '86388bc6-c0f2-4a00-bc23-c66365af4959', 'ip_version': 4, 'cidr': '136.213.101.64/26', 'allocation_pools': [{'start': '136.213.101.66', 'end': '136.213.101.126'}], 'gateway_ip': '136.213.101.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '136.213.101.66', 'tags': [], 'project_id': 'd246935c0f83444d8343d061a38b413c'}} 2025-10-30 09:54:04,616 - DEBUG - Response for create_subnet : {'subnet': {'id': '6a826150-5417-4e25-aa6c-49e7ce48713b', 'name': '', 'tenant_id': 'd246935c0f83444d8343d061a38b413c', 'network_id': '86388bc6-c0f2-4a00-bc23-c66365af4959', 'ip_version': 6, 'cidr': '2763:456b:860:716:ba97:43a2::/96', 'allocation_pools': [{'start': '2763:456b:860:716:ba97:43a2:0:2', 'end': '2763:456b:860:716:ba97:43a2:ffff:fffe'}], 'gateway_ip': '2763:456b:860:716:ba97:43a2:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2763:456b:860:716:ba97:43a2:0:2', 'tags': [], 'project_id': 'd246935c0f83444d8343d061a38b413c'}} 2025-10-30 09:54:04,637 - INFO - Created VN ctest-vn4-55442916 2025-10-30 09:54:04,691 - DEBUG - VN ctest-vn4-55442916 UUID is 86388bc6-c0f2-4a00-bc23-c66365af4959 2025-10-30 09:54:04,900 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '86388bc6-c0f2-4a00-bc23-c66365af4959', 'name': 'ctest-vn4-55442916', 'tenant_id': 'd246935c0f83444d8343d061a38b413c', 'project_id': 'd246935c0f83444d8343d061a38b413c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0469933a-dcab-4e54-9c74-d1a3c7f37ca5', '6a826150-5417-4e25-aa6c-49e7ce48713b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-67341296', 'ctest-vn4-55442916'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-67341296', 'ctest-policy1-17625089']], 'subnet_ipam': [{'subnet_cidr': '136.213.101.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2763:456b:860:716:ba97:43a2::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-30 09:54:05,075 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-10-30 09:54:05,406 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-10-30 09:54:05,435 - DEBUG - Requesting: http://10.0.0.38:8082/domain/b83b907e-9ad7-4f88-94af-475314eb7bb9 2025-10-30 09:54:05,450 - DEBUG - Requesting: http://10.0.0.38:8082/project/d246935c-0f83-444d-8343-d061a38b413c 2025-10-30 09:54:05,521 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/86388bc6-c0f2-4a00-bc23-c66365af4959 2025-10-30 09:54:05,533 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/86388bc6-c0f2-4a00-bc23-c66365af4959 2025-10-30 09:54:05,542 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a6869d29-1a71-4771-b6ac-a481c19619d9 2025-10-30 09:54:05,549 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a6869d29-1a71-4771-b6ac-a481c19619d9 2025-10-30 09:54:05,555 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/1663dcf9-5b2d-44f5-9fb5-aee78087c79e 2025-10-30 09:54:05,561 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-30 09:54:05,561 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/86388bc6-c0f2-4a00-bc23-c66365af4959 2025-10-30 09:54:05,570 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a6869d29-1a71-4771-b6ac-a481c19619d9 2025-10-30 09:54:05,583 - INFO - Verified VN network id 11 for VN 86388bc6-c0f2-4a00-bc23-c66365af4959 2025-10-30 09:54:05,583 - INFO - Verifications in API Server for VN ctest-vn4-55442916 passed 2025-10-30 09:54:05,584 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/86388bc6-c0f2-4a00-bc23-c66365af4959 2025-10-30 09:54:05,594 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a6869d29-1a71-4771-b6ac-a481c19619d9 2025-10-30 09:54:05,601 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a6869d29-1a71-4771-b6ac-a481c19619d9 2025-10-30 09:54:05,608 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/1663dcf9-5b2d-44f5-9fb5-aee78087c79e 2025-10-30 09:54:05,620 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-67341296:ctest-vn4-55442916', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-67341296', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9671633885535029760', 'uuid-lslong': '13556897433525373273'}, 'enable': 'true', 'created': '2025-10-30T09:54:04', 'last-modified': '2025-10-30T09:54:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.747221'} 2025-10-30 09:54:05,626 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-30 09:54:05,626 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-55442916 passed 2025-10-30 09:54:05,626 - DEBUG - ====Verifying policy data for ctest-vn4-55442916 in API_Server ====== 2025-10-30 09:54:05,626 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-10-30 09:54:05,632 - DEBUG - Requesting: http://10.0.0.38:8082/domain/b83b907e-9ad7-4f88-94af-475314eb7bb9 2025-10-30 09:54:05,643 - DEBUG - Requesting: http://10.0.0.38:8082/project/d246935c-0f83-444d-8343-d061a38b413c 2025-10-30 09:54:05,715 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/86388bc6-c0f2-4a00-bc23-c66365af4959 2025-10-30 09:54:05,725 - DEBUG - ==>Verifying data for policy with id: 867b3daf-d463-4af5-b328-46a0b59de1a1, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-67341296', 'ctest-policy1-17625089'] 2025-10-30 09:54:05,725 - INFO - VN ctest-vn4-55442916 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-30 09:54:05,725 - DEBUG - Verifying the vn in opserver 2025-10-30 09:54:05,725 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-67341296:ctest-vn4-55442916 virtual network link through opserver 10.0.0.38 2025-10-30 09:54:05,725 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-10-30 09:54:06,064 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-10-30 09:54:06,124 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-67341296:ctest-vn4-55442916', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-67341296:ctest-vn4-55442916?flat'} 2025-10-30 09:54:06,124 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-67341296:ctest-vn4-55442916 is found in opserver 2025-10-30 09:54:06,134 - DEBUG - Do not have enough data to verify VN in agent 2025-10-30 09:54:06,138 - DEBUG - VRF ids for VN ctest-vn4-55442916: {} 2025-10-30 09:54:06,139 - DEBUG - ====Verifying data for ctest-policy1-17625089 in API_Server ====== 2025-10-30 09:54:06,139 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-10-30 09:54:06,144 - DEBUG - Requesting: http://10.0.0.38:8082/domain/b83b907e-9ad7-4f88-94af-475314eb7bb9 2025-10-30 09:54:06,155 - DEBUG - Requesting: http://10.0.0.38:8082/project/d246935c-0f83-444d-8343-d061a38b413c 2025-10-30 09:54:06,225 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/867b3daf-d463-4af5-b328-46a0b59de1a1 2025-10-30 09:54:06,234 - INFO - Verified policy ctest-policy1-17625089 in API Server, Result: True 2025-10-30 09:54:06,234 - INFO - Done with setup and verification, moving onto test .. 2025-10-30 09:54:06,242 - INFO - Deleting VN ctest-vn4-55442916 2025-10-30 09:54:06,361 - DEBUG - Response for deleting network () 2025-10-30 09:54:06,361 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a6869d29-1a71-4771-b6ac-a481c19619d9 2025-10-30 09:54:06,366 - DEBUG - Response Code: 404 2025-10-30 09:54:06,366 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-10-30 09:54:06,372 - DEBUG - Requesting: http://10.0.0.38:8082/domain/b83b907e-9ad7-4f88-94af-475314eb7bb9 2025-10-30 09:54:06,428 - DEBUG - Requesting: http://10.0.0.38:8082/project/d246935c-0f83-444d-8343-d061a38b413c 2025-10-30 09:54:06,502 - INFO - Validated that VN ctest-vn4-55442916 is not found in API Server 2025-10-30 09:54:06,512 - DEBUG - VN ctest-vn4-55442916 is not present in Agent 10.0.0.38 2025-10-30 09:54:06,512 - INFO - Validated that VN ctest-vn4-55442916 is not in any agent 2025-10-30 09:54:06,527 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-55442916 info 2025-10-30 09:54:06,552 - INFO - Deleted policy ctest-policy1-17625089 2025-10-30 09:54:06,714 - DEBUG - policy ctest-policy1-17625089 is not found in API Server 2025-10-30 09:54:06,972 - DEBUG - No XMPP flaps were noticed during the test 2025-10-30 09:54:06,972 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-10-30 09:54:06,972 - INFO - -------------------------------------------------------------------------------- 2025-10-30 09:54:07,260 - DEBUG - No XMPP flaps were noticed during the test 2025-10-30 09:54:07,260 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2025-10-30 09:54:07,260 - INFO - -------------------------------------------------------------------------------- 2025-10-30 09:54:07,996 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-67341296, ID : d246935c-0f83-444d-8343-d061a38b413c