2025-09-11 12:07:42,818 - INFO - Domain Default found not creating 2025-09-11 12:07:42,985 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-18015050 not found, creating it 2025-09-11 12:07:43,454 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-18015050, ID : ff4d896b-fad8-4ece-a71f-b49a1cd6a6e8 2025-09-11 12:07:45,050 - INFO - ================================================================================ 2025-09-11 12:07:45,050 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-11 12:07:45,304 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-09-11 12:07:45,304 - INFO - Initial checks done. Running the testcase now 2025-09-11 12:07:45,304 - INFO - 2025-09-11 12:07:45,304 - INFO - ================================================================================ 2025-09-11 12:07:45,304 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-11 12:07:45,304 - 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-09-11 12:07:45,595 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-09-11 12:07:45,595 - INFO - Initial checks done. Running the testcase now 2025-09-11 12:07:45,595 - INFO - 2025-09-11 12:07:45,991 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-18015050:ctest-vn4-06016545, 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-18015050:ctest-vn4-06016545, 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-18015050:ctest-vn4-06016545, 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-18015050:ctest-vn4-06016545, 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-09-11 12:07:46,540 - DEBUG - Response for create_network : {'network': {'id': '2fd47b80-6b1d-4eef-a1a2-2d3d12bbd760', 'name': 'ctest-vn4-06016545', 'tenant_id': 'ff4d896bfad84ecea71fb49a1cd6a6e8', 'project_id': 'ff4d896bfad84ecea71fb49a1cd6a6e8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-18015050', 'ctest-vn4-06016545'], 'port_security_enabled': True, 'description': ''}} 2025-09-11 12:07:46,733 - DEBUG - Response for create_subnet : {'subnet': {'id': '44a7daeb-d88c-4baf-9e21-276b818aba12', 'name': '', 'tenant_id': 'ff4d896bfad84ecea71fb49a1cd6a6e8', 'network_id': '2fd47b80-6b1d-4eef-a1a2-2d3d12bbd760', 'ip_version': 4, 'cidr': '157.105.221.64/26', 'allocation_pools': [{'start': '157.105.221.66', 'end': '157.105.221.126'}], 'gateway_ip': '157.105.221.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '157.105.221.66', 'tags': [], 'project_id': 'ff4d896bfad84ecea71fb49a1cd6a6e8'}} 2025-09-11 12:07:46,887 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b3e49467-5061-4062-a7f3-d1df8441e972', 'name': '', 'tenant_id': 'ff4d896bfad84ecea71fb49a1cd6a6e8', 'network_id': '2fd47b80-6b1d-4eef-a1a2-2d3d12bbd760', 'ip_version': 6, 'cidr': '372f:1686:90a8:795b:5151:de61::/96', 'allocation_pools': [{'start': '372f:1686:90a8:795b:5151:de61:0:2', 'end': '372f:1686:90a8:795b:5151:de61:ffff:fffe'}], 'gateway_ip': '372f:1686:90a8:795b:5151:de61:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '372f:1686:90a8:795b:5151:de61:0:2', 'tags': [], 'project_id': 'ff4d896bfad84ecea71fb49a1cd6a6e8'}} 2025-09-11 12:07:46,913 - INFO - Created VN ctest-vn4-06016545 2025-09-11 12:07:46,965 - DEBUG - VN ctest-vn4-06016545 UUID is 2fd47b80-6b1d-4eef-a1a2-2d3d12bbd760 2025-09-11 12:07:47,181 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2fd47b80-6b1d-4eef-a1a2-2d3d12bbd760', 'name': 'ctest-vn4-06016545', 'tenant_id': 'ff4d896bfad84ecea71fb49a1cd6a6e8', 'project_id': 'ff4d896bfad84ecea71fb49a1cd6a6e8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['44a7daeb-d88c-4baf-9e21-276b818aba12', 'b3e49467-5061-4062-a7f3-d1df8441e972'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-18015050', 'ctest-vn4-06016545'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-18015050', 'ctest-policy1-97064521']], 'subnet_ipam': [{'subnet_cidr': '157.105.221.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '372f:1686:90a8:795b:5151:de61::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-09-11 12:07:47,338 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-09-11 12:07:47,673 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-09-11 12:07:47,710 - DEBUG - Requesting: http://10.0.0.254:8082/domain/cd9d092e-c11e-476c-bc01-0f7503265805 2025-09-11 12:07:47,726 - DEBUG - Requesting: http://10.0.0.254:8082/project/ff4d896b-fad8-4ece-a71f-b49a1cd6a6e8 2025-09-11 12:07:47,805 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/2fd47b80-6b1d-4eef-a1a2-2d3d12bbd760 2025-09-11 12:07:47,819 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/2fd47b80-6b1d-4eef-a1a2-2d3d12bbd760 2025-09-11 12:07:47,828 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/c34d9e2a-1287-4ee0-88a0-48e70575adcf 2025-09-11 12:07:47,837 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/c34d9e2a-1287-4ee0-88a0-48e70575adcf 2025-09-11 12:07:47,844 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/d76b307f-1aba-460c-9321-b329119b1f44 2025-09-11 12:07:47,850 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-11 12:07:47,850 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/2fd47b80-6b1d-4eef-a1a2-2d3d12bbd760 2025-09-11 12:07:47,859 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/c34d9e2a-1287-4ee0-88a0-48e70575adcf 2025-09-11 12:07:47,872 - INFO - Verified VN network id 11 for VN 2fd47b80-6b1d-4eef-a1a2-2d3d12bbd760 2025-09-11 12:07:47,872 - INFO - Verifications in API Server for VN ctest-vn4-06016545 passed 2025-09-11 12:07:47,872 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/2fd47b80-6b1d-4eef-a1a2-2d3d12bbd760 2025-09-11 12:07:47,881 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/c34d9e2a-1287-4ee0-88a0-48e70575adcf 2025-09-11 12:07:47,887 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/c34d9e2a-1287-4ee0-88a0-48e70575adcf 2025-09-11 12:07:47,893 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/d76b307f-1aba-460c-9321-b329119b1f44 2025-09-11 12:07:47,905 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-18015050:ctest-vn4-06016545', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-18015050', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3446515406328385263', 'uuid-lslong': '11646921326664079200'}, 'enable': 'true', 'created': '2025-09-11T12:07:46', 'last-modified': '2025-09-11T12:07:47', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.756753'} 2025-09-11 12:07:47,911 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-11 12:07:47,911 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-06016545 passed 2025-09-11 12:07:47,911 - DEBUG - ====Verifying policy data for ctest-vn4-06016545 in API_Server ====== 2025-09-11 12:07:47,912 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-09-11 12:07:47,917 - DEBUG - Requesting: http://10.0.0.254:8082/domain/cd9d092e-c11e-476c-bc01-0f7503265805 2025-09-11 12:07:47,928 - DEBUG - Requesting: http://10.0.0.254:8082/project/ff4d896b-fad8-4ece-a71f-b49a1cd6a6e8 2025-09-11 12:07:48,001 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/2fd47b80-6b1d-4eef-a1a2-2d3d12bbd760 2025-09-11 12:07:48,012 - DEBUG - ==>Verifying data for policy with id: 2e9550bd-664a-4fdd-a136-7f969de17b44, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-18015050', 'ctest-policy1-97064521'] 2025-09-11 12:07:48,012 - INFO - VN ctest-vn4-06016545 Policy verification: verify_vn_policy_in_api_server, status: True 2025-09-11 12:07:48,012 - DEBUG - Verifying the vn in opserver 2025-09-11 12:07:48,012 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-18015050:ctest-vn4-06016545 virtual network link through opserver 10.0.0.254 2025-09-11 12:07:48,013 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-09-11 12:07:48,345 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-09-11 12:07:48,411 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-18015050:ctest-vn4-06016545', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-18015050:ctest-vn4-06016545?flat'} 2025-09-11 12:07:48,412 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-18015050:ctest-vn4-06016545 is found in opserver 2025-09-11 12:07:48,422 - DEBUG - Do not have enough data to verify VN in agent 2025-09-11 12:07:48,428 - DEBUG - VRF ids for VN ctest-vn4-06016545: {} 2025-09-11 12:07:48,429 - DEBUG - ====Verifying data for ctest-policy1-97064521 in API_Server ====== 2025-09-11 12:07:48,429 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-09-11 12:07:48,435 - DEBUG - Requesting: http://10.0.0.254:8082/domain/cd9d092e-c11e-476c-bc01-0f7503265805 2025-09-11 12:07:48,446 - DEBUG - Requesting: http://10.0.0.254:8082/project/ff4d896b-fad8-4ece-a71f-b49a1cd6a6e8 2025-09-11 12:07:48,520 - DEBUG - Requesting: http://10.0.0.254:8082/network-policy/2e9550bd-664a-4fdd-a136-7f969de17b44 2025-09-11 12:07:48,531 - INFO - Verified policy ctest-policy1-97064521 in API Server, Result: True 2025-09-11 12:07:48,531 - INFO - Done with setup and verification, moving onto test .. 2025-09-11 12:07:48,538 - INFO - Deleting VN ctest-vn4-06016545 2025-09-11 12:07:48,650 - DEBUG - Response for deleting network () 2025-09-11 12:07:48,650 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/c34d9e2a-1287-4ee0-88a0-48e70575adcf 2025-09-11 12:07:48,655 - DEBUG - Response Code: 404 2025-09-11 12:07:48,655 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-09-11 12:07:48,660 - DEBUG - Requesting: http://10.0.0.254:8082/domain/cd9d092e-c11e-476c-bc01-0f7503265805 2025-09-11 12:07:48,716 - DEBUG - Requesting: http://10.0.0.254:8082/project/ff4d896b-fad8-4ece-a71f-b49a1cd6a6e8 2025-09-11 12:07:48,786 - INFO - Validated that VN ctest-vn4-06016545 is not found in API Server 2025-09-11 12:07:48,796 - DEBUG - VN ctest-vn4-06016545 is not present in Agent 10.0.0.254 2025-09-11 12:07:48,796 - INFO - Validated that VN ctest-vn4-06016545 is not in any agent 2025-09-11 12:07:48,810 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-06016545 info 2025-09-11 12:07:48,832 - INFO - Deleted policy ctest-policy1-97064521 2025-09-11 12:07:49,001 - DEBUG - policy ctest-policy1-97064521 is not found in API Server 2025-09-11 12:07:49,254 - DEBUG - No XMPP flaps were noticed during the test 2025-09-11 12:07:49,255 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-09-11 12:07:49,255 - INFO - -------------------------------------------------------------------------------- 2025-09-11 12:07:49,547 - DEBUG - No XMPP flaps were noticed during the test 2025-09-11 12:07:49,547 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-09-11 12:07:49,547 - INFO - -------------------------------------------------------------------------------- 2025-09-11 12:07:50,293 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-18015050, ID : ff4d896b-fad8-4ece-a71f-b49a1cd6a6e8