2026-07-17 18:08:52,304 - INFO - Domain Default found not creating 2026-07-17 18:08:52,472 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-07824014 not found, creating it 2026-07-17 18:08:52,955 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-07824014, ID : 88e4f7d8-6aa8-41c4-84c2-ad43c6320462 2026-07-17 18:08:54,729 - INFO - ================================================================================ 2026-07-17 18:08:54,729 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-07-17 18:08:55,002 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-07-17 18:08:55,003 - INFO - Initial checks done. Running the testcase now 2026-07-17 18:08:55,003 - INFO - 2026-07-17 18:08:55,003 - INFO - ================================================================================ 2026-07-17 18:08:55,003 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-07-17 18:08:55,003 - 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-07-17 18:08:55,300 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-07-17 18:08:55,300 - INFO - Initial checks done. Running the testcase now 2026-07-17 18:08:55,300 - INFO - 2026-07-17 18:08:55,726 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-07824014:ctest-vn4-29514810, 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-07824014:ctest-vn4-29514810, 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-07824014:ctest-vn4-29514810, 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-07824014:ctest-vn4-29514810, 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-07-17 18:08:56,267 - DEBUG - Response for create_network : {'network': {'id': 'ee39fd6f-223a-42d7-b707-313e6e925664', 'name': 'ctest-vn4-29514810', 'tenant_id': '88e4f7d86aa841c484c2ad43c6320462', 'project_id': '88e4f7d86aa841c484c2ad43c6320462', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-07824014', 'ctest-vn4-29514810'], 'port_security_enabled': True, 'description': ''}} 2026-07-17 18:08:56,469 - DEBUG - Response for create_subnet : {'subnet': {'id': '78eeaec1-9b57-4be3-bc87-84478de0f979', 'name': '', 'tenant_id': '88e4f7d86aa841c484c2ad43c6320462', 'network_id': 'ee39fd6f-223a-42d7-b707-313e6e925664', 'ip_version': 4, 'cidr': '79.59.5.64/26', 'allocation_pools': [{'start': '79.59.5.66', 'end': '79.59.5.126'}], 'gateway_ip': '79.59.5.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '79.59.5.66', 'tags': [], 'project_id': '88e4f7d86aa841c484c2ad43c6320462'}} 2026-07-17 18:08:56,650 - DEBUG - Response for create_subnet : {'subnet': {'id': '70d65c24-99bd-4157-a2c2-250bc845c0d7', 'name': '', 'tenant_id': '88e4f7d86aa841c484c2ad43c6320462', 'network_id': 'ee39fd6f-223a-42d7-b707-313e6e925664', 'ip_version': 6, 'cidr': '36bf:9a27:ede6:a4c2:3179:d61c::/96', 'allocation_pools': [{'start': '36bf:9a27:ede6:a4c2:3179:d61c:0:2', 'end': '36bf:9a27:ede6:a4c2:3179:d61c:ffff:fffe'}], 'gateway_ip': '36bf:9a27:ede6:a4c2:3179:d61c:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '36bf:9a27:ede6:a4c2:3179:d61c:0:2', 'tags': [], 'project_id': '88e4f7d86aa841c484c2ad43c6320462'}} 2026-07-17 18:08:56,670 - INFO - Created VN ctest-vn4-29514810 2026-07-17 18:08:56,722 - DEBUG - VN ctest-vn4-29514810 UUID is ee39fd6f-223a-42d7-b707-313e6e925664 2026-07-17 18:08:56,936 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ee39fd6f-223a-42d7-b707-313e6e925664', 'name': 'ctest-vn4-29514810', 'tenant_id': '88e4f7d86aa841c484c2ad43c6320462', 'project_id': '88e4f7d86aa841c484c2ad43c6320462', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['78eeaec1-9b57-4be3-bc87-84478de0f979', '70d65c24-99bd-4157-a2c2-250bc845c0d7'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-07824014', 'ctest-vn4-29514810'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-07824014', 'ctest-policy1-53877947']], 'subnet_ipam': [{'subnet_cidr': '79.59.5.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '36bf:9a27:ede6:a4c2:3179:d61c::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-07-17 18:08:57,106 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-07-17 18:08:57,481 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-07-17 18:08:57,508 - DEBUG - Requesting: http://10.0.0.38:8082/domain/5f880a7f-de93-44ce-aa16-f69437742e26 2026-07-17 18:08:57,525 - DEBUG - Requesting: http://10.0.0.38:8082/project/88e4f7d8-6aa8-41c4-84c2-ad43c6320462 2026-07-17 18:08:57,602 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ee39fd6f-223a-42d7-b707-313e6e925664 2026-07-17 18:08:57,618 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ee39fd6f-223a-42d7-b707-313e6e925664 2026-07-17 18:08:57,631 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a11c8e2e-81ab-4200-a5fd-4bdb68cda27a 2026-07-17 18:08:57,638 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a11c8e2e-81ab-4200-a5fd-4bdb68cda27a 2026-07-17 18:08:57,646 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/7eccd491-7654-488e-bc7b-c175d5af57ef 2026-07-17 18:08:57,653 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-07-17 18:08:57,653 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ee39fd6f-223a-42d7-b707-313e6e925664 2026-07-17 18:08:57,665 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a11c8e2e-81ab-4200-a5fd-4bdb68cda27a 2026-07-17 18:08:57,679 - INFO - Verified VN network id 11 for VN ee39fd6f-223a-42d7-b707-313e6e925664 2026-07-17 18:08:57,679 - INFO - Verifications in API Server for VN ctest-vn4-29514810 passed 2026-07-17 18:08:57,679 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ee39fd6f-223a-42d7-b707-313e6e925664 2026-07-17 18:08:57,689 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a11c8e2e-81ab-4200-a5fd-4bdb68cda27a 2026-07-17 18:08:57,696 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a11c8e2e-81ab-4200-a5fd-4bdb68cda27a 2026-07-17 18:08:57,703 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/7eccd491-7654-488e-bc7b-c175d5af57ef 2026-07-17 18:08:57,717 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-07824014:ctest-vn4-29514810', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-07824014', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17166030108456796887', 'uuid-lslong': '13188564177990604388'}, 'enable': 'true', 'created': '2026-07-17T18:08:56', 'last-modified': '2026-07-17T18:08:56', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.813447'} 2026-07-17 18:08:57,723 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-07-17 18:08:57,723 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-29514810 passed 2026-07-17 18:08:57,724 - DEBUG - ====Verifying policy data for ctest-vn4-29514810 in API_Server ====== 2026-07-17 18:08:57,724 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-07-17 18:08:57,729 - DEBUG - Requesting: http://10.0.0.38:8082/domain/5f880a7f-de93-44ce-aa16-f69437742e26 2026-07-17 18:08:57,740 - DEBUG - Requesting: http://10.0.0.38:8082/project/88e4f7d8-6aa8-41c4-84c2-ad43c6320462 2026-07-17 18:08:57,817 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ee39fd6f-223a-42d7-b707-313e6e925664 2026-07-17 18:08:57,829 - DEBUG - ==>Verifying data for policy with id: 318da3c5-3a2a-4a85-a175-a048c96f7ff2, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-07824014', 'ctest-policy1-53877947'] 2026-07-17 18:08:57,829 - INFO - VN ctest-vn4-29514810 Policy verification: verify_vn_policy_in_api_server, status: True 2026-07-17 18:08:57,829 - DEBUG - Verifying the vn in opserver 2026-07-17 18:08:57,829 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-07824014:ctest-vn4-29514810 virtual network link through opserver 10.0.0.38 2026-07-17 18:08:57,829 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-07-17 18:08:58,192 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-07-17 18:08:58,246 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-07824014:ctest-vn4-29514810', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-07824014:ctest-vn4-29514810?flat'} 2026-07-17 18:08:58,246 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-07824014:ctest-vn4-29514810 is found in opserver 2026-07-17 18:08:58,257 - DEBUG - Do not have enough data to verify VN in agent 2026-07-17 18:08:58,265 - DEBUG - VRF ids for VN ctest-vn4-29514810: {} 2026-07-17 18:08:58,265 - DEBUG - ====Verifying data for ctest-policy1-53877947 in API_Server ====== 2026-07-17 18:08:58,265 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-07-17 18:08:58,273 - DEBUG - Requesting: http://10.0.0.38:8082/domain/5f880a7f-de93-44ce-aa16-f69437742e26 2026-07-17 18:08:58,285 - DEBUG - Requesting: http://10.0.0.38:8082/project/88e4f7d8-6aa8-41c4-84c2-ad43c6320462 2026-07-17 18:08:58,357 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/318da3c5-3a2a-4a85-a175-a048c96f7ff2 2026-07-17 18:08:58,367 - INFO - Verified policy ctest-policy1-53877947 in API Server, Result: True 2026-07-17 18:08:58,368 - INFO - Done with setup and verification, moving onto test .. 2026-07-17 18:08:58,375 - INFO - Deleting VN ctest-vn4-29514810 2026-07-17 18:08:58,499 - DEBUG - Response for deleting network () 2026-07-17 18:08:58,499 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a11c8e2e-81ab-4200-a5fd-4bdb68cda27a 2026-07-17 18:08:58,504 - DEBUG - Response Code: 404 2026-07-17 18:08:58,504 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-07-17 18:08:58,510 - DEBUG - Requesting: http://10.0.0.38:8082/domain/5f880a7f-de93-44ce-aa16-f69437742e26 2026-07-17 18:08:58,563 - DEBUG - Requesting: http://10.0.0.38:8082/project/88e4f7d8-6aa8-41c4-84c2-ad43c6320462 2026-07-17 18:08:58,643 - INFO - Validated that VN ctest-vn4-29514810 is not found in API Server 2026-07-17 18:08:58,655 - DEBUG - VN ctest-vn4-29514810 is not present in Agent 10.0.0.38 2026-07-17 18:08:58,655 - INFO - Validated that VN ctest-vn4-29514810 is not in any agent 2026-07-17 18:08:58,672 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-29514810 info 2026-07-17 18:08:58,704 - INFO - Deleted policy ctest-policy1-53877947 2026-07-17 18:08:58,869 - DEBUG - policy ctest-policy1-53877947 is not found in API Server 2026-07-17 18:08:59,142 - DEBUG - No XMPP flaps were noticed during the test
2026-07-17 18:08:59,143 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-07-17 18:08:59,143 - INFO - -------------------------------------------------------------------------------- 2026-07-17 18:08:59,438 - DEBUG - No XMPP flaps were noticed during the test
2026-07-17 18:08:59,438 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-07-17 18:08:59,438 - INFO - -------------------------------------------------------------------------------- 2026-07-17 18:09:00,238 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-07824014, ID : 88e4f7d8-6aa8-41c4-84c2-ad43c6320462