2025-10-22 16:36:57,354 - INFO - Domain Default found not creating 2025-10-22 16:36:57,540 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-97462544 not found, creating it 2025-10-22 16:36:58,026 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-97462544, ID : b8c74742-745f-405c-ba16-40748cd84a49 2025-10-22 16:36:59,526 - INFO - ================================================================================ 2025-10-22 16:36:59,527 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-22 16:36:59,797 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-10-22 16:36:59,797 - INFO - Initial checks done. Running the testcase now 2025-10-22 16:36:59,797 - INFO - 2025-10-22 16:36:59,797 - INFO - ================================================================================ 2025-10-22 16:36:59,797 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-22 16:36:59,797 - 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-22 16:37:00,083 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-10-22 16:37:00,083 - INFO - Initial checks done. Running the testcase now 2025-10-22 16:37:00,083 - INFO - 2025-10-22 16:37:00,458 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-97462544:ctest-vn4-32788236, 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-97462544:ctest-vn4-32788236, 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-97462544:ctest-vn4-32788236, 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-97462544:ctest-vn4-32788236, 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-22 16:37:00,997 - DEBUG - Response for create_network : {'network': {'id': 'c851c750-b091-434a-ba0e-ad5240e8aba4', 'name': 'ctest-vn4-32788236', 'tenant_id': 'b8c74742745f405cba1640748cd84a49', 'project_id': 'b8c74742745f405cba1640748cd84a49', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-97462544', 'ctest-vn4-32788236'], 'port_security_enabled': True, 'description': ''}} 2025-10-22 16:37:01,203 - DEBUG - Response for create_subnet : {'subnet': {'id': '9dc2e177-af6e-42e7-b401-8cb631566439', 'name': '', 'tenant_id': 'b8c74742745f405cba1640748cd84a49', 'network_id': 'c851c750-b091-434a-ba0e-ad5240e8aba4', 'ip_version': 4, 'cidr': '118.129.165.0/26', 'allocation_pools': [{'start': '118.129.165.2', 'end': '118.129.165.62'}], 'gateway_ip': '118.129.165.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '118.129.165.2', 'tags': [], 'project_id': 'b8c74742745f405cba1640748cd84a49'}} 2025-10-22 16:37:01,424 - DEBUG - Response for create_subnet : {'subnet': {'id': '95c47cff-cc90-4390-b47d-71668cf65573', 'name': '', 'tenant_id': 'b8c74742745f405cba1640748cd84a49', 'network_id': 'c851c750-b091-434a-ba0e-ad5240e8aba4', 'ip_version': 6, 'cidr': '283c:d124:a481:82c:17df:94eb::/96', 'allocation_pools': [{'start': '283c:d124:a481:82c:17df:94eb:0:2', 'end': '283c:d124:a481:82c:17df:94eb:ffff:fffe'}], 'gateway_ip': '283c:d124:a481:82c:17df:94eb:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '283c:d124:a481:82c:17df:94eb:0:2', 'tags': [], 'project_id': 'b8c74742745f405cba1640748cd84a49'}} 2025-10-22 16:37:01,446 - INFO - Created VN ctest-vn4-32788236 2025-10-22 16:37:01,501 - DEBUG - VN ctest-vn4-32788236 UUID is c851c750-b091-434a-ba0e-ad5240e8aba4 2025-10-22 16:37:01,793 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c851c750-b091-434a-ba0e-ad5240e8aba4', 'name': 'ctest-vn4-32788236', 'tenant_id': 'b8c74742745f405cba1640748cd84a49', 'project_id': 'b8c74742745f405cba1640748cd84a49', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9dc2e177-af6e-42e7-b401-8cb631566439', '95c47cff-cc90-4390-b47d-71668cf65573'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-97462544', 'ctest-vn4-32788236'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-97462544', 'ctest-policy1-13767636']], 'subnet_ipam': [{'subnet_cidr': '118.129.165.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '283c:d124:a481:82c:17df:94eb::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-22 16:37:01,961 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-22 16:37:02,258 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-22 16:37:02,292 - DEBUG - Requesting: http://10.0.0.254:8082/domain/1bb9370c-747f-4184-8ae3-70ba1971fcf7 2025-10-22 16:37:02,306 - DEBUG - Requesting: http://10.0.0.254:8082/project/b8c74742-745f-405c-ba16-40748cd84a49 2025-10-22 16:37:02,379 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/c851c750-b091-434a-ba0e-ad5240e8aba4 2025-10-22 16:37:02,391 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/c851c750-b091-434a-ba0e-ad5240e8aba4 2025-10-22 16:37:02,401 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/d523f8cf-1a7a-4f2e-866a-ebb0e4b7c7e4 2025-10-22 16:37:02,409 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/d523f8cf-1a7a-4f2e-866a-ebb0e4b7c7e4 2025-10-22 16:37:02,417 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/1e5a8c76-c7ff-4a9b-a7dc-9b9aa13e84f9 2025-10-22 16:37:02,425 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-22 16:37:02,425 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/c851c750-b091-434a-ba0e-ad5240e8aba4 2025-10-22 16:37:02,435 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/d523f8cf-1a7a-4f2e-866a-ebb0e4b7c7e4 2025-10-22 16:37:02,450 - INFO - Verified VN network id 11 for VN c851c750-b091-434a-ba0e-ad5240e8aba4 2025-10-22 16:37:02,450 - INFO - Verifications in API Server for VN ctest-vn4-32788236 passed 2025-10-22 16:37:02,450 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/c851c750-b091-434a-ba0e-ad5240e8aba4 2025-10-22 16:37:02,460 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/d523f8cf-1a7a-4f2e-866a-ebb0e4b7c7e4 2025-10-22 16:37:02,468 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/d523f8cf-1a7a-4f2e-866a-ebb0e4b7c7e4 2025-10-22 16:37:02,476 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/1e5a8c76-c7ff-4a9b-a7dc-9b9aa13e84f9 2025-10-22 16:37:02,489 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-97462544:ctest-vn4-32788236', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-97462544', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14434537430072771402', 'uuid-lslong': '13406843709516458916'}, 'enable': 'true', 'created': '2025-10-22T16:37:00', 'last-modified': '2025-10-22T16:37:01', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.722288'} 2025-10-22 16:37:02,496 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-22 16:37:02,496 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-32788236 passed 2025-10-22 16:37:02,496 - DEBUG - ====Verifying policy data for ctest-vn4-32788236 in API_Server ====== 2025-10-22 16:37:02,496 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-22 16:37:02,503 - DEBUG - Requesting: http://10.0.0.254:8082/domain/1bb9370c-747f-4184-8ae3-70ba1971fcf7 2025-10-22 16:37:02,516 - DEBUG - Requesting: http://10.0.0.254:8082/project/b8c74742-745f-405c-ba16-40748cd84a49 2025-10-22 16:37:02,591 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/c851c750-b091-434a-ba0e-ad5240e8aba4 2025-10-22 16:37:02,602 - DEBUG - ==>Verifying data for policy with id: f2b69587-669a-4f08-8865-ed7e5675933a, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-97462544', 'ctest-policy1-13767636'] 2025-10-22 16:37:02,602 - INFO - VN ctest-vn4-32788236 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-22 16:37:02,602 - DEBUG - Verifying the vn in opserver 2025-10-22 16:37:02,602 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-97462544:ctest-vn4-32788236 virtual network link through opserver 10.0.0.254 2025-10-22 16:37:02,602 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-10-22 16:37:02,908 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-10-22 16:37:02,985 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-97462544:ctest-vn4-32788236', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-97462544:ctest-vn4-32788236?flat'} 2025-10-22 16:37:02,985 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-97462544:ctest-vn4-32788236 is found in opserver 2025-10-22 16:37:02,994 - DEBUG - Do not have enough data to verify VN in agent 2025-10-22 16:37:02,999 - DEBUG - VRF ids for VN ctest-vn4-32788236: {} 2025-10-22 16:37:03,000 - DEBUG - ====Verifying data for ctest-policy1-13767636 in API_Server ====== 2025-10-22 16:37:03,000 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-22 16:37:03,007 - DEBUG - Requesting: http://10.0.0.254:8082/domain/1bb9370c-747f-4184-8ae3-70ba1971fcf7 2025-10-22 16:37:03,022 - DEBUG - Requesting: http://10.0.0.254:8082/project/b8c74742-745f-405c-ba16-40748cd84a49 2025-10-22 16:37:03,090 - DEBUG - Requesting: http://10.0.0.254:8082/network-policy/f2b69587-669a-4f08-8865-ed7e5675933a 2025-10-22 16:37:03,099 - INFO - Verified policy ctest-policy1-13767636 in API Server, Result: True 2025-10-22 16:37:03,099 - INFO - Done with setup and verification, moving onto test .. 2025-10-22 16:37:03,109 - INFO - Deleting VN ctest-vn4-32788236 2025-10-22 16:37:03,240 - DEBUG - Response for deleting network () 2025-10-22 16:37:03,240 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/d523f8cf-1a7a-4f2e-866a-ebb0e4b7c7e4 2025-10-22 16:37:03,246 - DEBUG - Response Code: 404 2025-10-22 16:37:03,246 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-22 16:37:03,252 - DEBUG - Requesting: http://10.0.0.254:8082/domain/1bb9370c-747f-4184-8ae3-70ba1971fcf7 2025-10-22 16:37:03,306 - DEBUG - Requesting: http://10.0.0.254:8082/project/b8c74742-745f-405c-ba16-40748cd84a49 2025-10-22 16:37:03,379 - INFO - Validated that VN ctest-vn4-32788236 is not found in API Server 2025-10-22 16:37:03,389 - DEBUG - VN ctest-vn4-32788236 is not present in Agent 10.0.0.254 2025-10-22 16:37:03,389 - INFO - Validated that VN ctest-vn4-32788236 is not in any agent 2025-10-22 16:37:03,404 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-32788236 info 2025-10-22 16:37:03,433 - INFO - Deleted policy ctest-policy1-13767636 2025-10-22 16:37:03,601 - DEBUG - policy ctest-policy1-13767636 is not found in API Server 2025-10-22 16:37:03,859 - DEBUG - No XMPP flaps were noticed during the test
2025-10-22 16:37:03,859 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-10-22 16:37:03,859 - INFO - -------------------------------------------------------------------------------- 2025-10-22 16:37:04,150 - DEBUG - No XMPP flaps were noticed during the test
2025-10-22 16:37:04,150 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2025-10-22 16:37:04,150 - INFO - -------------------------------------------------------------------------------- 2025-10-22 16:37:04,873 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-97462544, ID : b8c74742-745f-405c-ba16-40748cd84a49