2026-08-25 08:27:41,901 - INFO - Domain Default found not creating 2026-08-25 08:27:42,077 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-52440635 not found, creating it 2026-08-25 08:27:42,575 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-52440635, ID : cc62faf2-cf13-427e-8a6c-6edce4ff9c39 2026-08-25 08:27:44,145 - INFO - ================================================================================ 2026-08-25 08:27:44,145 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-08-25 08:27:44,414 - DEBUG - Nothing to compare xmpp stats {'10.0.0.185': {'10.20.0.25': '0'}} with 2026-08-25 08:27:44,414 - INFO - Initial checks done. Running the testcase now 2026-08-25 08:27:44,414 - INFO - 2026-08-25 08:27:44,414 - INFO - ================================================================================ 2026-08-25 08:27:44,414 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-08-25 08:27:44,414 - 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-08-25 08:27:44,713 - DEBUG - Nothing to compare xmpp stats {'10.0.0.185': {'10.20.0.25': '0'}} with 2026-08-25 08:27:44,713 - INFO - Initial checks done. Running the testcase now 2026-08-25 08:27:44,713 - INFO - 2026-08-25 08:27:45,099 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-52440635:ctest-vn4-27760035, 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-52440635:ctest-vn4-27760035, 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-52440635:ctest-vn4-27760035, 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-52440635:ctest-vn4-27760035, 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-08-25 08:27:45,650 - DEBUG - Response for create_network : {'network': {'id': '801d96ca-795f-44b6-9428-166bb0ac6b93', 'name': 'ctest-vn4-27760035', 'tenant_id': 'cc62faf2cf13427e8a6c6edce4ff9c39', 'project_id': 'cc62faf2cf13427e8a6c6edce4ff9c39', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-52440635', 'ctest-vn4-27760035'], 'port_security_enabled': True, 'description': ''}} 2026-08-25 08:27:45,824 - DEBUG - Response for create_subnet : {'subnet': {'id': '8004174e-d87a-4fef-b7e8-52a85ef3f7b0', 'name': '', 'tenant_id': 'cc62faf2cf13427e8a6c6edce4ff9c39', 'network_id': '801d96ca-795f-44b6-9428-166bb0ac6b93', 'ip_version': 4, 'cidr': '159.40.233.192/26', 'allocation_pools': [{'start': '159.40.233.194', 'end': '159.40.233.254'}], 'gateway_ip': '159.40.233.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '159.40.233.194', 'tags': [], 'project_id': 'cc62faf2cf13427e8a6c6edce4ff9c39'}} 2026-08-25 08:27:46,047 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cb65d93b-13e7-4982-8acb-257bb1f83696', 'name': '', 'tenant_id': 'cc62faf2cf13427e8a6c6edce4ff9c39', 'network_id': '801d96ca-795f-44b6-9428-166bb0ac6b93', 'ip_version': 6, 'cidr': '2a0f:46f4:94cd:9e14:b948:9915::/96', 'allocation_pools': [{'start': '2a0f:46f4:94cd:9e14:b948:9915:0:2', 'end': '2a0f:46f4:94cd:9e14:b948:9915:ffff:fffe'}], 'gateway_ip': '2a0f:46f4:94cd:9e14:b948:9915:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2a0f:46f4:94cd:9e14:b948:9915:0:2', 'tags': [], 'project_id': 'cc62faf2cf13427e8a6c6edce4ff9c39'}} 2026-08-25 08:27:46,066 - INFO - Created VN ctest-vn4-27760035 2026-08-25 08:27:46,119 - DEBUG - VN ctest-vn4-27760035 UUID is 801d96ca-795f-44b6-9428-166bb0ac6b93 2026-08-25 08:27:46,345 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '801d96ca-795f-44b6-9428-166bb0ac6b93', 'name': 'ctest-vn4-27760035', 'tenant_id': 'cc62faf2cf13427e8a6c6edce4ff9c39', 'project_id': 'cc62faf2cf13427e8a6c6edce4ff9c39', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['8004174e-d87a-4fef-b7e8-52a85ef3f7b0', 'cb65d93b-13e7-4982-8acb-257bb1f83696'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-52440635', 'ctest-vn4-27760035'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-52440635', 'ctest-policy1-16109674']], 'subnet_ipam': [{'subnet_cidr': '159.40.233.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2a0f:46f4:94cd:9e14:b948:9915::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-08-25 08:27:46,507 - DEBUG - Requesting: http://10.0.0.185:8082/domains 2026-08-25 08:27:46,831 - DEBUG - Requesting: http://10.0.0.185:8082/domains 2026-08-25 08:27:46,860 - DEBUG - Requesting: http://10.0.0.185:8082/domain/126f7144-136b-4926-a8f5-7d8835c99790 2026-08-25 08:27:46,875 - DEBUG - Requesting: http://10.0.0.185:8082/project/cc62faf2-cf13-427e-8a6c-6edce4ff9c39 2026-08-25 08:27:46,961 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/801d96ca-795f-44b6-9428-166bb0ac6b93 2026-08-25 08:27:46,974 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/801d96ca-795f-44b6-9428-166bb0ac6b93 2026-08-25 08:27:46,986 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/4a7974ea-8025-4dca-8e14-45a37f3e58c4 2026-08-25 08:27:46,996 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/4a7974ea-8025-4dca-8e14-45a37f3e58c4 2026-08-25 08:27:47,003 - DEBUG - Requesting: http://10.0.0.185:8082/route-target/aad466c5-1488-4c42-a52f-6fdf473d27c5 2026-08-25 08:27:47,010 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-08-25 08:27:47,011 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/801d96ca-795f-44b6-9428-166bb0ac6b93 2026-08-25 08:27:47,022 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/4a7974ea-8025-4dca-8e14-45a37f3e58c4 2026-08-25 08:27:47,039 - INFO - Verified VN network id 11 for VN 801d96ca-795f-44b6-9428-166bb0ac6b93 2026-08-25 08:27:47,039 - INFO - Verifications in API Server for VN ctest-vn4-27760035 passed 2026-08-25 08:27:47,040 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/801d96ca-795f-44b6-9428-166bb0ac6b93 2026-08-25 08:27:47,049 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/4a7974ea-8025-4dca-8e14-45a37f3e58c4 2026-08-25 08:27:47,057 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/4a7974ea-8025-4dca-8e14-45a37f3e58c4 2026-08-25 08:27:47,063 - DEBUG - Requesting: http://10.0.0.185:8082/route-target/aad466c5-1488-4c42-a52f-6fdf473d27c5 2026-08-25 08:27:47,077 - DEBUG - Control-node 10.0.0.185 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-52440635:ctest-vn4-27760035', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-52440635', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9231700607543231670', 'uuid-lslong': '10675807568463162259'}, 'enable': 'true', 'created': '2026-08-25T08:27:45', 'last-modified': '2026-08-25T08:27:46', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.771148'} 2026-08-25 08:27:47,083 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-08-25 08:27:47,083 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-27760035 passed 2026-08-25 08:27:47,083 - DEBUG - ====Verifying policy data for ctest-vn4-27760035 in API_Server ====== 2026-08-25 08:27:47,083 - DEBUG - Requesting: http://10.0.0.185:8082/domains 2026-08-25 08:27:47,090 - DEBUG - Requesting: http://10.0.0.185:8082/domain/126f7144-136b-4926-a8f5-7d8835c99790 2026-08-25 08:27:47,101 - DEBUG - Requesting: http://10.0.0.185:8082/project/cc62faf2-cf13-427e-8a6c-6edce4ff9c39 2026-08-25 08:27:47,181 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/801d96ca-795f-44b6-9428-166bb0ac6b93 2026-08-25 08:27:47,193 - DEBUG - ==>Verifying data for policy with id: 596f5337-79d3-44e5-bce8-0af97524385c, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-52440635', 'ctest-policy1-16109674'] 2026-08-25 08:27:47,193 - INFO - VN ctest-vn4-27760035 Policy verification: verify_vn_policy_in_api_server, status: True 2026-08-25 08:27:47,193 - DEBUG - Verifying the vn in opserver 2026-08-25 08:27:47,193 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-52440635:ctest-vn4-27760035 virtual network link through opserver 10.0.0.185 2026-08-25 08:27:47,193 - DEBUG - Requesting: http://10.0.0.185:8081/analytics/uves/virtual-networks 2026-08-25 08:27:47,512 - DEBUG - Requesting: http://10.0.0.185:8081/analytics/uves/virtual-networks 2026-08-25 08:27:47,564 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-52440635:ctest-vn4-27760035', 'href': 'http://10.0.0.185:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-52440635:ctest-vn4-27760035?flat'} 2026-08-25 08:27:47,564 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-52440635:ctest-vn4-27760035 is found in opserver 2026-08-25 08:27:47,579 - DEBUG - Do not have enough data to verify VN in agent 2026-08-25 08:27:47,585 - DEBUG - VRF ids for VN ctest-vn4-27760035: {} 2026-08-25 08:27:47,586 - DEBUG - ====Verifying data for ctest-policy1-16109674 in API_Server ====== 2026-08-25 08:27:47,586 - DEBUG - Requesting: http://10.0.0.185:8082/domains 2026-08-25 08:27:47,593 - DEBUG - Requesting: http://10.0.0.185:8082/domain/126f7144-136b-4926-a8f5-7d8835c99790 2026-08-25 08:27:47,605 - DEBUG - Requesting: http://10.0.0.185:8082/project/cc62faf2-cf13-427e-8a6c-6edce4ff9c39 2026-08-25 08:27:47,681 - DEBUG - Requesting: http://10.0.0.185:8082/network-policy/596f5337-79d3-44e5-bce8-0af97524385c 2026-08-25 08:27:47,692 - INFO - Verified policy ctest-policy1-16109674 in API Server, Result: True 2026-08-25 08:27:47,692 - INFO - Done with setup and verification, moving onto test .. 2026-08-25 08:27:47,702 - INFO - Deleting VN ctest-vn4-27760035 2026-08-25 08:27:47,843 - DEBUG - Response for deleting network () 2026-08-25 08:27:47,843 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/4a7974ea-8025-4dca-8e14-45a37f3e58c4 2026-08-25 08:27:47,850 - DEBUG - Response Code: 404 2026-08-25 08:27:47,850 - DEBUG - Requesting: http://10.0.0.185:8082/domains 2026-08-25 08:27:47,857 - DEBUG - Requesting: http://10.0.0.185:8082/domain/126f7144-136b-4926-a8f5-7d8835c99790 2026-08-25 08:27:47,912 - DEBUG - Requesting: http://10.0.0.185:8082/project/cc62faf2-cf13-427e-8a6c-6edce4ff9c39 2026-08-25 08:27:47,988 - INFO - Validated that VN ctest-vn4-27760035 is not found in API Server 2026-08-25 08:27:48,002 - DEBUG - VN ctest-vn4-27760035 is not present in Agent 10.0.0.185 2026-08-25 08:27:48,002 - INFO - Validated that VN ctest-vn4-27760035 is not in any agent 2026-08-25 08:27:48,020 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-27760035 info 2026-08-25 08:27:48,051 - INFO - Deleted policy ctest-policy1-16109674 2026-08-25 08:27:48,227 - DEBUG - policy ctest-policy1-16109674 is not found in API Server 2026-08-25 08:27:48,499 - DEBUG - No XMPP flaps were noticed during the test
2026-08-25 08:27:48,499 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-08-25 08:27:48,499 - INFO - -------------------------------------------------------------------------------- 2026-08-25 08:27:48,795 - DEBUG - No XMPP flaps were noticed during the test
2026-08-25 08:27:48,795 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-08-25 08:27:48,795 - INFO - -------------------------------------------------------------------------------- 2026-08-25 08:27:49,560 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-52440635, ID : cc62faf2-cf13-427e-8a6c-6edce4ff9c39