2025-08-29 12:59:47,480 - INFO - Domain Default found not creating 2025-08-29 12:59:47,611 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-38661758 not found, creating it 2025-08-29 12:59:48,077 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-38661758, ID : c75ec4a9-e286-4575-86e5-03182eba76b6 2025-08-29 12:59:49,401 - INFO - ================================================================================ 2025-08-29 12:59:49,401 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-29 12:59:49,655 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.254': '0'}} with 2025-08-29 12:59:49,655 - INFO - Initial checks done. Running the testcase now 2025-08-29 12:59:49,655 - INFO - 2025-08-29 12:59:49,655 - INFO - ================================================================================ 2025-08-29 12:59:49,655 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-29 12:59:49,655 - 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-08-29 12:59:49,942 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.254': '0'}} with 2025-08-29 12:59:49,942 - INFO - Initial checks done. Running the testcase now 2025-08-29 12:59:49,942 - INFO - 2025-08-29 12:59:50,278 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-38661758:ctest-vn4-30039579, 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-38661758:ctest-vn4-30039579, 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-38661758:ctest-vn4-30039579, 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-38661758:ctest-vn4-30039579, 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-08-29 12:59:50,771 - DEBUG - Response for create_network : {'network': {'id': '5cf4d141-7238-44b6-b9f5-1e3ec6bfc16f', 'name': 'ctest-vn4-30039579', 'tenant_id': 'c75ec4a9e286457586e503182eba76b6', 'project_id': 'c75ec4a9e286457586e503182eba76b6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-38661758', 'ctest-vn4-30039579'], 'port_security_enabled': True, 'description': ''}} 2025-08-29 12:59:50,955 - DEBUG - Response for create_subnet : {'subnet': {'id': '6c90e80d-b196-4b24-bf30-86e3cdba38b2', 'name': '', 'tenant_id': 'c75ec4a9e286457586e503182eba76b6', 'network_id': '5cf4d141-7238-44b6-b9f5-1e3ec6bfc16f', 'ip_version': 4, 'cidr': '140.160.101.192/26', 'allocation_pools': [{'start': '140.160.101.194', 'end': '140.160.101.254'}], 'gateway_ip': '140.160.101.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '140.160.101.194', 'tags': [], 'project_id': 'c75ec4a9e286457586e503182eba76b6'}} 2025-08-29 12:59:51,108 - DEBUG - Response for create_subnet : {'subnet': {'id': '125885f5-6f60-4b41-a9ec-42115f3c9bb3', 'name': '', 'tenant_id': 'c75ec4a9e286457586e503182eba76b6', 'network_id': '5cf4d141-7238-44b6-b9f5-1e3ec6bfc16f', 'ip_version': 6, 'cidr': '3eb8:c6eb:d806:1880:e25b:9952::/96', 'allocation_pools': [{'start': '3eb8:c6eb:d806:1880:e25b:9952:0:2', 'end': '3eb8:c6eb:d806:1880:e25b:9952:ffff:fffe'}], 'gateway_ip': '3eb8:c6eb:d806:1880:e25b:9952:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3eb8:c6eb:d806:1880:e25b:9952:0:2', 'tags': [], 'project_id': 'c75ec4a9e286457586e503182eba76b6'}} 2025-08-29 12:59:51,127 - INFO - Created VN ctest-vn4-30039579 2025-08-29 12:59:51,178 - DEBUG - VN ctest-vn4-30039579 UUID is 5cf4d141-7238-44b6-b9f5-1e3ec6bfc16f 2025-08-29 12:59:51,370 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5cf4d141-7238-44b6-b9f5-1e3ec6bfc16f', 'name': 'ctest-vn4-30039579', 'tenant_id': 'c75ec4a9e286457586e503182eba76b6', 'project_id': 'c75ec4a9e286457586e503182eba76b6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6c90e80d-b196-4b24-bf30-86e3cdba38b2', '125885f5-6f60-4b41-a9ec-42115f3c9bb3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-38661758', 'ctest-vn4-30039579'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-38661758', 'ctest-policy1-42787312']], 'subnet_ipam': [{'subnet_cidr': '140.160.101.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3eb8:c6eb:d806:1880:e25b:9952::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-29 12:59:51,530 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-08-29 12:59:51,826 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-08-29 12:59:51,852 - DEBUG - Requesting: http://10.0.0.33:8082/domain/97666ddb-63ec-40ea-9097-691bbf944374 2025-08-29 12:59:51,864 - DEBUG - Requesting: http://10.0.0.33:8082/project/c75ec4a9-e286-4575-86e5-03182eba76b6 2025-08-29 12:59:51,932 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/5cf4d141-7238-44b6-b9f5-1e3ec6bfc16f 2025-08-29 12:59:51,942 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/5cf4d141-7238-44b6-b9f5-1e3ec6bfc16f 2025-08-29 12:59:51,950 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/a104fee8-fc25-461f-b52e-d51e5cbcf93b 2025-08-29 12:59:51,956 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/a104fee8-fc25-461f-b52e-d51e5cbcf93b 2025-08-29 12:59:51,962 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/7833040e-6a88-4e7f-9cac-3ec2dbe020ff 2025-08-29 12:59:51,966 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-29 12:59:51,966 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/5cf4d141-7238-44b6-b9f5-1e3ec6bfc16f 2025-08-29 12:59:51,974 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/a104fee8-fc25-461f-b52e-d51e5cbcf93b 2025-08-29 12:59:51,985 - INFO - Verified VN network id 11 for VN 5cf4d141-7238-44b6-b9f5-1e3ec6bfc16f 2025-08-29 12:59:51,986 - INFO - Verifications in API Server for VN ctest-vn4-30039579 passed 2025-08-29 12:59:51,986 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/5cf4d141-7238-44b6-b9f5-1e3ec6bfc16f 2025-08-29 12:59:51,994 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/a104fee8-fc25-461f-b52e-d51e5cbcf93b 2025-08-29 12:59:52,000 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/a104fee8-fc25-461f-b52e-d51e5cbcf93b 2025-08-29 12:59:52,006 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/7833040e-6a88-4e7f-9cac-3ec2dbe020ff 2025-08-29 12:59:52,016 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-38661758:ctest-vn4-30039579', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-38661758', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6698208624826139830', 'uuid-lslong': '13399649521282040175'}, 'enable': 'true', 'created': '2025-08-29T12:59:50', 'last-modified': '2025-08-29T12:59:51', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.677854'} 2025-08-29 12:59:52,020 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-29 12:59:52,020 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-30039579 passed 2025-08-29 12:59:52,021 - DEBUG - ====Verifying policy data for ctest-vn4-30039579 in API_Server ====== 2025-08-29 12:59:52,021 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-08-29 12:59:52,025 - DEBUG - Requesting: http://10.0.0.33:8082/domain/97666ddb-63ec-40ea-9097-691bbf944374 2025-08-29 12:59:52,034 - DEBUG - Requesting: http://10.0.0.33:8082/project/c75ec4a9-e286-4575-86e5-03182eba76b6 2025-08-29 12:59:52,103 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/5cf4d141-7238-44b6-b9f5-1e3ec6bfc16f 2025-08-29 12:59:52,112 - DEBUG - ==>Verifying data for policy with id: 853f5970-df3f-4b13-b8c8-d842edf510e5, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-38661758', 'ctest-policy1-42787312'] 2025-08-29 12:59:52,112 - INFO - VN ctest-vn4-30039579 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-29 12:59:52,112 - DEBUG - Verifying the vn in opserver 2025-08-29 12:59:52,112 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-38661758:ctest-vn4-30039579 virtual network link through opserver 10.0.0.33 2025-08-29 12:59:52,112 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-08-29 12:59:52,402 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-08-29 12:59:52,458 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-38661758:ctest-vn4-30039579', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-38661758:ctest-vn4-30039579?flat'} 2025-08-29 12:59:52,458 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-38661758:ctest-vn4-30039579 is found in opserver 2025-08-29 12:59:52,466 - DEBUG - Do not have enough data to verify VN in agent 2025-08-29 12:59:52,470 - DEBUG - VRF ids for VN ctest-vn4-30039579: {} 2025-08-29 12:59:52,471 - DEBUG - ====Verifying data for ctest-policy1-42787312 in API_Server ====== 2025-08-29 12:59:52,471 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-08-29 12:59:52,475 - DEBUG - Requesting: http://10.0.0.33:8082/domain/97666ddb-63ec-40ea-9097-691bbf944374 2025-08-29 12:59:52,484 - DEBUG - Requesting: http://10.0.0.33:8082/project/c75ec4a9-e286-4575-86e5-03182eba76b6 2025-08-29 12:59:52,547 - DEBUG - Requesting: http://10.0.0.33:8082/network-policy/853f5970-df3f-4b13-b8c8-d842edf510e5 2025-08-29 12:59:52,555 - INFO - Verified policy ctest-policy1-42787312 in API Server, Result: True 2025-08-29 12:59:52,555 - INFO - Done with setup and verification, moving onto test .. 2025-08-29 12:59:52,562 - INFO - Deleting VN ctest-vn4-30039579 2025-08-29 12:59:52,660 - DEBUG - Response for deleting network () 2025-08-29 12:59:52,660 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/a104fee8-fc25-461f-b52e-d51e5cbcf93b 2025-08-29 12:59:52,665 - DEBUG - Response Code: 404 2025-08-29 12:59:52,665 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-08-29 12:59:52,670 - DEBUG - Requesting: http://10.0.0.33:8082/domain/97666ddb-63ec-40ea-9097-691bbf944374 2025-08-29 12:59:52,722 - DEBUG - Requesting: http://10.0.0.33:8082/project/c75ec4a9-e286-4575-86e5-03182eba76b6 2025-08-29 12:59:52,792 - INFO - Validated that VN ctest-vn4-30039579 is not found in API Server 2025-08-29 12:59:52,801 - DEBUG - VN ctest-vn4-30039579 is not present in Agent 10.0.0.33 2025-08-29 12:59:52,801 - INFO - Validated that VN ctest-vn4-30039579 is not in any agent 2025-08-29 12:59:52,813 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-30039579 info 2025-08-29 12:59:52,842 - INFO - Deleted policy ctest-policy1-42787312 2025-08-29 12:59:53,006 - DEBUG - policy ctest-policy1-42787312 is not found in API Server 2025-08-29 12:59:53,258 - DEBUG - No XMPP flaps were noticed during the test
2025-08-29 12:59:53,258 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-08-29 12:59:53,259 - INFO - -------------------------------------------------------------------------------- 2025-08-29 12:59:53,550 - DEBUG - No XMPP flaps were noticed during the test
2025-08-29 12:59:53,550 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-08-29 12:59:53,550 - INFO - -------------------------------------------------------------------------------- 2025-08-29 12:59:54,224 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-38661758, ID : c75ec4a9-e286-4575-86e5-03182eba76b6