2026-11-03 00:49:09,283 - INFO - Domain Default found not creating 2026-11-03 00:49:09,800 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-78929903 not found, creating it 2026-11-03 00:49:10,291 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-78929903, ID : 4491a802-2369-465b-9370-27e79f0213aa 2026-11-03 00:49:11,976 - INFO - ================================================================================ 2026-11-03 00:49:11,976 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-11-03 00:49:12,231 - DEBUG - Nothing to compare xmpp stats {'10.0.0.251': {'10.20.0.29': '0'}} with 2026-11-03 00:49:12,231 - INFO - Initial checks done. Running the testcase now 2026-11-03 00:49:12,232 - INFO - 2026-11-03 00:49:12,232 - INFO - ================================================================================ 2026-11-03 00:49:12,232 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-11-03 00:49:12,232 - 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-11-03 00:49:12,519 - DEBUG - Nothing to compare xmpp stats {'10.0.0.251': {'10.20.0.29': '0'}} with 2026-11-03 00:49:12,519 - INFO - Initial checks done. Running the testcase now 2026-11-03 00:49:12,519 - INFO - 2026-11-03 00:49:12,889 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-78929903:ctest-vn4-69890263, 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-78929903:ctest-vn4-69890263, 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-78929903:ctest-vn4-69890263, 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-78929903:ctest-vn4-69890263, 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-11-03 00:49:13,417 - DEBUG - Response for create_network : {'network': {'id': 'e319f372-4ec9-4053-bb58-b881a4181c5e', 'name': 'ctest-vn4-69890263', 'tenant_id': '4491a8022369465b937027e79f0213aa', 'project_id': '4491a8022369465b937027e79f0213aa', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-78929903', 'ctest-vn4-69890263'], 'port_security_enabled': True, 'description': ''}} 2026-11-03 00:49:13,623 - DEBUG - Response for create_subnet : {'subnet': {'id': '89a6aa19-d11f-4ae3-a999-743ad8299592', 'name': '', 'tenant_id': '4491a8022369465b937027e79f0213aa', 'network_id': 'e319f372-4ec9-4053-bb58-b881a4181c5e', 'ip_version': 4, 'cidr': '129.252.157.64/26', 'allocation_pools': [{'start': '129.252.157.66', 'end': '129.252.157.126'}], 'gateway_ip': '129.252.157.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '129.252.157.66', 'tags': [], 'project_id': '4491a8022369465b937027e79f0213aa'}} 2026-11-03 00:49:13,794 - DEBUG - Response for create_subnet : {'subnet': {'id': '13da73a4-59f0-4a98-ac9f-73d4b3fe4244', 'name': '', 'tenant_id': '4491a8022369465b937027e79f0213aa', 'network_id': 'e319f372-4ec9-4053-bb58-b881a4181c5e', 'ip_version': 6, 'cidr': '261e:a3e4:5374:cd2e:15b:8dcd::/96', 'allocation_pools': [{'start': '261e:a3e4:5374:cd2e:15b:8dcd:0:2', 'end': '261e:a3e4:5374:cd2e:15b:8dcd:ffff:fffe'}], 'gateway_ip': '261e:a3e4:5374:cd2e:15b:8dcd:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '261e:a3e4:5374:cd2e:15b:8dcd:0:2', 'tags': [], 'project_id': '4491a8022369465b937027e79f0213aa'}} 2026-11-03 00:49:13,812 - INFO - Created VN ctest-vn4-69890263 2026-11-03 00:49:13,866 - DEBUG - VN ctest-vn4-69890263 UUID is e319f372-4ec9-4053-bb58-b881a4181c5e 2026-11-03 00:49:14,074 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e319f372-4ec9-4053-bb58-b881a4181c5e', 'name': 'ctest-vn4-69890263', 'tenant_id': '4491a8022369465b937027e79f0213aa', 'project_id': '4491a8022369465b937027e79f0213aa', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['89a6aa19-d11f-4ae3-a999-743ad8299592', '13da73a4-59f0-4a98-ac9f-73d4b3fe4244'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-78929903', 'ctest-vn4-69890263'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-78929903', 'ctest-policy1-28667988']], 'subnet_ipam': [{'subnet_cidr': '129.252.157.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '261e:a3e4:5374:cd2e:15b:8dcd::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-11-03 00:49:14,234 - DEBUG - Requesting: http://10.0.0.251:8082/domains 2026-11-03 00:49:14,550 - DEBUG - Requesting: http://10.0.0.251:8082/domains 2026-11-03 00:49:14,582 - DEBUG - Requesting: http://10.0.0.251:8082/domain/13ea2d17-de7d-421b-91c6-939d93d64f03 2026-11-03 00:49:14,595 - DEBUG - Requesting: http://10.0.0.251:8082/project/4491a802-2369-465b-9370-27e79f0213aa 2026-11-03 00:49:14,668 - DEBUG - Requesting: http://10.0.0.251:8082/virtual-network/e319f372-4ec9-4053-bb58-b881a4181c5e 2026-11-03 00:49:14,680 - DEBUG - Requesting: http://10.0.0.251:8082/virtual-network/e319f372-4ec9-4053-bb58-b881a4181c5e 2026-11-03 00:49:14,690 - DEBUG - Requesting: http://10.0.0.251:8082/routing-instance/65d1e15e-51b9-4979-883e-e98e9d1feb72 2026-11-03 00:49:14,698 - DEBUG - Requesting: http://10.0.0.251:8082/routing-instance/65d1e15e-51b9-4979-883e-e98e9d1feb72 2026-11-03 00:49:14,706 - DEBUG - Requesting: http://10.0.0.251:8082/route-target/42930b0d-4b1d-44fe-b195-a208ac692c87 2026-11-03 00:49:14,713 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-11-03 00:49:14,713 - DEBUG - Requesting: http://10.0.0.251:8082/virtual-network/e319f372-4ec9-4053-bb58-b881a4181c5e 2026-11-03 00:49:14,722 - DEBUG - Requesting: http://10.0.0.251:8082/routing-instance/65d1e15e-51b9-4979-883e-e98e9d1feb72 2026-11-03 00:49:14,736 - INFO - Verified VN network id 12 for VN e319f372-4ec9-4053-bb58-b881a4181c5e 2026-11-03 00:49:14,736 - INFO - Verifications in API Server for VN ctest-vn4-69890263 passed 2026-11-03 00:49:14,736 - DEBUG - Requesting: http://10.0.0.251:8082/virtual-network/e319f372-4ec9-4053-bb58-b881a4181c5e 2026-11-03 00:49:14,745 - DEBUG - Requesting: http://10.0.0.251:8082/routing-instance/65d1e15e-51b9-4979-883e-e98e9d1feb72 2026-11-03 00:49:14,751 - DEBUG - Requesting: http://10.0.0.251:8082/routing-instance/65d1e15e-51b9-4979-883e-e98e9d1feb72 2026-11-03 00:49:14,758 - DEBUG - Requesting: http://10.0.0.251:8082/route-target/42930b0d-4b1d-44fe-b195-a208ac692c87 2026-11-03 00:49:14,774 - DEBUG - Control-node 10.0.0.251 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-78929903:ctest-vn4-69890263', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-78929903', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16364378393301041235', 'uuid-lslong': '13499742749986397278'}, 'enable': 'true', 'created': '2026-11-03T00:49:13', 'last-modified': '2026-11-03T00:49:14', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.729362'} 2026-11-03 00:49:14,781 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-11-03 00:49:14,781 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-69890263 passed 2026-11-03 00:49:14,781 - DEBUG - ====Verifying policy data for ctest-vn4-69890263 in API_Server ====== 2026-11-03 00:49:14,781 - DEBUG - Requesting: http://10.0.0.251:8082/domains 2026-11-03 00:49:14,786 - DEBUG - Requesting: http://10.0.0.251:8082/domain/13ea2d17-de7d-421b-91c6-939d93d64f03 2026-11-03 00:49:14,796 - DEBUG - Requesting: http://10.0.0.251:8082/project/4491a802-2369-465b-9370-27e79f0213aa 2026-11-03 00:49:14,874 - DEBUG - Requesting: http://10.0.0.251:8082/virtual-network/e319f372-4ec9-4053-bb58-b881a4181c5e 2026-11-03 00:49:14,884 - DEBUG - ==>Verifying data for policy with id: b67bcd88-51cd-4b1a-be7c-99d70f36eed7, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-78929903', 'ctest-policy1-28667988'] 2026-11-03 00:49:14,884 - INFO - VN ctest-vn4-69890263 Policy verification: verify_vn_policy_in_api_server, status: True 2026-11-03 00:49:14,884 - DEBUG - Verifying the vn in opserver 2026-11-03 00:49:14,884 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-78929903:ctest-vn4-69890263 virtual network link through opserver 10.0.0.251 2026-11-03 00:49:14,885 - DEBUG - Requesting: http://10.0.0.251:8081/analytics/uves/virtual-networks 2026-11-03 00:49:15,202 - DEBUG - Requesting: http://10.0.0.251:8081/analytics/uves/virtual-networks 2026-11-03 00:49:15,253 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-78929903:ctest-vn4-69890263', 'href': 'http://10.0.0.251:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-78929903:ctest-vn4-69890263?flat'} 2026-11-03 00:49:15,253 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-78929903:ctest-vn4-69890263 is found in opserver 2026-11-03 00:49:15,263 - DEBUG - Do not have enough data to verify VN in agent 2026-11-03 00:49:15,267 - DEBUG - VRF ids for VN ctest-vn4-69890263: {} 2026-11-03 00:49:15,268 - DEBUG - ====Verifying data for ctest-policy1-28667988 in API_Server ====== 2026-11-03 00:49:15,268 - DEBUG - Requesting: http://10.0.0.251:8082/domains 2026-11-03 00:49:15,273 - DEBUG - Requesting: http://10.0.0.251:8082/domain/13ea2d17-de7d-421b-91c6-939d93d64f03 2026-11-03 00:49:15,284 - DEBUG - Requesting: http://10.0.0.251:8082/project/4491a802-2369-465b-9370-27e79f0213aa 2026-11-03 00:49:15,354 - DEBUG - Requesting: http://10.0.0.251:8082/network-policy/b67bcd88-51cd-4b1a-be7c-99d70f36eed7 2026-11-03 00:49:15,362 - INFO - Verified policy ctest-policy1-28667988 in API Server, Result: True 2026-11-03 00:49:15,362 - INFO - Done with setup and verification, moving onto test .. 2026-11-03 00:49:15,373 - INFO - Deleting VN ctest-vn4-69890263 2026-11-03 00:49:15,492 - DEBUG - Response for deleting network () 2026-11-03 00:49:15,492 - DEBUG - Requesting: http://10.0.0.251:8082/routing-instance/65d1e15e-51b9-4979-883e-e98e9d1feb72 2026-11-03 00:49:15,498 - DEBUG - Response Code: 404 2026-11-03 00:49:15,498 - DEBUG - Requesting: http://10.0.0.251:8082/domains 2026-11-03 00:49:15,503 - DEBUG - Requesting: http://10.0.0.251:8082/domain/13ea2d17-de7d-421b-91c6-939d93d64f03 2026-11-03 00:49:15,554 - DEBUG - Requesting: http://10.0.0.251:8082/project/4491a802-2369-465b-9370-27e79f0213aa 2026-11-03 00:49:15,626 - INFO - Validated that VN ctest-vn4-69890263 is not found in API Server 2026-11-03 00:49:15,637 - DEBUG - VN ctest-vn4-69890263 is not present in Agent 10.0.0.251 2026-11-03 00:49:15,637 - INFO - Validated that VN ctest-vn4-69890263 is not in any agent 2026-11-03 00:49:15,652 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-69890263 info 2026-11-03 00:49:15,674 - INFO - Deleted policy ctest-policy1-28667988 2026-11-03 00:49:15,837 - DEBUG - policy ctest-policy1-28667988 is not found in API Server 2026-11-03 00:49:16,092 - DEBUG - No XMPP flaps were noticed during the test