2026-11-04 10:12:06,089 - INFO - Domain Default found not creating 2026-11-04 10:12:06,247 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-25924648 not found, creating it 2026-11-04 10:12:06,679 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-25924648, ID : 32d3af52-5a02-4cec-b496-4f02d529f09e 2026-11-04 10:12:08,119 - INFO - ================================================================================ 2026-11-04 10:12:08,120 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-11-04 10:12:08,368 - DEBUG - Nothing to compare xmpp stats {'10.0.0.185': {'10.20.0.25': '0'}} with 2026-11-04 10:12:08,368 - INFO - Initial checks done. Running the testcase now 2026-11-04 10:12:08,368 - INFO - 2026-11-04 10:12:08,368 - INFO - ================================================================================ 2026-11-04 10:12:08,369 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-11-04 10:12:08,369 - 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-04 10:12:08,660 - DEBUG - Nothing to compare xmpp stats {'10.0.0.185': {'10.20.0.25': '0'}} with 2026-11-04 10:12:08,660 - INFO - Initial checks done. Running the testcase now 2026-11-04 10:12:08,660 - INFO - 2026-11-04 10:12:09,028 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-25924648:ctest-vn4-65256244, 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-25924648:ctest-vn4-65256244, 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-25924648:ctest-vn4-65256244, 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-25924648:ctest-vn4-65256244, 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-04 10:12:09,517 - DEBUG - Response for create_network : {'network': {'id': '15817bef-0474-4721-bdd2-897a564ea1c2', 'name': 'ctest-vn4-65256244', 'tenant_id': '32d3af525a024cecb4964f02d529f09e', 'project_id': '32d3af525a024cecb4964f02d529f09e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-25924648', 'ctest-vn4-65256244'], 'port_security_enabled': True, 'description': ''}} 2026-11-04 10:12:09,801 - DEBUG - Response for create_subnet : {'subnet': {'id': '074def07-7ce2-4902-a6e8-60556b74d0b9', 'name': '', 'tenant_id': '32d3af525a024cecb4964f02d529f09e', 'network_id': '15817bef-0474-4721-bdd2-897a564ea1c2', 'ip_version': 4, 'cidr': '117.31.98.128/26', 'allocation_pools': [{'start': '117.31.98.130', 'end': '117.31.98.190'}], 'gateway_ip': '117.31.98.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '117.31.98.130', 'tags': [], 'project_id': '32d3af525a024cecb4964f02d529f09e'}} 2026-11-04 10:12:09,950 - DEBUG - Response for create_subnet : {'subnet': {'id': '1bfafd69-7242-4262-8ee2-72a39912e5f7', 'name': '', 'tenant_id': '32d3af525a024cecb4964f02d529f09e', 'network_id': '15817bef-0474-4721-bdd2-897a564ea1c2', 'ip_version': 6, 'cidr': '377e:3b02:7c9b:467:a955:9615::/96', 'allocation_pools': [{'start': '377e:3b02:7c9b:467:a955:9615:0:2', 'end': '377e:3b02:7c9b:467:a955:9615:ffff:fffe'}], 'gateway_ip': '377e:3b02:7c9b:467:a955:9615:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '377e:3b02:7c9b:467:a955:9615:0:2', 'tags': [], 'project_id': '32d3af525a024cecb4964f02d529f09e'}} 2026-11-04 10:12:09,965 - INFO - Created VN ctest-vn4-65256244 2026-11-04 10:12:10,020 - DEBUG - VN ctest-vn4-65256244 UUID is 15817bef-0474-4721-bdd2-897a564ea1c2 2026-11-04 10:12:10,195 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '15817bef-0474-4721-bdd2-897a564ea1c2', 'name': 'ctest-vn4-65256244', 'tenant_id': '32d3af525a024cecb4964f02d529f09e', 'project_id': '32d3af525a024cecb4964f02d529f09e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['074def07-7ce2-4902-a6e8-60556b74d0b9', '1bfafd69-7242-4262-8ee2-72a39912e5f7'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-25924648', 'ctest-vn4-65256244'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-25924648', 'ctest-policy1-79320516']], 'subnet_ipam': [{'subnet_cidr': '117.31.98.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '377e:3b02:7c9b:467:a955:9615::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-11-04 10:12:10,356 - DEBUG - Requesting: http://10.0.0.185:8082/domains 2026-11-04 10:12:10,677 - DEBUG - Requesting: http://10.0.0.185:8082/domains 2026-11-04 10:12:10,702 - DEBUG - Requesting: http://10.0.0.185:8082/domain/5972d707-fe83-49e7-9281-6c5874d144db 2026-11-04 10:12:10,714 - DEBUG - Requesting: http://10.0.0.185:8082/project/32d3af52-5a02-4cec-b496-4f02d529f09e 2026-11-04 10:12:10,786 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/15817bef-0474-4721-bdd2-897a564ea1c2 2026-11-04 10:12:10,796 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/15817bef-0474-4721-bdd2-897a564ea1c2 2026-11-04 10:12:10,804 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/a213052e-a625-4511-ae00-e15aa77cd157 2026-11-04 10:12:10,809 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/a213052e-a625-4511-ae00-e15aa77cd157 2026-11-04 10:12:10,814 - DEBUG - Requesting: http://10.0.0.185:8082/route-target/858d841b-268a-406b-ab23-b3d042939993 2026-11-04 10:12:10,819 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-11-04 10:12:10,819 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/15817bef-0474-4721-bdd2-897a564ea1c2 2026-11-04 10:12:10,827 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/a213052e-a625-4511-ae00-e15aa77cd157 2026-11-04 10:12:10,838 - INFO - Verified VN network id 10 for VN 15817bef-0474-4721-bdd2-897a564ea1c2 2026-11-04 10:12:10,838 - INFO - Verifications in API Server for VN ctest-vn4-65256244 passed 2026-11-04 10:12:10,838 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/15817bef-0474-4721-bdd2-897a564ea1c2 2026-11-04 10:12:10,848 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/a213052e-a625-4511-ae00-e15aa77cd157 2026-11-04 10:12:10,853 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/a213052e-a625-4511-ae00-e15aa77cd157 2026-11-04 10:12:10,858 - DEBUG - Requesting: http://10.0.0.185:8082/route-target/858d841b-268a-406b-ab23-b3d042939993 2026-11-04 10:12:10,868 - DEBUG - Control-node 10.0.0.185 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-25924648:ctest-vn4-65256244', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-25924648', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1549656013294290721', 'uuid-lslong': '13678146176804626882'}, 'enable': 'true', 'created': '2026-11-04T10:12:09', 'last-modified': '2026-11-04T10:12:10', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.688603'} 2026-11-04 10:12:10,873 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-11-04 10:12:10,873 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-65256244 passed 2026-11-04 10:12:10,874 - DEBUG - ====Verifying policy data for ctest-vn4-65256244 in API_Server ====== 2026-11-04 10:12:10,874 - DEBUG - Requesting: http://10.0.0.185:8082/domains 2026-11-04 10:12:10,878 - DEBUG - Requesting: http://10.0.0.185:8082/domain/5972d707-fe83-49e7-9281-6c5874d144db 2026-11-04 10:12:10,887 - DEBUG - Requesting: http://10.0.0.185:8082/project/32d3af52-5a02-4cec-b496-4f02d529f09e 2026-11-04 10:12:10,955 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/15817bef-0474-4721-bdd2-897a564ea1c2 2026-11-04 10:12:10,963 - DEBUG - ==>Verifying data for policy with id: acd0db7d-7992-4b58-b40e-e9bce0d67b99, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-25924648', 'ctest-policy1-79320516'] 2026-11-04 10:12:10,963 - INFO - VN ctest-vn4-65256244 Policy verification: verify_vn_policy_in_api_server, status: True 2026-11-04 10:12:10,964 - DEBUG - Verifying the vn in opserver 2026-11-04 10:12:10,964 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-25924648:ctest-vn4-65256244 virtual network link through opserver 10.0.0.185 2026-11-04 10:12:10,964 - DEBUG - Requesting: http://10.0.0.185:8081/analytics/uves/virtual-networks 2026-11-04 10:12:11,281 - DEBUG - Requesting: http://10.0.0.185:8081/analytics/uves/virtual-networks 2026-11-04 10:12:11,327 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-25924648:ctest-vn4-65256244', 'href': 'http://10.0.0.185:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-25924648:ctest-vn4-65256244?flat'} 2026-11-04 10:12:11,327 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-25924648:ctest-vn4-65256244 is found in opserver 2026-11-04 10:12:11,336 - DEBUG - Do not have enough data to verify VN in agent 2026-11-04 10:12:11,340 - DEBUG - VRF ids for VN ctest-vn4-65256244: {} 2026-11-04 10:12:11,340 - DEBUG - ====Verifying data for ctest-policy1-79320516 in API_Server ====== 2026-11-04 10:12:11,341 - DEBUG - Requesting: http://10.0.0.185:8082/domains 2026-11-04 10:12:11,346 - DEBUG - Requesting: http://10.0.0.185:8082/domain/5972d707-fe83-49e7-9281-6c5874d144db 2026-11-04 10:12:11,354 - DEBUG - Requesting: http://10.0.0.185:8082/project/32d3af52-5a02-4cec-b496-4f02d529f09e 2026-11-04 10:12:11,421 - DEBUG - Requesting: http://10.0.0.185:8082/network-policy/acd0db7d-7992-4b58-b40e-e9bce0d67b99 2026-11-04 10:12:11,429 - INFO - Verified policy ctest-policy1-79320516 in API Server, Result: True 2026-11-04 10:12:11,429 - INFO - Done with setup and verification, moving onto test .. 2026-11-04 10:12:11,437 - INFO - Deleting VN ctest-vn4-65256244 2026-11-04 10:12:11,544 - DEBUG - Response for deleting network () 2026-11-04 10:12:11,544 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/a213052e-a625-4511-ae00-e15aa77cd157 2026-11-04 10:12:11,549 - DEBUG - Response Code: 404 2026-11-04 10:12:11,549 - DEBUG - Requesting: http://10.0.0.185:8082/domains 2026-11-04 10:12:11,554 - DEBUG - Requesting: http://10.0.0.185:8082/domain/5972d707-fe83-49e7-9281-6c5874d144db 2026-11-04 10:12:11,605 - DEBUG - Requesting: http://10.0.0.185:8082/project/32d3af52-5a02-4cec-b496-4f02d529f09e 2026-11-04 10:12:11,674 - INFO - Validated that VN ctest-vn4-65256244 is not found in API Server 2026-11-04 10:12:11,684 - DEBUG - VN ctest-vn4-65256244 is not present in Agent 10.0.0.185 2026-11-04 10:12:11,684 - INFO - Validated that VN ctest-vn4-65256244 is not in any agent 2026-11-04 10:12:11,702 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-65256244 info 2026-11-04 10:12:11,729 - INFO - Deleted policy ctest-policy1-79320516 2026-11-04 10:12:11,887 - DEBUG - policy ctest-policy1-79320516 is not found in API Server 2026-11-04 10:12:12,143 - DEBUG - No XMPP flaps were noticed during the test