2026-06-08 11:01:51,707 - INFO - Domain Default found not creating 2026-06-08 11:01:51,862 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-94047209 not found, creating it 2026-06-08 11:01:52,448 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-94047209, ID : 8a078f0e-7f92-478b-a5c1-2cd89ca320ea 2026-06-08 11:01:54,359 - INFO - ================================================================================ 2026-06-08 11:01:54,359 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-08 11:01:55,649 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.14': '0', '10.20.0.25': '0'}, '10.0.0.19': {'10.20.0.254': '0', '10.20.0.25': '0'}} with 2026-06-08 11:01:55,650 - INFO - Initial checks done. Running the testcase now 2026-06-08 11:01:55,650 - INFO - 2026-06-08 11:01:55,650 - INFO - ================================================================================ 2026-06-08 11:01:55,651 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-08 11:01:55,651 - 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-06-08 11:01:56,934 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.14': '0', '10.20.0.25': '0'}, '10.0.0.19': {'10.20.0.254': '0', '10.20.0.25': '0'}} with 2026-06-08 11:01:56,934 - INFO - Initial checks done. Running the testcase now 2026-06-08 11:01:56,935 - INFO - 2026-06-08 11:01:57,298 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-94047209:ctest-vn4-37302625, 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-94047209:ctest-vn4-37302625, 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-94047209:ctest-vn4-37302625, 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-94047209:ctest-vn4-37302625, 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-06-08 11:01:57,909 - DEBUG - Response for create_network : {'network': {'id': 'dce07cfc-06a9-4870-9054-3fbd44cdeed3', 'name': 'ctest-vn4-37302625', 'tenant_id': '8a078f0e7f92478ba5c12cd89ca320ea', 'project_id': '8a078f0e7f92478ba5c12cd89ca320ea', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-94047209', 'ctest-vn4-37302625'], 'port_security_enabled': True, 'description': ''}} 2026-06-08 11:01:58,219 - DEBUG - Response for create_subnet : {'subnet': {'id': '8539c906-f6a8-4b4c-9c31-526411c4a38c', 'name': '', 'tenant_id': '8a078f0e7f92478ba5c12cd89ca320ea', 'network_id': 'dce07cfc-06a9-4870-9054-3fbd44cdeed3', 'ip_version': 4, 'cidr': '185.173.133.64/26', 'allocation_pools': [{'start': '185.173.133.66', 'end': '185.173.133.126'}], 'gateway_ip': '185.173.133.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '185.173.133.66', 'tags': [], 'project_id': '8a078f0e7f92478ba5c12cd89ca320ea'}} 2026-06-08 11:01:58,471 - DEBUG - Response for create_subnet : {'subnet': {'id': '706d92f4-8e35-45a2-a0e6-f0258f0caf85', 'name': '', 'tenant_id': '8a078f0e7f92478ba5c12cd89ca320ea', 'network_id': 'dce07cfc-06a9-4870-9054-3fbd44cdeed3', 'ip_version': 6, 'cidr': '3959:db94:b99e:e9b3:2eb3:1021::/96', 'allocation_pools': [{'start': '3959:db94:b99e:e9b3:2eb3:1021:0:2', 'end': '3959:db94:b99e:e9b3:2eb3:1021:ffff:fffe'}], 'gateway_ip': '3959:db94:b99e:e9b3:2eb3:1021:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3959:db94:b99e:e9b3:2eb3:1021:0:2', 'tags': [], 'project_id': '8a078f0e7f92478ba5c12cd89ca320ea'}} 2026-06-08 11:01:58,494 - INFO - Created VN ctest-vn4-37302625 2026-06-08 11:01:58,505 - DEBUG - VN ctest-vn4-37302625 UUID is dce07cfc-06a9-4870-9054-3fbd44cdeed3 2026-06-08 11:01:58,717 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'dce07cfc-06a9-4870-9054-3fbd44cdeed3', 'name': 'ctest-vn4-37302625', 'tenant_id': '8a078f0e7f92478ba5c12cd89ca320ea', 'project_id': '8a078f0e7f92478ba5c12cd89ca320ea', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8539c906-f6a8-4b4c-9c31-526411c4a38c', '706d92f4-8e35-45a2-a0e6-f0258f0caf85'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-94047209', 'ctest-vn4-37302625'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-94047209', 'ctest-policy1-73363683']], 'subnet_ipam': [{'subnet_cidr': '185.173.133.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3959:db94:b99e:e9b3:2eb3:1021::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-06-08 11:01:58,810 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-06-08 11:01:59,103 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-06-08 11:01:59,139 - DEBUG - Requesting: http://10.0.0.38:8082/domain/3787ca8a-a083-410b-a8ff-2f021111eb93 2026-06-08 11:01:59,152 - DEBUG - Requesting: http://10.0.0.38:8082/project/8a078f0e-7f92-478b-a5c1-2cd89ca320ea 2026-06-08 11:01:59,249 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/dce07cfc-06a9-4870-9054-3fbd44cdeed3 2026-06-08 11:01:59,261 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/dce07cfc-06a9-4870-9054-3fbd44cdeed3 2026-06-08 11:01:59,269 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3fe89c0b-599a-44ef-adda-59719e2e47d9 2026-06-08 11:01:59,276 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3fe89c0b-599a-44ef-adda-59719e2e47d9 2026-06-08 11:01:59,283 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/ecefbf3f-9aa1-4509-8e05-00900c614875 2026-06-08 11:01:59,289 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-08 11:01:59,289 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/dce07cfc-06a9-4870-9054-3fbd44cdeed3 2026-06-08 11:01:59,298 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3fe89c0b-599a-44ef-adda-59719e2e47d9 2026-06-08 11:01:59,313 - INFO - Verified VN network id 14 for VN dce07cfc-06a9-4870-9054-3fbd44cdeed3 2026-06-08 11:01:59,313 - INFO - Verifications in API Server for VN ctest-vn4-37302625 passed 2026-06-08 11:01:59,313 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/dce07cfc-06a9-4870-9054-3fbd44cdeed3 2026-06-08 11:01:59,321 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3fe89c0b-599a-44ef-adda-59719e2e47d9 2026-06-08 11:01:59,327 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3fe89c0b-599a-44ef-adda-59719e2e47d9 2026-06-08 11:01:59,335 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/ecefbf3f-9aa1-4509-8e05-00900c614875 2026-06-08 11:01:59,345 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-94047209:ctest-vn4-37302625', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-94047209', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15915858505012693104', 'uuid-lslong': '10400007521641033427'}, 'enable': 'true', 'created': '2026-06-08T11:01:57', 'last-modified': '2026-06-08T11:01:58', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.672223'} 2026-06-08 11:01:59,350 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-08 11:01:59,356 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-94047209:ctest-vn4-37302625', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-94047209', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15915858505012693104', 'uuid-lslong': '10400007521641033427'}, 'enable': 'true', 'created': '2026-06-08T11:01:57', 'last-modified': '2026-06-08T11:01:58', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.683576'} 2026-06-08 11:01:59,362 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-08 11:01:59,366 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-94047209:ctest-vn4-37302625', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-94047209', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15915858505012693104', 'uuid-lslong': '10400007521641033427'}, 'enable': 'true', 'created': '2026-06-08T11:01:57', 'last-modified': '2026-06-08T11:01:58', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.690814'} 2026-06-08 11:01:59,373 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-08 11:01:59,373 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-37302625 passed 2026-06-08 11:01:59,373 - DEBUG - ====Verifying policy data for ctest-vn4-37302625 in API_Server ====== 2026-06-08 11:01:59,373 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-06-08 11:01:59,379 - DEBUG - Requesting: http://10.0.0.38:8082/domain/3787ca8a-a083-410b-a8ff-2f021111eb93 2026-06-08 11:01:59,392 - DEBUG - Requesting: http://10.0.0.38:8082/project/8a078f0e-7f92-478b-a5c1-2cd89ca320ea 2026-06-08 11:01:59,480 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/dce07cfc-06a9-4870-9054-3fbd44cdeed3 2026-06-08 11:01:59,489 - DEBUG - ==>Verifying data for policy with id: fa49b094-7b7f-489b-8568-ef0d2461e0d8, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-94047209', 'ctest-policy1-73363683'] 2026-06-08 11:01:59,489 - INFO - VN ctest-vn4-37302625 Policy verification: verify_vn_policy_in_api_server, status: True 2026-06-08 11:01:59,489 - DEBUG - Verifying the vn in opserver 2026-06-08 11:01:59,489 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-94047209:ctest-vn4-37302625 virtual network link through opserver 10.0.0.38 2026-06-08 11:01:59,490 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-06-08 11:01:59,791 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-06-08 11:01:59,915 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-94047209:ctest-vn4-37302625', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-94047209:ctest-vn4-37302625?flat'} 2026-06-08 11:01:59,915 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-94047209:ctest-vn4-37302625 virtual network link through opserver 10.0.0.50 2026-06-08 11:01:59,915 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-06-08 11:02:00,217 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-06-08 11:02:00,282 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-94047209:ctest-vn4-37302625', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-94047209:ctest-vn4-37302625?flat'} 2026-06-08 11:02:00,282 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-94047209:ctest-vn4-37302625 virtual network link through opserver 10.0.0.249 2026-06-08 11:02:00,282 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2026-06-08 11:02:00,593 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2026-06-08 11:02:00,648 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-94047209:ctest-vn4-37302625', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-94047209:ctest-vn4-37302625?flat'} 2026-06-08 11:02:00,648 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-94047209:ctest-vn4-37302625 is found in opserver 2026-06-08 11:02:00,674 - DEBUG - Do not have enough data to verify VN in agent 2026-06-08 11:02:00,686 - DEBUG - VRF ids for VN ctest-vn4-37302625: {} 2026-06-08 11:02:00,686 - DEBUG - ====Verifying data for ctest-policy1-73363683 in API_Server ====== 2026-06-08 11:02:00,686 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-06-08 11:02:00,693 - DEBUG - Requesting: http://10.0.0.38:8082/domain/3787ca8a-a083-410b-a8ff-2f021111eb93 2026-06-08 11:02:00,703 - DEBUG - Requesting: http://10.0.0.38:8082/project/8a078f0e-7f92-478b-a5c1-2cd89ca320ea 2026-06-08 11:02:00,791 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/fa49b094-7b7f-489b-8568-ef0d2461e0d8 2026-06-08 11:02:00,799 - INFO - Verified policy ctest-policy1-73363683 in API Server, Result: True 2026-06-08 11:02:00,800 - INFO - Done with setup and verification, moving onto test .. 2026-06-08 11:02:00,811 - INFO - Deleting VN ctest-vn4-37302625 2026-06-08 11:02:01,022 - DEBUG - Response for deleting network () 2026-06-08 11:02:01,022 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3fe89c0b-599a-44ef-adda-59719e2e47d9 2026-06-08 11:02:01,028 - DEBUG - Response Code: 404 2026-06-08 11:02:01,029 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-06-08 11:02:01,034 - DEBUG - Requesting: http://10.0.0.38:8082/domain/3787ca8a-a083-410b-a8ff-2f021111eb93 2026-06-08 11:02:01,092 - DEBUG - Requesting: http://10.0.0.38:8082/project/8a078f0e-7f92-478b-a5c1-2cd89ca320ea 2026-06-08 11:02:01,175 - INFO - Validated that VN ctest-vn4-37302625 is not found in API Server 2026-06-08 11:02:01,188 - DEBUG - VN ctest-vn4-37302625 is not present in Agent 10.0.0.22 2026-06-08 11:02:01,199 - DEBUG - VN ctest-vn4-37302625 is not present in Agent 10.0.0.19 2026-06-08 11:02:01,199 - INFO - Validated that VN ctest-vn4-37302625 is not in any agent 2026-06-08 11:02:01,234 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-37302625 info 2026-06-08 11:02:01,278 - INFO - Deleted policy ctest-policy1-73363683 2026-06-08 11:02:01,475 - DEBUG - policy ctest-policy1-73363683 is not found in API Server 2026-06-08 11:02:02,760 - DEBUG - No XMPP flaps were noticed during the test 2026-06-08 11:02:02,760 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:07] 2026-06-08 11:02:02,766 - INFO - -------------------------------------------------------------------------------- 2026-06-08 11:02:04,048 - DEBUG - No XMPP flaps were noticed during the test 2026-06-08 11:02:04,048 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:10] 2026-06-08 11:02:04,048 - INFO - -------------------------------------------------------------------------------- 2026-06-08 11:02:04,790 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-94047209, ID : 8a078f0e-7f92-478b-a5c1-2cd89ca320ea