2025-10-28 21:35:38,318 - INFO - Domain Default found not creating 2025-10-28 21:35:38,452 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-96485814 not found, creating it 2025-10-28 21:35:38,890 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-96485814, ID : 0994d69c-8070-4643-9989-30ce921087b9 2025-10-28 21:35:40,284 - INFO - ================================================================================ 2025-10-28 21:35:40,284 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-28 21:35:40,543 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.254': '0'}} with 2025-10-28 21:35:40,543 - INFO - Initial checks done. Running the testcase now 2025-10-28 21:35:40,543 - INFO - 2025-10-28 21:35:40,543 - INFO - ================================================================================ 2025-10-28 21:35:40,543 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-28 21:35:40,543 - 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-28 21:35:40,830 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.254': '0'}} with 2025-10-28 21:35:40,830 - INFO - Initial checks done. Running the testcase now 2025-10-28 21:35:40,830 - INFO - 2025-10-28 21:35:41,215 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-96485814:ctest-vn4-65033394, 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-96485814:ctest-vn4-65033394, 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-96485814:ctest-vn4-65033394, 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-96485814:ctest-vn4-65033394, 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-28 21:35:41,735 - DEBUG - Response for create_network : {'network': {'id': 'a4b19b7a-39fa-477c-a35a-6e313498ebc0', 'name': 'ctest-vn4-65033394', 'tenant_id': '0994d69c80704643998930ce921087b9', 'project_id': '0994d69c80704643998930ce921087b9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-96485814', 'ctest-vn4-65033394'], 'port_security_enabled': True, 'description': ''}} 2025-10-28 21:35:41,880 - DEBUG - Response for create_subnet : {'subnet': {'id': '4853c755-e276-483f-96bf-e38311accf43', 'name': '', 'tenant_id': '0994d69c80704643998930ce921087b9', 'network_id': 'a4b19b7a-39fa-477c-a35a-6e313498ebc0', 'ip_version': 4, 'cidr': '31.235.195.192/26', 'allocation_pools': [{'start': '31.235.195.194', 'end': '31.235.195.254'}], 'gateway_ip': '31.235.195.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '31.235.195.194', 'tags': [], 'project_id': '0994d69c80704643998930ce921087b9'}} 2025-10-28 21:35:42,063 - DEBUG - Response for create_subnet : {'subnet': {'id': '09baafbf-d2a4-469e-80a2-220bf9d8fcf1', 'name': '', 'tenant_id': '0994d69c80704643998930ce921087b9', 'network_id': 'a4b19b7a-39fa-477c-a35a-6e313498ebc0', 'ip_version': 6, 'cidr': '32f1:edbd:19f9:c72a:f01f:f0a7::/96', 'allocation_pools': [{'start': '32f1:edbd:19f9:c72a:f01f:f0a7:0:2', 'end': '32f1:edbd:19f9:c72a:f01f:f0a7:ffff:fffe'}], 'gateway_ip': '32f1:edbd:19f9:c72a:f01f:f0a7:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '32f1:edbd:19f9:c72a:f01f:f0a7:0:2', 'tags': [], 'project_id': '0994d69c80704643998930ce921087b9'}} 2025-10-28 21:35:42,081 - INFO - Created VN ctest-vn4-65033394 2025-10-28 21:35:42,131 - DEBUG - VN ctest-vn4-65033394 UUID is a4b19b7a-39fa-477c-a35a-6e313498ebc0 2025-10-28 21:35:42,317 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a4b19b7a-39fa-477c-a35a-6e313498ebc0', 'name': 'ctest-vn4-65033394', 'tenant_id': '0994d69c80704643998930ce921087b9', 'project_id': '0994d69c80704643998930ce921087b9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4853c755-e276-483f-96bf-e38311accf43', '09baafbf-d2a4-469e-80a2-220bf9d8fcf1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-96485814', 'ctest-vn4-65033394'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-96485814', 'ctest-policy1-84219407']], 'subnet_ipam': [{'subnet_cidr': '31.235.195.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '32f1:edbd:19f9:c72a:f01f:f0a7::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-28 21:35:42,479 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-10-28 21:35:42,770 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-10-28 21:35:42,797 - DEBUG - Requesting: http://10.0.0.50:8082/domain/1e82cc31-586f-421e-8cb3-f0fd1a180994 2025-10-28 21:35:42,808 - DEBUG - Requesting: http://10.0.0.50:8082/project/0994d69c-8070-4643-9989-30ce921087b9 2025-10-28 21:35:42,880 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a4b19b7a-39fa-477c-a35a-6e313498ebc0 2025-10-28 21:35:42,890 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a4b19b7a-39fa-477c-a35a-6e313498ebc0 2025-10-28 21:35:42,899 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/1040d13b-5170-4b04-ace9-6575f80bceb9 2025-10-28 21:35:42,904 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/1040d13b-5170-4b04-ace9-6575f80bceb9 2025-10-28 21:35:42,910 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/1e3bda1a-908d-4c55-bc66-74b60a831a9f 2025-10-28 21:35:42,915 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-28 21:35:42,915 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a4b19b7a-39fa-477c-a35a-6e313498ebc0 2025-10-28 21:35:42,922 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/1040d13b-5170-4b04-ace9-6575f80bceb9 2025-10-28 21:35:42,995 - INFO - Verified VN network id 12 for VN a4b19b7a-39fa-477c-a35a-6e313498ebc0 2025-10-28 21:35:42,995 - INFO - Verifications in API Server for VN ctest-vn4-65033394 passed 2025-10-28 21:35:42,995 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a4b19b7a-39fa-477c-a35a-6e313498ebc0 2025-10-28 21:35:43,003 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/1040d13b-5170-4b04-ace9-6575f80bceb9 2025-10-28 21:35:43,009 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/1040d13b-5170-4b04-ace9-6575f80bceb9 2025-10-28 21:35:43,014 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/1e3bda1a-908d-4c55-bc66-74b60a831a9f 2025-10-28 21:35:43,024 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-96485814:ctest-vn4-65033394', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-96485814', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11867437442358986620', 'uuid-lslong': '11770841733701102528'}, 'enable': 'true', 'created': '2025-10-28T21:35:41', 'last-modified': '2025-10-28T21:35:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.729700'} 2025-10-28 21:35:43,029 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-28 21:35:43,029 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-65033394 passed 2025-10-28 21:35:43,029 - DEBUG - ====Verifying policy data for ctest-vn4-65033394 in API_Server ====== 2025-10-28 21:35:43,029 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-10-28 21:35:43,034 - DEBUG - Requesting: http://10.0.0.50:8082/domain/1e82cc31-586f-421e-8cb3-f0fd1a180994 2025-10-28 21:35:43,042 - DEBUG - Requesting: http://10.0.0.50:8082/project/0994d69c-8070-4643-9989-30ce921087b9 2025-10-28 21:35:43,104 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a4b19b7a-39fa-477c-a35a-6e313498ebc0 2025-10-28 21:35:43,113 - DEBUG - ==>Verifying data for policy with id: 7d892753-bb84-4707-bbfb-e97130af9dc6, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-96485814', 'ctest-policy1-84219407'] 2025-10-28 21:35:43,113 - INFO - VN ctest-vn4-65033394 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-28 21:35:43,113 - DEBUG - Verifying the vn in opserver 2025-10-28 21:35:43,114 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-96485814:ctest-vn4-65033394 virtual network link through opserver 10.0.0.50 2025-10-28 21:35:43,114 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-10-28 21:35:43,403 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-10-28 21:35:43,458 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-96485814:ctest-vn4-65033394', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-96485814:ctest-vn4-65033394?flat'} 2025-10-28 21:35:43,458 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-96485814:ctest-vn4-65033394 is found in opserver 2025-10-28 21:35:43,467 - DEBUG - Do not have enough data to verify VN in agent 2025-10-28 21:35:43,471 - DEBUG - VRF ids for VN ctest-vn4-65033394: {} 2025-10-28 21:35:43,472 - DEBUG - ====Verifying data for ctest-policy1-84219407 in API_Server ====== 2025-10-28 21:35:43,472 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-10-28 21:35:43,477 - DEBUG - Requesting: http://10.0.0.50:8082/domain/1e82cc31-586f-421e-8cb3-f0fd1a180994 2025-10-28 21:35:43,487 - DEBUG - Requesting: http://10.0.0.50:8082/project/0994d69c-8070-4643-9989-30ce921087b9 2025-10-28 21:35:43,549 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/7d892753-bb84-4707-bbfb-e97130af9dc6 2025-10-28 21:35:43,557 - INFO - Verified policy ctest-policy1-84219407 in API Server, Result: True 2025-10-28 21:35:43,558 - INFO - Done with setup and verification, moving onto test .. 2025-10-28 21:35:43,564 - INFO - Deleting VN ctest-vn4-65033394 2025-10-28 21:35:43,658 - DEBUG - Response for deleting network () 2025-10-28 21:35:43,658 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/1040d13b-5170-4b04-ace9-6575f80bceb9 2025-10-28 21:35:43,662 - DEBUG - Response Code: 404 2025-10-28 21:35:43,662 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-10-28 21:35:43,666 - DEBUG - Requesting: http://10.0.0.50:8082/domain/1e82cc31-586f-421e-8cb3-f0fd1a180994 2025-10-28 21:35:43,715 - DEBUG - Requesting: http://10.0.0.50:8082/project/0994d69c-8070-4643-9989-30ce921087b9 2025-10-28 21:35:43,784 - INFO - Validated that VN ctest-vn4-65033394 is not found in API Server 2025-10-28 21:35:43,792 - DEBUG - VN ctest-vn4-65033394 is not present in Agent 10.0.0.50 2025-10-28 21:35:43,792 - INFO - Validated that VN ctest-vn4-65033394 is not in any agent 2025-10-28 21:35:43,803 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-65033394 info 2025-10-28 21:35:43,824 - INFO - Deleted policy ctest-policy1-84219407 2025-10-28 21:35:43,991 - DEBUG - policy ctest-policy1-84219407 is not found in API Server 2025-10-28 21:35:44,248 - DEBUG - No XMPP flaps were noticed during the test