2025-10-23 02:00:21,203 - INFO - Domain Default found not creating 2025-10-23 02:00:21,374 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-48490741 not found, creating it 2025-10-23 02:00:21,867 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-48490741, ID : ffef5a09-40ef-4c33-b355-4445a8d7975f 2025-10-23 02:00:23,417 - INFO - ================================================================================ 2025-10-23 02:00:23,417 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-23 02:00:23,676 - DEBUG - Nothing to compare xmpp stats {'10.0.0.241': {'10.20.0.252': '0'}} with 2025-10-23 02:00:23,676 - INFO - Initial checks done. Running the testcase now 2025-10-23 02:00:23,676 - INFO - 2025-10-23 02:00:23,676 - INFO - ================================================================================ 2025-10-23 02:00:23,676 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-23 02:00:23,676 - 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-10-23 02:00:23,968 - DEBUG - Nothing to compare xmpp stats {'10.0.0.241': {'10.20.0.252': '0'}} with 2025-10-23 02:00:23,968 - INFO - Initial checks done. Running the testcase now 2025-10-23 02:00:23,968 - INFO - 2025-10-23 02:00:24,360 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-48490741:ctest-vn4-06423191, 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-48490741:ctest-vn4-06423191, 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-48490741:ctest-vn4-06423191, 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-48490741:ctest-vn4-06423191, 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-10-23 02:00:24,897 - DEBUG - Response for create_network : {'network': {'id': '411a3be8-a4af-4690-9767-11b49fd82d9f', 'name': 'ctest-vn4-06423191', 'tenant_id': 'ffef5a0940ef4c33b3554445a8d7975f', 'project_id': 'ffef5a0940ef4c33b3554445a8d7975f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-48490741', 'ctest-vn4-06423191'], 'port_security_enabled': True, 'description': ''}} 2025-10-23 02:00:25,131 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f1c49ccf-cd7d-4955-a905-4b382852d357', 'name': '', 'tenant_id': 'ffef5a0940ef4c33b3554445a8d7975f', 'network_id': '411a3be8-a4af-4690-9767-11b49fd82d9f', 'ip_version': 4, 'cidr': '52.137.180.128/26', 'allocation_pools': [{'start': '52.137.180.130', 'end': '52.137.180.190'}], 'gateway_ip': '52.137.180.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '52.137.180.130', 'tags': [], 'project_id': 'ffef5a0940ef4c33b3554445a8d7975f'}} 2025-10-23 02:00:25,322 - DEBUG - Response for create_subnet : {'subnet': {'id': '688cfe58-a789-44f2-9998-d36655cce482', 'name': '', 'tenant_id': 'ffef5a0940ef4c33b3554445a8d7975f', 'network_id': '411a3be8-a4af-4690-9767-11b49fd82d9f', 'ip_version': 6, 'cidr': '2cb0:e177:9bac:8a60:c765:d5f1::/96', 'allocation_pools': [{'start': '2cb0:e177:9bac:8a60:c765:d5f1:0:2', 'end': '2cb0:e177:9bac:8a60:c765:d5f1:ffff:fffe'}], 'gateway_ip': '2cb0:e177:9bac:8a60:c765:d5f1:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2cb0:e177:9bac:8a60:c765:d5f1:0:2', 'tags': [], 'project_id': 'ffef5a0940ef4c33b3554445a8d7975f'}} 2025-10-23 02:00:25,345 - INFO - Created VN ctest-vn4-06423191 2025-10-23 02:00:25,399 - DEBUG - VN ctest-vn4-06423191 UUID is 411a3be8-a4af-4690-9767-11b49fd82d9f 2025-10-23 02:00:25,613 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '411a3be8-a4af-4690-9767-11b49fd82d9f', 'name': 'ctest-vn4-06423191', 'tenant_id': 'ffef5a0940ef4c33b3554445a8d7975f', 'project_id': 'ffef5a0940ef4c33b3554445a8d7975f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f1c49ccf-cd7d-4955-a905-4b382852d357', '688cfe58-a789-44f2-9998-d36655cce482'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-48490741', 'ctest-vn4-06423191'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-48490741', 'ctest-policy1-40199716']], 'subnet_ipam': [{'subnet_cidr': '52.137.180.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2cb0:e177:9bac:8a60:c765:d5f1::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-23 02:00:25,779 - DEBUG - Requesting: http://10.0.0.241:8082/domains 2025-10-23 02:00:26,080 - DEBUG - Requesting: http://10.0.0.241:8082/domains 2025-10-23 02:00:26,112 - DEBUG - Requesting: http://10.0.0.241:8082/domain/50f717e1-7edc-43de-8b5a-5b897134ccb4 2025-10-23 02:00:26,127 - DEBUG - Requesting: http://10.0.0.241:8082/project/ffef5a09-40ef-4c33-b355-4445a8d7975f 2025-10-23 02:00:26,200 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/411a3be8-a4af-4690-9767-11b49fd82d9f 2025-10-23 02:00:26,212 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/411a3be8-a4af-4690-9767-11b49fd82d9f 2025-10-23 02:00:26,225 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/7f4b013b-d686-4d65-9d34-467cc10d586d 2025-10-23 02:00:26,232 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/7f4b013b-d686-4d65-9d34-467cc10d586d 2025-10-23 02:00:26,241 - DEBUG - Requesting: http://10.0.0.241:8082/route-target/9fcb8c89-f440-47e1-b730-d6a4546d4bab 2025-10-23 02:00:26,248 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-23 02:00:26,248 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/411a3be8-a4af-4690-9767-11b49fd82d9f 2025-10-23 02:00:26,260 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/7f4b013b-d686-4d65-9d34-467cc10d586d 2025-10-23 02:00:26,275 - INFO - Verified VN network id 11 for VN 411a3be8-a4af-4690-9767-11b49fd82d9f 2025-10-23 02:00:26,275 - INFO - Verifications in API Server for VN ctest-vn4-06423191 passed 2025-10-23 02:00:26,275 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/411a3be8-a4af-4690-9767-11b49fd82d9f 2025-10-23 02:00:26,287 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/7f4b013b-d686-4d65-9d34-467cc10d586d 2025-10-23 02:00:26,296 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/7f4b013b-d686-4d65-9d34-467cc10d586d 2025-10-23 02:00:26,304 - DEBUG - Requesting: http://10.0.0.241:8082/route-target/9fcb8c89-f440-47e1-b730-d6a4546d4bab 2025-10-23 02:00:26,316 - DEBUG - Control-node 10.0.0.241 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-48490741:ctest-vn4-06423191', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-48490741', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4691127832241194640', 'uuid-lslong': '10909708089801846175'}, 'enable': 'true', 'created': '2025-10-23T02:00:24', 'last-modified': '2025-10-23T02:00:25', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.728086'} 2025-10-23 02:00:26,323 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-23 02:00:26,323 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-06423191 passed 2025-10-23 02:00:26,324 - DEBUG - ====Verifying policy data for ctest-vn4-06423191 in API_Server ====== 2025-10-23 02:00:26,324 - DEBUG - Requesting: http://10.0.0.241:8082/domains 2025-10-23 02:00:26,330 - DEBUG - Requesting: http://10.0.0.241:8082/domain/50f717e1-7edc-43de-8b5a-5b897134ccb4 2025-10-23 02:00:26,346 - DEBUG - Requesting: http://10.0.0.241:8082/project/ffef5a09-40ef-4c33-b355-4445a8d7975f 2025-10-23 02:00:26,424 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/411a3be8-a4af-4690-9767-11b49fd82d9f 2025-10-23 02:00:26,435 - DEBUG - ==>Verifying data for policy with id: 43334acf-1e1f-472f-823d-9905ae9f0799, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-48490741', 'ctest-policy1-40199716'] 2025-10-23 02:00:26,435 - INFO - VN ctest-vn4-06423191 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-23 02:00:26,435 - DEBUG - Verifying the vn in opserver 2025-10-23 02:00:26,435 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-48490741:ctest-vn4-06423191 virtual network link through opserver 10.0.0.241 2025-10-23 02:00:26,435 - DEBUG - Requesting: http://10.0.0.241:8081/analytics/uves/virtual-networks 2025-10-23 02:00:26,738 - DEBUG - Requesting: http://10.0.0.241:8081/analytics/uves/virtual-networks 2025-10-23 02:00:26,819 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-48490741:ctest-vn4-06423191', 'href': 'http://10.0.0.241:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-48490741:ctest-vn4-06423191?flat'} 2025-10-23 02:00:26,819 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-48490741:ctest-vn4-06423191 is found in opserver 2025-10-23 02:00:26,836 - DEBUG - Do not have enough data to verify VN in agent 2025-10-23 02:00:26,844 - DEBUG - VRF ids for VN ctest-vn4-06423191: {} 2025-10-23 02:00:26,845 - DEBUG - ====Verifying data for ctest-policy1-40199716 in API_Server ====== 2025-10-23 02:00:26,845 - DEBUG - Requesting: http://10.0.0.241:8082/domains 2025-10-23 02:00:26,858 - DEBUG - Requesting: http://10.0.0.241:8082/domain/50f717e1-7edc-43de-8b5a-5b897134ccb4 2025-10-23 02:00:26,871 - DEBUG - Requesting: http://10.0.0.241:8082/project/ffef5a09-40ef-4c33-b355-4445a8d7975f 2025-10-23 02:00:26,947 - DEBUG - Requesting: http://10.0.0.241:8082/network-policy/43334acf-1e1f-472f-823d-9905ae9f0799 2025-10-23 02:00:26,958 - INFO - Verified policy ctest-policy1-40199716 in API Server, Result: True 2025-10-23 02:00:26,958 - INFO - Done with setup and verification, moving onto test .. 2025-10-23 02:00:26,972 - INFO - Deleting VN ctest-vn4-06423191 2025-10-23 02:00:27,109 - DEBUG - Response for deleting network () 2025-10-23 02:00:27,110 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/7f4b013b-d686-4d65-9d34-467cc10d586d 2025-10-23 02:00:27,115 - DEBUG - Response Code: 404 2025-10-23 02:00:27,115 - DEBUG - Requesting: http://10.0.0.241:8082/domains 2025-10-23 02:00:27,121 - DEBUG - Requesting: http://10.0.0.241:8082/domain/50f717e1-7edc-43de-8b5a-5b897134ccb4 2025-10-23 02:00:27,176 - DEBUG - Requesting: http://10.0.0.241:8082/project/ffef5a09-40ef-4c33-b355-4445a8d7975f 2025-10-23 02:00:27,249 - INFO - Validated that VN ctest-vn4-06423191 is not found in API Server 2025-10-23 02:00:27,258 - DEBUG - VN ctest-vn4-06423191 is not present in Agent 10.0.0.241 2025-10-23 02:00:27,258 - INFO - Validated that VN ctest-vn4-06423191 is not in any agent 2025-10-23 02:00:27,272 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-06423191 info 2025-10-23 02:00:27,300 - INFO - Deleted policy ctest-policy1-40199716 2025-10-23 02:00:27,463 - DEBUG - policy ctest-policy1-40199716 is not found in API Server 2025-10-23 02:00:27,721 - DEBUG - No XMPP flaps were noticed during the test