2025-08-13 16:28:52,704 - INFO - Domain Default found not creating 2025-08-13 16:28:52,858 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-29278524 not found, creating it 2025-08-13 16:28:53,292 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-29278524, ID : f59722aa-97a0-458c-ad8f-41d571a8409c 2025-08-13 16:28:54,689 - INFO - ================================================================================ 2025-08-13 16:28:54,689 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-13 16:28:54,952 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2025-08-13 16:28:54,952 - INFO - Initial checks done. Running the testcase now 2025-08-13 16:28:54,952 - INFO - 2025-08-13 16:28:54,952 - INFO - ================================================================================ 2025-08-13 16:28:54,952 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-13 16:28:54,952 - 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-13 16:28:55,243 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2025-08-13 16:28:55,243 - INFO - Initial checks done. Running the testcase now 2025-08-13 16:28:55,243 - INFO - 2025-08-13 16:28:55,587 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-29278524:ctest-vn4-66551196, 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-29278524:ctest-vn4-66551196, 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-29278524:ctest-vn4-66551196, 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-29278524:ctest-vn4-66551196, 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-13 16:28:56,081 - DEBUG - Response for create_network : {'network': {'id': 'c4d59f10-ffd9-45ec-9cbf-bae28260769e', 'name': 'ctest-vn4-66551196', 'tenant_id': 'f59722aa97a0458cad8f41d571a8409c', 'project_id': 'f59722aa97a0458cad8f41d571a8409c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-29278524', 'ctest-vn4-66551196'], 'port_security_enabled': True, 'description': ''}} 2025-08-13 16:28:56,227 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ab40f1f4-1447-4608-ab4e-e999abb8cc0a', 'name': '', 'tenant_id': 'f59722aa97a0458cad8f41d571a8409c', 'network_id': 'c4d59f10-ffd9-45ec-9cbf-bae28260769e', 'ip_version': 4, 'cidr': '62.98.84.64/26', 'allocation_pools': [{'start': '62.98.84.66', 'end': '62.98.84.126'}], 'gateway_ip': '62.98.84.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '62.98.84.66', 'tags': [], 'project_id': 'f59722aa97a0458cad8f41d571a8409c'}} 2025-08-13 16:28:56,371 - DEBUG - Response for create_subnet : {'subnet': {'id': '6c79d1b6-b3a1-4204-95f9-cc66c0f2f595', 'name': '', 'tenant_id': 'f59722aa97a0458cad8f41d571a8409c', 'network_id': 'c4d59f10-ffd9-45ec-9cbf-bae28260769e', 'ip_version': 6, 'cidr': '3585:ea59:862c:80ad:d540:57f4::/96', 'allocation_pools': [{'start': '3585:ea59:862c:80ad:d540:57f4:0:2', 'end': '3585:ea59:862c:80ad:d540:57f4:ffff:fffe'}], 'gateway_ip': '3585:ea59:862c:80ad:d540:57f4:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3585:ea59:862c:80ad:d540:57f4:0:2', 'tags': [], 'project_id': 'f59722aa97a0458cad8f41d571a8409c'}} 2025-08-13 16:28:56,392 - INFO - Created VN ctest-vn4-66551196 2025-08-13 16:28:56,442 - DEBUG - VN ctest-vn4-66551196 UUID is c4d59f10-ffd9-45ec-9cbf-bae28260769e 2025-08-13 16:28:56,647 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c4d59f10-ffd9-45ec-9cbf-bae28260769e', 'name': 'ctest-vn4-66551196', 'tenant_id': 'f59722aa97a0458cad8f41d571a8409c', 'project_id': 'f59722aa97a0458cad8f41d571a8409c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ab40f1f4-1447-4608-ab4e-e999abb8cc0a', '6c79d1b6-b3a1-4204-95f9-cc66c0f2f595'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-29278524', 'ctest-vn4-66551196'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-29278524', 'ctest-policy1-30557884']], 'subnet_ipam': [{'subnet_cidr': '62.98.84.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3585:ea59:862c:80ad:d540:57f4::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-13 16:28:56,802 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-08-13 16:28:57,091 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-08-13 16:28:57,118 - DEBUG - Requesting: http://10.0.0.38:8082/domain/78f5e55f-2fc5-4028-8ed3-b4ae81ecccac 2025-08-13 16:28:57,131 - DEBUG - Requesting: http://10.0.0.38:8082/project/f59722aa-97a0-458c-ad8f-41d571a8409c 2025-08-13 16:28:57,206 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/c4d59f10-ffd9-45ec-9cbf-bae28260769e 2025-08-13 16:28:57,219 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/c4d59f10-ffd9-45ec-9cbf-bae28260769e 2025-08-13 16:28:57,229 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a9af9777-8667-4c3e-a6ab-01799c5dd6c7 2025-08-13 16:28:57,237 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a9af9777-8667-4c3e-a6ab-01799c5dd6c7 2025-08-13 16:28:57,244 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/df53e7e9-5f26-447a-8a49-2aff5bb2461d 2025-08-13 16:28:57,250 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-13 16:28:57,250 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/c4d59f10-ffd9-45ec-9cbf-bae28260769e 2025-08-13 16:28:57,262 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a9af9777-8667-4c3e-a6ab-01799c5dd6c7 2025-08-13 16:28:57,278 - INFO - Verified VN network id 11 for VN c4d59f10-ffd9-45ec-9cbf-bae28260769e 2025-08-13 16:28:57,278 - INFO - Verifications in API Server for VN ctest-vn4-66551196 passed 2025-08-13 16:28:57,278 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/c4d59f10-ffd9-45ec-9cbf-bae28260769e 2025-08-13 16:28:57,291 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a9af9777-8667-4c3e-a6ab-01799c5dd6c7 2025-08-13 16:28:57,303 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a9af9777-8667-4c3e-a6ab-01799c5dd6c7 2025-08-13 16:28:57,313 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/df53e7e9-5f26-447a-8a49-2aff5bb2461d 2025-08-13 16:28:57,336 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-29278524:ctest-vn4-66551196', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-29278524', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14183417496833967596', 'uuid-lslong': '11294951872481228446'}, 'enable': 'true', 'created': '2025-08-13T16:28:56', 'last-modified': '2025-08-13T16:28:56', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.718849'} 2025-08-13 16:28:57,345 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-13 16:28:57,345 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-66551196 passed 2025-08-13 16:28:57,345 - DEBUG - ====Verifying policy data for ctest-vn4-66551196 in API_Server ====== 2025-08-13 16:28:57,345 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-08-13 16:28:57,352 - DEBUG - Requesting: http://10.0.0.38:8082/domain/78f5e55f-2fc5-4028-8ed3-b4ae81ecccac 2025-08-13 16:28:57,367 - DEBUG - Requesting: http://10.0.0.38:8082/project/f59722aa-97a0-458c-ad8f-41d571a8409c 2025-08-13 16:28:57,445 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/c4d59f10-ffd9-45ec-9cbf-bae28260769e 2025-08-13 16:28:57,458 - DEBUG - ==>Verifying data for policy with id: 565ecf8c-6bc7-48d8-b580-2ecde1e04d67, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-29278524', 'ctest-policy1-30557884'] 2025-08-13 16:28:57,458 - INFO - VN ctest-vn4-66551196 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-13 16:28:57,458 - DEBUG - Verifying the vn in opserver 2025-08-13 16:28:57,458 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-29278524:ctest-vn4-66551196 virtual network link through opserver 10.0.0.38 2025-08-13 16:28:57,459 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-08-13 16:28:57,748 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-08-13 16:28:57,802 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-29278524:ctest-vn4-66551196', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-29278524:ctest-vn4-66551196?flat'} 2025-08-13 16:28:57,802 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-29278524:ctest-vn4-66551196 is found in opserver 2025-08-13 16:28:57,814 - DEBUG - Do not have enough data to verify VN in agent 2025-08-13 16:28:57,820 - DEBUG - VRF ids for VN ctest-vn4-66551196: {} 2025-08-13 16:28:57,821 - DEBUG - ====Verifying data for ctest-policy1-30557884 in API_Server ====== 2025-08-13 16:28:57,821 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-08-13 16:28:57,826 - DEBUG - Requesting: http://10.0.0.38:8082/domain/78f5e55f-2fc5-4028-8ed3-b4ae81ecccac 2025-08-13 16:28:57,838 - DEBUG - Requesting: http://10.0.0.38:8082/project/f59722aa-97a0-458c-ad8f-41d571a8409c 2025-08-13 16:28:57,913 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/565ecf8c-6bc7-48d8-b580-2ecde1e04d67 2025-08-13 16:28:57,924 - INFO - Verified policy ctest-policy1-30557884 in API Server, Result: True 2025-08-13 16:28:57,924 - INFO - Done with setup and verification, moving onto test .. 2025-08-13 16:28:57,933 - INFO - Deleting VN ctest-vn4-66551196 2025-08-13 16:28:58,049 - DEBUG - Response for deleting network () 2025-08-13 16:28:58,049 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a9af9777-8667-4c3e-a6ab-01799c5dd6c7 2025-08-13 16:28:58,055 - DEBUG - Response Code: 404 2025-08-13 16:28:58,055 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-08-13 16:28:58,061 - DEBUG - Requesting: http://10.0.0.38:8082/domain/78f5e55f-2fc5-4028-8ed3-b4ae81ecccac 2025-08-13 16:28:58,115 - DEBUG - Requesting: http://10.0.0.38:8082/project/f59722aa-97a0-458c-ad8f-41d571a8409c 2025-08-13 16:28:58,189 - INFO - Validated that VN ctest-vn4-66551196 is not found in API Server 2025-08-13 16:28:58,200 - DEBUG - VN ctest-vn4-66551196 is not present in Agent 10.0.0.38 2025-08-13 16:28:58,200 - INFO - Validated that VN ctest-vn4-66551196 is not in any agent 2025-08-13 16:28:58,215 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-66551196 info 2025-08-13 16:28:58,240 - INFO - Deleted policy ctest-policy1-30557884 2025-08-13 16:28:58,406 - DEBUG - policy ctest-policy1-30557884 is not found in API Server 2025-08-13 16:28:58,664 - DEBUG - No XMPP flaps were noticed during the test 2025-08-13 16:28:58,664 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-08-13 16:28:58,664 - INFO - -------------------------------------------------------------------------------- 2025-08-13 16:28:58,955 - DEBUG - No XMPP flaps were noticed during the test 2025-08-13 16:28:58,955 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-08-13 16:28:58,955 - INFO - -------------------------------------------------------------------------------- 2025-08-13 16:28:59,619 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-29278524, ID : f59722aa-97a0-458c-ad8f-41d571a8409c