2025-09-11 06:39:53,742 - INFO - Domain Default found not creating 2025-09-11 06:39:53,878 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-06490646 not found, creating it 2025-09-11 06:39:54,332 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-06490646, ID : 287faced-28ee-4842-a342-6aec9389a261 2025-09-11 06:39:55,719 - INFO - ================================================================================ 2025-09-11 06:39:55,720 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-11 06:39:55,973 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0'}} with 2025-09-11 06:39:55,974 - INFO - Initial checks done. Running the testcase now 2025-09-11 06:39:55,974 - INFO - 2025-09-11 06:39:55,974 - INFO - ================================================================================ 2025-09-11 06:39:55,974 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-11 06:39:55,974 - 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 06:39:56,261 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0'}} with 2025-09-11 06:39:56,261 - INFO - Initial checks done. Running the testcase now 2025-09-11 06:39:56,261 - INFO - 2025-09-11 06:39:56,601 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-06490646:ctest-vn4-94423783, 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-06490646:ctest-vn4-94423783, 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-06490646:ctest-vn4-94423783, 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-06490646:ctest-vn4-94423783, 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 06:39:57,096 - DEBUG - Response for create_network : {'network': {'id': '736ffe1b-1ac9-4442-bbe8-b99b5cdbb9a9', 'name': 'ctest-vn4-94423783', 'tenant_id': '287faced28ee4842a3426aec9389a261', 'project_id': '287faced28ee4842a3426aec9389a261', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-06490646', 'ctest-vn4-94423783'], 'port_security_enabled': True, 'description': ''}} 2025-09-11 06:39:57,274 - DEBUG - Response for create_subnet : {'subnet': {'id': '4a5c132f-337a-42f8-86d2-55998dbe066a', 'name': '', 'tenant_id': '287faced28ee4842a3426aec9389a261', 'network_id': '736ffe1b-1ac9-4442-bbe8-b99b5cdbb9a9', 'ip_version': 4, 'cidr': '98.204.183.192/26', 'allocation_pools': [{'start': '98.204.183.194', 'end': '98.204.183.254'}], 'gateway_ip': '98.204.183.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '98.204.183.194', 'tags': [], 'project_id': '287faced28ee4842a3426aec9389a261'}} 2025-09-11 06:39:57,440 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a1790a15-cd18-45ad-9671-b25c051f4699', 'name': '', 'tenant_id': '287faced28ee4842a3426aec9389a261', 'network_id': '736ffe1b-1ac9-4442-bbe8-b99b5cdbb9a9', 'ip_version': 6, 'cidr': '3915:1597:de3b:c055:f799:9932::/96', 'allocation_pools': [{'start': '3915:1597:de3b:c055:f799:9932:0:2', 'end': '3915:1597:de3b:c055:f799:9932:ffff:fffe'}], 'gateway_ip': '3915:1597:de3b:c055:f799:9932:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3915:1597:de3b:c055:f799:9932:0:2', 'tags': [], 'project_id': '287faced28ee4842a3426aec9389a261'}} 2025-09-11 06:39:57,458 - INFO - Created VN ctest-vn4-94423783 2025-09-11 06:39:57,512 - DEBUG - VN ctest-vn4-94423783 UUID is 736ffe1b-1ac9-4442-bbe8-b99b5cdbb9a9 2025-09-11 06:39:57,696 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '736ffe1b-1ac9-4442-bbe8-b99b5cdbb9a9', 'name': 'ctest-vn4-94423783', 'tenant_id': '287faced28ee4842a3426aec9389a261', 'project_id': '287faced28ee4842a3426aec9389a261', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4a5c132f-337a-42f8-86d2-55998dbe066a', 'a1790a15-cd18-45ad-9671-b25c051f4699'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-06490646', 'ctest-vn4-94423783'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-06490646', 'ctest-policy1-79040021']], 'subnet_ipam': [{'subnet_cidr': '98.204.183.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3915:1597:de3b:c055:f799:9932::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-09-11 06:39:57,860 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-09-11 06:39:58,149 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-09-11 06:39:58,175 - DEBUG - Requesting: http://10.0.0.22:8082/domain/06abe812-7885-4fe3-9c15-35dd48adee68 2025-09-11 06:39:58,186 - DEBUG - Requesting: http://10.0.0.22:8082/project/287faced-28ee-4842-a342-6aec9389a261 2025-09-11 06:39:58,253 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/736ffe1b-1ac9-4442-bbe8-b99b5cdbb9a9 2025-09-11 06:39:58,263 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/736ffe1b-1ac9-4442-bbe8-b99b5cdbb9a9 2025-09-11 06:39:58,272 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/86a950a7-89fe-444d-88aa-4838749b5e28 2025-09-11 06:39:58,278 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/86a950a7-89fe-444d-88aa-4838749b5e28 2025-09-11 06:39:58,284 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/c52d5b55-7fd3-4fd1-9144-a2830e7c88fc 2025-09-11 06:39:58,289 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-11 06:39:58,289 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/736ffe1b-1ac9-4442-bbe8-b99b5cdbb9a9 2025-09-11 06:39:58,299 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/86a950a7-89fe-444d-88aa-4838749b5e28 2025-09-11 06:39:58,312 - INFO - Verified VN network id 12 for VN 736ffe1b-1ac9-4442-bbe8-b99b5cdbb9a9 2025-09-11 06:39:58,312 - INFO - Verifications in API Server for VN ctest-vn4-94423783 passed 2025-09-11 06:39:58,312 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/736ffe1b-1ac9-4442-bbe8-b99b5cdbb9a9 2025-09-11 06:39:58,320 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/86a950a7-89fe-444d-88aa-4838749b5e28 2025-09-11 06:39:58,327 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/86a950a7-89fe-444d-88aa-4838749b5e28 2025-09-11 06:39:58,334 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/c52d5b55-7fd3-4fd1-9144-a2830e7c88fc 2025-09-11 06:39:58,345 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-06490646:ctest-vn4-94423783', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-06490646', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8318146429143565378', 'uuid-lslong': '13540276356618369449'}, 'enable': 'true', 'created': '2025-09-11T06:39:57', 'last-modified': '2025-09-11T06:39:57', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.671161'} 2025-09-11 06:39:58,351 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-11 06:39:58,351 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-94423783 passed 2025-09-11 06:39:58,351 - DEBUG - ====Verifying policy data for ctest-vn4-94423783 in API_Server ====== 2025-09-11 06:39:58,351 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-09-11 06:39:58,356 - DEBUG - Requesting: http://10.0.0.22:8082/domain/06abe812-7885-4fe3-9c15-35dd48adee68 2025-09-11 06:39:58,365 - DEBUG - Requesting: http://10.0.0.22:8082/project/287faced-28ee-4842-a342-6aec9389a261 2025-09-11 06:39:58,431 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/736ffe1b-1ac9-4442-bbe8-b99b5cdbb9a9 2025-09-11 06:39:58,440 - DEBUG - ==>Verifying data for policy with id: a471366b-a765-4d49-bda7-66b239f4301e, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-06490646', 'ctest-policy1-79040021'] 2025-09-11 06:39:58,440 - INFO - VN ctest-vn4-94423783 Policy verification: verify_vn_policy_in_api_server, status: True 2025-09-11 06:39:58,440 - DEBUG - Verifying the vn in opserver 2025-09-11 06:39:58,440 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-06490646:ctest-vn4-94423783 virtual network link through opserver 10.0.0.22 2025-09-11 06:39:58,440 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-09-11 06:39:58,738 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-09-11 06:39:58,787 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-06490646:ctest-vn4-94423783', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-06490646:ctest-vn4-94423783?flat'} 2025-09-11 06:39:58,787 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-06490646:ctest-vn4-94423783 is found in opserver 2025-09-11 06:39:58,795 - DEBUG - Do not have enough data to verify VN in agent 2025-09-11 06:39:58,799 - DEBUG - VRF ids for VN ctest-vn4-94423783: {} 2025-09-11 06:39:58,799 - DEBUG - ====Verifying data for ctest-policy1-79040021 in API_Server ====== 2025-09-11 06:39:58,800 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-09-11 06:39:58,804 - DEBUG - Requesting: http://10.0.0.22:8082/domain/06abe812-7885-4fe3-9c15-35dd48adee68 2025-09-11 06:39:58,814 - DEBUG - Requesting: http://10.0.0.22:8082/project/287faced-28ee-4842-a342-6aec9389a261 2025-09-11 06:39:58,881 - DEBUG - Requesting: http://10.0.0.22:8082/network-policy/a471366b-a765-4d49-bda7-66b239f4301e 2025-09-11 06:39:58,889 - INFO - Verified policy ctest-policy1-79040021 in API Server, Result: True 2025-09-11 06:39:58,889 - INFO - Done with setup and verification, moving onto test .. 2025-09-11 06:39:58,896 - INFO - Deleting VN ctest-vn4-94423783 2025-09-11 06:39:59,011 - DEBUG - Response for deleting network () 2025-09-11 06:39:59,011 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/86a950a7-89fe-444d-88aa-4838749b5e28 2025-09-11 06:39:59,015 - DEBUG - Response Code: 404 2025-09-11 06:39:59,016 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-09-11 06:39:59,020 - DEBUG - Requesting: http://10.0.0.22:8082/domain/06abe812-7885-4fe3-9c15-35dd48adee68 2025-09-11 06:39:59,073 - DEBUG - Requesting: http://10.0.0.22:8082/project/287faced-28ee-4842-a342-6aec9389a261 2025-09-11 06:39:59,140 - INFO - Validated that VN ctest-vn4-94423783 is not found in API Server 2025-09-11 06:39:59,149 - DEBUG - VN ctest-vn4-94423783 is not present in Agent 10.0.0.22 2025-09-11 06:39:59,149 - INFO - Validated that VN ctest-vn4-94423783 is not in any agent 2025-09-11 06:39:59,162 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-94423783 info 2025-09-11 06:39:59,189 - INFO - Deleted policy ctest-policy1-79040021 2025-09-11 06:39:59,364 - DEBUG - policy ctest-policy1-79040021 is not found in API Server 2025-09-11 06:39:59,620 - DEBUG - No XMPP flaps were noticed during the test
2025-09-11 06:39:59,620 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-09-11 06:39:59,620 - INFO - -------------------------------------------------------------------------------- 2025-09-11 06:39:59,909 - DEBUG - No XMPP flaps were noticed during the test
2025-09-11 06:39:59,909 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-09-11 06:39:59,909 - INFO - -------------------------------------------------------------------------------- 2025-09-11 06:40:00,569 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-06490646, ID : 287faced-28ee-4842-a342-6aec9389a261