2026-02-10 05:17:01,631 - INFO - Domain Default found not creating 2026-02-10 05:17:01,801 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-50132406 not found, creating it 2026-02-10 05:17:02,259 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-50132406, ID : 6d1b3bc4-6a7e-4f33-bc82-62484f9a431a 2026-02-10 05:17:03,703 - INFO - ================================================================================ 2026-02-10 05:17:03,703 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-10 05:17:03,958 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-02-10 05:17:03,958 - INFO - Initial checks done. Running the testcase now 2026-02-10 05:17:03,958 - INFO - 2026-02-10 05:17:03,959 - INFO - ================================================================================ 2026-02-10 05:17:03,959 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-10 05:17:03,959 - 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-02-10 05:17:04,255 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-02-10 05:17:04,255 - INFO - Initial checks done. Running the testcase now 2026-02-10 05:17:04,255 - INFO - 2026-02-10 05:17:04,693 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-50132406:ctest-vn4-17556806, 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-50132406:ctest-vn4-17556806, 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-50132406:ctest-vn4-17556806, 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-50132406:ctest-vn4-17556806, 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-02-10 05:17:05,186 - DEBUG - Response for create_network : {'network': {'id': 'd3a94e37-065c-4fef-9b4d-a56cc2a24bc5', 'name': 'ctest-vn4-17556806', 'tenant_id': '6d1b3bc46a7e4f33bc8262484f9a431a', 'project_id': '6d1b3bc46a7e4f33bc8262484f9a431a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-50132406', 'ctest-vn4-17556806'], 'port_security_enabled': True, 'description': ''}} 2026-02-10 05:17:05,384 - DEBUG - Response for create_subnet : {'subnet': {'id': 'bfdd3ec4-44aa-45f2-a450-1fc3c19f26d7', 'name': '', 'tenant_id': '6d1b3bc46a7e4f33bc8262484f9a431a', 'network_id': 'd3a94e37-065c-4fef-9b4d-a56cc2a24bc5', 'ip_version': 4, 'cidr': '64.186.49.128/26', 'allocation_pools': [{'start': '64.186.49.130', 'end': '64.186.49.190'}], 'gateway_ip': '64.186.49.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '64.186.49.130', 'tags': [], 'project_id': '6d1b3bc46a7e4f33bc8262484f9a431a'}} 2026-02-10 05:17:05,583 - DEBUG - Response for create_subnet : {'subnet': {'id': '86989461-e204-4b50-aec1-73f81234b520', 'name': '', 'tenant_id': '6d1b3bc46a7e4f33bc8262484f9a431a', 'network_id': 'd3a94e37-065c-4fef-9b4d-a56cc2a24bc5', 'ip_version': 6, 'cidr': '220a:8a6d:eb9a:21b0:fadf:df10::/96', 'allocation_pools': [{'start': '220a:8a6d:eb9a:21b0:fadf:df10:0:2', 'end': '220a:8a6d:eb9a:21b0:fadf:df10:ffff:fffe'}], 'gateway_ip': '220a:8a6d:eb9a:21b0:fadf:df10:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '220a:8a6d:eb9a:21b0:fadf:df10:0:2', 'tags': [], 'project_id': '6d1b3bc46a7e4f33bc8262484f9a431a'}} 2026-02-10 05:17:05,601 - INFO - Created VN ctest-vn4-17556806 2026-02-10 05:17:05,653 - DEBUG - VN ctest-vn4-17556806 UUID is d3a94e37-065c-4fef-9b4d-a56cc2a24bc5 2026-02-10 05:17:05,856 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd3a94e37-065c-4fef-9b4d-a56cc2a24bc5', 'name': 'ctest-vn4-17556806', 'tenant_id': '6d1b3bc46a7e4f33bc8262484f9a431a', 'project_id': '6d1b3bc46a7e4f33bc8262484f9a431a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['bfdd3ec4-44aa-45f2-a450-1fc3c19f26d7', '86989461-e204-4b50-aec1-73f81234b520'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-50132406', 'ctest-vn4-17556806'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-50132406', 'ctest-policy1-04825960']], 'subnet_ipam': [{'subnet_cidr': '64.186.49.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '220a:8a6d:eb9a:21b0:fadf:df10::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-10 05:17:06,017 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-02-10 05:17:06,346 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-02-10 05:17:06,385 - DEBUG - Requesting: http://10.0.0.38:8082/domain/8239fcf5-b3e6-4964-9d80-c841c7b56c63 2026-02-10 05:17:06,399 - DEBUG - Requesting: http://10.0.0.38:8082/project/6d1b3bc4-6a7e-4f33-bc82-62484f9a431a 2026-02-10 05:17:06,473 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d3a94e37-065c-4fef-9b4d-a56cc2a24bc5 2026-02-10 05:17:06,483 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d3a94e37-065c-4fef-9b4d-a56cc2a24bc5 2026-02-10 05:17:06,491 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/93530fe5-5d54-46d4-8f73-65dfa5a38e67 2026-02-10 05:17:06,497 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/93530fe5-5d54-46d4-8f73-65dfa5a38e67 2026-02-10 05:17:06,501 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/db78d269-b97a-4fc8-a461-323965f5c432 2026-02-10 05:17:06,506 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-10 05:17:06,506 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d3a94e37-065c-4fef-9b4d-a56cc2a24bc5 2026-02-10 05:17:06,514 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/93530fe5-5d54-46d4-8f73-65dfa5a38e67 2026-02-10 05:17:06,527 - INFO - Verified VN network id 11 for VN d3a94e37-065c-4fef-9b4d-a56cc2a24bc5 2026-02-10 05:17:06,527 - INFO - Verifications in API Server for VN ctest-vn4-17556806 passed 2026-02-10 05:17:06,527 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d3a94e37-065c-4fef-9b4d-a56cc2a24bc5 2026-02-10 05:17:06,536 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/93530fe5-5d54-46d4-8f73-65dfa5a38e67 2026-02-10 05:17:06,543 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/93530fe5-5d54-46d4-8f73-65dfa5a38e67 2026-02-10 05:17:06,551 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/db78d269-b97a-4fc8-a461-323965f5c432 2026-02-10 05:17:06,562 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-50132406:ctest-vn4-17556806', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-50132406', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15251807611303776239', 'uuid-lslong': '11190782535626017733'}, 'enable': 'true', 'created': '2026-02-10T05:17:05', 'last-modified': '2026-02-10T05:17:05', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.733052'} 2026-02-10 05:17:06,570 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-10 05:17:06,571 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-17556806 passed 2026-02-10 05:17:06,571 - DEBUG - ====Verifying policy data for ctest-vn4-17556806 in API_Server ====== 2026-02-10 05:17:06,571 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-02-10 05:17:06,577 - DEBUG - Requesting: http://10.0.0.38:8082/domain/8239fcf5-b3e6-4964-9d80-c841c7b56c63 2026-02-10 05:17:06,586 - DEBUG - Requesting: http://10.0.0.38:8082/project/6d1b3bc4-6a7e-4f33-bc82-62484f9a431a 2026-02-10 05:17:06,657 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d3a94e37-065c-4fef-9b4d-a56cc2a24bc5 2026-02-10 05:17:06,667 - DEBUG - ==>Verifying data for policy with id: d8019de8-62f1-4eac-a015-f85d852db5d8, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-50132406', 'ctest-policy1-04825960'] 2026-02-10 05:17:06,667 - INFO - VN ctest-vn4-17556806 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-10 05:17:06,667 - DEBUG - Verifying the vn in opserver 2026-02-10 05:17:06,667 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-50132406:ctest-vn4-17556806 virtual network link through opserver 10.0.0.38 2026-02-10 05:17:06,667 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-02-10 05:17:06,969 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-02-10 05:17:07,025 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-50132406:ctest-vn4-17556806', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-50132406:ctest-vn4-17556806?flat'} 2026-02-10 05:17:07,025 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-50132406:ctest-vn4-17556806 is found in opserver 2026-02-10 05:17:07,033 - DEBUG - Do not have enough data to verify VN in agent 2026-02-10 05:17:07,037 - DEBUG - VRF ids for VN ctest-vn4-17556806: {} 2026-02-10 05:17:07,037 - DEBUG - ====Verifying data for ctest-policy1-04825960 in API_Server ====== 2026-02-10 05:17:07,037 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-02-10 05:17:07,042 - DEBUG - Requesting: http://10.0.0.38:8082/domain/8239fcf5-b3e6-4964-9d80-c841c7b56c63 2026-02-10 05:17:07,051 - DEBUG - Requesting: http://10.0.0.38:8082/project/6d1b3bc4-6a7e-4f33-bc82-62484f9a431a 2026-02-10 05:17:07,120 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/d8019de8-62f1-4eac-a015-f85d852db5d8 2026-02-10 05:17:07,128 - INFO - Verified policy ctest-policy1-04825960 in API Server, Result: True 2026-02-10 05:17:07,129 - INFO - Done with setup and verification, moving onto test .. 2026-02-10 05:17:07,135 - INFO - Deleting VN ctest-vn4-17556806 2026-02-10 05:17:07,240 - DEBUG - Response for deleting network () 2026-02-10 05:17:07,240 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/93530fe5-5d54-46d4-8f73-65dfa5a38e67 2026-02-10 05:17:07,245 - DEBUG - Response Code: 404 2026-02-10 05:17:07,245 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-02-10 05:17:07,250 - DEBUG - Requesting: http://10.0.0.38:8082/domain/8239fcf5-b3e6-4964-9d80-c841c7b56c63 2026-02-10 05:17:07,305 - DEBUG - Requesting: http://10.0.0.38:8082/project/6d1b3bc4-6a7e-4f33-bc82-62484f9a431a 2026-02-10 05:17:07,377 - INFO - Validated that VN ctest-vn4-17556806 is not found in API Server 2026-02-10 05:17:07,386 - DEBUG - VN ctest-vn4-17556806 is not present in Agent 10.0.0.38 2026-02-10 05:17:07,386 - INFO - Validated that VN ctest-vn4-17556806 is not in any agent 2026-02-10 05:17:07,401 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-17556806 info 2026-02-10 05:17:07,429 - INFO - Deleted policy ctest-policy1-04825960 2026-02-10 05:17:07,596 - DEBUG - policy ctest-policy1-04825960 is not found in API Server 2026-02-10 05:17:07,849 - DEBUG - No XMPP flaps were noticed during the test
2026-02-10 05:17:07,849 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-02-10 05:17:07,849 - INFO - -------------------------------------------------------------------------------- 2026-02-10 05:17:08,136 - DEBUG - No XMPP flaps were noticed during the test
2026-02-10 05:17:08,137 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-02-10 05:17:08,137 - INFO - -------------------------------------------------------------------------------- 2026-02-10 05:17:08,800 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-50132406, ID : 6d1b3bc4-6a7e-4f33-bc82-62484f9a431a