2025-09-29 01:50:41,578 - INFO - Domain Default found not creating 2025-09-29 01:50:41,720 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-09172110 not found, creating it 2025-09-29 01:50:42,162 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-09172110, ID : 293a8e0c-8651-4e91-80bc-675643ecc820 2025-09-29 01:50:43,659 - INFO - ================================================================================ 2025-09-29 01:50:43,659 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-29 01:50:43,922 - DEBUG - Nothing to compare xmpp stats {'10.0.0.130': {'10.20.0.14': '0'}} with 2025-09-29 01:50:43,923 - INFO - Initial checks done. Running the testcase now 2025-09-29 01:50:43,923 - INFO - 2025-09-29 01:50:43,923 - INFO - ================================================================================ 2025-09-29 01:50:43,923 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-29 01:50:43,923 - 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-29 01:50:44,210 - DEBUG - Nothing to compare xmpp stats {'10.0.0.130': {'10.20.0.14': '0'}} with 2025-09-29 01:50:44,210 - INFO - Initial checks done. Running the testcase now 2025-09-29 01:50:44,210 - INFO - 2025-09-29 01:50:44,562 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-09172110:ctest-vn4-45653945, 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-09172110:ctest-vn4-45653945, 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-09172110:ctest-vn4-45653945, 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-09172110:ctest-vn4-45653945, 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-29 01:50:45,067 - DEBUG - Response for create_network : {'network': {'id': '94720fec-a2d4-4850-a3d3-4a1d46e6a766', 'name': 'ctest-vn4-45653945', 'tenant_id': '293a8e0c86514e9180bc675643ecc820', 'project_id': '293a8e0c86514e9180bc675643ecc820', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-09172110', 'ctest-vn4-45653945'], 'port_security_enabled': True, 'description': ''}} 2025-09-29 01:50:45,331 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e37019bf-513b-469a-a83d-a0d7033206e9', 'name': '', 'tenant_id': '293a8e0c86514e9180bc675643ecc820', 'network_id': '94720fec-a2d4-4850-a3d3-4a1d46e6a766', 'ip_version': 4, 'cidr': '17.198.107.0/26', 'allocation_pools': [{'start': '17.198.107.2', 'end': '17.198.107.62'}], 'gateway_ip': '17.198.107.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '17.198.107.2', 'tags': [], 'project_id': '293a8e0c86514e9180bc675643ecc820'}} 2025-09-29 01:50:45,470 - DEBUG - Response for create_subnet : {'subnet': {'id': '91a6f02e-c26f-49c6-af4b-057d199a0636', 'name': '', 'tenant_id': '293a8e0c86514e9180bc675643ecc820', 'network_id': '94720fec-a2d4-4850-a3d3-4a1d46e6a766', 'ip_version': 6, 'cidr': '31fb:275:4821:9aac:190c:fb9a::/96', 'allocation_pools': [{'start': '31fb:275:4821:9aac:190c:fb9a:0:2', 'end': '31fb:275:4821:9aac:190c:fb9a:ffff:fffe'}], 'gateway_ip': '31fb:275:4821:9aac:190c:fb9a:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '31fb:275:4821:9aac:190c:fb9a:0:2', 'tags': [], 'project_id': '293a8e0c86514e9180bc675643ecc820'}} 2025-09-29 01:50:45,489 - INFO - Created VN ctest-vn4-45653945 2025-09-29 01:50:45,542 - DEBUG - VN ctest-vn4-45653945 UUID is 94720fec-a2d4-4850-a3d3-4a1d46e6a766 2025-09-29 01:50:45,738 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '94720fec-a2d4-4850-a3d3-4a1d46e6a766', 'name': 'ctest-vn4-45653945', 'tenant_id': '293a8e0c86514e9180bc675643ecc820', 'project_id': '293a8e0c86514e9180bc675643ecc820', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e37019bf-513b-469a-a83d-a0d7033206e9', '91a6f02e-c26f-49c6-af4b-057d199a0636'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-09172110', 'ctest-vn4-45653945'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-09172110', 'ctest-policy1-41504973']], 'subnet_ipam': [{'subnet_cidr': '17.198.107.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '31fb:275:4821:9aac:190c:fb9a::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-09-29 01:50:45,894 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2025-09-29 01:50:46,192 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2025-09-29 01:50:46,220 - DEBUG - Requesting: http://10.0.0.130:8082/domain/137491c9-af0d-4881-aa86-970d73b1f58a 2025-09-29 01:50:46,231 - DEBUG - Requesting: http://10.0.0.130:8082/project/293a8e0c-8651-4e91-80bc-675643ecc820 2025-09-29 01:50:46,303 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/94720fec-a2d4-4850-a3d3-4a1d46e6a766 2025-09-29 01:50:46,315 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/94720fec-a2d4-4850-a3d3-4a1d46e6a766 2025-09-29 01:50:46,324 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/c52e08e6-9c77-48f1-a330-27a0917520ff 2025-09-29 01:50:46,330 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/c52e08e6-9c77-48f1-a330-27a0917520ff 2025-09-29 01:50:46,337 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/7dfc54b7-24fa-435a-a9c9-c8f1897ed3dc 2025-09-29 01:50:46,343 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-29 01:50:46,343 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/94720fec-a2d4-4850-a3d3-4a1d46e6a766 2025-09-29 01:50:46,352 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/c52e08e6-9c77-48f1-a330-27a0917520ff 2025-09-29 01:50:46,366 - INFO - Verified VN network id 11 for VN 94720fec-a2d4-4850-a3d3-4a1d46e6a766 2025-09-29 01:50:46,366 - INFO - Verifications in API Server for VN ctest-vn4-45653945 passed 2025-09-29 01:50:46,366 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/94720fec-a2d4-4850-a3d3-4a1d46e6a766 2025-09-29 01:50:46,376 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/c52e08e6-9c77-48f1-a330-27a0917520ff 2025-09-29 01:50:46,383 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/c52e08e6-9c77-48f1-a330-27a0917520ff 2025-09-29 01:50:46,390 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/7dfc54b7-24fa-435a-a9c9-c8f1897ed3dc 2025-09-29 01:50:46,404 - DEBUG - Control-node 10.0.0.130 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-09172110:ctest-vn4-45653945', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-09172110', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10696629573976868944', 'uuid-lslong': '11804860537872230246'}, 'enable': 'true', 'created': '2025-09-29T01:50:45', 'last-modified': '2025-09-29T01:50:45', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.686953'} 2025-09-29 01:50:46,410 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-29 01:50:46,410 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-45653945 passed 2025-09-29 01:50:46,410 - DEBUG - ====Verifying policy data for ctest-vn4-45653945 in API_Server ====== 2025-09-29 01:50:46,410 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2025-09-29 01:50:46,415 - DEBUG - Requesting: http://10.0.0.130:8082/domain/137491c9-af0d-4881-aa86-970d73b1f58a 2025-09-29 01:50:46,426 - DEBUG - Requesting: http://10.0.0.130:8082/project/293a8e0c-8651-4e91-80bc-675643ecc820 2025-09-29 01:50:46,493 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/94720fec-a2d4-4850-a3d3-4a1d46e6a766 2025-09-29 01:50:46,502 - DEBUG - ==>Verifying data for policy with id: 120e1bbc-10a0-4026-87d4-e4c02566aaee, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-09172110', 'ctest-policy1-41504973'] 2025-09-29 01:50:46,502 - INFO - VN ctest-vn4-45653945 Policy verification: verify_vn_policy_in_api_server, status: True 2025-09-29 01:50:46,502 - DEBUG - Verifying the vn in opserver 2025-09-29 01:50:46,502 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-09172110:ctest-vn4-45653945 virtual network link through opserver 10.0.0.130 2025-09-29 01:50:46,502 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks 2025-09-29 01:50:46,796 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks 2025-09-29 01:50:46,851 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-09172110:ctest-vn4-45653945', 'href': 'http://10.0.0.130:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-09172110:ctest-vn4-45653945?flat'} 2025-09-29 01:50:46,851 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-09172110:ctest-vn4-45653945 is found in opserver 2025-09-29 01:50:46,860 - DEBUG - Do not have enough data to verify VN in agent 2025-09-29 01:50:46,864 - DEBUG - VRF ids for VN ctest-vn4-45653945: {} 2025-09-29 01:50:46,865 - DEBUG - ====Verifying data for ctest-policy1-41504973 in API_Server ====== 2025-09-29 01:50:46,865 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2025-09-29 01:50:46,870 - DEBUG - Requesting: http://10.0.0.130:8082/domain/137491c9-af0d-4881-aa86-970d73b1f58a 2025-09-29 01:50:46,880 - DEBUG - Requesting: http://10.0.0.130:8082/project/293a8e0c-8651-4e91-80bc-675643ecc820 2025-09-29 01:50:46,948 - DEBUG - Requesting: http://10.0.0.130:8082/network-policy/120e1bbc-10a0-4026-87d4-e4c02566aaee 2025-09-29 01:50:46,956 - INFO - Verified policy ctest-policy1-41504973 in API Server, Result: True 2025-09-29 01:50:46,956 - INFO - Done with setup and verification, moving onto test .. 2025-09-29 01:50:46,963 - INFO - Deleting VN ctest-vn4-45653945 2025-09-29 01:50:47,074 - DEBUG - Response for deleting network () 2025-09-29 01:50:47,074 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/c52e08e6-9c77-48f1-a330-27a0917520ff 2025-09-29 01:50:47,080 - DEBUG - Response Code: 404 2025-09-29 01:50:47,081 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2025-09-29 01:50:47,085 - DEBUG - Requesting: http://10.0.0.130:8082/domain/137491c9-af0d-4881-aa86-970d73b1f58a 2025-09-29 01:50:47,139 - DEBUG - Requesting: http://10.0.0.130:8082/project/293a8e0c-8651-4e91-80bc-675643ecc820 2025-09-29 01:50:47,208 - INFO - Validated that VN ctest-vn4-45653945 is not found in API Server 2025-09-29 01:50:47,217 - DEBUG - VN ctest-vn4-45653945 is not present in Agent 10.0.0.130 2025-09-29 01:50:47,217 - INFO - Validated that VN ctest-vn4-45653945 is not in any agent 2025-09-29 01:50:47,230 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-45653945 info 2025-09-29 01:50:47,256 - INFO - Deleted policy ctest-policy1-41504973 2025-09-29 01:50:47,422 - DEBUG - policy ctest-policy1-41504973 is not found in API Server 2025-09-29 01:50:47,675 - DEBUG - No XMPP flaps were noticed during the test