2026-01-06 09:15:25,756 - INFO - Domain Default found not creating 2026-01-06 09:15:25,908 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-73384158 not found, creating it 2026-01-06 09:15:26,343 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-73384158, ID : 3c22766b-37e2-4c73-826a-b84907488ea7 2026-01-06 09:15:27,747 - INFO - ================================================================================ 2026-01-06 09:15:27,747 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-06 09:15:28,000 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-01-06 09:15:28,001 - INFO - Initial checks done. Running the testcase now 2026-01-06 09:15:28,001 - INFO - 2026-01-06 09:15:28,001 - INFO - ================================================================================ 2026-01-06 09:15:28,001 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-06 09:15:28,001 - 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. 2026-01-06 09:15:28,288 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-01-06 09:15:28,288 - INFO - Initial checks done. Running the testcase now 2026-01-06 09:15:28,288 - INFO - 2026-01-06 09:15:28,631 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-73384158:ctest-vn4-55808251, 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-73384158:ctest-vn4-55808251, 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-73384158:ctest-vn4-55808251, 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-73384158:ctest-vn4-55808251, 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] 2026-01-06 09:15:29,124 - DEBUG - Response for create_network : {'network': {'id': '87b2e77c-3cae-46c3-9894-ac1d08e37510', 'name': 'ctest-vn4-55808251', 'tenant_id': '3c22766b37e24c73826ab84907488ea7', 'project_id': '3c22766b37e24c73826ab84907488ea7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-73384158', 'ctest-vn4-55808251'], 'port_security_enabled': True, 'description': ''}} 2026-01-06 09:15:29,320 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b88229af-b9c2-41d0-8dca-9731c778783a', 'name': '', 'tenant_id': '3c22766b37e24c73826ab84907488ea7', 'network_id': '87b2e77c-3cae-46c3-9894-ac1d08e37510', 'ip_version': 4, 'cidr': '202.107.196.192/26', 'allocation_pools': [{'start': '202.107.196.194', 'end': '202.107.196.254'}], 'gateway_ip': '202.107.196.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '202.107.196.194', 'tags': [], 'project_id': '3c22766b37e24c73826ab84907488ea7'}} 2026-01-06 09:15:29,511 - DEBUG - Response for create_subnet : {'subnet': {'id': '96108597-03f6-43e9-addd-79331dc615cc', 'name': '', 'tenant_id': '3c22766b37e24c73826ab84907488ea7', 'network_id': '87b2e77c-3cae-46c3-9894-ac1d08e37510', 'ip_version': 6, 'cidr': '22ba:4b4:869b:5f26:1ed9:8521::/96', 'allocation_pools': [{'start': '22ba:4b4:869b:5f26:1ed9:8521:0:2', 'end': '22ba:4b4:869b:5f26:1ed9:8521:ffff:fffe'}], 'gateway_ip': '22ba:4b4:869b:5f26:1ed9:8521:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '22ba:4b4:869b:5f26:1ed9:8521:0:2', 'tags': [], 'project_id': '3c22766b37e24c73826ab84907488ea7'}} 2026-01-06 09:15:29,531 - INFO - Created VN ctest-vn4-55808251 2026-01-06 09:15:29,584 - DEBUG - VN ctest-vn4-55808251 UUID is 87b2e77c-3cae-46c3-9894-ac1d08e37510 2026-01-06 09:15:29,777 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '87b2e77c-3cae-46c3-9894-ac1d08e37510', 'name': 'ctest-vn4-55808251', 'tenant_id': '3c22766b37e24c73826ab84907488ea7', 'project_id': '3c22766b37e24c73826ab84907488ea7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b88229af-b9c2-41d0-8dca-9731c778783a', '96108597-03f6-43e9-addd-79331dc615cc'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-73384158', 'ctest-vn4-55808251'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-73384158', 'ctest-policy1-49305672']], 'subnet_ipam': [{'subnet_cidr': '202.107.196.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '22ba:4b4:869b:5f26:1ed9:8521::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-01-06 09:15:29,944 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-01-06 09:15:30,233 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-01-06 09:15:30,263 - DEBUG - Requesting: http://10.0.0.38:8082/domain/fc2257cf-d573-4534-bfb0-b13b1227927c 2026-01-06 09:15:30,273 - DEBUG - Requesting: http://10.0.0.38:8082/project/3c22766b-37e2-4c73-826a-b84907488ea7 2026-01-06 09:15:30,343 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/87b2e77c-3cae-46c3-9894-ac1d08e37510 2026-01-06 09:15:30,354 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/87b2e77c-3cae-46c3-9894-ac1d08e37510 2026-01-06 09:15:30,363 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/45737a2c-e574-431c-a653-07622ad18aa2 2026-01-06 09:15:30,370 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/45737a2c-e574-431c-a653-07622ad18aa2 2026-01-06 09:15:30,377 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/b947b032-569e-4623-8a26-9f1e6cc8cfd9 2026-01-06 09:15:30,383 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-06 09:15:30,383 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/87b2e77c-3cae-46c3-9894-ac1d08e37510 2026-01-06 09:15:30,393 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/45737a2c-e574-431c-a653-07622ad18aa2 2026-01-06 09:15:30,407 - INFO - Verified VN network id 12 for VN 87b2e77c-3cae-46c3-9894-ac1d08e37510 2026-01-06 09:15:30,408 - INFO - Verifications in API Server for VN ctest-vn4-55808251 passed 2026-01-06 09:15:30,408 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/87b2e77c-3cae-46c3-9894-ac1d08e37510 2026-01-06 09:15:30,416 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/45737a2c-e574-431c-a653-07622ad18aa2 2026-01-06 09:15:30,422 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/45737a2c-e574-431c-a653-07622ad18aa2 2026-01-06 09:15:30,428 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/b947b032-569e-4623-8a26-9f1e6cc8cfd9 2026-01-06 09:15:30,439 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-73384158:ctest-vn4-55808251', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-73384158', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9778132261754783427', 'uuid-lslong': '10994601831021376784'}, 'enable': 'true', 'created': '2026-01-06T09:15:29', 'last-modified': '2026-01-06T09:15:29', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.689544'} 2026-01-06 09:15:30,445 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-06 09:15:30,445 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-55808251 passed 2026-01-06 09:15:30,445 - DEBUG - ====Verifying policy data for ctest-vn4-55808251 in API_Server ====== 2026-01-06 09:15:30,445 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-01-06 09:15:30,450 - DEBUG - Requesting: http://10.0.0.38:8082/domain/fc2257cf-d573-4534-bfb0-b13b1227927c 2026-01-06 09:15:30,463 - DEBUG - Requesting: http://10.0.0.38:8082/project/3c22766b-37e2-4c73-826a-b84907488ea7 2026-01-06 09:15:30,533 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/87b2e77c-3cae-46c3-9894-ac1d08e37510 2026-01-06 09:15:30,543 - DEBUG - ==>Verifying data for policy with id: 5fbdd578-69f3-40d9-91bc-15ba9897d56d, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-73384158', 'ctest-policy1-49305672'] 2026-01-06 09:15:30,544 - INFO - VN ctest-vn4-55808251 Policy verification: verify_vn_policy_in_api_server, status: True 2026-01-06 09:15:30,544 - DEBUG - Verifying the vn in opserver 2026-01-06 09:15:30,544 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-73384158:ctest-vn4-55808251 virtual network link through opserver 10.0.0.38 2026-01-06 09:15:30,544 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-01-06 09:15:30,833 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-01-06 09:15:30,897 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-73384158:ctest-vn4-55808251', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-73384158:ctest-vn4-55808251?flat'} 2026-01-06 09:15:30,897 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-73384158:ctest-vn4-55808251 is found in opserver 2026-01-06 09:15:30,906 - DEBUG - Do not have enough data to verify VN in agent 2026-01-06 09:15:30,910 - DEBUG - VRF ids for VN ctest-vn4-55808251: {} 2026-01-06 09:15:30,911 - DEBUG - ====Verifying data for ctest-policy1-49305672 in API_Server ====== 2026-01-06 09:15:30,911 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-01-06 09:15:30,916 - DEBUG - Requesting: http://10.0.0.38:8082/domain/fc2257cf-d573-4534-bfb0-b13b1227927c 2026-01-06 09:15:30,926 - DEBUG - Requesting: http://10.0.0.38:8082/project/3c22766b-37e2-4c73-826a-b84907488ea7 2026-01-06 09:15:30,993 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/5fbdd578-69f3-40d9-91bc-15ba9897d56d 2026-01-06 09:15:31,001 - INFO - Verified policy ctest-policy1-49305672 in API Server, Result: True 2026-01-06 09:15:31,001 - INFO - Done with setup and verification, moving onto test .. 2026-01-06 09:15:31,008 - INFO - Deleting VN ctest-vn4-55808251 2026-01-06 09:15:31,127 - DEBUG - Response for deleting network () 2026-01-06 09:15:31,127 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/45737a2c-e574-431c-a653-07622ad18aa2 2026-01-06 09:15:31,132 - DEBUG - Response Code: 404 2026-01-06 09:15:31,132 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-01-06 09:15:31,137 - DEBUG - Requesting: http://10.0.0.38:8082/domain/fc2257cf-d573-4534-bfb0-b13b1227927c 2026-01-06 09:15:31,192 - DEBUG - Requesting: http://10.0.0.38:8082/project/3c22766b-37e2-4c73-826a-b84907488ea7 2026-01-06 09:15:31,261 - INFO - Validated that VN ctest-vn4-55808251 is not found in API Server 2026-01-06 09:15:31,270 - DEBUG - VN ctest-vn4-55808251 is not present in Agent 10.0.0.38 2026-01-06 09:15:31,270 - INFO - Validated that VN ctest-vn4-55808251 is not in any agent 2026-01-06 09:15:31,284 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-55808251 info 2026-01-06 09:15:31,308 - INFO - Deleted policy ctest-policy1-49305672 2026-01-06 09:15:31,467 - DEBUG - policy ctest-policy1-49305672 is not found in API Server 2026-01-06 09:15:31,725 - DEBUG - No XMPP flaps were noticed during the test
2026-01-06 09:15:31,726 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:03]
2026-01-06 09:15:31,726 - INFO - -------------------------------------------------------------------------------- 2026-01-06 09:15:32,013 - DEBUG - No XMPP flaps were noticed during the test
2026-01-06 09:15:32,013 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-01-06 09:15:32,013 - INFO - -------------------------------------------------------------------------------- 2026-01-06 09:15:32,686 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-73384158, ID : 3c22766b-37e2-4c73-826a-b84907488ea7