2026-02-11 13:39:38,946 - INFO - Domain Default found not creating 2026-02-11 13:39:39,133 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-57493037 not found, creating it 2026-02-11 13:39:39,607 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-57493037, ID : d1ef8956-3637-4dc7-8f8c-6158042904f8 2026-02-11 13:39:41,187 - INFO - ================================================================================ 2026-02-11 13:39:41,187 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-11 13:39:41,441 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.25': '0'}} with 2026-02-11 13:39:41,441 - INFO - Initial checks done. Running the testcase now 2026-02-11 13:39:41,441 - INFO - 2026-02-11 13:39:41,441 - INFO - ================================================================================ 2026-02-11 13:39:41,441 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-11 13:39:41,441 - 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-11 13:39:41,727 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.25': '0'}} with 2026-02-11 13:39:41,728 - INFO - Initial checks done. Running the testcase now 2026-02-11 13:39:41,728 - INFO - 2026-02-11 13:39:42,090 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-57493037:ctest-vn4-66724162, 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-57493037:ctest-vn4-66724162, 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-57493037:ctest-vn4-66724162, 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-57493037:ctest-vn4-66724162, 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-11 13:39:42,620 - DEBUG - Response for create_network : {'network': {'id': '4afdfe46-ab4e-4572-99ca-3d72c0e2eaa8', 'name': 'ctest-vn4-66724162', 'tenant_id': 'd1ef895636374dc78f8c6158042904f8', 'project_id': 'd1ef895636374dc78f8c6158042904f8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-57493037', 'ctest-vn4-66724162'], 'port_security_enabled': True, 'description': ''}} 2026-02-11 13:39:42,798 - DEBUG - Response for create_subnet : {'subnet': {'id': 'af669c83-ccc6-4187-930e-d97c70cf142a', 'name': '', 'tenant_id': 'd1ef895636374dc78f8c6158042904f8', 'network_id': '4afdfe46-ab4e-4572-99ca-3d72c0e2eaa8', 'ip_version': 4, 'cidr': '184.149.155.128/26', 'allocation_pools': [{'start': '184.149.155.130', 'end': '184.149.155.190'}], 'gateway_ip': '184.149.155.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '184.149.155.130', 'tags': [], 'project_id': 'd1ef895636374dc78f8c6158042904f8'}} 2026-02-11 13:39:43,022 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a75a3541-ff34-45e6-9dfd-7fb05c620bb9', 'name': '', 'tenant_id': 'd1ef895636374dc78f8c6158042904f8', 'network_id': '4afdfe46-ab4e-4572-99ca-3d72c0e2eaa8', 'ip_version': 6, 'cidr': '2de4:61c7:64a2:a538:146:7b12::/96', 'allocation_pools': [{'start': '2de4:61c7:64a2:a538:146:7b12:0:2', 'end': '2de4:61c7:64a2:a538:146:7b12:ffff:fffe'}], 'gateway_ip': '2de4:61c7:64a2:a538:146:7b12:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2de4:61c7:64a2:a538:146:7b12:0:2', 'tags': [], 'project_id': 'd1ef895636374dc78f8c6158042904f8'}} 2026-02-11 13:39:43,046 - INFO - Created VN ctest-vn4-66724162 2026-02-11 13:39:43,103 - DEBUG - VN ctest-vn4-66724162 UUID is 4afdfe46-ab4e-4572-99ca-3d72c0e2eaa8 2026-02-11 13:39:43,321 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4afdfe46-ab4e-4572-99ca-3d72c0e2eaa8', 'name': 'ctest-vn4-66724162', 'tenant_id': 'd1ef895636374dc78f8c6158042904f8', 'project_id': 'd1ef895636374dc78f8c6158042904f8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['af669c83-ccc6-4187-930e-d97c70cf142a', 'a75a3541-ff34-45e6-9dfd-7fb05c620bb9'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-57493037', 'ctest-vn4-66724162'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-57493037', 'ctest-policy1-43574334']], 'subnet_ipam': [{'subnet_cidr': '184.149.155.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2de4:61c7:64a2:a538:146:7b12::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-11 13:39:43,495 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-02-11 13:39:43,796 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-02-11 13:39:43,834 - DEBUG - Requesting: http://10.0.0.38:8082/domain/bb4b2f2e-a49a-4e82-96ee-df5469b1c629 2026-02-11 13:39:43,845 - DEBUG - Requesting: http://10.0.0.38:8082/project/d1ef8956-3637-4dc7-8f8c-6158042904f8 2026-02-11 13:39:43,929 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/4afdfe46-ab4e-4572-99ca-3d72c0e2eaa8 2026-02-11 13:39:43,946 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/4afdfe46-ab4e-4572-99ca-3d72c0e2eaa8 2026-02-11 13:39:43,960 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/29eb6cea-762a-4412-ba61-7108d2295db1 2026-02-11 13:39:43,970 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/29eb6cea-762a-4412-ba61-7108d2295db1 2026-02-11 13:39:43,978 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/f5ddc5f0-7f3c-4205-8ee4-b0e1631a925f 2026-02-11 13:39:43,986 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-11 13:39:43,986 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/4afdfe46-ab4e-4572-99ca-3d72c0e2eaa8 2026-02-11 13:39:43,997 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/29eb6cea-762a-4412-ba61-7108d2295db1 2026-02-11 13:39:44,014 - INFO - Verified VN network id 12 for VN 4afdfe46-ab4e-4572-99ca-3d72c0e2eaa8 2026-02-11 13:39:44,015 - INFO - Verifications in API Server for VN ctest-vn4-66724162 passed 2026-02-11 13:39:44,015 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/4afdfe46-ab4e-4572-99ca-3d72c0e2eaa8 2026-02-11 13:39:44,027 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/29eb6cea-762a-4412-ba61-7108d2295db1 2026-02-11 13:39:44,036 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/29eb6cea-762a-4412-ba61-7108d2295db1 2026-02-11 13:39:44,043 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/f5ddc5f0-7f3c-4205-8ee4-b0e1631a925f 2026-02-11 13:39:44,055 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-57493037:ctest-vn4-66724162', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-57493037', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5403754707389662578', 'uuid-lslong': '11081737396170189480'}, 'enable': 'true', 'created': '2026-02-11T13:39:42', 'last-modified': '2026-02-11T13:39:43', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.770202'} 2026-02-11 13:39:44,061 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-11 13:39:44,061 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-66724162 passed 2026-02-11 13:39:44,061 - DEBUG - ====Verifying policy data for ctest-vn4-66724162 in API_Server ====== 2026-02-11 13:39:44,062 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-02-11 13:39:44,068 - DEBUG - Requesting: http://10.0.0.38:8082/domain/bb4b2f2e-a49a-4e82-96ee-df5469b1c629 2026-02-11 13:39:44,079 - DEBUG - Requesting: http://10.0.0.38:8082/project/d1ef8956-3637-4dc7-8f8c-6158042904f8 2026-02-11 13:39:44,152 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/4afdfe46-ab4e-4572-99ca-3d72c0e2eaa8 2026-02-11 13:39:44,163 - DEBUG - ==>Verifying data for policy with id: 27bad338-a7b3-406b-ab13-a8838ccda57a, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-57493037', 'ctest-policy1-43574334'] 2026-02-11 13:39:44,163 - INFO - VN ctest-vn4-66724162 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-11 13:39:44,163 - DEBUG - Verifying the vn in opserver 2026-02-11 13:39:44,163 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-57493037:ctest-vn4-66724162 virtual network link through opserver 10.0.0.38 2026-02-11 13:39:44,164 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-02-11 13:39:44,455 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-02-11 13:39:44,519 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-57493037:ctest-vn4-66724162', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-57493037:ctest-vn4-66724162?flat'} 2026-02-11 13:39:44,519 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-57493037:ctest-vn4-66724162 is found in opserver 2026-02-11 13:39:44,529 - DEBUG - Do not have enough data to verify VN in agent 2026-02-11 13:39:44,535 - DEBUG - VRF ids for VN ctest-vn4-66724162: {} 2026-02-11 13:39:44,535 - DEBUG - ====Verifying data for ctest-policy1-43574334 in API_Server ====== 2026-02-11 13:39:44,535 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-02-11 13:39:44,542 - DEBUG - Requesting: http://10.0.0.38:8082/domain/bb4b2f2e-a49a-4e82-96ee-df5469b1c629 2026-02-11 13:39:44,553 - DEBUG - Requesting: http://10.0.0.38:8082/project/d1ef8956-3637-4dc7-8f8c-6158042904f8 2026-02-11 13:39:44,623 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/27bad338-a7b3-406b-ab13-a8838ccda57a 2026-02-11 13:39:44,634 - INFO - Verified policy ctest-policy1-43574334 in API Server, Result: True 2026-02-11 13:39:44,634 - INFO - Done with setup and verification, moving onto test .. 2026-02-11 13:39:44,643 - INFO - Deleting VN ctest-vn4-66724162 2026-02-11 13:39:44,761 - DEBUG - Response for deleting network () 2026-02-11 13:39:44,761 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/29eb6cea-762a-4412-ba61-7108d2295db1 2026-02-11 13:39:44,769 - DEBUG - Response Code: 404 2026-02-11 13:39:44,769 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-02-11 13:39:44,776 - DEBUG - Requesting: http://10.0.0.38:8082/domain/bb4b2f2e-a49a-4e82-96ee-df5469b1c629 2026-02-11 13:39:44,828 - DEBUG - Requesting: http://10.0.0.38:8082/project/d1ef8956-3637-4dc7-8f8c-6158042904f8 2026-02-11 13:39:44,898 - INFO - Validated that VN ctest-vn4-66724162 is not found in API Server 2026-02-11 13:39:44,908 - DEBUG - VN ctest-vn4-66724162 is not present in Agent 10.0.0.38 2026-02-11 13:39:44,908 - INFO - Validated that VN ctest-vn4-66724162 is not in any agent 2026-02-11 13:39:44,923 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-66724162 info 2026-02-11 13:39:44,950 - INFO - Deleted policy ctest-policy1-43574334 2026-02-11 13:39:45,115 - DEBUG - policy ctest-policy1-43574334 is not found in API Server 2026-02-11 13:39:45,369 - DEBUG - No XMPP flaps were noticed during the test