2025-10-20 16:02:27,253 - INFO - Domain Default found not creating 2025-10-20 16:02:27,397 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-95382961 not found, creating it 2025-10-20 16:02:27,838 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-95382961, ID : 17d08745-98db-4c9b-b6d3-78be54138f9c 2025-10-20 16:02:29,232 - INFO - ================================================================================ 2025-10-20 16:02:29,233 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-20 16:02:29,485 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.18': '0'}} with 2025-10-20 16:02:29,485 - INFO - Initial checks done. Running the testcase now 2025-10-20 16:02:29,485 - INFO - 2025-10-20 16:02:29,485 - INFO - ================================================================================ 2025-10-20 16:02:29,485 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-20 16:02:29,485 - 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-20 16:02:29,774 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.18': '0'}} with 2025-10-20 16:02:29,774 - INFO - Initial checks done. Running the testcase now 2025-10-20 16:02:29,774 - INFO - 2025-10-20 16:02:30,148 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95382961:ctest-vn4-45822686, 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-95382961:ctest-vn4-45822686, 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-95382961:ctest-vn4-45822686, 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-95382961:ctest-vn4-45822686, 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-20 16:02:30,725 - DEBUG - Response for create_network : {'network': {'id': 'd01c25af-4356-46e1-900f-956baeff262b', 'name': 'ctest-vn4-45822686', 'tenant_id': '17d0874598db4c9bb6d378be54138f9c', 'project_id': '17d0874598db4c9bb6d378be54138f9c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-95382961', 'ctest-vn4-45822686'], 'port_security_enabled': True, 'description': ''}} 2025-10-20 16:02:30,900 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c6d4ee23-6234-414a-95ff-beb9f03586af', 'name': '', 'tenant_id': '17d0874598db4c9bb6d378be54138f9c', 'network_id': 'd01c25af-4356-46e1-900f-956baeff262b', 'ip_version': 4, 'cidr': '52.94.95.128/26', 'allocation_pools': [{'start': '52.94.95.130', 'end': '52.94.95.190'}], 'gateway_ip': '52.94.95.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '52.94.95.130', 'tags': [], 'project_id': '17d0874598db4c9bb6d378be54138f9c'}} 2025-10-20 16:02:31,108 - DEBUG - Response for create_subnet : {'subnet': {'id': '626841e3-5c6a-427c-a897-7d9d52207275', 'name': '', 'tenant_id': '17d0874598db4c9bb6d378be54138f9c', 'network_id': 'd01c25af-4356-46e1-900f-956baeff262b', 'ip_version': 6, 'cidr': '3fd6:9e8d:64be:5c60:82a1:d50f::/96', 'allocation_pools': [{'start': '3fd6:9e8d:64be:5c60:82a1:d50f:0:2', 'end': '3fd6:9e8d:64be:5c60:82a1:d50f:ffff:fffe'}], 'gateway_ip': '3fd6:9e8d:64be:5c60:82a1:d50f:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3fd6:9e8d:64be:5c60:82a1:d50f:0:2', 'tags': [], 'project_id': '17d0874598db4c9bb6d378be54138f9c'}} 2025-10-20 16:02:31,132 - INFO - Created VN ctest-vn4-45822686 2025-10-20 16:02:31,188 - DEBUG - VN ctest-vn4-45822686 UUID is d01c25af-4356-46e1-900f-956baeff262b 2025-10-20 16:02:31,423 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd01c25af-4356-46e1-900f-956baeff262b', 'name': 'ctest-vn4-45822686', 'tenant_id': '17d0874598db4c9bb6d378be54138f9c', 'project_id': '17d0874598db4c9bb6d378be54138f9c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c6d4ee23-6234-414a-95ff-beb9f03586af', '626841e3-5c6a-427c-a897-7d9d52207275'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-95382961', 'ctest-vn4-45822686'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-95382961', 'ctest-policy1-78337540']], 'subnet_ipam': [{'subnet_cidr': '52.94.95.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3fd6:9e8d:64be:5c60:82a1:d50f::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-20 16:02:31,596 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-10-20 16:02:31,912 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-10-20 16:02:31,952 - DEBUG - Requesting: http://10.0.0.19:8082/domain/77cd44c6-faac-4783-aa8b-343f83be2fef 2025-10-20 16:02:31,965 - DEBUG - Requesting: http://10.0.0.19:8082/project/17d08745-98db-4c9b-b6d3-78be54138f9c 2025-10-20 16:02:32,044 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/d01c25af-4356-46e1-900f-956baeff262b 2025-10-20 16:02:32,063 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/d01c25af-4356-46e1-900f-956baeff262b 2025-10-20 16:02:32,075 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/2be00a1c-1093-4bf0-810f-b86e7ef26d11 2025-10-20 16:02:32,084 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/2be00a1c-1093-4bf0-810f-b86e7ef26d11 2025-10-20 16:02:32,095 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/20405aff-fd84-4d47-b786-b08e4b505964 2025-10-20 16:02:32,104 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-20 16:02:32,104 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/d01c25af-4356-46e1-900f-956baeff262b 2025-10-20 16:02:32,117 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/2be00a1c-1093-4bf0-810f-b86e7ef26d11 2025-10-20 16:02:32,136 - INFO - Verified VN network id 10 for VN d01c25af-4356-46e1-900f-956baeff262b 2025-10-20 16:02:32,138 - INFO - Verifications in API Server for VN ctest-vn4-45822686 passed 2025-10-20 16:02:32,138 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/d01c25af-4356-46e1-900f-956baeff262b 2025-10-20 16:02:32,154 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/2be00a1c-1093-4bf0-810f-b86e7ef26d11 2025-10-20 16:02:32,163 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/2be00a1c-1093-4bf0-810f-b86e7ef26d11 2025-10-20 16:02:32,173 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/20405aff-fd84-4d47-b786-b08e4b505964 2025-10-20 16:02:32,188 - DEBUG - Control-node 10.0.0.19 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95382961:ctest-vn4-45822686', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-95382961', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14995902293916141281', 'uuid-lslong': '10380679955842278955'}, 'enable': 'true', 'created': '2025-10-20T16:02:30', 'last-modified': '2025-10-20T16:02:31', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.796905'} 2025-10-20 16:02:32,196 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-20 16:02:32,196 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-45822686 passed 2025-10-20 16:02:32,197 - DEBUG - ====Verifying policy data for ctest-vn4-45822686 in API_Server ====== 2025-10-20 16:02:32,197 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-10-20 16:02:32,204 - DEBUG - Requesting: http://10.0.0.19:8082/domain/77cd44c6-faac-4783-aa8b-343f83be2fef 2025-10-20 16:02:32,219 - DEBUG - Requesting: http://10.0.0.19:8082/project/17d08745-98db-4c9b-b6d3-78be54138f9c 2025-10-20 16:02:32,292 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/d01c25af-4356-46e1-900f-956baeff262b 2025-10-20 16:02:32,304 - DEBUG - ==>Verifying data for policy with id: 0f25ee8c-bc71-4a59-a73a-8ad3562205e1, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-95382961', 'ctest-policy1-78337540'] 2025-10-20 16:02:32,304 - INFO - VN ctest-vn4-45822686 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-20 16:02:32,304 - DEBUG - Verifying the vn in opserver 2025-10-20 16:02:32,304 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95382961:ctest-vn4-45822686 virtual network link through opserver 10.0.0.19 2025-10-20 16:02:32,304 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2025-10-20 16:02:32,599 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2025-10-20 16:02:32,661 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95382961:ctest-vn4-45822686', 'href': 'http://10.0.0.19:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95382961:ctest-vn4-45822686?flat'} 2025-10-20 16:02:32,662 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95382961:ctest-vn4-45822686 is found in opserver 2025-10-20 16:02:32,671 - DEBUG - Do not have enough data to verify VN in agent 2025-10-20 16:02:32,675 - DEBUG - VRF ids for VN ctest-vn4-45822686: {} 2025-10-20 16:02:32,676 - DEBUG - ====Verifying data for ctest-policy1-78337540 in API_Server ====== 2025-10-20 16:02:32,676 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-10-20 16:02:32,682 - DEBUG - Requesting: http://10.0.0.19:8082/domain/77cd44c6-faac-4783-aa8b-343f83be2fef 2025-10-20 16:02:32,692 - DEBUG - Requesting: http://10.0.0.19:8082/project/17d08745-98db-4c9b-b6d3-78be54138f9c 2025-10-20 16:02:32,763 - DEBUG - Requesting: http://10.0.0.19:8082/network-policy/0f25ee8c-bc71-4a59-a73a-8ad3562205e1 2025-10-20 16:02:32,772 - INFO - Verified policy ctest-policy1-78337540 in API Server, Result: True 2025-10-20 16:02:32,772 - INFO - Done with setup and verification, moving onto test .. 2025-10-20 16:02:32,837 - INFO - Deleting VN ctest-vn4-45822686 2025-10-20 16:02:32,943 - DEBUG - Response for deleting network () 2025-10-20 16:02:32,943 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/2be00a1c-1093-4bf0-810f-b86e7ef26d11 2025-10-20 16:02:32,947 - DEBUG - Response Code: 404 2025-10-20 16:02:32,948 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-10-20 16:02:32,953 - DEBUG - Requesting: http://10.0.0.19:8082/domain/77cd44c6-faac-4783-aa8b-343f83be2fef 2025-10-20 16:02:33,004 - DEBUG - Requesting: http://10.0.0.19:8082/project/17d08745-98db-4c9b-b6d3-78be54138f9c 2025-10-20 16:02:33,080 - INFO - Validated that VN ctest-vn4-45822686 is not found in API Server 2025-10-20 16:02:33,089 - DEBUG - VN ctest-vn4-45822686 is not present in Agent 10.0.0.19 2025-10-20 16:02:33,089 - INFO - Validated that VN ctest-vn4-45822686 is not in any agent 2025-10-20 16:02:33,101 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-45822686 info 2025-10-20 16:02:33,123 - INFO - Deleted policy ctest-policy1-78337540 2025-10-20 16:02:33,292 - DEBUG - policy ctest-policy1-78337540 is not found in API Server 2025-10-20 16:02:33,545 - DEBUG - No XMPP flaps were noticed during the test 2025-10-20 16:02:33,545 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-10-20 16:02:33,545 - INFO - -------------------------------------------------------------------------------- 2025-10-20 16:02:33,833 - DEBUG - No XMPP flaps were noticed during the test 2025-10-20 16:02:33,833 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-10-20 16:02:33,833 - INFO - -------------------------------------------------------------------------------- 2025-10-20 16:02:34,499 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-95382961, ID : 17d08745-98db-4c9b-b6d3-78be54138f9c