2026-01-15 02:38:58,384 - INFO - Domain Default found not creating 2026-01-15 02:38:58,567 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-17558526 not found, creating it 2026-01-15 02:38:59,147 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-17558526, ID : d95babda-dc27-4056-8ab4-f7fabde198e7 2026-01-15 02:39:01,053 - INFO - ================================================================================ 2026-01-15 02:39:01,054 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-15 02:39:02,351 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.249': '0', '10.20.0.201': '0'}, '10.0.0.133': {'10.20.0.201': '0', '10.20.0.19': '1'}} with 2026-01-15 02:39:02,351 - INFO - Initial checks done. Running the testcase now 2026-01-15 02:39:02,351 - INFO - 2026-01-15 02:39:02,351 - INFO - ================================================================================ 2026-01-15 02:39:02,351 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-15 02:39:02,351 - 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-15 02:39:03,638 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.249': '0', '10.20.0.201': '0'}, '10.0.0.133': {'10.20.0.201': '0', '10.20.0.19': '1'}} with 2026-01-15 02:39:03,638 - INFO - Initial checks done. Running the testcase now 2026-01-15 02:39:03,638 - INFO - 2026-01-15 02:39:04,063 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-17558526:ctest-vn4-75934042, 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-17558526:ctest-vn4-75934042, 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-17558526:ctest-vn4-75934042, 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-17558526:ctest-vn4-75934042, 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-15 02:39:04,733 - DEBUG - Response for create_network : {'network': {'id': 'd51b2df7-e611-48ec-bbc2-542c593c1992', 'name': 'ctest-vn4-75934042', 'tenant_id': 'd95babdadc2740568ab4f7fabde198e7', 'project_id': 'd95babdadc2740568ab4f7fabde198e7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-17558526', 'ctest-vn4-75934042'], 'port_security_enabled': True, 'description': ''}} 2026-01-15 02:39:05,079 - DEBUG - Response for create_subnet : {'subnet': {'id': '32611ee0-8bb0-4bcb-96fd-280bc338f514', 'name': '', 'tenant_id': 'd95babdadc2740568ab4f7fabde198e7', 'network_id': 'd51b2df7-e611-48ec-bbc2-542c593c1992', 'ip_version': 4, 'cidr': '34.172.33.0/26', 'allocation_pools': [{'start': '34.172.33.2', 'end': '34.172.33.62'}], 'gateway_ip': '34.172.33.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '34.172.33.2', 'tags': [], 'project_id': 'd95babdadc2740568ab4f7fabde198e7'}} 2026-01-15 02:39:05,332 - DEBUG - Response for create_subnet : {'subnet': {'id': '12ece40d-92d0-4e3f-9946-01c429427ae4', 'name': '', 'tenant_id': 'd95babdadc2740568ab4f7fabde198e7', 'network_id': 'd51b2df7-e611-48ec-bbc2-542c593c1992', 'ip_version': 6, 'cidr': '2c3e:b525:a49c:853b:ab9a:a5c1::/96', 'allocation_pools': [{'start': '2c3e:b525:a49c:853b:ab9a:a5c1:0:2', 'end': '2c3e:b525:a49c:853b:ab9a:a5c1:ffff:fffe'}], 'gateway_ip': '2c3e:b525:a49c:853b:ab9a:a5c1:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2c3e:b525:a49c:853b:ab9a:a5c1:0:2', 'tags': [], 'project_id': 'd95babdadc2740568ab4f7fabde198e7'}} 2026-01-15 02:39:05,358 - INFO - Created VN ctest-vn4-75934042 2026-01-15 02:39:05,369 - DEBUG - VN ctest-vn4-75934042 UUID is d51b2df7-e611-48ec-bbc2-542c593c1992 2026-01-15 02:39:05,629 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd51b2df7-e611-48ec-bbc2-542c593c1992', 'name': 'ctest-vn4-75934042', 'tenant_id': 'd95babdadc2740568ab4f7fabde198e7', 'project_id': 'd95babdadc2740568ab4f7fabde198e7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['32611ee0-8bb0-4bcb-96fd-280bc338f514', '12ece40d-92d0-4e3f-9946-01c429427ae4'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-17558526', 'ctest-vn4-75934042'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-17558526', 'ctest-policy1-37124439']], 'subnet_ipam': [{'subnet_cidr': '34.172.33.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2c3e:b525:a49c:853b:ab9a:a5c1::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-01-15 02:39:05,804 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-01-15 02:39:06,150 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-01-15 02:39:06,185 - DEBUG - Requesting: http://10.0.0.242:8082/domain/17e89162-e11a-43fe-960d-0f3e5cda0a6b 2026-01-15 02:39:06,205 - DEBUG - Requesting: http://10.0.0.242:8082/project/d95babda-dc27-4056-8ab4-f7fabde198e7 2026-01-15 02:39:06,315 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/d51b2df7-e611-48ec-bbc2-542c593c1992 2026-01-15 02:39:06,332 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/d51b2df7-e611-48ec-bbc2-542c593c1992 2026-01-15 02:39:06,345 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/d79c3bf2-d90b-4058-879f-46ae4c60fcae 2026-01-15 02:39:06,355 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/d79c3bf2-d90b-4058-879f-46ae4c60fcae 2026-01-15 02:39:06,363 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/386deeb1-2c23-40b2-8c0f-9ecdded23d55 2026-01-15 02:39:06,373 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-15 02:39:06,373 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/d51b2df7-e611-48ec-bbc2-542c593c1992 2026-01-15 02:39:06,385 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/d79c3bf2-d90b-4058-879f-46ae4c60fcae 2026-01-15 02:39:06,402 - INFO - Verified VN network id 13 for VN d51b2df7-e611-48ec-bbc2-542c593c1992 2026-01-15 02:39:06,403 - INFO - Verifications in API Server for VN ctest-vn4-75934042 passed 2026-01-15 02:39:06,403 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/d51b2df7-e611-48ec-bbc2-542c593c1992 2026-01-15 02:39:06,415 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/d79c3bf2-d90b-4058-879f-46ae4c60fcae 2026-01-15 02:39:06,424 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/d79c3bf2-d90b-4058-879f-46ae4c60fcae 2026-01-15 02:39:06,440 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/386deeb1-2c23-40b2-8c0f-9ecdded23d55 2026-01-15 02:39:06,460 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-17558526:ctest-vn4-75934042', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-17558526', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15355917897189902572', 'uuid-lslong': '13529468780026796434'}, 'enable': 'true', 'created': '2026-01-15T02:39:04', 'last-modified': '2026-01-15T02:39:05', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.895061'} 2026-01-15 02:39:06,467 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-15 02:39:06,473 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-17558526:ctest-vn4-75934042', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-17558526', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15355917897189902572', 'uuid-lslong': '13529468780026796434'}, 'enable': 'true', 'created': '2026-01-15T02:39:04', 'last-modified': '2026-01-15T02:39:05', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.885672'} 2026-01-15 02:39:06,479 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-15 02:39:06,484 - DEBUG - Control-node 10.0.0.73 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-17558526:ctest-vn4-75934042', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-17558526', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15355917897189902572', 'uuid-lslong': '13529468780026796434'}, 'enable': 'true', 'created': '2026-01-15T02:39:04', 'last-modified': '2026-01-15T02:39:05', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.896249'} 2026-01-15 02:39:06,492 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-15 02:39:06,492 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-75934042 passed 2026-01-15 02:39:06,492 - DEBUG - ====Verifying policy data for ctest-vn4-75934042 in API_Server ====== 2026-01-15 02:39:06,492 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-01-15 02:39:06,500 - DEBUG - Requesting: http://10.0.0.242:8082/domain/17e89162-e11a-43fe-960d-0f3e5cda0a6b 2026-01-15 02:39:06,513 - DEBUG - Requesting: http://10.0.0.242:8082/project/d95babda-dc27-4056-8ab4-f7fabde198e7 2026-01-15 02:39:06,614 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/d51b2df7-e611-48ec-bbc2-542c593c1992 2026-01-15 02:39:06,629 - DEBUG - ==>Verifying data for policy with id: 616f1c32-4f50-4ccd-9319-d070523ca534, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-17558526', 'ctest-policy1-37124439'] 2026-01-15 02:39:06,629 - INFO - VN ctest-vn4-75934042 Policy verification: verify_vn_policy_in_api_server, status: True 2026-01-15 02:39:06,629 - DEBUG - Verifying the vn in opserver 2026-01-15 02:39:06,629 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-17558526:ctest-vn4-75934042 virtual network link through opserver 10.0.0.242 2026-01-15 02:39:06,629 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2026-01-15 02:39:06,979 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2026-01-15 02:39:07,062 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-17558526:ctest-vn4-75934042', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-17558526:ctest-vn4-75934042?flat'} 2026-01-15 02:39:07,062 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-17558526:ctest-vn4-75934042 virtual network link through opserver 10.0.0.33 2026-01-15 02:39:07,062 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-01-15 02:39:07,416 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-01-15 02:39:07,484 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-17558526:ctest-vn4-75934042', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-17558526:ctest-vn4-75934042?flat'} 2026-01-15 02:39:07,485 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-17558526:ctest-vn4-75934042 virtual network link through opserver 10.0.0.73 2026-01-15 02:39:07,485 - DEBUG - Requesting: http://10.0.0.73:8081/analytics/uves/virtual-networks 2026-01-15 02:39:07,830 - DEBUG - Requesting: http://10.0.0.73:8081/analytics/uves/virtual-networks 2026-01-15 02:39:07,902 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-17558526:ctest-vn4-75934042', 'href': 'http://10.0.0.73:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-17558526:ctest-vn4-75934042?flat'} 2026-01-15 02:39:07,902 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-17558526:ctest-vn4-75934042 is found in opserver 2026-01-15 02:39:07,925 - DEBUG - Do not have enough data to verify VN in agent 2026-01-15 02:39:07,937 - DEBUG - VRF ids for VN ctest-vn4-75934042: {} 2026-01-15 02:39:07,937 - DEBUG - ====Verifying data for ctest-policy1-37124439 in API_Server ====== 2026-01-15 02:39:07,937 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-01-15 02:39:07,944 - DEBUG - Requesting: http://10.0.0.242:8082/domain/17e89162-e11a-43fe-960d-0f3e5cda0a6b 2026-01-15 02:39:07,957 - DEBUG - Requesting: http://10.0.0.242:8082/project/d95babda-dc27-4056-8ab4-f7fabde198e7 2026-01-15 02:39:08,058 - DEBUG - Requesting: http://10.0.0.242:8082/network-policy/616f1c32-4f50-4ccd-9319-d070523ca534 2026-01-15 02:39:08,074 - INFO - Verified policy ctest-policy1-37124439 in API Server, Result: True 2026-01-15 02:39:08,074 - INFO - Done with setup and verification, moving onto test .. 2026-01-15 02:39:08,085 - INFO - Deleting VN ctest-vn4-75934042 2026-01-15 02:39:08,272 - DEBUG - Response for deleting network () 2026-01-15 02:39:08,272 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/d79c3bf2-d90b-4058-879f-46ae4c60fcae 2026-01-15 02:39:08,282 - DEBUG - Response Code: 404 2026-01-15 02:39:08,282 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-01-15 02:39:08,297 - DEBUG - Requesting: http://10.0.0.242:8082/domain/17e89162-e11a-43fe-960d-0f3e5cda0a6b 2026-01-15 02:39:08,315 - DEBUG - Requesting: http://10.0.0.242:8082/project/d95babda-dc27-4056-8ab4-f7fabde198e7 2026-01-15 02:39:08,424 - INFO - Validated that VN ctest-vn4-75934042 is not found in API Server 2026-01-15 02:39:08,439 - DEBUG - VN ctest-vn4-75934042 is not present in Agent 10.0.0.141 2026-01-15 02:39:08,450 - DEBUG - VN ctest-vn4-75934042 is not present in Agent 10.0.0.133 2026-01-15 02:39:08,450 - INFO - Validated that VN ctest-vn4-75934042 is not in any agent 2026-01-15 02:39:08,491 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-75934042 info 2026-01-15 02:39:08,533 - INFO - Deleted policy ctest-policy1-37124439 2026-01-15 02:39:08,745 - DEBUG - policy ctest-policy1-37124439 is not found in API Server 2026-01-15 02:39:10,048 - DEBUG - No XMPP flaps were noticed during the test 2026-01-15 02:39:10,048 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:08] 2026-01-15 02:39:10,048 - INFO - -------------------------------------------------------------------------------- 2026-01-15 02:39:11,344 - DEBUG - No XMPP flaps were noticed during the test 2026-01-15 02:39:11,344 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:10] 2026-01-15 02:39:11,344 - INFO - -------------------------------------------------------------------------------- 2026-01-15 02:39:12,246 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-17558526, ID : d95babda-dc27-4056-8ab4-f7fabde198e7