2025-12-15 02:09:44,924 - INFO - Domain Default found not creating 2025-12-15 02:09:45,080 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-39188618 not found, creating it 2025-12-15 02:09:45,521 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-39188618, ID : b4aed481-9302-4edc-8d10-abfe660065ea 2025-12-15 02:09:46,928 - INFO - ================================================================================ 2025-12-15 02:09:46,928 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-12-15 02:09:47,187 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.17': '0'}} with 2025-12-15 02:09:47,187 - INFO - Initial checks done. Running the testcase now 2025-12-15 02:09:47,187 - INFO - 2025-12-15 02:09:47,187 - INFO - ================================================================================ 2025-12-15 02:09:47,187 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-12-15 02:09:47,187 - 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-12-15 02:09:47,475 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.17': '0'}} with 2025-12-15 02:09:47,475 - INFO - Initial checks done. Running the testcase now 2025-12-15 02:09:47,475 - INFO - 2025-12-15 02:09:47,819 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-39188618:ctest-vn4-83572737, 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-39188618:ctest-vn4-83572737, 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-39188618:ctest-vn4-83572737, 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-39188618:ctest-vn4-83572737, 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-12-15 02:09:48,305 - DEBUG - Response for create_network : {'network': {'id': 'dc807da2-a36d-4d76-ab56-a43adf749515', 'name': 'ctest-vn4-83572737', 'tenant_id': 'b4aed48193024edc8d10abfe660065ea', 'project_id': 'b4aed48193024edc8d10abfe660065ea', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-39188618', 'ctest-vn4-83572737'], 'port_security_enabled': True, 'description': ''}} 2025-12-15 02:09:48,502 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b269c2b4-f4c5-4ec5-8ef5-5a56a778063f', 'name': '', 'tenant_id': 'b4aed48193024edc8d10abfe660065ea', 'network_id': 'dc807da2-a36d-4d76-ab56-a43adf749515', 'ip_version': 4, 'cidr': '152.90.113.192/26', 'allocation_pools': [{'start': '152.90.113.194', 'end': '152.90.113.254'}], 'gateway_ip': '152.90.113.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '152.90.113.194', 'tags': [], 'project_id': 'b4aed48193024edc8d10abfe660065ea'}} 2025-12-15 02:09:48,693 - DEBUG - Response for create_subnet : {'subnet': {'id': '956a3f60-fd57-442d-bf94-d7413d0f293d', 'name': '', 'tenant_id': 'b4aed48193024edc8d10abfe660065ea', 'network_id': 'dc807da2-a36d-4d76-ab56-a43adf749515', 'ip_version': 6, 'cidr': '21df:899f:efb9:a9a5:8091:8784::/96', 'allocation_pools': [{'start': '21df:899f:efb9:a9a5:8091:8784:0:2', 'end': '21df:899f:efb9:a9a5:8091:8784:ffff:fffe'}], 'gateway_ip': '21df:899f:efb9:a9a5:8091:8784:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '21df:899f:efb9:a9a5:8091:8784:0:2', 'tags': [], 'project_id': 'b4aed48193024edc8d10abfe660065ea'}} 2025-12-15 02:09:48,709 - INFO - Created VN ctest-vn4-83572737 2025-12-15 02:09:48,758 - DEBUG - VN ctest-vn4-83572737 UUID is dc807da2-a36d-4d76-ab56-a43adf749515 2025-12-15 02:09:48,939 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'dc807da2-a36d-4d76-ab56-a43adf749515', 'name': 'ctest-vn4-83572737', 'tenant_id': 'b4aed48193024edc8d10abfe660065ea', 'project_id': 'b4aed48193024edc8d10abfe660065ea', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b269c2b4-f4c5-4ec5-8ef5-5a56a778063f', '956a3f60-fd57-442d-bf94-d7413d0f293d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-39188618', 'ctest-vn4-83572737'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-39188618', 'ctest-policy1-41607625']], 'subnet_ipam': [{'subnet_cidr': '152.90.113.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '21df:899f:efb9:a9a5:8091:8784::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-12-15 02:09:49,098 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-12-15 02:09:49,390 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-12-15 02:09:49,418 - DEBUG - Requesting: http://10.0.0.141:8082/domain/3c5bd4c5-e0fa-476f-b476-0bfe0230bd5a 2025-12-15 02:09:49,430 - DEBUG - Requesting: http://10.0.0.141:8082/project/b4aed481-9302-4edc-8d10-abfe660065ea 2025-12-15 02:09:49,499 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/dc807da2-a36d-4d76-ab56-a43adf749515 2025-12-15 02:09:49,509 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/dc807da2-a36d-4d76-ab56-a43adf749515 2025-12-15 02:09:49,518 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/114a8771-cd6a-491c-b464-9eaa7ba97194 2025-12-15 02:09:49,524 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/114a8771-cd6a-491c-b464-9eaa7ba97194 2025-12-15 02:09:49,529 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/659db30e-427d-435d-b684-30f4b0c6b444 2025-12-15 02:09:49,534 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-15 02:09:49,534 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/dc807da2-a36d-4d76-ab56-a43adf749515 2025-12-15 02:09:49,541 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/114a8771-cd6a-491c-b464-9eaa7ba97194 2025-12-15 02:09:49,551 - INFO - Verified VN network id 12 for VN dc807da2-a36d-4d76-ab56-a43adf749515 2025-12-15 02:09:49,551 - INFO - Verifications in API Server for VN ctest-vn4-83572737 passed 2025-12-15 02:09:49,551 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/dc807da2-a36d-4d76-ab56-a43adf749515 2025-12-15 02:09:49,559 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/114a8771-cd6a-491c-b464-9eaa7ba97194 2025-12-15 02:09:49,563 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/114a8771-cd6a-491c-b464-9eaa7ba97194 2025-12-15 02:09:49,585 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/659db30e-427d-435d-b684-30f4b0c6b444 2025-12-15 02:09:49,596 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-39188618:ctest-vn4-83572737', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-39188618', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15888837622843133302', 'uuid-lslong': '12346236001246811413'}, 'enable': 'true', 'created': '2025-12-15T02:09:48', 'last-modified': '2025-12-15T02:09:48', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.681167'} 2025-12-15 02:09:49,604 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-15 02:09:49,604 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-83572737 passed 2025-12-15 02:09:49,604 - DEBUG - ====Verifying policy data for ctest-vn4-83572737 in API_Server ====== 2025-12-15 02:09:49,604 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-12-15 02:09:49,608 - DEBUG - Requesting: http://10.0.0.141:8082/domain/3c5bd4c5-e0fa-476f-b476-0bfe0230bd5a 2025-12-15 02:09:49,616 - DEBUG - Requesting: http://10.0.0.141:8082/project/b4aed481-9302-4edc-8d10-abfe660065ea 2025-12-15 02:09:49,682 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/dc807da2-a36d-4d76-ab56-a43adf749515 2025-12-15 02:09:49,690 - DEBUG - ==>Verifying data for policy with id: 019e3921-f787-4683-83fa-ddd411390661, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-39188618', 'ctest-policy1-41607625'] 2025-12-15 02:09:49,690 - INFO - VN ctest-vn4-83572737 Policy verification: verify_vn_policy_in_api_server, status: True 2025-12-15 02:09:49,690 - DEBUG - Verifying the vn in opserver 2025-12-15 02:09:49,690 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-39188618:ctest-vn4-83572737 virtual network link through opserver 10.0.0.141 2025-12-15 02:09:49,690 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2025-12-15 02:09:49,982 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2025-12-15 02:09:50,036 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-39188618:ctest-vn4-83572737', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-39188618:ctest-vn4-83572737?flat'} 2025-12-15 02:09:50,036 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-39188618:ctest-vn4-83572737 is found in opserver 2025-12-15 02:09:50,044 - DEBUG - Do not have enough data to verify VN in agent 2025-12-15 02:09:50,048 - DEBUG - VRF ids for VN ctest-vn4-83572737: {} 2025-12-15 02:09:50,048 - DEBUG - ====Verifying data for ctest-policy1-41607625 in API_Server ====== 2025-12-15 02:09:50,048 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-12-15 02:09:50,053 - DEBUG - Requesting: http://10.0.0.141:8082/domain/3c5bd4c5-e0fa-476f-b476-0bfe0230bd5a 2025-12-15 02:09:50,062 - DEBUG - Requesting: http://10.0.0.141:8082/project/b4aed481-9302-4edc-8d10-abfe660065ea 2025-12-15 02:09:50,128 - DEBUG - Requesting: http://10.0.0.141:8082/network-policy/019e3921-f787-4683-83fa-ddd411390661 2025-12-15 02:09:50,136 - INFO - Verified policy ctest-policy1-41607625 in API Server, Result: True 2025-12-15 02:09:50,136 - INFO - Done with setup and verification, moving onto test .. 2025-12-15 02:09:50,142 - INFO - Deleting VN ctest-vn4-83572737 2025-12-15 02:09:50,246 - DEBUG - Response for deleting network () 2025-12-15 02:09:50,246 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/114a8771-cd6a-491c-b464-9eaa7ba97194 2025-12-15 02:09:50,250 - DEBUG - Response Code: 404 2025-12-15 02:09:50,250 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-12-15 02:09:50,254 - DEBUG - Requesting: http://10.0.0.141:8082/domain/3c5bd4c5-e0fa-476f-b476-0bfe0230bd5a 2025-12-15 02:09:50,308 - DEBUG - Requesting: http://10.0.0.141:8082/project/b4aed481-9302-4edc-8d10-abfe660065ea 2025-12-15 02:09:50,375 - INFO - Validated that VN ctest-vn4-83572737 is not found in API Server 2025-12-15 02:09:50,383 - DEBUG - VN ctest-vn4-83572737 is not present in Agent 10.0.0.141 2025-12-15 02:09:50,384 - INFO - Validated that VN ctest-vn4-83572737 is not in any agent 2025-12-15 02:09:50,396 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-83572737 info 2025-12-15 02:09:50,419 - INFO - Deleted policy ctest-policy1-41607625 2025-12-15 02:09:50,578 - DEBUG - policy ctest-policy1-41607625 is not found in API Server 2025-12-15 02:09:50,834 - DEBUG - No XMPP flaps were noticed during the test 2025-12-15 02:09:50,834 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:03] 2025-12-15 02:09:50,834 - INFO - -------------------------------------------------------------------------------- 2025-12-15 02:09:51,123 - DEBUG - No XMPP flaps were noticed during the test 2025-12-15 02:09:51,123 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2025-12-15 02:09:51,123 - INFO - -------------------------------------------------------------------------------- 2025-12-15 02:09:51,793 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-39188618, ID : b4aed481-9302-4edc-8d10-abfe660065ea