2026-01-29 15:30:33,596 - INFO - Reading existing Domain with UUID 5762e81a-fedf-4255-81ca-e05b2ea83674 2026-01-29 15:30:33,606 - INFO - Using existing domain ['admin_domain'](5762e81a-fedf-4255-81ca-e05b2ea83674) 2026-01-29 15:30:33,821 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-24991322 not found, creating it 2026-01-29 15:30:34,324 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-24991322, ID : 0b5d374e-ade2-492b-ba85-d2d53e14fb73 2026-01-29 15:30:36,176 - INFO - ================================================================================ 2026-01-29 15:30:36,177 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-29 15:30:36,557 - DEBUG - Nothing to compare xmpp stats {'10.0.0.61': {'10.0.0.61': '0'}} with 2026-01-29 15:30:36,557 - INFO - Initial checks done. Running the testcase now 2026-01-29 15:30:36,557 - INFO - 2026-01-29 15:30:36,557 - INFO - ================================================================================ 2026-01-29 15:30:36,557 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-29 15:30:36,557 - 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-01-29 15:30:36,941 - DEBUG - Nothing to compare xmpp stats {'10.0.0.61': {'10.0.0.61': '0'}} with 2026-01-29 15:30:36,941 - INFO - Initial checks done. Running the testcase now 2026-01-29 15:30:36,941 - INFO - 2026-01-29 15:30:37,334 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-24991322:ctest-vn4-25546299, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-24991322:ctest-vn4-25546299, 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 = admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-24991322:ctest-vn4-25546299, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-24991322:ctest-vn4-25546299, 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-01-29 15:30:38,050 - DEBUG - Response for create_network : {'network': {'id': '3b2dd1c1-156f-402b-a0e4-8abcf957fc8a', 'name': 'ctest-vn4-25546299', 'tenant_id': '0b5d374eade2492bba85d2d53e14fb73', 'project_id': '0b5d374eade2492bba85d2d53e14fb73', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicyNegativeIpv4v6-24991322', 'ctest-vn4-25546299'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}} 2026-01-29 15:30:38,309 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c793bb08-4e84-4064-adf8-3f94b94036f7', 'name': '', 'tenant_id': '0b5d374eade2492bba85d2d53e14fb73', 'network_id': '3b2dd1c1-156f-402b-a0e4-8abcf957fc8a', 'ip_version': 4, 'cidr': '135.29.3.64/26', 'allocation_pools': [{'start': '135.29.3.66', 'end': '135.29.3.126'}], 'gateway_ip': '135.29.3.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2026-01-29T15:30:38.210602', 'updated_at': '2026-01-29T15:30:38.210602', 'dns_server_address': '135.29.3.66', 'tags': [], 'project_id': '0b5d374eade2492bba85d2d53e14fb73'}} 2026-01-29 15:30:38,537 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e3dd5dcf-8b5b-4740-8dec-1f7018edba73', 'name': '', 'tenant_id': '0b5d374eade2492bba85d2d53e14fb73', 'network_id': '3b2dd1c1-156f-402b-a0e4-8abcf957fc8a', 'ip_version': 6, 'cidr': '3263:9e6:6d11:2a30:73f4:5cd6::/96', 'allocation_pools': [{'start': '3263:9e6:6d11:2a30:73f4:5cd6:0:2', 'end': '3263:9e6:6d11:2a30:73f4:5cd6:ffff:fffe'}], 'gateway_ip': '3263:9e6:6d11:2a30:73f4:5cd6:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2026-01-29T15:30:38.430228', 'updated_at': '2026-01-29T15:30:38.430228', 'dns_server_address': '3263:9e6:6d11:2a30:73f4:5cd6:0:2', 'tags': [], 'project_id': '0b5d374eade2492bba85d2d53e14fb73'}} 2026-01-29 15:30:38,606 - INFO - Created VN ctest-vn4-25546299 2026-01-29 15:30:38,660 - DEBUG - VN ctest-vn4-25546299 UUID is 3b2dd1c1-156f-402b-a0e4-8abcf957fc8a 2026-01-29 15:30:39,111 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3b2dd1c1-156f-402b-a0e4-8abcf957fc8a', 'name': 'ctest-vn4-25546299', 'tenant_id': '0b5d374eade2492bba85d2d53e14fb73', 'project_id': '0b5d374eade2492bba85d2d53e14fb73', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c793bb08-4e84-4064-adf8-3f94b94036f7', 'e3dd5dcf-8b5b-4740-8dec-1f7018edba73'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicyNegativeIpv4v6-24991322', 'ctest-vn4-25546299'], 'policys': [['admin_domain', 'ctest-TestBasicPolicyNegativeIpv4v6-24991322', 'ctest-policy1-00147269']], 'subnet_ipam': [{'subnet_cidr': '135.29.3.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3263:9e6:6d11:2a30:73f4:5cd6::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2026-01-29T15:30:37.970244', 'updated_at': '2026-01-29T15:30:38.448661'}} 2026-01-29 15:30:39,288 - DEBUG - Requesting: https://10.0.0.61:8082/domains 2026-01-29 15:30:39,629 - DEBUG - Requesting: https://10.0.0.61:8082/domains 2026-01-29 15:30:39,712 - DEBUG - Requesting: https://10.0.0.61:8082/domain/5762e81a-fedf-4255-81ca-e05b2ea83674 2026-01-29 15:30:39,773 - DEBUG - Requesting: https://10.0.0.61:8082/project/0b5d374e-ade2-492b-ba85-d2d53e14fb73 2026-01-29 15:30:39,861 - DEBUG - Requesting: https://10.0.0.61:8082/virtual-network/3b2dd1c1-156f-402b-a0e4-8abcf957fc8a 2026-01-29 15:30:39,920 - DEBUG - Requesting: https://10.0.0.61:8082/virtual-network/3b2dd1c1-156f-402b-a0e4-8abcf957fc8a 2026-01-29 15:30:39,982 - DEBUG - Requesting: https://10.0.0.61:8082/routing-instance/ba97088a-5b80-49a9-b0bd-ef1a24cb4b6c 2026-01-29 15:30:40,033 - DEBUG - Requesting: https://10.0.0.61:8082/routing-instance/ba97088a-5b80-49a9-b0bd-ef1a24cb4b6c 2026-01-29 15:30:40,085 - DEBUG - Requesting: https://10.0.0.61:8082/route-target/89b4b602-72b7-4d48-84ef-85bc2f8a9d46 2026-01-29 15:30:40,145 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-29 15:30:40,145 - DEBUG - Requesting: https://10.0.0.61:8082/virtual-network/3b2dd1c1-156f-402b-a0e4-8abcf957fc8a 2026-01-29 15:30:40,202 - DEBUG - Requesting: https://10.0.0.61:8082/routing-instance/ba97088a-5b80-49a9-b0bd-ef1a24cb4b6c 2026-01-29 15:30:40,265 - INFO - Verified VN network id 11 for VN 3b2dd1c1-156f-402b-a0e4-8abcf957fc8a 2026-01-29 15:30:40,265 - INFO - Verifications in API Server for VN ctest-vn4-25546299 passed 2026-01-29 15:30:40,265 - DEBUG - Requesting: https://10.0.0.61:8082/virtual-network/3b2dd1c1-156f-402b-a0e4-8abcf957fc8a 2026-01-29 15:30:40,329 - DEBUG - Requesting: https://10.0.0.61:8082/routing-instance/ba97088a-5b80-49a9-b0bd-ef1a24cb4b6c 2026-01-29 15:30:40,385 - DEBUG - Requesting: https://10.0.0.61:8082/routing-instance/ba97088a-5b80-49a9-b0bd-ef1a24cb4b6c 2026-01-29 15:30:40,441 - DEBUG - Requesting: https://10.0.0.61:8082/route-target/89b4b602-72b7-4d48-84ef-85bc2f8a9d46 2026-01-29 15:30:40,545 - DEBUG - Control-node 10.0.0.61 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-24991322:ctest-vn4-25546299', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-24991322', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4264295049408233515', 'uuid-lslong': '11593543885000277130'}, 'enable': 'true', 'created': '2026-01-29T15:30:37', 'last-modified': '2026-01-29T15:30:39', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.459051'} 2026-01-29 15:30:40,593 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-29 15:30:40,594 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-25546299 passed 2026-01-29 15:30:40,594 - DEBUG - ====Verifying policy data for ctest-vn4-25546299 in API_Server ====== 2026-01-29 15:30:40,594 - DEBUG - Requesting: https://10.0.0.61:8082/domains 2026-01-29 15:30:40,644 - DEBUG - Requesting: https://10.0.0.61:8082/domain/5762e81a-fedf-4255-81ca-e05b2ea83674 2026-01-29 15:30:40,701 - DEBUG - Requesting: https://10.0.0.61:8082/project/0b5d374e-ade2-492b-ba85-d2d53e14fb73 2026-01-29 15:30:40,783 - DEBUG - Requesting: https://10.0.0.61:8082/virtual-network/3b2dd1c1-156f-402b-a0e4-8abcf957fc8a 2026-01-29 15:30:40,838 - DEBUG - ==>Verifying data for policy with id: b06282f2-89b3-412a-9253-e271c6982dad, fqn: ['admin_domain', 'ctest-TestBasicPolicyNegativeIpv4v6-24991322', 'ctest-policy1-00147269'] 2026-01-29 15:30:40,838 - INFO - VN ctest-vn4-25546299 Policy verification: verify_vn_policy_in_api_server, status: True 2026-01-29 15:30:40,838 - DEBUG - Verifying the vn in opserver 2026-01-29 15:30:40,838 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-24991322:ctest-vn4-25546299 virtual network link through opserver 10.0.0.61 2026-01-29 15:30:40,839 - DEBUG - Requesting: https://10.0.0.61:8081/analytics/uves/virtual-networks 2026-01-29 15:30:41,184 - DEBUG - Requesting: https://10.0.0.61:8081/analytics/uves/virtual-networks 2026-01-29 15:30:41,304 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-24991322:ctest-vn4-25546299', 'href': 'https://10.0.0.61:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-24991322:ctest-vn4-25546299?flat'} 2026-01-29 15:30:41,304 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-24991322:ctest-vn4-25546299 is found in opserver 2026-01-29 15:30:41,404 - DEBUG - Do not have enough data to verify VN in agent 2026-01-29 15:30:41,453 - DEBUG - VRF ids for VN ctest-vn4-25546299: {} 2026-01-29 15:30:41,453 - DEBUG - ====Verifying data for ctest-policy1-00147269 in API_Server ====== 2026-01-29 15:30:41,453 - DEBUG - Requesting: https://10.0.0.61:8082/domains 2026-01-29 15:30:41,509 - DEBUG - Requesting: https://10.0.0.61:8082/domain/5762e81a-fedf-4255-81ca-e05b2ea83674 2026-01-29 15:30:41,565 - DEBUG - Requesting: https://10.0.0.61:8082/project/0b5d374e-ade2-492b-ba85-d2d53e14fb73 2026-01-29 15:30:41,642 - DEBUG - Requesting: https://10.0.0.61:8082/network-policy/b06282f2-89b3-412a-9253-e271c6982dad 2026-01-29 15:30:41,698 - INFO - Verified policy ctest-policy1-00147269 in API Server, Result: True 2026-01-29 15:30:41,698 - INFO - Done with setup and verification, moving onto test .. 2026-01-29 15:30:41,711 - INFO - Deleting VN ctest-vn4-25546299 2026-01-29 15:30:41,902 - DEBUG - Response for deleting network () 2026-01-29 15:30:41,902 - DEBUG - Requesting: https://10.0.0.61:8082/routing-instance/ba97088a-5b80-49a9-b0bd-ef1a24cb4b6c 2026-01-29 15:30:41,956 - DEBUG - Response Code: 404 2026-01-29 15:30:41,956 - DEBUG - Requesting: https://10.0.0.61:8082/domains 2026-01-29 15:30:42,008 - DEBUG - Requesting: https://10.0.0.61:8082/domain/5762e81a-fedf-4255-81ca-e05b2ea83674 2026-01-29 15:30:42,069 - DEBUG - Requesting: https://10.0.0.61:8082/project/0b5d374e-ade2-492b-ba85-d2d53e14fb73 2026-01-29 15:30:42,153 - INFO - Validated that VN ctest-vn4-25546299 is not found in API Server 2026-01-29 15:30:42,252 - DEBUG - VN ctest-vn4-25546299 is not present in Agent 10.0.0.61 2026-01-29 15:30:42,252 - INFO - Validated that VN ctest-vn4-25546299 is not in any agent 2026-01-29 15:30:42,401 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-25546299 info 2026-01-29 15:30:42,425 - INFO - Deleted policy ctest-policy1-00147269 2026-01-29 15:30:42,588 - DEBUG - policy ctest-policy1-00147269 is not found in API Server 2026-01-29 15:30:42,969 - DEBUG - No XMPP flaps were noticed during the test