2025-09-18 01:56:59,669 - INFO - Domain Default found not creating 2025-09-18 01:56:59,809 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-05590010 not found, creating it 2025-09-18 01:57:00,416 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-05590010, ID : d81c0dda-1ad1-46ca-a1a7-e32055e87308 2025-09-18 01:57:01,980 - INFO - ================================================================================ 2025-09-18 01:57:01,980 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-18 01:57:02,232 - DEBUG - Nothing to compare xmpp stats {'10.0.0.49': {'10.20.0.18': '0'}} with 2025-09-18 01:57:02,232 - INFO - Initial checks done. Running the testcase now 2025-09-18 01:57:02,232 - INFO - 2025-09-18 01:57:02,232 - INFO - ================================================================================ 2025-09-18 01:57:02,232 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-18 01:57:02,232 - 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-09-18 01:57:02,528 - DEBUG - Nothing to compare xmpp stats {'10.0.0.49': {'10.20.0.18': '0'}} with 2025-09-18 01:57:02,528 - INFO - Initial checks done. Running the testcase now 2025-09-18 01:57:02,529 - INFO - 2025-09-18 01:57:02,917 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-05590010:ctest-vn4-43825087, 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-05590010:ctest-vn4-43825087, 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-05590010:ctest-vn4-43825087, 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-05590010:ctest-vn4-43825087, 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-09-18 01:57:03,439 - DEBUG - Response for create_network : {'network': {'id': 'd1eed291-61d9-457d-9753-2bdbd7d77d5f', 'name': 'ctest-vn4-43825087', 'tenant_id': 'd81c0dda1ad146caa1a7e32055e87308', 'project_id': 'd81c0dda1ad146caa1a7e32055e87308', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-05590010', 'ctest-vn4-43825087'], 'port_security_enabled': True, 'description': ''}} 2025-09-18 01:57:03,674 - DEBUG - Response for create_subnet : {'subnet': {'id': '31980fe1-fdc2-486a-8730-191c00fab084', 'name': '', 'tenant_id': 'd81c0dda1ad146caa1a7e32055e87308', 'network_id': 'd1eed291-61d9-457d-9753-2bdbd7d77d5f', 'ip_version': 4, 'cidr': '210.141.90.64/26', 'allocation_pools': [{'start': '210.141.90.66', 'end': '210.141.90.126'}], 'gateway_ip': '210.141.90.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '210.141.90.66', 'tags': [], 'project_id': 'd81c0dda1ad146caa1a7e32055e87308'}} 2025-09-18 01:57:03,859 - DEBUG - Response for create_subnet : {'subnet': {'id': '1350a23f-8c26-42a7-98b7-2a7b77176fb8', 'name': '', 'tenant_id': 'd81c0dda1ad146caa1a7e32055e87308', 'network_id': 'd1eed291-61d9-457d-9753-2bdbd7d77d5f', 'ip_version': 6, 'cidr': '30c5:fcd6:67e9:1696:2d6d:5666::/96', 'allocation_pools': [{'start': '30c5:fcd6:67e9:1696:2d6d:5666:0:2', 'end': '30c5:fcd6:67e9:1696:2d6d:5666:ffff:fffe'}], 'gateway_ip': '30c5:fcd6:67e9:1696:2d6d:5666:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '30c5:fcd6:67e9:1696:2d6d:5666:0:2', 'tags': [], 'project_id': 'd81c0dda1ad146caa1a7e32055e87308'}} 2025-09-18 01:57:03,880 - INFO - Created VN ctest-vn4-43825087 2025-09-18 01:57:03,935 - DEBUG - VN ctest-vn4-43825087 UUID is d1eed291-61d9-457d-9753-2bdbd7d77d5f 2025-09-18 01:57:04,153 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd1eed291-61d9-457d-9753-2bdbd7d77d5f', 'name': 'ctest-vn4-43825087', 'tenant_id': 'd81c0dda1ad146caa1a7e32055e87308', 'project_id': 'd81c0dda1ad146caa1a7e32055e87308', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['31980fe1-fdc2-486a-8730-191c00fab084', '1350a23f-8c26-42a7-98b7-2a7b77176fb8'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-05590010', 'ctest-vn4-43825087'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-05590010', 'ctest-policy1-60541857']], 'subnet_ipam': [{'subnet_cidr': '210.141.90.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '30c5:fcd6:67e9:1696:2d6d:5666::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-09-18 01:57:04,323 - DEBUG - Requesting: http://10.0.0.49:8082/domains 2025-09-18 01:57:04,656 - DEBUG - Requesting: http://10.0.0.49:8082/domains 2025-09-18 01:57:04,686 - DEBUG - Requesting: http://10.0.0.49:8082/domain/5fde2650-5597-4871-87cc-c93f22711b70 2025-09-18 01:57:04,699 - DEBUG - Requesting: http://10.0.0.49:8082/project/d81c0dda-1ad1-46ca-a1a7-e32055e87308 2025-09-18 01:57:04,770 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/d1eed291-61d9-457d-9753-2bdbd7d77d5f 2025-09-18 01:57:04,782 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/d1eed291-61d9-457d-9753-2bdbd7d77d5f 2025-09-18 01:57:04,791 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/7b9991c5-e8f1-4a04-b35b-7b9ba5b8f516 2025-09-18 01:57:04,797 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/7b9991c5-e8f1-4a04-b35b-7b9ba5b8f516 2025-09-18 01:57:04,804 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/227e58a3-91f5-447a-93b5-ab123d379aae 2025-09-18 01:57:04,810 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-18 01:57:04,810 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/d1eed291-61d9-457d-9753-2bdbd7d77d5f 2025-09-18 01:57:04,819 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/7b9991c5-e8f1-4a04-b35b-7b9ba5b8f516 2025-09-18 01:57:04,831 - INFO - Verified VN network id 11 for VN d1eed291-61d9-457d-9753-2bdbd7d77d5f 2025-09-18 01:57:04,831 - INFO - Verifications in API Server for VN ctest-vn4-43825087 passed 2025-09-18 01:57:04,831 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/d1eed291-61d9-457d-9753-2bdbd7d77d5f 2025-09-18 01:57:04,840 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/7b9991c5-e8f1-4a04-b35b-7b9ba5b8f516 2025-09-18 01:57:04,846 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/7b9991c5-e8f1-4a04-b35b-7b9ba5b8f516 2025-09-18 01:57:04,851 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/227e58a3-91f5-447a-93b5-ab123d379aae 2025-09-18 01:57:04,861 - DEBUG - Control-node 10.0.0.49 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-05590010:ctest-vn4-43825087', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-05590010', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15127259720237794685', 'uuid-lslong': '10904107346013158751'}, 'enable': 'true', 'created': '2025-09-18T01:57:03', 'last-modified': '2025-09-18T01:57:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.738606'} 2025-09-18 01:57:04,868 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-18 01:57:04,869 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-43825087 passed 2025-09-18 01:57:04,869 - DEBUG - ====Verifying policy data for ctest-vn4-43825087 in API_Server ====== 2025-09-18 01:57:04,869 - DEBUG - Requesting: http://10.0.0.49:8082/domains 2025-09-18 01:57:04,874 - DEBUG - Requesting: http://10.0.0.49:8082/domain/5fde2650-5597-4871-87cc-c93f22711b70 2025-09-18 01:57:04,884 - DEBUG - Requesting: http://10.0.0.49:8082/project/d81c0dda-1ad1-46ca-a1a7-e32055e87308 2025-09-18 01:57:04,954 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/d1eed291-61d9-457d-9753-2bdbd7d77d5f 2025-09-18 01:57:04,964 - DEBUG - ==>Verifying data for policy with id: 62b4f69c-8244-4b86-bef5-d466554c3769, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-05590010', 'ctest-policy1-60541857'] 2025-09-18 01:57:04,964 - INFO - VN ctest-vn4-43825087 Policy verification: verify_vn_policy_in_api_server, status: True 2025-09-18 01:57:04,964 - DEBUG - Verifying the vn in opserver 2025-09-18 01:57:04,964 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-05590010:ctest-vn4-43825087 virtual network link through opserver 10.0.0.49 2025-09-18 01:57:04,964 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks 2025-09-18 01:57:05,296 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks 2025-09-18 01:57:05,350 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-05590010:ctest-vn4-43825087', 'href': 'http://10.0.0.49:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-05590010:ctest-vn4-43825087?flat'} 2025-09-18 01:57:05,350 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-05590010:ctest-vn4-43825087 is found in opserver 2025-09-18 01:57:05,359 - DEBUG - Do not have enough data to verify VN in agent 2025-09-18 01:57:05,363 - DEBUG - VRF ids for VN ctest-vn4-43825087: {} 2025-09-18 01:57:05,364 - DEBUG - ====Verifying data for ctest-policy1-60541857 in API_Server ====== 2025-09-18 01:57:05,364 - DEBUG - Requesting: http://10.0.0.49:8082/domains 2025-09-18 01:57:05,369 - DEBUG - Requesting: http://10.0.0.49:8082/domain/5fde2650-5597-4871-87cc-c93f22711b70 2025-09-18 01:57:05,379 - DEBUG - Requesting: http://10.0.0.49:8082/project/d81c0dda-1ad1-46ca-a1a7-e32055e87308 2025-09-18 01:57:05,450 - DEBUG - Requesting: http://10.0.0.49:8082/network-policy/62b4f69c-8244-4b86-bef5-d466554c3769 2025-09-18 01:57:05,459 - INFO - Verified policy ctest-policy1-60541857 in API Server, Result: True 2025-09-18 01:57:05,459 - INFO - Done with setup and verification, moving onto test .. 2025-09-18 01:57:05,467 - INFO - Deleting VN ctest-vn4-43825087 2025-09-18 01:57:05,583 - DEBUG - Response for deleting network () 2025-09-18 01:57:05,583 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/7b9991c5-e8f1-4a04-b35b-7b9ba5b8f516 2025-09-18 01:57:05,587 - DEBUG - Response Code: 404 2025-09-18 01:57:05,587 - DEBUG - Requesting: http://10.0.0.49:8082/domains 2025-09-18 01:57:05,593 - DEBUG - Requesting: http://10.0.0.49:8082/domain/5fde2650-5597-4871-87cc-c93f22711b70 2025-09-18 01:57:05,648 - DEBUG - Requesting: http://10.0.0.49:8082/project/d81c0dda-1ad1-46ca-a1a7-e32055e87308 2025-09-18 01:57:05,723 - INFO - Validated that VN ctest-vn4-43825087 is not found in API Server 2025-09-18 01:57:05,732 - DEBUG - VN ctest-vn4-43825087 is not present in Agent 10.0.0.49 2025-09-18 01:57:05,733 - INFO - Validated that VN ctest-vn4-43825087 is not in any agent 2025-09-18 01:57:05,745 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-43825087 info 2025-09-18 01:57:05,771 - INFO - Deleted policy ctest-policy1-60541857 2025-09-18 01:57:05,943 - DEBUG - policy ctest-policy1-60541857 is not found in API Server 2025-09-18 01:57:06,200 - DEBUG - No XMPP flaps were noticed during the test 2025-09-18 01:57:06,200 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-09-18 01:57:06,200 - INFO - -------------------------------------------------------------------------------- 2025-09-18 01:57:06,492 - DEBUG - No XMPP flaps were noticed during the test 2025-09-18 01:57:06,492 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2025-09-18 01:57:06,492 - INFO - -------------------------------------------------------------------------------- 2025-09-18 01:57:07,396 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-05590010, ID : d81c0dda-1ad1-46ca-a1a7-e32055e87308