2026-01-29 02:10:10,752 - INFO - Domain Default found not creating 2026-01-29 02:10:10,912 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-58451279 not found, creating it 2026-01-29 02:10:11,372 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-58451279, ID : 33c80803-dd84-4430-ba94-74403937c357 2026-01-29 02:10:12,994 - INFO - ================================================================================ 2026-01-29 02:10:12,994 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-29 02:10:13,253 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.192': '0'}} with 2026-01-29 02:10:13,253 - INFO - Initial checks done. Running the testcase now 2026-01-29 02:10:13,253 - INFO - 2026-01-29 02:10:13,253 - INFO - ================================================================================ 2026-01-29 02:10:13,253 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-29 02:10:13,253 - 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-29 02:10:13,544 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.192': '0'}} with 2026-01-29 02:10:13,544 - INFO - Initial checks done. Running the testcase now 2026-01-29 02:10:13,544 - INFO - 2026-01-29 02:10:13,952 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-58451279:ctest-vn4-10819534, 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-58451279:ctest-vn4-10819534, 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-58451279:ctest-vn4-10819534, 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-58451279:ctest-vn4-10819534, 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-29 02:10:14,520 - DEBUG - Response for create_network : {'network': {'id': 'b71c1a80-6233-48f3-b593-e8e8cce4f20e', 'name': 'ctest-vn4-10819534', 'tenant_id': '33c80803dd844430ba9474403937c357', 'project_id': '33c80803dd844430ba9474403937c357', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-58451279', 'ctest-vn4-10819534'], 'port_security_enabled': True, 'description': ''}} 2026-01-29 02:10:14,723 - DEBUG - Response for create_subnet : {'subnet': {'id': '3e80eea8-e834-495f-8685-af5155b9ca53', 'name': '', 'tenant_id': '33c80803dd844430ba9474403937c357', 'network_id': 'b71c1a80-6233-48f3-b593-e8e8cce4f20e', 'ip_version': 4, 'cidr': '75.122.195.64/26', 'allocation_pools': [{'start': '75.122.195.66', 'end': '75.122.195.126'}], 'gateway_ip': '75.122.195.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '75.122.195.66', 'tags': [], 'project_id': '33c80803dd844430ba9474403937c357'}} 2026-01-29 02:10:14,941 - DEBUG - Response for create_subnet : {'subnet': {'id': '93e75f01-0e69-4391-b150-e3d2310e55a1', 'name': '', 'tenant_id': '33c80803dd844430ba9474403937c357', 'network_id': 'b71c1a80-6233-48f3-b593-e8e8cce4f20e', 'ip_version': 6, 'cidr': '3b5b:d875:b18:7854:d1d1:42d9::/96', 'allocation_pools': [{'start': '3b5b:d875:b18:7854:d1d1:42d9:0:2', 'end': '3b5b:d875:b18:7854:d1d1:42d9:ffff:fffe'}], 'gateway_ip': '3b5b:d875:b18:7854:d1d1:42d9:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3b5b:d875:b18:7854:d1d1:42d9:0:2', 'tags': [], 'project_id': '33c80803dd844430ba9474403937c357'}} 2026-01-29 02:10:14,962 - INFO - Created VN ctest-vn4-10819534 2026-01-29 02:10:15,015 - DEBUG - VN ctest-vn4-10819534 UUID is b71c1a80-6233-48f3-b593-e8e8cce4f20e 2026-01-29 02:10:15,229 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b71c1a80-6233-48f3-b593-e8e8cce4f20e', 'name': 'ctest-vn4-10819534', 'tenant_id': '33c80803dd844430ba9474403937c357', 'project_id': '33c80803dd844430ba9474403937c357', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3e80eea8-e834-495f-8685-af5155b9ca53', '93e75f01-0e69-4391-b150-e3d2310e55a1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-58451279', 'ctest-vn4-10819534'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-58451279', 'ctest-policy1-40064558']], 'subnet_ipam': [{'subnet_cidr': '75.122.195.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3b5b:d875:b18:7854:d1d1:42d9::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-01-29 02:10:15,395 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-01-29 02:10:15,730 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-01-29 02:10:15,762 - DEBUG - Requesting: http://10.0.0.50:8082/domain/8a86c72d-4f9c-48b6-9254-1943b01cb590 2026-01-29 02:10:15,776 - DEBUG - Requesting: http://10.0.0.50:8082/project/33c80803-dd84-4430-ba94-74403937c357 2026-01-29 02:10:15,844 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/b71c1a80-6233-48f3-b593-e8e8cce4f20e 2026-01-29 02:10:15,856 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/b71c1a80-6233-48f3-b593-e8e8cce4f20e 2026-01-29 02:10:15,866 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/da7cd835-79c5-4d0e-806e-878d7ede0770 2026-01-29 02:10:15,873 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/da7cd835-79c5-4d0e-806e-878d7ede0770 2026-01-29 02:10:15,880 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/40f6872f-f1b1-458f-99b0-627b120421e1 2026-01-29 02:10:15,887 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-29 02:10:15,887 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/b71c1a80-6233-48f3-b593-e8e8cce4f20e 2026-01-29 02:10:15,897 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/da7cd835-79c5-4d0e-806e-878d7ede0770 2026-01-29 02:10:15,912 - INFO - Verified VN network id 11 for VN b71c1a80-6233-48f3-b593-e8e8cce4f20e 2026-01-29 02:10:15,912 - INFO - Verifications in API Server for VN ctest-vn4-10819534 passed 2026-01-29 02:10:15,913 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/b71c1a80-6233-48f3-b593-e8e8cce4f20e 2026-01-29 02:10:15,923 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/da7cd835-79c5-4d0e-806e-878d7ede0770 2026-01-29 02:10:15,930 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/da7cd835-79c5-4d0e-806e-878d7ede0770 2026-01-29 02:10:15,937 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/40f6872f-f1b1-458f-99b0-627b120421e1 2026-01-29 02:10:15,949 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-58451279:ctest-vn4-10819534', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-58451279', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13194450146994374899', 'uuid-lslong': '13084057429009035790'}, 'enable': 'true', 'created': '2026-01-29T02:10:14', 'last-modified': '2026-01-29T02:10:15', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.753250'} 2026-01-29 02:10:15,955 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-29 02:10:15,955 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-10819534 passed 2026-01-29 02:10:15,955 - DEBUG - ====Verifying policy data for ctest-vn4-10819534 in API_Server ====== 2026-01-29 02:10:15,956 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-01-29 02:10:15,961 - DEBUG - Requesting: http://10.0.0.50:8082/domain/8a86c72d-4f9c-48b6-9254-1943b01cb590 2026-01-29 02:10:15,972 - DEBUG - Requesting: http://10.0.0.50:8082/project/33c80803-dd84-4430-ba94-74403937c357 2026-01-29 02:10:16,043 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/b71c1a80-6233-48f3-b593-e8e8cce4f20e 2026-01-29 02:10:16,052 - DEBUG - ==>Verifying data for policy with id: 937fcea0-5a37-4d7e-84a6-eafdb45e8f7e, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-58451279', 'ctest-policy1-40064558'] 2026-01-29 02:10:16,052 - INFO - VN ctest-vn4-10819534 Policy verification: verify_vn_policy_in_api_server, status: True 2026-01-29 02:10:16,052 - DEBUG - Verifying the vn in opserver 2026-01-29 02:10:16,052 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-58451279:ctest-vn4-10819534 virtual network link through opserver 10.0.0.50 2026-01-29 02:10:16,053 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-01-29 02:10:16,386 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-01-29 02:10:16,455 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-58451279:ctest-vn4-10819534', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-58451279:ctest-vn4-10819534?flat'} 2026-01-29 02:10:16,456 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-58451279:ctest-vn4-10819534 is found in opserver 2026-01-29 02:10:16,465 - DEBUG - Do not have enough data to verify VN in agent 2026-01-29 02:10:16,470 - DEBUG - VRF ids for VN ctest-vn4-10819534: {} 2026-01-29 02:10:16,470 - DEBUG - ====Verifying data for ctest-policy1-40064558 in API_Server ====== 2026-01-29 02:10:16,470 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-01-29 02:10:16,476 - DEBUG - Requesting: http://10.0.0.50:8082/domain/8a86c72d-4f9c-48b6-9254-1943b01cb590 2026-01-29 02:10:16,490 - DEBUG - Requesting: http://10.0.0.50:8082/project/33c80803-dd84-4430-ba94-74403937c357 2026-01-29 02:10:16,575 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/937fcea0-5a37-4d7e-84a6-eafdb45e8f7e 2026-01-29 02:10:16,585 - INFO - Verified policy ctest-policy1-40064558 in API Server, Result: True 2026-01-29 02:10:16,585 - INFO - Done with setup and verification, moving onto test .. 2026-01-29 02:10:16,595 - INFO - Deleting VN ctest-vn4-10819534 2026-01-29 02:10:16,724 - DEBUG - Response for deleting network () 2026-01-29 02:10:16,724 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/da7cd835-79c5-4d0e-806e-878d7ede0770 2026-01-29 02:10:16,730 - DEBUG - Response Code: 404 2026-01-29 02:10:16,730 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-01-29 02:10:16,735 - DEBUG - Requesting: http://10.0.0.50:8082/domain/8a86c72d-4f9c-48b6-9254-1943b01cb590 2026-01-29 02:10:16,788 - DEBUG - Requesting: http://10.0.0.50:8082/project/33c80803-dd84-4430-ba94-74403937c357 2026-01-29 02:10:16,859 - INFO - Validated that VN ctest-vn4-10819534 is not found in API Server 2026-01-29 02:10:16,869 - DEBUG - VN ctest-vn4-10819534 is not present in Agent 10.0.0.50 2026-01-29 02:10:16,870 - INFO - Validated that VN ctest-vn4-10819534 is not in any agent 2026-01-29 02:10:16,883 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-10819534 info 2026-01-29 02:10:16,908 - INFO - Deleted policy ctest-policy1-40064558 2026-01-29 02:10:17,075 - DEBUG - policy ctest-policy1-40064558 is not found in API Server 2026-01-29 02:10:17,329 - DEBUG - No XMPP flaps were noticed during the test
2026-01-29 02:10:17,329 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-01-29 02:10:17,329 - INFO - -------------------------------------------------------------------------------- 2026-01-29 02:10:17,617 - DEBUG - No XMPP flaps were noticed during the test
2026-01-29 02:10:17,617 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-01-29 02:10:17,617 - INFO - -------------------------------------------------------------------------------- 2026-01-29 02:10:18,346 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-58451279, ID : 33c80803-dd84-4430-ba94-74403937c357