2026-02-10 14:35:48,035 - INFO - Domain Default found not creating 2026-02-10 14:35:48,209 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-29435101 not found, creating it 2026-02-10 14:35:48,663 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-29435101, ID : 6a762a6a-4460-4f09-81b3-bd4650d0baf5 2026-02-10 14:35:50,124 - INFO - ================================================================================ 2026-02-10 14:35:50,124 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-10 14:35:50,377 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.254': '0'}} with 2026-02-10 14:35:50,377 - INFO - Initial checks done. Running the testcase now 2026-02-10 14:35:50,377 - INFO - 2026-02-10 14:35:50,377 - INFO - ================================================================================ 2026-02-10 14:35:50,377 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-10 14:35:50,377 - 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 14:35:50,669 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.254': '0'}} with 2026-02-10 14:35:50,669 - INFO - Initial checks done. Running the testcase now 2026-02-10 14:35:50,669 - INFO - 2026-02-10 14:35:51,034 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-29435101:ctest-vn4-99136574, 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-29435101:ctest-vn4-99136574, 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-29435101:ctest-vn4-99136574, 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-29435101:ctest-vn4-99136574, 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 14:35:51,562 - DEBUG - Response for create_network : {'network': {'id': '72273dc5-ca11-4853-a762-317e134df341', 'name': 'ctest-vn4-99136574', 'tenant_id': '6a762a6a44604f0981b3bd4650d0baf5', 'project_id': '6a762a6a44604f0981b3bd4650d0baf5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-29435101', 'ctest-vn4-99136574'], 'port_security_enabled': True, 'description': ''}} 2026-02-10 14:35:51,742 - DEBUG - Response for create_subnet : {'subnet': {'id': '05a84b51-5d65-45ea-9c5e-75a20ca5c014', 'name': '', 'tenant_id': '6a762a6a44604f0981b3bd4650d0baf5', 'network_id': '72273dc5-ca11-4853-a762-317e134df341', 'ip_version': 4, 'cidr': '77.135.193.0/26', 'allocation_pools': [{'start': '77.135.193.2', 'end': '77.135.193.62'}], 'gateway_ip': '77.135.193.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '77.135.193.2', 'tags': [], 'project_id': '6a762a6a44604f0981b3bd4650d0baf5'}} 2026-02-10 14:35:51,952 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e42835f9-6c26-45ec-983e-43e9f0a05f96', 'name': '', 'tenant_id': '6a762a6a44604f0981b3bd4650d0baf5', 'network_id': '72273dc5-ca11-4853-a762-317e134df341', 'ip_version': 6, 'cidr': '2218:2de5:e6cd:ac3f:8f6d:3cf2::/96', 'allocation_pools': [{'start': '2218:2de5:e6cd:ac3f:8f6d:3cf2:0:2', 'end': '2218:2de5:e6cd:ac3f:8f6d:3cf2:ffff:fffe'}], 'gateway_ip': '2218:2de5:e6cd:ac3f:8f6d:3cf2:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2218:2de5:e6cd:ac3f:8f6d:3cf2:0:2', 'tags': [], 'project_id': '6a762a6a44604f0981b3bd4650d0baf5'}} 2026-02-10 14:35:51,971 - INFO - Created VN ctest-vn4-99136574 2026-02-10 14:35:52,020 - DEBUG - VN ctest-vn4-99136574 UUID is 72273dc5-ca11-4853-a762-317e134df341 2026-02-10 14:35:52,234 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '72273dc5-ca11-4853-a762-317e134df341', 'name': 'ctest-vn4-99136574', 'tenant_id': '6a762a6a44604f0981b3bd4650d0baf5', 'project_id': '6a762a6a44604f0981b3bd4650d0baf5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['05a84b51-5d65-45ea-9c5e-75a20ca5c014', 'e42835f9-6c26-45ec-983e-43e9f0a05f96'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-29435101', 'ctest-vn4-99136574'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-29435101', 'ctest-policy1-84909885']], 'subnet_ipam': [{'subnet_cidr': '77.135.193.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2218:2de5:e6cd:ac3f:8f6d:3cf2::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-10 14:35:52,404 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-02-10 14:35:52,699 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-02-10 14:35:52,733 - DEBUG - Requesting: http://10.0.0.242:8082/domain/cee25aa8-5e53-4ebd-9617-023a9c533b53 2026-02-10 14:35:52,747 - DEBUG - Requesting: http://10.0.0.242:8082/project/6a762a6a-4460-4f09-81b3-bd4650d0baf5 2026-02-10 14:35:52,823 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/72273dc5-ca11-4853-a762-317e134df341 2026-02-10 14:35:52,835 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/72273dc5-ca11-4853-a762-317e134df341 2026-02-10 14:35:52,847 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/a41e288b-c2d9-407d-827e-58f91b39f4a0 2026-02-10 14:35:52,855 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/a41e288b-c2d9-407d-827e-58f91b39f4a0 2026-02-10 14:35:52,861 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/38efcc09-841b-48c8-8852-7ed86619eb83 2026-02-10 14:35:52,868 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-10 14:35:52,868 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/72273dc5-ca11-4853-a762-317e134df341 2026-02-10 14:35:52,880 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/a41e288b-c2d9-407d-827e-58f91b39f4a0 2026-02-10 14:35:52,896 - INFO - Verified VN network id 12 for VN 72273dc5-ca11-4853-a762-317e134df341 2026-02-10 14:35:52,897 - INFO - Verifications in API Server for VN ctest-vn4-99136574 passed 2026-02-10 14:35:52,897 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/72273dc5-ca11-4853-a762-317e134df341 2026-02-10 14:35:52,906 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/a41e288b-c2d9-407d-827e-58f91b39f4a0 2026-02-10 14:35:52,913 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/a41e288b-c2d9-407d-827e-58f91b39f4a0 2026-02-10 14:35:52,919 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/38efcc09-841b-48c8-8852-7ed86619eb83 2026-02-10 14:35:52,932 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-29435101:ctest-vn4-99136574', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-29435101', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8225611164123482195', 'uuid-lslong': '12061257169611125569'}, 'enable': 'true', 'created': '2026-02-10T14:35:51', 'last-modified': '2026-02-10T14:35:52', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.725885'} 2026-02-10 14:35:52,939 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-10 14:35:52,939 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-99136574 passed 2026-02-10 14:35:52,939 - DEBUG - ====Verifying policy data for ctest-vn4-99136574 in API_Server ====== 2026-02-10 14:35:52,939 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-02-10 14:35:52,944 - DEBUG - Requesting: http://10.0.0.242:8082/domain/cee25aa8-5e53-4ebd-9617-023a9c533b53 2026-02-10 14:35:52,955 - DEBUG - Requesting: http://10.0.0.242:8082/project/6a762a6a-4460-4f09-81b3-bd4650d0baf5 2026-02-10 14:35:53,026 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/72273dc5-ca11-4853-a762-317e134df341 2026-02-10 14:35:53,035 - DEBUG - ==>Verifying data for policy with id: 0305d6bc-3d82-48e9-9483-65e5e5276d07, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-29435101', 'ctest-policy1-84909885'] 2026-02-10 14:35:53,035 - INFO - VN ctest-vn4-99136574 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-10 14:35:53,035 - DEBUG - Verifying the vn in opserver 2026-02-10 14:35:53,035 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-29435101:ctest-vn4-99136574 virtual network link through opserver 10.0.0.242 2026-02-10 14:35:53,035 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2026-02-10 14:35:53,334 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2026-02-10 14:35:53,398 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-29435101:ctest-vn4-99136574', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-29435101:ctest-vn4-99136574?flat'} 2026-02-10 14:35:53,398 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-29435101:ctest-vn4-99136574 is found in opserver 2026-02-10 14:35:53,408 - DEBUG - Do not have enough data to verify VN in agent 2026-02-10 14:35:53,412 - DEBUG - VRF ids for VN ctest-vn4-99136574: {} 2026-02-10 14:35:53,413 - DEBUG - ====Verifying data for ctest-policy1-84909885 in API_Server ====== 2026-02-10 14:35:53,413 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-02-10 14:35:53,419 - DEBUG - Requesting: http://10.0.0.242:8082/domain/cee25aa8-5e53-4ebd-9617-023a9c533b53 2026-02-10 14:35:53,432 - DEBUG - Requesting: http://10.0.0.242:8082/project/6a762a6a-4460-4f09-81b3-bd4650d0baf5 2026-02-10 14:35:53,504 - DEBUG - Requesting: http://10.0.0.242:8082/network-policy/0305d6bc-3d82-48e9-9483-65e5e5276d07 2026-02-10 14:35:53,515 - INFO - Verified policy ctest-policy1-84909885 in API Server, Result: True 2026-02-10 14:35:53,515 - INFO - Done with setup and verification, moving onto test .. 2026-02-10 14:35:53,522 - INFO - Deleting VN ctest-vn4-99136574 2026-02-10 14:35:53,631 - DEBUG - Response for deleting network () 2026-02-10 14:35:53,631 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/a41e288b-c2d9-407d-827e-58f91b39f4a0 2026-02-10 14:35:53,636 - DEBUG - Response Code: 404 2026-02-10 14:35:53,636 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-02-10 14:35:53,641 - DEBUG - Requesting: http://10.0.0.242:8082/domain/cee25aa8-5e53-4ebd-9617-023a9c533b53 2026-02-10 14:35:53,697 - DEBUG - Requesting: http://10.0.0.242:8082/project/6a762a6a-4460-4f09-81b3-bd4650d0baf5 2026-02-10 14:35:53,770 - INFO - Validated that VN ctest-vn4-99136574 is not found in API Server 2026-02-10 14:35:53,778 - DEBUG - VN ctest-vn4-99136574 is not present in Agent 10.0.0.242 2026-02-10 14:35:53,778 - INFO - Validated that VN ctest-vn4-99136574 is not in any agent 2026-02-10 14:35:53,793 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-99136574 info 2026-02-10 14:35:53,822 - INFO - Deleted policy ctest-policy1-84909885 2026-02-10 14:35:53,988 - DEBUG - policy ctest-policy1-84909885 is not found in API Server 2026-02-10 14:35:54,245 - DEBUG - No XMPP flaps were noticed during the test