2026-01-28 23:43:59,880 - INFO - Domain Default found not creating 2026-01-28 23:44:00,052 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-88001053 not found, creating it 2026-01-28 23:44:00,521 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-88001053, ID : 5c61bb42-c91b-4b22-9437-edf95c49c3ab 2026-01-28 23:44:02,163 - INFO - ================================================================================ 2026-01-28 23:44:02,164 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-28 23:44:02,423 - DEBUG - Nothing to compare xmpp stats {'10.0.0.154': {'10.20.0.17': '0'}} with 2026-01-28 23:44:02,423 - INFO - Initial checks done. Running the testcase now 2026-01-28 23:44:02,423 - INFO - 2026-01-28 23:44:02,424 - INFO - ================================================================================ 2026-01-28 23:44:02,424 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-28 23:44:02,424 - 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-28 23:44:02,711 - DEBUG - Nothing to compare xmpp stats {'10.0.0.154': {'10.20.0.17': '0'}} with 2026-01-28 23:44:02,711 - INFO - Initial checks done. Running the testcase now 2026-01-28 23:44:02,711 - INFO - 2026-01-28 23:44:03,115 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-88001053:ctest-vn4-46938300, 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-88001053:ctest-vn4-46938300, 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-88001053:ctest-vn4-46938300, 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-88001053:ctest-vn4-46938300, 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-28 23:44:03,632 - DEBUG - Response for create_network : {'network': {'id': '3c46f7a4-b744-4aab-8427-7d7b252a3965', 'name': 'ctest-vn4-46938300', 'tenant_id': '5c61bb42c91b4b229437edf95c49c3ab', 'project_id': '5c61bb42c91b4b229437edf95c49c3ab', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-88001053', 'ctest-vn4-46938300'], 'port_security_enabled': True, 'description': ''}} 2026-01-28 23:44:03,830 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e1ce7ac6-34ed-40a5-9d2b-87dead7b06d2', 'name': '', 'tenant_id': '5c61bb42c91b4b229437edf95c49c3ab', 'network_id': '3c46f7a4-b744-4aab-8427-7d7b252a3965', 'ip_version': 4, 'cidr': '168.5.231.64/26', 'allocation_pools': [{'start': '168.5.231.66', 'end': '168.5.231.126'}], 'gateway_ip': '168.5.231.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '168.5.231.66', 'tags': [], 'project_id': '5c61bb42c91b4b229437edf95c49c3ab'}} 2026-01-28 23:44:04,008 - DEBUG - Response for create_subnet : {'subnet': {'id': '0e3972bd-d209-49bf-a838-7a52b8710d0b', 'name': '', 'tenant_id': '5c61bb42c91b4b229437edf95c49c3ab', 'network_id': '3c46f7a4-b744-4aab-8427-7d7b252a3965', 'ip_version': 6, 'cidr': '2280:739f:b270:c447:a9a7:8e63::/96', 'allocation_pools': [{'start': '2280:739f:b270:c447:a9a7:8e63:0:2', 'end': '2280:739f:b270:c447:a9a7:8e63:ffff:fffe'}], 'gateway_ip': '2280:739f:b270:c447:a9a7:8e63:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2280:739f:b270:c447:a9a7:8e63:0:2', 'tags': [], 'project_id': '5c61bb42c91b4b229437edf95c49c3ab'}} 2026-01-28 23:44:04,032 - INFO - Created VN ctest-vn4-46938300 2026-01-28 23:44:04,089 - DEBUG - VN ctest-vn4-46938300 UUID is 3c46f7a4-b744-4aab-8427-7d7b252a3965 2026-01-28 23:44:04,283 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3c46f7a4-b744-4aab-8427-7d7b252a3965', 'name': 'ctest-vn4-46938300', 'tenant_id': '5c61bb42c91b4b229437edf95c49c3ab', 'project_id': '5c61bb42c91b4b229437edf95c49c3ab', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e1ce7ac6-34ed-40a5-9d2b-87dead7b06d2', '0e3972bd-d209-49bf-a838-7a52b8710d0b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-88001053', 'ctest-vn4-46938300'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-88001053', 'ctest-policy1-45383925']], 'subnet_ipam': [{'subnet_cidr': '168.5.231.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2280:739f:b270:c447:a9a7:8e63::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-01-28 23:44:04,445 - DEBUG - Requesting: http://10.0.0.154:8082/domains 2026-01-28 23:44:04,778 - DEBUG - Requesting: http://10.0.0.154:8082/domains 2026-01-28 23:44:04,808 - DEBUG - Requesting: http://10.0.0.154:8082/domain/5cb91dbf-e3fa-412d-b1a6-e6f20c2a114d 2026-01-28 23:44:04,820 - DEBUG - Requesting: http://10.0.0.154:8082/project/5c61bb42-c91b-4b22-9437-edf95c49c3ab 2026-01-28 23:44:04,893 - DEBUG - Requesting: http://10.0.0.154:8082/virtual-network/3c46f7a4-b744-4aab-8427-7d7b252a3965 2026-01-28 23:44:04,904 - DEBUG - Requesting: http://10.0.0.154:8082/virtual-network/3c46f7a4-b744-4aab-8427-7d7b252a3965 2026-01-28 23:44:04,913 - DEBUG - Requesting: http://10.0.0.154:8082/routing-instance/0b0deec4-fc65-4def-b499-d384eddae113 2026-01-28 23:44:04,920 - DEBUG - Requesting: http://10.0.0.154:8082/routing-instance/0b0deec4-fc65-4def-b499-d384eddae113 2026-01-28 23:44:04,926 - DEBUG - Requesting: http://10.0.0.154:8082/route-target/cf7bdcf5-ef8e-4fdf-97b3-f9f244dc7ae0 2026-01-28 23:44:04,932 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-28 23:44:04,932 - DEBUG - Requesting: http://10.0.0.154:8082/virtual-network/3c46f7a4-b744-4aab-8427-7d7b252a3965 2026-01-28 23:44:04,940 - DEBUG - Requesting: http://10.0.0.154:8082/routing-instance/0b0deec4-fc65-4def-b499-d384eddae113 2026-01-28 23:44:04,952 - INFO - Verified VN network id 11 for VN 3c46f7a4-b744-4aab-8427-7d7b252a3965 2026-01-28 23:44:04,952 - INFO - Verifications in API Server for VN ctest-vn4-46938300 passed 2026-01-28 23:44:04,952 - DEBUG - Requesting: http://10.0.0.154:8082/virtual-network/3c46f7a4-b744-4aab-8427-7d7b252a3965 2026-01-28 23:44:04,961 - DEBUG - Requesting: http://10.0.0.154:8082/routing-instance/0b0deec4-fc65-4def-b499-d384eddae113 2026-01-28 23:44:04,967 - DEBUG - Requesting: http://10.0.0.154:8082/routing-instance/0b0deec4-fc65-4def-b499-d384eddae113 2026-01-28 23:44:04,974 - DEBUG - Requesting: http://10.0.0.154:8082/route-target/cf7bdcf5-ef8e-4fdf-97b3-f9f244dc7ae0 2026-01-28 23:44:04,986 - DEBUG - Control-node 10.0.0.154 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-88001053:ctest-vn4-46938300', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-88001053', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4343431177466825387', 'uuid-lslong': '9522717904956176741'}, 'enable': 'true', 'created': '2026-01-28T23:44:03', 'last-modified': '2026-01-28T23:44:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.726931'} 2026-01-28 23:44:04,992 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-28 23:44:04,992 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-46938300 passed 2026-01-28 23:44:04,992 - DEBUG - ====Verifying policy data for ctest-vn4-46938300 in API_Server ====== 2026-01-28 23:44:04,993 - DEBUG - Requesting: http://10.0.0.154:8082/domains 2026-01-28 23:44:04,997 - DEBUG - Requesting: http://10.0.0.154:8082/domain/5cb91dbf-e3fa-412d-b1a6-e6f20c2a114d 2026-01-28 23:44:05,008 - DEBUG - Requesting: http://10.0.0.154:8082/project/5c61bb42-c91b-4b22-9437-edf95c49c3ab 2026-01-28 23:44:05,083 - DEBUG - Requesting: http://10.0.0.154:8082/virtual-network/3c46f7a4-b744-4aab-8427-7d7b252a3965 2026-01-28 23:44:05,093 - DEBUG - ==>Verifying data for policy with id: bc8dd25c-ec6e-4de5-93dc-155e34abc28e, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-88001053', 'ctest-policy1-45383925'] 2026-01-28 23:44:05,093 - INFO - VN ctest-vn4-46938300 Policy verification: verify_vn_policy_in_api_server, status: True 2026-01-28 23:44:05,093 - DEBUG - Verifying the vn in opserver 2026-01-28 23:44:05,093 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-88001053:ctest-vn4-46938300 virtual network link through opserver 10.0.0.154 2026-01-28 23:44:05,093 - DEBUG - Requesting: http://10.0.0.154:8081/analytics/uves/virtual-networks 2026-01-28 23:44:05,437 - DEBUG - Requesting: http://10.0.0.154:8081/analytics/uves/virtual-networks 2026-01-28 23:44:05,504 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-88001053:ctest-vn4-46938300', 'href': 'http://10.0.0.154:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-88001053:ctest-vn4-46938300?flat'} 2026-01-28 23:44:05,504 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-88001053:ctest-vn4-46938300 is found in opserver 2026-01-28 23:44:05,514 - DEBUG - Do not have enough data to verify VN in agent 2026-01-28 23:44:05,520 - DEBUG - VRF ids for VN ctest-vn4-46938300: {} 2026-01-28 23:44:05,520 - DEBUG - ====Verifying data for ctest-policy1-45383925 in API_Server ====== 2026-01-28 23:44:05,520 - DEBUG - Requesting: http://10.0.0.154:8082/domains 2026-01-28 23:44:05,528 - DEBUG - Requesting: http://10.0.0.154:8082/domain/5cb91dbf-e3fa-412d-b1a6-e6f20c2a114d 2026-01-28 23:44:05,539 - DEBUG - Requesting: http://10.0.0.154:8082/project/5c61bb42-c91b-4b22-9437-edf95c49c3ab 2026-01-28 23:44:05,616 - DEBUG - Requesting: http://10.0.0.154:8082/network-policy/bc8dd25c-ec6e-4de5-93dc-155e34abc28e 2026-01-28 23:44:05,627 - INFO - Verified policy ctest-policy1-45383925 in API Server, Result: True 2026-01-28 23:44:05,627 - INFO - Done with setup and verification, moving onto test .. 2026-01-28 23:44:05,636 - INFO - Deleting VN ctest-vn4-46938300 2026-01-28 23:44:05,751 - DEBUG - Response for deleting network () 2026-01-28 23:44:05,751 - DEBUG - Requesting: http://10.0.0.154:8082/routing-instance/0b0deec4-fc65-4def-b499-d384eddae113 2026-01-28 23:44:05,757 - DEBUG - Response Code: 404 2026-01-28 23:44:05,757 - DEBUG - Requesting: http://10.0.0.154:8082/domains 2026-01-28 23:44:05,762 - DEBUG - Requesting: http://10.0.0.154:8082/domain/5cb91dbf-e3fa-412d-b1a6-e6f20c2a114d 2026-01-28 23:44:05,814 - DEBUG - Requesting: http://10.0.0.154:8082/project/5c61bb42-c91b-4b22-9437-edf95c49c3ab 2026-01-28 23:44:05,884 - INFO - Validated that VN ctest-vn4-46938300 is not found in API Server 2026-01-28 23:44:05,894 - DEBUG - VN ctest-vn4-46938300 is not present in Agent 10.0.0.154 2026-01-28 23:44:05,894 - INFO - Validated that VN ctest-vn4-46938300 is not in any agent 2026-01-28 23:44:05,906 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-46938300 info 2026-01-28 23:44:05,929 - INFO - Deleted policy ctest-policy1-45383925 2026-01-28 23:44:06,093 - DEBUG - policy ctest-policy1-45383925 is not found in API Server 2026-01-28 23:44:06,355 - DEBUG - No XMPP flaps were noticed during the test