2025-10-09 23:01:11,372 - INFO - Domain Default found not creating 2025-10-09 23:01:11,492 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-50944114 not found, creating it 2025-10-09 23:01:11,908 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-50944114, ID : 865bb8a9-2c89-4551-b593-47ff3be1fa81 2025-10-09 23:01:13,228 - INFO - ================================================================================ 2025-10-09 23:01:13,228 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-09 23:01:13,477 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-10-09 23:01:13,477 - INFO - Initial checks done. Running the testcase now 2025-10-09 23:01:13,477 - INFO - 2025-10-09 23:01:13,477 - INFO - ================================================================================ 2025-10-09 23:01:13,477 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-09 23:01:13,477 - 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-09 23:01:13,764 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-10-09 23:01:13,764 - INFO - Initial checks done. Running the testcase now 2025-10-09 23:01:13,764 - INFO - 2025-10-09 23:01:14,108 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-50944114:ctest-vn4-55139849, 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-50944114:ctest-vn4-55139849, 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-50944114:ctest-vn4-55139849, 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-50944114:ctest-vn4-55139849, 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-09 23:01:14,576 - DEBUG - Response for create_network : {'network': {'id': '08b71bb3-b849-4c2b-abd8-cfed59730a64', 'name': 'ctest-vn4-55139849', 'tenant_id': '865bb8a92c894551b59347ff3be1fa81', 'project_id': '865bb8a92c894551b59347ff3be1fa81', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-50944114', 'ctest-vn4-55139849'], 'port_security_enabled': True, 'description': ''}} 2025-10-09 23:01:14,775 - DEBUG - Response for create_subnet : {'subnet': {'id': '11687d40-d169-4d1c-8b4f-5e3bf223c239', 'name': '', 'tenant_id': '865bb8a92c894551b59347ff3be1fa81', 'network_id': '08b71bb3-b849-4c2b-abd8-cfed59730a64', 'ip_version': 4, 'cidr': '5.55.196.0/26', 'allocation_pools': [{'start': '5.55.196.2', 'end': '5.55.196.62'}], 'gateway_ip': '5.55.196.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '5.55.196.2', 'tags': [], 'project_id': '865bb8a92c894551b59347ff3be1fa81'}} 2025-10-09 23:01:14,898 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c0801e1c-c889-4de0-9a1e-4300d1eaf54f', 'name': '', 'tenant_id': '865bb8a92c894551b59347ff3be1fa81', 'network_id': '08b71bb3-b849-4c2b-abd8-cfed59730a64', 'ip_version': 6, 'cidr': '2c69:4f13:15b0:d6c5:46c0:f389::/96', 'allocation_pools': [{'start': '2c69:4f13:15b0:d6c5:46c0:f389:0:2', 'end': '2c69:4f13:15b0:d6c5:46c0:f389:ffff:fffe'}], 'gateway_ip': '2c69:4f13:15b0:d6c5:46c0:f389:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2c69:4f13:15b0:d6c5:46c0:f389:0:2', 'tags': [], 'project_id': '865bb8a92c894551b59347ff3be1fa81'}} 2025-10-09 23:01:14,913 - INFO - Created VN ctest-vn4-55139849 2025-10-09 23:01:14,964 - DEBUG - VN ctest-vn4-55139849 UUID is 08b71bb3-b849-4c2b-abd8-cfed59730a64 2025-10-09 23:01:15,136 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '08b71bb3-b849-4c2b-abd8-cfed59730a64', 'name': 'ctest-vn4-55139849', 'tenant_id': '865bb8a92c894551b59347ff3be1fa81', 'project_id': '865bb8a92c894551b59347ff3be1fa81', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['11687d40-d169-4d1c-8b4f-5e3bf223c239', 'c0801e1c-c889-4de0-9a1e-4300d1eaf54f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-50944114', 'ctest-vn4-55139849'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-50944114', 'ctest-policy1-47649797']], 'subnet_ipam': [{'subnet_cidr': '5.55.196.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2c69:4f13:15b0:d6c5:46c0:f389::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-09 23:01:15,292 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-09 23:01:15,584 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-09 23:01:15,649 - DEBUG - Requesting: http://10.0.0.254:8082/domain/2427fbe1-e14c-4551-98d2-4af29752c8ae 2025-10-09 23:01:15,658 - DEBUG - Requesting: http://10.0.0.254:8082/project/865bb8a9-2c89-4551-b593-47ff3be1fa81 2025-10-09 23:01:15,728 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/08b71bb3-b849-4c2b-abd8-cfed59730a64 2025-10-09 23:01:15,737 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/08b71bb3-b849-4c2b-abd8-cfed59730a64 2025-10-09 23:01:15,744 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/1a3b5ce8-194b-4a87-8c44-fcfa6110ec0b 2025-10-09 23:01:15,750 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/1a3b5ce8-194b-4a87-8c44-fcfa6110ec0b 2025-10-09 23:01:15,754 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/98def8f7-14ca-4eb4-bbb5-4cd10126f943 2025-10-09 23:01:15,761 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-09 23:01:15,761 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/08b71bb3-b849-4c2b-abd8-cfed59730a64 2025-10-09 23:01:15,798 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/1a3b5ce8-194b-4a87-8c44-fcfa6110ec0b 2025-10-09 23:01:15,848 - INFO - Verified VN network id 11 for VN 08b71bb3-b849-4c2b-abd8-cfed59730a64 2025-10-09 23:01:15,848 - INFO - Verifications in API Server for VN ctest-vn4-55139849 passed 2025-10-09 23:01:15,848 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/08b71bb3-b849-4c2b-abd8-cfed59730a64 2025-10-09 23:01:15,856 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/1a3b5ce8-194b-4a87-8c44-fcfa6110ec0b 2025-10-09 23:01:15,862 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/1a3b5ce8-194b-4a87-8c44-fcfa6110ec0b 2025-10-09 23:01:15,867 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/98def8f7-14ca-4eb4-bbb5-4cd10126f943 2025-10-09 23:01:15,877 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-50944114:ctest-vn4-55139849', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-50944114', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '628001131746380843', 'uuid-lslong': '12382875793770089060'}, 'enable': 'true', 'created': '2025-10-09T23:01:14', 'last-modified': '2025-10-09T23:01:15', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.764512'} 2025-10-09 23:01:15,882 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-09 23:01:15,882 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-55139849 passed 2025-10-09 23:01:15,882 - DEBUG - ====Verifying policy data for ctest-vn4-55139849 in API_Server ====== 2025-10-09 23:01:15,882 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-09 23:01:15,886 - DEBUG - Requesting: http://10.0.0.254:8082/domain/2427fbe1-e14c-4551-98d2-4af29752c8ae 2025-10-09 23:01:15,894 - DEBUG - Requesting: http://10.0.0.254:8082/project/865bb8a9-2c89-4551-b593-47ff3be1fa81 2025-10-09 23:01:15,961 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/08b71bb3-b849-4c2b-abd8-cfed59730a64 2025-10-09 23:01:15,970 - DEBUG - ==>Verifying data for policy with id: da65f96e-6c65-4e3e-9228-a446fdfb1cd7, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-50944114', 'ctest-policy1-47649797'] 2025-10-09 23:01:15,970 - INFO - VN ctest-vn4-55139849 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-09 23:01:15,970 - DEBUG - Verifying the vn in opserver 2025-10-09 23:01:15,970 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-50944114:ctest-vn4-55139849 virtual network link through opserver 10.0.0.254 2025-10-09 23:01:15,970 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-10-09 23:01:16,256 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-10-09 23:01:16,300 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-50944114:ctest-vn4-55139849', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-50944114:ctest-vn4-55139849?flat'} 2025-10-09 23:01:16,300 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-50944114:ctest-vn4-55139849 is found in opserver 2025-10-09 23:01:16,307 - DEBUG - Do not have enough data to verify VN in agent 2025-10-09 23:01:16,311 - DEBUG - VRF ids for VN ctest-vn4-55139849: {} 2025-10-09 23:01:16,312 - DEBUG - ====Verifying data for ctest-policy1-47649797 in API_Server ====== 2025-10-09 23:01:16,312 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-09 23:01:16,316 - DEBUG - Requesting: http://10.0.0.254:8082/domain/2427fbe1-e14c-4551-98d2-4af29752c8ae 2025-10-09 23:01:16,324 - DEBUG - Requesting: http://10.0.0.254:8082/project/865bb8a9-2c89-4551-b593-47ff3be1fa81 2025-10-09 23:01:16,387 - DEBUG - Requesting: http://10.0.0.254:8082/network-policy/da65f96e-6c65-4e3e-9228-a446fdfb1cd7 2025-10-09 23:01:16,395 - INFO - Verified policy ctest-policy1-47649797 in API Server, Result: True 2025-10-09 23:01:16,395 - INFO - Done with setup and verification, moving onto test .. 2025-10-09 23:01:16,402 - INFO - Deleting VN ctest-vn4-55139849 2025-10-09 23:01:16,492 - DEBUG - Response for deleting network () 2025-10-09 23:01:16,492 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/1a3b5ce8-194b-4a87-8c44-fcfa6110ec0b 2025-10-09 23:01:16,496 - DEBUG - Response Code: 404 2025-10-09 23:01:16,496 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-09 23:01:16,500 - DEBUG - Requesting: http://10.0.0.254:8082/domain/2427fbe1-e14c-4551-98d2-4af29752c8ae 2025-10-09 23:01:16,548 - DEBUG - Requesting: http://10.0.0.254:8082/project/865bb8a9-2c89-4551-b593-47ff3be1fa81 2025-10-09 23:01:16,616 - INFO - Validated that VN ctest-vn4-55139849 is not found in API Server 2025-10-09 23:01:16,624 - DEBUG - VN ctest-vn4-55139849 is not present in Agent 10.0.0.254 2025-10-09 23:01:16,624 - INFO - Validated that VN ctest-vn4-55139849 is not in any agent 2025-10-09 23:01:16,636 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-55139849 info 2025-10-09 23:01:16,656 - INFO - Deleted policy ctest-policy1-47649797 2025-10-09 23:01:16,816 - DEBUG - policy ctest-policy1-47649797 is not found in API Server 2025-10-09 23:01:17,072 - DEBUG - No XMPP flaps were noticed during the test 2025-10-09 23:01:17,072 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-10-09 23:01:17,072 - INFO - -------------------------------------------------------------------------------- 2025-10-09 23:01:17,361 - DEBUG - No XMPP flaps were noticed during the test 2025-10-09 23:01:17,361 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-10-09 23:01:17,361 - INFO - -------------------------------------------------------------------------------- 2025-10-09 23:01:17,992 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-50944114, ID : 865bb8a9-2c89-4551-b593-47ff3be1fa81