2026-01-26 13:11:49,599 - INFO - Domain Default found not creating 2026-01-26 13:11:49,770 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-38424453 not found, creating it 2026-01-26 13:11:50,313 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-38424453, ID : 4a057a00-5557-444b-93e5-dcfbf2e18d67 2026-01-26 13:11:52,059 - INFO - ================================================================================ 2026-01-26 13:11:52,059 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-26 13:11:53,358 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0', '10.20.0.14': '0'}, '10.0.0.249': {'10.20.0.14': '0', '10.20.0.254': '0'}} with 2026-01-26 13:11:53,358 - INFO - Initial checks done. Running the testcase now 2026-01-26 13:11:53,359 - INFO - 2026-01-26 13:11:53,359 - INFO - ================================================================================ 2026-01-26 13:11:53,359 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-26 13:11:53,359 - 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-26 13:11:54,682 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0', '10.20.0.14': '0'}, '10.0.0.249': {'10.20.0.14': '0', '10.20.0.254': '0'}} with 2026-01-26 13:11:54,683 - INFO - Initial checks done. Running the testcase now 2026-01-26 13:11:54,683 - INFO - 2026-01-26 13:11:55,101 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-38424453:ctest-vn4-91119655, 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-38424453:ctest-vn4-91119655, 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-38424453:ctest-vn4-91119655, 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-38424453:ctest-vn4-91119655, 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-26 13:11:55,765 - DEBUG - Response for create_network : {'network': {'id': '13825ced-822e-45b8-8f3e-7fb1bd8b6840', 'name': 'ctest-vn4-91119655', 'tenant_id': '4a057a005557444b93e5dcfbf2e18d67', 'project_id': '4a057a005557444b93e5dcfbf2e18d67', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-38424453', 'ctest-vn4-91119655'], 'port_security_enabled': True, 'description': ''}} 2026-01-26 13:11:56,098 - DEBUG - Response for create_subnet : {'subnet': {'id': '295e5ae4-abba-44f8-bca9-d8e9355dbe0a', 'name': '', 'tenant_id': '4a057a005557444b93e5dcfbf2e18d67', 'network_id': '13825ced-822e-45b8-8f3e-7fb1bd8b6840', 'ip_version': 4, 'cidr': '84.188.226.64/26', 'allocation_pools': [{'start': '84.188.226.66', 'end': '84.188.226.126'}], 'gateway_ip': '84.188.226.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '84.188.226.66', 'tags': [], 'project_id': '4a057a005557444b93e5dcfbf2e18d67'}} 2026-01-26 13:11:56,390 - DEBUG - Response for create_subnet : {'subnet': {'id': '1b9b0571-14c8-44a8-8e3e-b297ba4ae08c', 'name': '', 'tenant_id': '4a057a005557444b93e5dcfbf2e18d67', 'network_id': '13825ced-822e-45b8-8f3e-7fb1bd8b6840', 'ip_version': 6, 'cidr': '31e6:631d:5135:6266:90a2:bb57::/96', 'allocation_pools': [{'start': '31e6:631d:5135:6266:90a2:bb57:0:2', 'end': '31e6:631d:5135:6266:90a2:bb57:ffff:fffe'}], 'gateway_ip': '31e6:631d:5135:6266:90a2:bb57:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '31e6:631d:5135:6266:90a2:bb57:0:2', 'tags': [], 'project_id': '4a057a005557444b93e5dcfbf2e18d67'}} 2026-01-26 13:11:56,432 - INFO - Created VN ctest-vn4-91119655 2026-01-26 13:11:56,443 - DEBUG - VN ctest-vn4-91119655 UUID is 13825ced-822e-45b8-8f3e-7fb1bd8b6840 2026-01-26 13:11:56,709 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '13825ced-822e-45b8-8f3e-7fb1bd8b6840', 'name': 'ctest-vn4-91119655', 'tenant_id': '4a057a005557444b93e5dcfbf2e18d67', 'project_id': '4a057a005557444b93e5dcfbf2e18d67', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['295e5ae4-abba-44f8-bca9-d8e9355dbe0a', '1b9b0571-14c8-44a8-8e3e-b297ba4ae08c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-38424453', 'ctest-vn4-91119655'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-38424453', 'ctest-policy1-78453306']], 'subnet_ipam': [{'subnet_cidr': '84.188.226.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '31e6:631d:5135:6266:90a2:bb57::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-01-26 13:11:56,836 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-01-26 13:11:57,196 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-01-26 13:11:57,251 - DEBUG - Requesting: http://10.0.0.38:8082/domain/ecb760e6-4499-4c64-b24d-5f38a85b67c2 2026-01-26 13:11:57,269 - DEBUG - Requesting: http://10.0.0.38:8082/project/4a057a00-5557-444b-93e5-dcfbf2e18d67 2026-01-26 13:11:57,375 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/13825ced-822e-45b8-8f3e-7fb1bd8b6840 2026-01-26 13:11:57,395 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/13825ced-822e-45b8-8f3e-7fb1bd8b6840 2026-01-26 13:11:57,406 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5832a5b3-5591-4c35-be99-f2329db42af3 2026-01-26 13:11:57,414 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5832a5b3-5591-4c35-be99-f2329db42af3 2026-01-26 13:11:57,422 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/b76a8ee9-92cc-4385-80de-2d05b5bbc914 2026-01-26 13:11:57,429 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-01-26 13:11:57,429 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/13825ced-822e-45b8-8f3e-7fb1bd8b6840 2026-01-26 13:11:57,440 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5832a5b3-5591-4c35-be99-f2329db42af3 2026-01-26 13:11:57,459 - INFO - Verified VN network id 11 for VN 13825ced-822e-45b8-8f3e-7fb1bd8b6840 2026-01-26 13:11:57,459 - INFO - Verifications in API Server for VN ctest-vn4-91119655 passed 2026-01-26 13:11:57,459 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/13825ced-822e-45b8-8f3e-7fb1bd8b6840 2026-01-26 13:11:57,473 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5832a5b3-5591-4c35-be99-f2329db42af3 2026-01-26 13:11:57,481 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5832a5b3-5591-4c35-be99-f2329db42af3 2026-01-26 13:11:57,495 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/b76a8ee9-92cc-4385-80de-2d05b5bbc914 2026-01-26 13:11:57,508 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-38424453:ctest-vn4-91119655', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-38424453', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1405788208854091192', 'uuid-lslong': '10321827797345724480'}, 'enable': 'true', 'created': '2026-01-26T13:11:55', 'last-modified': '2026-01-26T13:11:56', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.868056'} 2026-01-26 13:11:57,516 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-01-26 13:11:57,522 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-38424453:ctest-vn4-91119655', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-38424453', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1405788208854091192', 'uuid-lslong': '10321827797345724480'}, 'enable': 'true', 'created': '2026-01-26T13:11:55', 'last-modified': '2026-01-26T13:11:56', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.872437'} 2026-01-26 13:11:57,532 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-01-26 13:11:57,539 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-38424453:ctest-vn4-91119655', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-38424453', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1405788208854091192', 'uuid-lslong': '10321827797345724480'}, 'enable': 'true', 'created': '2026-01-26T13:11:55', 'last-modified': '2026-01-26T13:11:56', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.896540'} 2026-01-26 13:11:57,549 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-01-26 13:11:57,549 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-91119655 passed 2026-01-26 13:11:57,549 - DEBUG - ====Verifying policy data for ctest-vn4-91119655 in API_Server ====== 2026-01-26 13:11:57,549 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-01-26 13:11:57,563 - DEBUG - Requesting: http://10.0.0.38:8082/domain/ecb760e6-4499-4c64-b24d-5f38a85b67c2 2026-01-26 13:11:57,577 - DEBUG - Requesting: http://10.0.0.38:8082/project/4a057a00-5557-444b-93e5-dcfbf2e18d67 2026-01-26 13:11:57,682 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/13825ced-822e-45b8-8f3e-7fb1bd8b6840 2026-01-26 13:11:57,709 - DEBUG - ==>Verifying data for policy with id: 9b9a5e98-c3b1-4257-be0f-e1f2d7229622, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-38424453', 'ctest-policy1-78453306'] 2026-01-26 13:11:57,709 - INFO - VN ctest-vn4-91119655 Policy verification: verify_vn_policy_in_api_server, status: True 2026-01-26 13:11:57,709 - DEBUG - Verifying the vn in opserver 2026-01-26 13:11:57,709 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-38424453:ctest-vn4-91119655 virtual network link through opserver 10.0.0.38 2026-01-26 13:11:57,709 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-01-26 13:11:58,054 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-01-26 13:11:58,120 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-38424453:ctest-vn4-91119655', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-38424453:ctest-vn4-91119655?flat'} 2026-01-26 13:11:58,120 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-38424453:ctest-vn4-91119655 virtual network link through opserver 10.0.0.242 2026-01-26 13:11:58,120 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2026-01-26 13:11:58,470 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2026-01-26 13:11:58,541 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-38424453:ctest-vn4-91119655', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-38424453:ctest-vn4-91119655?flat'} 2026-01-26 13:11:58,541 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-38424453:ctest-vn4-91119655 virtual network link through opserver 10.0.0.33 2026-01-26 13:11:58,541 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-01-26 13:11:58,884 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-01-26 13:11:58,946 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-38424453:ctest-vn4-91119655', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-38424453:ctest-vn4-91119655?flat'} 2026-01-26 13:11:58,946 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-38424453:ctest-vn4-91119655 is found in opserver 2026-01-26 13:11:58,968 - DEBUG - Do not have enough data to verify VN in agent 2026-01-26 13:11:58,978 - DEBUG - VRF ids for VN ctest-vn4-91119655: {} 2026-01-26 13:11:58,979 - DEBUG - ====Verifying data for ctest-policy1-78453306 in API_Server ====== 2026-01-26 13:11:58,979 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-01-26 13:11:58,993 - DEBUG - Requesting: http://10.0.0.38:8082/domain/ecb760e6-4499-4c64-b24d-5f38a85b67c2 2026-01-26 13:11:59,004 - DEBUG - Requesting: http://10.0.0.38:8082/project/4a057a00-5557-444b-93e5-dcfbf2e18d67 2026-01-26 13:11:59,124 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/9b9a5e98-c3b1-4257-be0f-e1f2d7229622 2026-01-26 13:11:59,135 - INFO - Verified policy ctest-policy1-78453306 in API Server, Result: True 2026-01-26 13:11:59,135 - INFO - Done with setup and verification, moving onto test .. 2026-01-26 13:11:59,150 - INFO - Deleting VN ctest-vn4-91119655 2026-01-26 13:11:59,350 - DEBUG - Response for deleting network () 2026-01-26 13:11:59,350 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5832a5b3-5591-4c35-be99-f2329db42af3 2026-01-26 13:11:59,356 - DEBUG - Response Code: 404 2026-01-26 13:11:59,356 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-01-26 13:11:59,367 - DEBUG - Requesting: http://10.0.0.38:8082/domain/ecb760e6-4499-4c64-b24d-5f38a85b67c2 2026-01-26 13:11:59,382 - DEBUG - Requesting: http://10.0.0.38:8082/project/4a057a00-5557-444b-93e5-dcfbf2e18d67 2026-01-26 13:11:59,485 - INFO - Validated that VN ctest-vn4-91119655 is not found in API Server 2026-01-26 13:11:59,496 - DEBUG - VN ctest-vn4-91119655 is not present in Agent 10.0.0.22 2026-01-26 13:11:59,506 - DEBUG - VN ctest-vn4-91119655 is not present in Agent 10.0.0.249 2026-01-26 13:11:59,507 - INFO - Validated that VN ctest-vn4-91119655 is not in any agent 2026-01-26 13:11:59,538 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-91119655 info 2026-01-26 13:11:59,579 - INFO - Deleted policy ctest-policy1-78453306 2026-01-26 13:11:59,768 - DEBUG - policy ctest-policy1-78453306 is not found in API Server 2026-01-26 13:12:01,073 - DEBUG - No XMPP flaps were noticed during the test