2026-06-16 15:35:23,461 - INFO - Domain Default found not creating 2026-06-16 15:35:23,583 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-68865926 not found, creating it 2026-06-16 15:35:24,040 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-68865926, ID : 05e3d67e-1957-46fa-a2c3-122918cbe2ef 2026-06-16 15:35:25,410 - INFO - ================================================================================ 2026-06-16 15:35:25,410 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-16 15:35:25,666 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.254': '0'}} with 2026-06-16 15:35:25,666 - INFO - Initial checks done. Running the testcase now 2026-06-16 15:35:25,666 - INFO - 2026-06-16 15:35:25,666 - INFO - ================================================================================ 2026-06-16 15:35:25,666 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-16 15:35:25,666 - 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-16 15:35:25,962 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.254': '0'}} with 2026-06-16 15:35:25,962 - INFO - Initial checks done. Running the testcase now 2026-06-16 15:35:25,962 - INFO - 2026-06-16 15:35:26,370 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-68865926:ctest-vn4-62477069, 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-68865926:ctest-vn4-62477069, 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-68865926:ctest-vn4-62477069, 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-68865926:ctest-vn4-62477069, 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-16 15:35:26,838 - DEBUG - Response for create_network : {'network': {'id': '8d519d50-58a4-4202-b586-eecd6ad325e6', 'name': 'ctest-vn4-62477069', 'tenant_id': '05e3d67e195746faa2c3122918cbe2ef', 'project_id': '05e3d67e195746faa2c3122918cbe2ef', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-68865926', 'ctest-vn4-62477069'], 'port_security_enabled': True, 'description': ''}} 2026-06-16 15:35:26,989 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cd482e86-9901-4b12-b469-5381b617a259', 'name': '', 'tenant_id': '05e3d67e195746faa2c3122918cbe2ef', 'network_id': '8d519d50-58a4-4202-b586-eecd6ad325e6', 'ip_version': 4, 'cidr': '62.255.102.0/26', 'allocation_pools': [{'start': '62.255.102.2', 'end': '62.255.102.62'}], 'gateway_ip': '62.255.102.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '62.255.102.2', 'tags': [], 'project_id': '05e3d67e195746faa2c3122918cbe2ef'}} 2026-06-16 15:35:27,113 - DEBUG - Response for create_subnet : {'subnet': {'id': '0f086a1a-9f54-47b2-bfb0-78cb18fa3710', 'name': '', 'tenant_id': '05e3d67e195746faa2c3122918cbe2ef', 'network_id': '8d519d50-58a4-4202-b586-eecd6ad325e6', 'ip_version': 6, 'cidr': '269e:81f2:20a0:f09a:b627:d275::/96', 'allocation_pools': [{'start': '269e:81f2:20a0:f09a:b627:d275:0:2', 'end': '269e:81f2:20a0:f09a:b627:d275:ffff:fffe'}], 'gateway_ip': '269e:81f2:20a0:f09a:b627:d275:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '269e:81f2:20a0:f09a:b627:d275:0:2', 'tags': [], 'project_id': '05e3d67e195746faa2c3122918cbe2ef'}} 2026-06-16 15:35:27,128 - INFO - Created VN ctest-vn4-62477069 2026-06-16 15:35:27,178 - DEBUG - VN ctest-vn4-62477069 UUID is 8d519d50-58a4-4202-b586-eecd6ad325e6 2026-06-16 15:35:27,353 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8d519d50-58a4-4202-b586-eecd6ad325e6', 'name': 'ctest-vn4-62477069', 'tenant_id': '05e3d67e195746faa2c3122918cbe2ef', 'project_id': '05e3d67e195746faa2c3122918cbe2ef', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['cd482e86-9901-4b12-b469-5381b617a259', '0f086a1a-9f54-47b2-bfb0-78cb18fa3710'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-68865926', 'ctest-vn4-62477069'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-68865926', 'ctest-policy1-66916394']], 'subnet_ipam': [{'subnet_cidr': '62.255.102.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '269e:81f2:20a0:f09a:b627:d275::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-06-16 15:35:27,506 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-06-16 15:35:27,823 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-06-16 15:35:27,846 - DEBUG - Requesting: http://10.0.0.249:8082/domain/e2f0874c-0aab-4053-9e5f-665aec1ff033 2026-06-16 15:35:27,856 - DEBUG - Requesting: http://10.0.0.249:8082/project/05e3d67e-1957-46fa-a2c3-122918cbe2ef 2026-06-16 15:35:27,926 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/8d519d50-58a4-4202-b586-eecd6ad325e6 2026-06-16 15:35:27,936 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/8d519d50-58a4-4202-b586-eecd6ad325e6 2026-06-16 15:35:27,943 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/21539ea1-11d9-40e4-9bc4-969d2aff2c0c 2026-06-16 15:35:27,950 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/21539ea1-11d9-40e4-9bc4-969d2aff2c0c 2026-06-16 15:35:27,955 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/c0c9ab7f-3f9a-4b3c-9efb-a699a8fb25e1 2026-06-16 15:35:27,959 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-16 15:35:27,959 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/8d519d50-58a4-4202-b586-eecd6ad325e6 2026-06-16 15:35:27,967 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/21539ea1-11d9-40e4-9bc4-969d2aff2c0c 2026-06-16 15:35:27,977 - INFO - Verified VN network id 11 for VN 8d519d50-58a4-4202-b586-eecd6ad325e6 2026-06-16 15:35:27,977 - INFO - Verifications in API Server for VN ctest-vn4-62477069 passed 2026-06-16 15:35:27,977 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/8d519d50-58a4-4202-b586-eecd6ad325e6 2026-06-16 15:35:27,984 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/21539ea1-11d9-40e4-9bc4-969d2aff2c0c 2026-06-16 15:35:27,988 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/21539ea1-11d9-40e4-9bc4-969d2aff2c0c 2026-06-16 15:35:27,993 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/c0c9ab7f-3f9a-4b3c-9efb-a699a8fb25e1 2026-06-16 15:35:28,001 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-68865926:ctest-vn4-62477069', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-68865926', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10183093200871506434', 'uuid-lslong': '13080404733772113382'}, 'enable': 'true', 'created': '2026-06-16T15:35:26', 'last-modified': '2026-06-16T15:35:27', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.675534'} 2026-06-16 15:35:28,006 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-16 15:35:28,006 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-62477069 passed 2026-06-16 15:35:28,006 - DEBUG - ====Verifying policy data for ctest-vn4-62477069 in API_Server ====== 2026-06-16 15:35:28,006 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-06-16 15:35:28,011 - DEBUG - Requesting: http://10.0.0.249:8082/domain/e2f0874c-0aab-4053-9e5f-665aec1ff033 2026-06-16 15:35:28,020 - DEBUG - Requesting: http://10.0.0.249:8082/project/05e3d67e-1957-46fa-a2c3-122918cbe2ef 2026-06-16 15:35:28,087 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/8d519d50-58a4-4202-b586-eecd6ad325e6 2026-06-16 15:35:28,097 - DEBUG - ==>Verifying data for policy with id: 43f1a975-4b3e-428e-830e-a9aee932a628, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-68865926', 'ctest-policy1-66916394'] 2026-06-16 15:35:28,097 - INFO - VN ctest-vn4-62477069 Policy verification: verify_vn_policy_in_api_server, status: True 2026-06-16 15:35:28,098 - DEBUG - Verifying the vn in opserver 2026-06-16 15:35:28,098 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-68865926:ctest-vn4-62477069 virtual network link through opserver 10.0.0.249 2026-06-16 15:35:28,098 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2026-06-16 15:35:28,415 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2026-06-16 15:35:28,462 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-68865926:ctest-vn4-62477069', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-68865926:ctest-vn4-62477069?flat'} 2026-06-16 15:35:28,462 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-68865926:ctest-vn4-62477069 is found in opserver 2026-06-16 15:35:28,470 - DEBUG - Do not have enough data to verify VN in agent 2026-06-16 15:35:28,474 - DEBUG - VRF ids for VN ctest-vn4-62477069: {} 2026-06-16 15:35:28,474 - DEBUG - ====Verifying data for ctest-policy1-66916394 in API_Server ====== 2026-06-16 15:35:28,474 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-06-16 15:35:28,478 - DEBUG - Requesting: http://10.0.0.249:8082/domain/e2f0874c-0aab-4053-9e5f-665aec1ff033 2026-06-16 15:35:28,490 - DEBUG - Requesting: http://10.0.0.249:8082/project/05e3d67e-1957-46fa-a2c3-122918cbe2ef 2026-06-16 15:35:28,558 - DEBUG - Requesting: http://10.0.0.249:8082/network-policy/43f1a975-4b3e-428e-830e-a9aee932a628 2026-06-16 15:35:28,565 - INFO - Verified policy ctest-policy1-66916394 in API Server, Result: True 2026-06-16 15:35:28,566 - INFO - Done with setup and verification, moving onto test .. 2026-06-16 15:35:28,572 - INFO - Deleting VN ctest-vn4-62477069 2026-06-16 15:35:28,674 - DEBUG - Response for deleting network () 2026-06-16 15:35:28,674 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/21539ea1-11d9-40e4-9bc4-969d2aff2c0c 2026-06-16 15:35:28,679 - DEBUG - Response Code: 404 2026-06-16 15:35:28,679 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-06-16 15:35:28,683 - DEBUG - Requesting: http://10.0.0.249:8082/domain/e2f0874c-0aab-4053-9e5f-665aec1ff033 2026-06-16 15:35:28,734 - DEBUG - Requesting: http://10.0.0.249:8082/project/05e3d67e-1957-46fa-a2c3-122918cbe2ef 2026-06-16 15:35:28,806 - INFO - Validated that VN ctest-vn4-62477069 is not found in API Server 2026-06-16 15:35:28,813 - DEBUG - VN ctest-vn4-62477069 is not present in Agent 10.0.0.249 2026-06-16 15:35:28,813 - INFO - Validated that VN ctest-vn4-62477069 is not in any agent 2026-06-16 15:35:28,824 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-62477069 info 2026-06-16 15:35:28,845 - INFO - Deleted policy ctest-policy1-66916394 2026-06-16 15:35:29,002 - DEBUG - policy ctest-policy1-66916394 is not found in API Server 2026-06-16 15:35:29,267 - DEBUG - No XMPP flaps were noticed during the test