2025-11-27 02:08:33,128 - INFO - Domain Default found not creating 2025-11-27 02:08:33,320 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-37495055 not found, creating it 2025-11-27 02:08:33,825 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-37495055, ID : b8c664e9-c328-4cc5-af37-ac356c96f63d 2025-11-27 02:08:35,469 - INFO - ================================================================================ 2025-11-27 02:08:35,469 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-27 02:08:35,733 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.14': '0'}} with 2025-11-27 02:08:35,733 - INFO - Initial checks done. Running the testcase now 2025-11-27 02:08:35,733 - INFO - 2025-11-27 02:08:35,733 - INFO - ================================================================================ 2025-11-27 02:08:35,733 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-27 02:08:35,733 - 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. 2025-11-27 02:08:36,043 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.14': '0'}} with 2025-11-27 02:08:36,043 - INFO - Initial checks done. Running the testcase now 2025-11-27 02:08:36,043 - INFO - 2025-11-27 02:08:36,413 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-37495055:ctest-vn4-74446823, 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-37495055:ctest-vn4-74446823, 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-37495055:ctest-vn4-74446823, 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-37495055:ctest-vn4-74446823, 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] 2025-11-27 02:08:36,963 - DEBUG - Response for create_network : {'network': {'id': '4a9fbfae-1471-416a-b973-a55d2bdde37f', 'name': 'ctest-vn4-74446823', 'tenant_id': 'b8c664e9c3284cc5af37ac356c96f63d', 'project_id': 'b8c664e9c3284cc5af37ac356c96f63d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-37495055', 'ctest-vn4-74446823'], 'port_security_enabled': True, 'description': ''}} 2025-11-27 02:08:37,191 - DEBUG - Response for create_subnet : {'subnet': {'id': '32991569-c96d-498c-bf2b-f680db602d22', 'name': '', 'tenant_id': 'b8c664e9c3284cc5af37ac356c96f63d', 'network_id': '4a9fbfae-1471-416a-b973-a55d2bdde37f', 'ip_version': 4, 'cidr': '166.122.158.0/26', 'allocation_pools': [{'start': '166.122.158.2', 'end': '166.122.158.62'}], 'gateway_ip': '166.122.158.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '166.122.158.2', 'tags': [], 'project_id': 'b8c664e9c3284cc5af37ac356c96f63d'}} 2025-11-27 02:08:37,356 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e19500bb-fc8b-4c50-b8c9-0ba6a65506c4', 'name': '', 'tenant_id': 'b8c664e9c3284cc5af37ac356c96f63d', 'network_id': '4a9fbfae-1471-416a-b973-a55d2bdde37f', 'ip_version': 6, 'cidr': '3d0e:f159:8e82:81e0:3b69:6128::/96', 'allocation_pools': [{'start': '3d0e:f159:8e82:81e0:3b69:6128:0:2', 'end': '3d0e:f159:8e82:81e0:3b69:6128:ffff:fffe'}], 'gateway_ip': '3d0e:f159:8e82:81e0:3b69:6128:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3d0e:f159:8e82:81e0:3b69:6128:0:2', 'tags': [], 'project_id': 'b8c664e9c3284cc5af37ac356c96f63d'}} 2025-11-27 02:08:37,375 - INFO - Created VN ctest-vn4-74446823 2025-11-27 02:08:37,428 - DEBUG - VN ctest-vn4-74446823 UUID is 4a9fbfae-1471-416a-b973-a55d2bdde37f 2025-11-27 02:08:37,633 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4a9fbfae-1471-416a-b973-a55d2bdde37f', 'name': 'ctest-vn4-74446823', 'tenant_id': 'b8c664e9c3284cc5af37ac356c96f63d', 'project_id': 'b8c664e9c3284cc5af37ac356c96f63d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['32991569-c96d-498c-bf2b-f680db602d22', 'e19500bb-fc8b-4c50-b8c9-0ba6a65506c4'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-37495055', 'ctest-vn4-74446823'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-37495055', 'ctest-policy1-27773585']], 'subnet_ipam': [{'subnet_cidr': '166.122.158.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3d0e:f159:8e82:81e0:3b69:6128::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-11-27 02:08:37,795 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2025-11-27 02:08:38,096 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2025-11-27 02:08:38,130 - DEBUG - Requesting: http://10.0.0.41:8082/domain/3e5c660b-c92e-40fc-9148-fe1c208e85cb 2025-11-27 02:08:38,143 - DEBUG - Requesting: http://10.0.0.41:8082/project/b8c664e9-c328-4cc5-af37-ac356c96f63d 2025-11-27 02:08:38,213 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/4a9fbfae-1471-416a-b973-a55d2bdde37f 2025-11-27 02:08:38,225 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/4a9fbfae-1471-416a-b973-a55d2bdde37f 2025-11-27 02:08:38,235 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/053daa7c-73a1-41f6-b178-4ab82a31f4b3 2025-11-27 02:08:38,242 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/053daa7c-73a1-41f6-b178-4ab82a31f4b3 2025-11-27 02:08:38,248 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/fc14a330-b723-4d1a-aeb8-fc3184517575 2025-11-27 02:08:38,254 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-27 02:08:38,254 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/4a9fbfae-1471-416a-b973-a55d2bdde37f 2025-11-27 02:08:38,263 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/053daa7c-73a1-41f6-b178-4ab82a31f4b3 2025-11-27 02:08:38,277 - INFO - Verified VN network id 11 for VN 4a9fbfae-1471-416a-b973-a55d2bdde37f 2025-11-27 02:08:38,277 - INFO - Verifications in API Server for VN ctest-vn4-74446823 passed 2025-11-27 02:08:38,278 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/4a9fbfae-1471-416a-b973-a55d2bdde37f 2025-11-27 02:08:38,289 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/053daa7c-73a1-41f6-b178-4ab82a31f4b3 2025-11-27 02:08:38,297 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/053daa7c-73a1-41f6-b178-4ab82a31f4b3 2025-11-27 02:08:38,306 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/fc14a330-b723-4d1a-aeb8-fc3184517575 2025-11-27 02:08:38,321 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-37495055:ctest-vn4-74446823', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-37495055', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5377227234491842922', 'uuid-lslong': '13363206338924897151'}, 'enable': 'true', 'created': '2025-11-27T02:08:36', 'last-modified': '2025-11-27T02:08:37', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.715262'} 2025-11-27 02:08:38,326 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-27 02:08:38,326 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-74446823 passed 2025-11-27 02:08:38,327 - DEBUG - ====Verifying policy data for ctest-vn4-74446823 in API_Server ====== 2025-11-27 02:08:38,327 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2025-11-27 02:08:38,332 - DEBUG - Requesting: http://10.0.0.41:8082/domain/3e5c660b-c92e-40fc-9148-fe1c208e85cb 2025-11-27 02:08:38,344 - DEBUG - Requesting: http://10.0.0.41:8082/project/b8c664e9-c328-4cc5-af37-ac356c96f63d 2025-11-27 02:08:38,413 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/4a9fbfae-1471-416a-b973-a55d2bdde37f 2025-11-27 02:08:38,423 - DEBUG - ==>Verifying data for policy with id: 0a5cfaa5-08a9-47db-b454-f8070da33a97, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-37495055', 'ctest-policy1-27773585'] 2025-11-27 02:08:38,423 - INFO - VN ctest-vn4-74446823 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-27 02:08:38,423 - DEBUG - Verifying the vn in opserver 2025-11-27 02:08:38,423 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-37495055:ctest-vn4-74446823 virtual network link through opserver 10.0.0.41 2025-11-27 02:08:38,423 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks 2025-11-27 02:08:38,736 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks 2025-11-27 02:08:38,810 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-37495055:ctest-vn4-74446823', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-37495055:ctest-vn4-74446823?flat'} 2025-11-27 02:08:38,810 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-37495055:ctest-vn4-74446823 is found in opserver 2025-11-27 02:08:38,820 - DEBUG - Do not have enough data to verify VN in agent 2025-11-27 02:08:38,824 - DEBUG - VRF ids for VN ctest-vn4-74446823: {} 2025-11-27 02:08:38,825 - DEBUG - ====Verifying data for ctest-policy1-27773585 in API_Server ====== 2025-11-27 02:08:38,825 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2025-11-27 02:08:38,830 - DEBUG - Requesting: http://10.0.0.41:8082/domain/3e5c660b-c92e-40fc-9148-fe1c208e85cb 2025-11-27 02:08:38,841 - DEBUG - Requesting: http://10.0.0.41:8082/project/b8c664e9-c328-4cc5-af37-ac356c96f63d 2025-11-27 02:08:38,914 - DEBUG - Requesting: http://10.0.0.41:8082/network-policy/0a5cfaa5-08a9-47db-b454-f8070da33a97 2025-11-27 02:08:38,922 - INFO - Verified policy ctest-policy1-27773585 in API Server, Result: True 2025-11-27 02:08:38,922 - INFO - Done with setup and verification, moving onto test .. 2025-11-27 02:08:38,930 - INFO - Deleting VN ctest-vn4-74446823 2025-11-27 02:08:39,065 - DEBUG - Response for deleting network () 2025-11-27 02:08:39,066 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/053daa7c-73a1-41f6-b178-4ab82a31f4b3 2025-11-27 02:08:39,071 - DEBUG - Response Code: 404 2025-11-27 02:08:39,071 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2025-11-27 02:08:39,076 - DEBUG - Requesting: http://10.0.0.41:8082/domain/3e5c660b-c92e-40fc-9148-fe1c208e85cb 2025-11-27 02:08:39,133 - DEBUG - Requesting: http://10.0.0.41:8082/project/b8c664e9-c328-4cc5-af37-ac356c96f63d 2025-11-27 02:08:39,201 - INFO - Validated that VN ctest-vn4-74446823 is not found in API Server 2025-11-27 02:08:39,211 - DEBUG - VN ctest-vn4-74446823 is not present in Agent 10.0.0.41 2025-11-27 02:08:39,211 - INFO - Validated that VN ctest-vn4-74446823 is not in any agent 2025-11-27 02:08:39,226 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-74446823 info 2025-11-27 02:08:39,252 - INFO - Deleted policy ctest-policy1-27773585 2025-11-27 02:08:39,419 - DEBUG - policy ctest-policy1-27773585 is not found in API Server 2025-11-27 02:08:39,673 - DEBUG - No XMPP flaps were noticed during the test