2026-05-05 17:18:29,467 - INFO - Domain Default found not creating 2026-05-05 17:18:29,641 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-84536219 not found, creating it 2026-05-05 17:18:30,209 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-84536219, ID : 98f22d77-dbba-483b-a40b-4f95429deb3f 2026-05-05 17:18:31,773 - INFO - ================================================================================ 2026-05-05 17:18:31,774 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-05-05 17:18:32,028 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.254': '0'}} with 2026-05-05 17:18:32,028 - INFO - Initial checks done. Running the testcase now 2026-05-05 17:18:32,028 - INFO - 2026-05-05 17:18:32,028 - INFO - ================================================================================ 2026-05-05 17:18:32,028 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-05-05 17:18:32,029 - 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-05-05 17:18:32,320 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.254': '0'}} with 2026-05-05 17:18:32,320 - INFO - Initial checks done. Running the testcase now 2026-05-05 17:18:32,320 - INFO - 2026-05-05 17:18:32,679 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-84536219:ctest-vn4-79392217, 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-84536219:ctest-vn4-79392217, 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-84536219:ctest-vn4-79392217, 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-84536219:ctest-vn4-79392217, 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-05-05 17:18:33,203 - DEBUG - Response for create_network : {'network': {'id': '9b3a169f-42ac-4e17-87be-2c46b7927a98', 'name': 'ctest-vn4-79392217', 'tenant_id': '98f22d77dbba483ba40b4f95429deb3f', 'project_id': '98f22d77dbba483ba40b4f95429deb3f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-84536219', 'ctest-vn4-79392217'], 'port_security_enabled': True, 'description': ''}} 2026-05-05 17:18:33,407 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c54a2a20-8990-4fb6-8594-5028815c680f', 'name': '', 'tenant_id': '98f22d77dbba483ba40b4f95429deb3f', 'network_id': '9b3a169f-42ac-4e17-87be-2c46b7927a98', 'ip_version': 4, 'cidr': '107.33.163.0/26', 'allocation_pools': [{'start': '107.33.163.2', 'end': '107.33.163.62'}], 'gateway_ip': '107.33.163.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '107.33.163.2', 'tags': [], 'project_id': '98f22d77dbba483ba40b4f95429deb3f'}} 2026-05-05 17:18:33,564 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a130ec5f-d3a5-428a-b78f-2421c8138926', 'name': '', 'tenant_id': '98f22d77dbba483ba40b4f95429deb3f', 'network_id': '9b3a169f-42ac-4e17-87be-2c46b7927a98', 'ip_version': 6, 'cidr': '3570:834a:1cfe:58d4:b615:91dc::/96', 'allocation_pools': [{'start': '3570:834a:1cfe:58d4:b615:91dc:0:2', 'end': '3570:834a:1cfe:58d4:b615:91dc:ffff:fffe'}], 'gateway_ip': '3570:834a:1cfe:58d4:b615:91dc:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3570:834a:1cfe:58d4:b615:91dc:0:2', 'tags': [], 'project_id': '98f22d77dbba483ba40b4f95429deb3f'}} 2026-05-05 17:18:33,584 - INFO - Created VN ctest-vn4-79392217 2026-05-05 17:18:33,639 - DEBUG - VN ctest-vn4-79392217 UUID is 9b3a169f-42ac-4e17-87be-2c46b7927a98 2026-05-05 17:18:33,852 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9b3a169f-42ac-4e17-87be-2c46b7927a98', 'name': 'ctest-vn4-79392217', 'tenant_id': '98f22d77dbba483ba40b4f95429deb3f', 'project_id': '98f22d77dbba483ba40b4f95429deb3f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c54a2a20-8990-4fb6-8594-5028815c680f', 'a130ec5f-d3a5-428a-b78f-2421c8138926'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-84536219', 'ctest-vn4-79392217'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-84536219', 'ctest-policy1-18904301']], 'subnet_ipam': [{'subnet_cidr': '107.33.163.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3570:834a:1cfe:58d4:b615:91dc::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-05-05 17:18:34,011 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-05-05 17:18:34,305 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-05-05 17:18:34,341 - DEBUG - Requesting: http://10.0.0.50:8082/domain/129f68c7-3876-4ce5-ae57-19602b868f83 2026-05-05 17:18:34,354 - DEBUG - Requesting: http://10.0.0.50:8082/project/98f22d77-dbba-483b-a40b-4f95429deb3f 2026-05-05 17:18:34,426 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/9b3a169f-42ac-4e17-87be-2c46b7927a98 2026-05-05 17:18:34,437 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/9b3a169f-42ac-4e17-87be-2c46b7927a98 2026-05-05 17:18:34,447 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/c129d2af-e837-4457-bd36-06233b45245c 2026-05-05 17:18:34,455 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/c129d2af-e837-4457-bd36-06233b45245c 2026-05-05 17:18:34,462 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/a3cc318e-d869-44da-9f23-aeb4e94fbe77 2026-05-05 17:18:34,469 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-05 17:18:34,469 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/9b3a169f-42ac-4e17-87be-2c46b7927a98 2026-05-05 17:18:34,479 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/c129d2af-e837-4457-bd36-06233b45245c 2026-05-05 17:18:34,495 - INFO - Verified VN network id 11 for VN 9b3a169f-42ac-4e17-87be-2c46b7927a98 2026-05-05 17:18:34,495 - INFO - Verifications in API Server for VN ctest-vn4-79392217 passed 2026-05-05 17:18:34,496 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/9b3a169f-42ac-4e17-87be-2c46b7927a98 2026-05-05 17:18:34,506 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/c129d2af-e837-4457-bd36-06233b45245c 2026-05-05 17:18:34,513 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/c129d2af-e837-4457-bd36-06233b45245c 2026-05-05 17:18:34,520 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/a3cc318e-d869-44da-9f23-aeb4e94fbe77 2026-05-05 17:18:34,532 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-84536219:ctest-vn4-79392217', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-84536219', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11185277497802247703', 'uuid-lslong': '9781304122934459032'}, 'enable': 'true', 'created': '2026-05-05T17:18:33', 'last-modified': '2026-05-05T17:18:33', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.706002'} 2026-05-05 17:18:34,538 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-05 17:18:34,538 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-79392217 passed 2026-05-05 17:18:34,538 - DEBUG - ====Verifying policy data for ctest-vn4-79392217 in API_Server ====== 2026-05-05 17:18:34,538 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-05-05 17:18:34,544 - DEBUG - Requesting: http://10.0.0.50:8082/domain/129f68c7-3876-4ce5-ae57-19602b868f83 2026-05-05 17:18:34,555 - DEBUG - Requesting: http://10.0.0.50:8082/project/98f22d77-dbba-483b-a40b-4f95429deb3f 2026-05-05 17:18:34,626 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/9b3a169f-42ac-4e17-87be-2c46b7927a98 2026-05-05 17:18:34,638 - DEBUG - ==>Verifying data for policy with id: 44c24eeb-f3a4-415d-ae74-83c44746682e, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-84536219', 'ctest-policy1-18904301'] 2026-05-05 17:18:34,638 - INFO - VN ctest-vn4-79392217 Policy verification: verify_vn_policy_in_api_server, status: True 2026-05-05 17:18:34,639 - DEBUG - Verifying the vn in opserver 2026-05-05 17:18:34,639 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-84536219:ctest-vn4-79392217 virtual network link through opserver 10.0.0.50 2026-05-05 17:18:34,639 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-05-05 17:18:34,944 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-05-05 17:18:35,021 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-84536219:ctest-vn4-79392217', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-84536219:ctest-vn4-79392217?flat'} 2026-05-05 17:18:35,021 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-84536219:ctest-vn4-79392217 is found in opserver 2026-05-05 17:18:35,031 - DEBUG - Do not have enough data to verify VN in agent 2026-05-05 17:18:35,037 - DEBUG - VRF ids for VN ctest-vn4-79392217: {} 2026-05-05 17:18:35,037 - DEBUG - ====Verifying data for ctest-policy1-18904301 in API_Server ====== 2026-05-05 17:18:35,037 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-05-05 17:18:35,044 - DEBUG - Requesting: http://10.0.0.50:8082/domain/129f68c7-3876-4ce5-ae57-19602b868f83 2026-05-05 17:18:35,059 - DEBUG - Requesting: http://10.0.0.50:8082/project/98f22d77-dbba-483b-a40b-4f95429deb3f 2026-05-05 17:18:35,128 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/44c24eeb-f3a4-415d-ae74-83c44746682e 2026-05-05 17:18:35,137 - INFO - Verified policy ctest-policy1-18904301 in API Server, Result: True 2026-05-05 17:18:35,138 - INFO - Done with setup and verification, moving onto test .. 2026-05-05 17:18:35,146 - INFO - Deleting VN ctest-vn4-79392217 2026-05-05 17:18:35,287 - DEBUG - Response for deleting network () 2026-05-05 17:18:35,287 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/c129d2af-e837-4457-bd36-06233b45245c 2026-05-05 17:18:35,293 - DEBUG - Response Code: 404 2026-05-05 17:18:35,293 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-05-05 17:18:35,299 - DEBUG - Requesting: http://10.0.0.50:8082/domain/129f68c7-3876-4ce5-ae57-19602b868f83 2026-05-05 17:18:35,352 - DEBUG - Requesting: http://10.0.0.50:8082/project/98f22d77-dbba-483b-a40b-4f95429deb3f 2026-05-05 17:18:35,426 - INFO - Validated that VN ctest-vn4-79392217 is not found in API Server 2026-05-05 17:18:35,435 - DEBUG - VN ctest-vn4-79392217 is not present in Agent 10.0.0.50 2026-05-05 17:18:35,435 - INFO - Validated that VN ctest-vn4-79392217 is not in any agent 2026-05-05 17:18:35,449 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-79392217 info 2026-05-05 17:18:35,481 - INFO - Deleted policy ctest-policy1-18904301 2026-05-05 17:18:35,650 - DEBUG - policy ctest-policy1-18904301 is not found in API Server 2026-05-05 17:18:35,904 - DEBUG - No XMPP flaps were noticed during the test