2026-01-02 04:00:10,673 - INFO - Domain Default found not creating 2026-01-02 04:00:10,895 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-81513597 not found, creating it 2026-01-02 04:00:11,603 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-81513597, ID : 8fb3a951-2760-4f64-91e2-8768af3faba0 2026-01-02 04:00:13,334 - INFO - ================================================================================ 2026-01-02 04:00:13,334 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-02 04:00:13,606 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.14': '0'}} with 2026-01-02 04:00:13,606 - INFO - Initial checks done. Running the testcase now 2026-01-02 04:00:13,606 - INFO - 2026-01-02 04:00:13,606 - INFO - ================================================================================ 2026-01-02 04:00:13,606 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-02 04:00:13,606 - 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-02 04:00:13,889 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.14': '0'}} with 2026-01-02 04:00:13,890 - INFO - Initial checks done. Running the testcase now 2026-01-02 04:00:13,890 - INFO - 2026-01-02 04:00:14,305 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-81513597:ctest-vn4-67960309, 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-81513597:ctest-vn4-67960309, 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-81513597:ctest-vn4-67960309, 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-81513597:ctest-vn4-67960309, 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-02 04:00:14,852 - DEBUG - Response for create_network : {'network': {'id': '6895d8ad-90f3-44d9-8128-790e0ebbc8f4', 'name': 'ctest-vn4-67960309', 'tenant_id': '8fb3a95127604f6491e28768af3faba0', 'project_id': '8fb3a95127604f6491e28768af3faba0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-81513597', 'ctest-vn4-67960309'], 'port_security_enabled': True, 'description': ''}} 2026-01-02 04:00:15,070 - DEBUG - Response for create_subnet : {'subnet': {'id': '18c13ec7-3dea-4be6-a79d-f963b9553237', 'name': '', 'tenant_id': '8fb3a95127604f6491e28768af3faba0', 'network_id': '6895d8ad-90f3-44d9-8128-790e0ebbc8f4', 'ip_version': 4, 'cidr': '148.56.252.0/26', 'allocation_pools': [{'start': '148.56.252.2', 'end': '148.56.252.62'}], 'gateway_ip': '148.56.252.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '148.56.252.2', 'tags': [], 'project_id': '8fb3a95127604f6491e28768af3faba0'}} 2026-01-02 04:00:15,276 - DEBUG - Response for create_subnet : {'subnet': {'id': '5d50e5c9-30d8-454a-8179-123c4591460b', 'name': '', 'tenant_id': '8fb3a95127604f6491e28768af3faba0', 'network_id': '6895d8ad-90f3-44d9-8128-790e0ebbc8f4', 'ip_version': 6, 'cidr': '253e:a1d7:d4f9:6cfa:f07e:fbd6::/96', 'allocation_pools': [{'start': '253e:a1d7:d4f9:6cfa:f07e:fbd6:0:2', 'end': '253e:a1d7:d4f9:6cfa:f07e:fbd6:ffff:fffe'}], 'gateway_ip': '253e:a1d7:d4f9:6cfa:f07e:fbd6:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '253e:a1d7:d4f9:6cfa:f07e:fbd6:0:2', 'tags': [], 'project_id': '8fb3a95127604f6491e28768af3faba0'}} 2026-01-02 04:00:15,297 - INFO - Created VN ctest-vn4-67960309 2026-01-02 04:00:15,351 - DEBUG - VN ctest-vn4-67960309 UUID is 6895d8ad-90f3-44d9-8128-790e0ebbc8f4 2026-01-02 04:00:15,571 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6895d8ad-90f3-44d9-8128-790e0ebbc8f4', 'name': 'ctest-vn4-67960309', 'tenant_id': '8fb3a95127604f6491e28768af3faba0', 'project_id': '8fb3a95127604f6491e28768af3faba0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['18c13ec7-3dea-4be6-a79d-f963b9553237', '5d50e5c9-30d8-454a-8179-123c4591460b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-81513597', 'ctest-vn4-67960309'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-81513597', 'ctest-policy1-10345550']], 'subnet_ipam': [{'subnet_cidr': '148.56.252.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '253e:a1d7:d4f9:6cfa:f07e:fbd6::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-01-02 04:00:15,732 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-01-02 04:00:16,083 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-01-02 04:00:16,122 - DEBUG - Requesting: http://10.0.0.249:8082/domain/9b3dbac2-62e3-4efb-8499-1eec04e16611 2026-01-02 04:00:16,135 - DEBUG - Requesting: http://10.0.0.249:8082/project/8fb3a951-2760-4f64-91e2-8768af3faba0 2026-01-02 04:00:16,212 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/6895d8ad-90f3-44d9-8128-790e0ebbc8f4 2026-01-02 04:00:16,226 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/6895d8ad-90f3-44d9-8128-790e0ebbc8f4 2026-01-02 04:00:16,237 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/d0af20f9-a95d-4a8c-9826-884e0fb52856 2026-01-02 04:00:16,246 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/d0af20f9-a95d-4a8c-9826-884e0fb52856 2026-01-02 04:00:16,254 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/d6ad3026-9d33-4235-838e-de244d55be2e 2026-01-02 04:00:16,261 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-02 04:00:16,261 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/6895d8ad-90f3-44d9-8128-790e0ebbc8f4 2026-01-02 04:00:16,272 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/d0af20f9-a95d-4a8c-9826-884e0fb52856 2026-01-02 04:00:16,287 - INFO - Verified VN network id 12 for VN 6895d8ad-90f3-44d9-8128-790e0ebbc8f4 2026-01-02 04:00:16,287 - INFO - Verifications in API Server for VN ctest-vn4-67960309 passed 2026-01-02 04:00:16,287 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/6895d8ad-90f3-44d9-8128-790e0ebbc8f4 2026-01-02 04:00:16,298 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/d0af20f9-a95d-4a8c-9826-884e0fb52856 2026-01-02 04:00:16,305 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/d0af20f9-a95d-4a8c-9826-884e0fb52856 2026-01-02 04:00:16,313 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/d6ad3026-9d33-4235-838e-de244d55be2e 2026-01-02 04:00:16,326 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-81513597:ctest-vn4-67960309', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-81513597', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7536167791447196889', 'uuid-lslong': '9306821731244820724'}, 'enable': 'true', 'created': '2026-01-02T04:00:14', 'last-modified': '2026-01-02T04:00:15', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.785523'} 2026-01-02 04:00:16,332 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-02 04:00:16,332 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-67960309 passed 2026-01-02 04:00:16,333 - DEBUG - ====Verifying policy data for ctest-vn4-67960309 in API_Server ====== 2026-01-02 04:00:16,333 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-01-02 04:00:16,339 - DEBUG - Requesting: http://10.0.0.249:8082/domain/9b3dbac2-62e3-4efb-8499-1eec04e16611 2026-01-02 04:00:16,352 - DEBUG - Requesting: http://10.0.0.249:8082/project/8fb3a951-2760-4f64-91e2-8768af3faba0 2026-01-02 04:00:16,429 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/6895d8ad-90f3-44d9-8128-790e0ebbc8f4 2026-01-02 04:00:16,443 - DEBUG - ==>Verifying data for policy with id: 3bc0d2c8-b16e-4a22-b78e-a85526a1fd11, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-81513597', 'ctest-policy1-10345550'] 2026-01-02 04:00:16,443 - INFO - VN ctest-vn4-67960309 Policy verification: verify_vn_policy_in_api_server, status: True 2026-01-02 04:00:16,443 - DEBUG - Verifying the vn in opserver 2026-01-02 04:00:16,443 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-81513597:ctest-vn4-67960309 virtual network link through opserver 10.0.0.249 2026-01-02 04:00:16,444 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2026-01-02 04:00:16,786 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2026-01-02 04:00:16,850 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-81513597:ctest-vn4-67960309', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-81513597:ctest-vn4-67960309?flat'} 2026-01-02 04:00:16,850 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-81513597:ctest-vn4-67960309 is found in opserver 2026-01-02 04:00:16,860 - DEBUG - Do not have enough data to verify VN in agent 2026-01-02 04:00:16,865 - DEBUG - VRF ids for VN ctest-vn4-67960309: {} 2026-01-02 04:00:16,866 - DEBUG - ====Verifying data for ctest-policy1-10345550 in API_Server ====== 2026-01-02 04:00:16,866 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-01-02 04:00:16,871 - DEBUG - Requesting: http://10.0.0.249:8082/domain/9b3dbac2-62e3-4efb-8499-1eec04e16611 2026-01-02 04:00:16,883 - DEBUG - Requesting: http://10.0.0.249:8082/project/8fb3a951-2760-4f64-91e2-8768af3faba0 2026-01-02 04:00:16,958 - DEBUG - Requesting: http://10.0.0.249:8082/network-policy/3bc0d2c8-b16e-4a22-b78e-a85526a1fd11 2026-01-02 04:00:16,968 - INFO - Verified policy ctest-policy1-10345550 in API Server, Result: True 2026-01-02 04:00:16,968 - INFO - Done with setup and verification, moving onto test .. 2026-01-02 04:00:16,976 - INFO - Deleting VN ctest-vn4-67960309 2026-01-02 04:00:17,106 - DEBUG - Response for deleting network () 2026-01-02 04:00:17,106 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/d0af20f9-a95d-4a8c-9826-884e0fb52856 2026-01-02 04:00:17,111 - DEBUG - Response Code: 404 2026-01-02 04:00:17,111 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-01-02 04:00:17,117 - DEBUG - Requesting: http://10.0.0.249:8082/domain/9b3dbac2-62e3-4efb-8499-1eec04e16611 2026-01-02 04:00:17,176 - DEBUG - Requesting: http://10.0.0.249:8082/project/8fb3a951-2760-4f64-91e2-8768af3faba0 2026-01-02 04:00:17,244 - INFO - Validated that VN ctest-vn4-67960309 is not found in API Server 2026-01-02 04:00:17,255 - DEBUG - VN ctest-vn4-67960309 is not present in Agent 10.0.0.249 2026-01-02 04:00:17,255 - INFO - Validated that VN ctest-vn4-67960309 is not in any agent 2026-01-02 04:00:17,272 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-67960309 info 2026-01-02 04:00:17,300 - INFO - Deleted policy ctest-policy1-10345550 2026-01-02 04:00:17,467 - DEBUG - policy ctest-policy1-10345550 is not found in API Server 2026-01-02 04:00:17,725 - DEBUG - No XMPP flaps were noticed during the test