2026-12-01 12:24:45,040 - INFO - Domain Default found not creating 2026-12-01 12:24:45,227 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-35608675 not found, creating it 2026-12-01 12:24:45,904 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-35608675, ID : 7f276d07-6f89-4416-842e-ffc3d816cb86 2026-12-01 12:24:47,801 - INFO - ================================================================================ 2026-12-01 12:24:47,801 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-12-01 12:24:48,066 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-12-01 12:24:48,066 - INFO - Initial checks done. Running the testcase now 2026-12-01 12:24:48,066 - INFO - 2026-12-01 12:24:48,066 - INFO - ================================================================================ 2026-12-01 12:24:48,066 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-12-01 12:24:48,067 - 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-12-01 12:24:48,371 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-12-01 12:24:48,371 - INFO - Initial checks done. Running the testcase now 2026-12-01 12:24:48,371 - INFO - 2026-12-01 12:24:48,845 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-35608675:ctest-vn4-10639631, 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-35608675:ctest-vn4-10639631, 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-35608675:ctest-vn4-10639631, 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-35608675:ctest-vn4-10639631, 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-12-01 12:24:49,372 - DEBUG - Response for create_network : {'network': {'id': 'dbbbe335-ab9c-403a-8ab1-dd6c936329b1', 'name': 'ctest-vn4-10639631', 'tenant_id': '7f276d076f894416842effc3d816cb86', 'project_id': '7f276d076f894416842effc3d816cb86', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-35608675', 'ctest-vn4-10639631'], 'port_security_enabled': True, 'description': ''}} 2026-12-01 12:24:49,532 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b99f2749-de68-4617-a551-e24ad1634f0c', 'name': '', 'tenant_id': '7f276d076f894416842effc3d816cb86', 'network_id': 'dbbbe335-ab9c-403a-8ab1-dd6c936329b1', 'ip_version': 4, 'cidr': '161.48.44.0/26', 'allocation_pools': [{'start': '161.48.44.2', 'end': '161.48.44.62'}], 'gateway_ip': '161.48.44.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '161.48.44.2', 'tags': [], 'project_id': '7f276d076f894416842effc3d816cb86'}} 2026-12-01 12:24:49,736 - DEBUG - Response for create_subnet : {'subnet': {'id': '783f4a45-d644-45a4-bf54-b1d459b56b70', 'name': '', 'tenant_id': '7f276d076f894416842effc3d816cb86', 'network_id': 'dbbbe335-ab9c-403a-8ab1-dd6c936329b1', 'ip_version': 6, 'cidr': '2b7f:c7f:37a5:f8a0:fe28:687a::/96', 'allocation_pools': [{'start': '2b7f:c7f:37a5:f8a0:fe28:687a:0:2', 'end': '2b7f:c7f:37a5:f8a0:fe28:687a:ffff:fffe'}], 'gateway_ip': '2b7f:c7f:37a5:f8a0:fe28:687a:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2b7f:c7f:37a5:f8a0:fe28:687a:0:2', 'tags': [], 'project_id': '7f276d076f894416842effc3d816cb86'}} 2026-12-01 12:24:49,756 - INFO - Created VN ctest-vn4-10639631 2026-12-01 12:24:49,810 - DEBUG - VN ctest-vn4-10639631 UUID is dbbbe335-ab9c-403a-8ab1-dd6c936329b1 2026-12-01 12:24:50,016 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'dbbbe335-ab9c-403a-8ab1-dd6c936329b1', 'name': 'ctest-vn4-10639631', 'tenant_id': '7f276d076f894416842effc3d816cb86', 'project_id': '7f276d076f894416842effc3d816cb86', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['b99f2749-de68-4617-a551-e24ad1634f0c', '783f4a45-d644-45a4-bf54-b1d459b56b70'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-35608675', 'ctest-vn4-10639631'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-35608675', 'ctest-policy1-88417787']], 'subnet_ipam': [{'subnet_cidr': '161.48.44.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2b7f:c7f:37a5:f8a0:fe28:687a::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-12-01 12:24:50,186 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-12-01 12:24:50,598 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-12-01 12:24:50,627 - DEBUG - Requesting: http://10.0.0.38:8082/domain/55141dd9-d9d9-4c90-9761-15e7b5359877 2026-12-01 12:24:50,641 - DEBUG - Requesting: http://10.0.0.38:8082/project/7f276d07-6f89-4416-842e-ffc3d816cb86 2026-12-01 12:24:50,716 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/dbbbe335-ab9c-403a-8ab1-dd6c936329b1 2026-12-01 12:24:50,731 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/dbbbe335-ab9c-403a-8ab1-dd6c936329b1 2026-12-01 12:24:50,741 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/bc779df2-29cf-48ff-b261-9b86287d95c1 2026-12-01 12:24:50,749 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/bc779df2-29cf-48ff-b261-9b86287d95c1 2026-12-01 12:24:50,757 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/75d8f0c8-a6c3-45f9-96f2-0698b54d7252 2026-12-01 12:24:50,763 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-12-01 12:24:50,763 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/dbbbe335-ab9c-403a-8ab1-dd6c936329b1 2026-12-01 12:24:50,773 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/bc779df2-29cf-48ff-b261-9b86287d95c1 2026-12-01 12:24:50,788 - INFO - Verified VN network id 12 for VN dbbbe335-ab9c-403a-8ab1-dd6c936329b1 2026-12-01 12:24:50,788 - INFO - Verifications in API Server for VN ctest-vn4-10639631 passed 2026-12-01 12:24:50,788 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/dbbbe335-ab9c-403a-8ab1-dd6c936329b1 2026-12-01 12:24:50,798 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/bc779df2-29cf-48ff-b261-9b86287d95c1 2026-12-01 12:24:50,805 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/bc779df2-29cf-48ff-b261-9b86287d95c1 2026-12-01 12:24:50,812 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/75d8f0c8-a6c3-45f9-96f2-0698b54d7252 2026-12-01 12:24:50,825 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-35608675:ctest-vn4-10639631', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-35608675', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15833498734603026490', 'uuid-lslong': '9994012506510797233'}, 'enable': 'true', 'created': '2026-12-01T12:24:49', 'last-modified': '2026-12-01T12:24:49', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.846438'} 2026-12-01 12:24:50,832 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-12-01 12:24:50,832 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-10639631 passed 2026-12-01 12:24:50,832 - DEBUG - ====Verifying policy data for ctest-vn4-10639631 in API_Server ====== 2026-12-01 12:24:50,832 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-12-01 12:24:50,838 - DEBUG - Requesting: http://10.0.0.38:8082/domain/55141dd9-d9d9-4c90-9761-15e7b5359877 2026-12-01 12:24:50,848 - DEBUG - Requesting: http://10.0.0.38:8082/project/7f276d07-6f89-4416-842e-ffc3d816cb86 2026-12-01 12:24:50,921 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/dbbbe335-ab9c-403a-8ab1-dd6c936329b1 2026-12-01 12:24:50,932 - DEBUG - ==>Verifying data for policy with id: ea0f9801-533b-49e8-8fd1-1aa1c01eb09b, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-35608675', 'ctest-policy1-88417787'] 2026-12-01 12:24:50,932 - INFO - VN ctest-vn4-10639631 Policy verification: verify_vn_policy_in_api_server, status: True 2026-12-01 12:24:50,932 - DEBUG - Verifying the vn in opserver 2026-12-01 12:24:50,933 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-35608675:ctest-vn4-10639631 virtual network link through opserver 10.0.0.38 2026-12-01 12:24:50,933 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-12-01 12:24:51,292 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-12-01 12:24:51,349 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-35608675:ctest-vn4-10639631', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-35608675:ctest-vn4-10639631?flat'} 2026-12-01 12:24:51,349 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-35608675:ctest-vn4-10639631 is found in opserver 2026-12-01 12:24:51,364 - DEBUG - Do not have enough data to verify VN in agent 2026-12-01 12:24:51,369 - DEBUG - VRF ids for VN ctest-vn4-10639631: {} 2026-12-01 12:24:51,369 - DEBUG - ====Verifying data for ctest-policy1-88417787 in API_Server ====== 2026-12-01 12:24:51,370 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-12-01 12:24:51,375 - DEBUG - Requesting: http://10.0.0.38:8082/domain/55141dd9-d9d9-4c90-9761-15e7b5359877 2026-12-01 12:24:51,385 - DEBUG - Requesting: http://10.0.0.38:8082/project/7f276d07-6f89-4416-842e-ffc3d816cb86 2026-12-01 12:24:51,465 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/ea0f9801-533b-49e8-8fd1-1aa1c01eb09b 2026-12-01 12:24:51,477 - INFO - Verified policy ctest-policy1-88417787 in API Server, Result: True 2026-12-01 12:24:51,477 - INFO - Done with setup and verification, moving onto test .. 2026-12-01 12:24:51,487 - INFO - Deleting VN ctest-vn4-10639631 2026-12-01 12:24:51,611 - DEBUG - Response for deleting network () 2026-12-01 12:24:51,611 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/bc779df2-29cf-48ff-b261-9b86287d95c1 2026-12-01 12:24:51,617 - DEBUG - Response Code: 404 2026-12-01 12:24:51,617 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-12-01 12:24:51,622 - DEBUG - Requesting: http://10.0.0.38:8082/domain/55141dd9-d9d9-4c90-9761-15e7b5359877 2026-12-01 12:24:51,675 - DEBUG - Requesting: http://10.0.0.38:8082/project/7f276d07-6f89-4416-842e-ffc3d816cb86 2026-12-01 12:24:51,751 - INFO - Validated that VN ctest-vn4-10639631 is not found in API Server 2026-12-01 12:24:51,766 - DEBUG - VN ctest-vn4-10639631 is not present in Agent 10.0.0.38 2026-12-01 12:24:51,766 - INFO - Validated that VN ctest-vn4-10639631 is not in any agent 2026-12-01 12:24:51,783 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-10639631 info 2026-12-01 12:24:51,810 - INFO - Deleted policy ctest-policy1-88417787 2026-12-01 12:24:51,986 - DEBUG - policy ctest-policy1-88417787 is not found in API Server 2026-12-01 12:24:52,264 - DEBUG - No XMPP flaps were noticed during the test
2026-12-01 12:24:52,264 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-12-01 12:24:52,264 - INFO - -------------------------------------------------------------------------------- 2026-12-01 12:24:52,543 - DEBUG - No XMPP flaps were noticed during the test
2026-12-01 12:24:52,544 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-12-01 12:24:52,544 - INFO - -------------------------------------------------------------------------------- 2026-12-01 12:24:53,410 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-35608675, ID : 7f276d07-6f89-4416-842e-ffc3d816cb86