2025-08-11 02:05:20,690 - INFO - Domain Default found not creating 2025-08-11 02:05:20,873 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-80081059 not found, creating it 2025-08-11 02:05:21,364 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-80081059, ID : d717a12f-46f1-414b-8701-53a53aceb721 2025-08-11 02:05:23,091 - INFO - ================================================================================ 2025-08-11 02:05:23,092 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-11 02:05:23,365 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.254': '0'}} with 2025-08-11 02:05:23,365 - INFO - Initial checks done. Running the testcase now 2025-08-11 02:05:23,365 - INFO - 2025-08-11 02:05:23,365 - INFO - ================================================================================ 2025-08-11 02:05:23,365 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-11 02:05:23,366 - 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-08-11 02:05:23,655 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.254': '0'}} with 2025-08-11 02:05:23,655 - INFO - Initial checks done. Running the testcase now 2025-08-11 02:05:23,655 - INFO - 2025-08-11 02:05:24,025 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-80081059:ctest-vn4-66008509, 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-80081059:ctest-vn4-66008509, 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-80081059:ctest-vn4-66008509, 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-80081059:ctest-vn4-66008509, 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-08-11 02:05:24,576 - DEBUG - Response for create_network : {'network': {'id': '37f75fc0-7b7d-4f16-a5de-616ef1e6c0dc', 'name': 'ctest-vn4-66008509', 'tenant_id': 'd717a12f46f1414b870153a53aceb721', 'project_id': 'd717a12f46f1414b870153a53aceb721', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-80081059', 'ctest-vn4-66008509'], 'port_security_enabled': True, 'description': ''}} 2025-08-11 02:05:24,750 - DEBUG - Response for create_subnet : {'subnet': {'id': '35800279-affb-48f9-a98c-6f71d5b1c5cb', 'name': '', 'tenant_id': 'd717a12f46f1414b870153a53aceb721', 'network_id': '37f75fc0-7b7d-4f16-a5de-616ef1e6c0dc', 'ip_version': 4, 'cidr': '200.43.102.64/26', 'allocation_pools': [{'start': '200.43.102.66', 'end': '200.43.102.126'}], 'gateway_ip': '200.43.102.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '200.43.102.66', 'tags': [], 'project_id': 'd717a12f46f1414b870153a53aceb721'}} 2025-08-11 02:05:24,919 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c7629678-5853-456a-bbaf-75fea44b5d95', 'name': '', 'tenant_id': 'd717a12f46f1414b870153a53aceb721', 'network_id': '37f75fc0-7b7d-4f16-a5de-616ef1e6c0dc', 'ip_version': 6, 'cidr': '3cce:99c0:778f:55e6:bb7c:79a8::/96', 'allocation_pools': [{'start': '3cce:99c0:778f:55e6:bb7c:79a8:0:2', 'end': '3cce:99c0:778f:55e6:bb7c:79a8:ffff:fffe'}], 'gateway_ip': '3cce:99c0:778f:55e6:bb7c:79a8:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3cce:99c0:778f:55e6:bb7c:79a8:0:2', 'tags': [], 'project_id': 'd717a12f46f1414b870153a53aceb721'}} 2025-08-11 02:05:24,940 - INFO - Created VN ctest-vn4-66008509 2025-08-11 02:05:24,992 - DEBUG - VN ctest-vn4-66008509 UUID is 37f75fc0-7b7d-4f16-a5de-616ef1e6c0dc 2025-08-11 02:05:25,212 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '37f75fc0-7b7d-4f16-a5de-616ef1e6c0dc', 'name': 'ctest-vn4-66008509', 'tenant_id': 'd717a12f46f1414b870153a53aceb721', 'project_id': 'd717a12f46f1414b870153a53aceb721', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['35800279-affb-48f9-a98c-6f71d5b1c5cb', 'c7629678-5853-456a-bbaf-75fea44b5d95'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-80081059', 'ctest-vn4-66008509'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-80081059', 'ctest-policy1-03208767']], 'subnet_ipam': [{'subnet_cidr': '200.43.102.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3cce:99c0:778f:55e6:bb7c:79a8::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-11 02:05:25,380 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-08-11 02:05:25,709 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-08-11 02:05:25,746 - DEBUG - Requesting: http://10.0.0.27:8082/domain/ae93f2b5-73fa-40cd-bc91-721b233695b8 2025-08-11 02:05:25,761 - DEBUG - Requesting: http://10.0.0.27:8082/project/d717a12f-46f1-414b-8701-53a53aceb721 2025-08-11 02:05:25,840 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/37f75fc0-7b7d-4f16-a5de-616ef1e6c0dc 2025-08-11 02:05:25,855 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/37f75fc0-7b7d-4f16-a5de-616ef1e6c0dc 2025-08-11 02:05:25,866 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/6463c787-ddc7-4f6d-9114-baeb04d644f1 2025-08-11 02:05:25,873 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/6463c787-ddc7-4f6d-9114-baeb04d644f1 2025-08-11 02:05:25,881 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/047d9d2b-a1b8-49a8-adef-26a1eed3ca9a 2025-08-11 02:05:25,890 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-11 02:05:25,890 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/37f75fc0-7b7d-4f16-a5de-616ef1e6c0dc 2025-08-11 02:05:25,904 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/6463c787-ddc7-4f6d-9114-baeb04d644f1 2025-08-11 02:05:25,920 - INFO - Verified VN network id 10 for VN 37f75fc0-7b7d-4f16-a5de-616ef1e6c0dc 2025-08-11 02:05:25,920 - INFO - Verifications in API Server for VN ctest-vn4-66008509 passed 2025-08-11 02:05:25,921 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/37f75fc0-7b7d-4f16-a5de-616ef1e6c0dc 2025-08-11 02:05:25,932 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/6463c787-ddc7-4f6d-9114-baeb04d644f1 2025-08-11 02:05:25,941 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/6463c787-ddc7-4f6d-9114-baeb04d644f1 2025-08-11 02:05:25,949 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/047d9d2b-a1b8-49a8-adef-26a1eed3ca9a 2025-08-11 02:05:25,962 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-80081059:ctest-vn4-66008509', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-80081059', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4032797271643737878', 'uuid-lslong': '11952097590220603612'}, 'enable': 'true', 'created': '2025-08-11T02:05:24', 'last-modified': '2025-08-11T02:05:25', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.789495'} 2025-08-11 02:05:25,969 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-11 02:05:25,969 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-66008509 passed 2025-08-11 02:05:25,969 - DEBUG - ====Verifying policy data for ctest-vn4-66008509 in API_Server ====== 2025-08-11 02:05:25,969 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-08-11 02:05:25,975 - DEBUG - Requesting: http://10.0.0.27:8082/domain/ae93f2b5-73fa-40cd-bc91-721b233695b8 2025-08-11 02:05:25,988 - DEBUG - Requesting: http://10.0.0.27:8082/project/d717a12f-46f1-414b-8701-53a53aceb721 2025-08-11 02:05:26,059 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/37f75fc0-7b7d-4f16-a5de-616ef1e6c0dc 2025-08-11 02:05:26,070 - DEBUG - ==>Verifying data for policy with id: 7a5b2fde-905a-416c-9db7-309905e8a816, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-80081059', 'ctest-policy1-03208767'] 2025-08-11 02:05:26,070 - INFO - VN ctest-vn4-66008509 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-11 02:05:26,071 - DEBUG - Verifying the vn in opserver 2025-08-11 02:05:26,071 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-80081059:ctest-vn4-66008509 virtual network link through opserver 10.0.0.27 2025-08-11 02:05:26,071 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2025-08-11 02:05:26,388 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2025-08-11 02:05:26,455 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-80081059:ctest-vn4-66008509', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-80081059:ctest-vn4-66008509?flat'} 2025-08-11 02:05:26,455 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-80081059:ctest-vn4-66008509 is found in opserver 2025-08-11 02:05:26,466 - DEBUG - Do not have enough data to verify VN in agent 2025-08-11 02:05:26,472 - DEBUG - VRF ids for VN ctest-vn4-66008509: {} 2025-08-11 02:05:26,472 - DEBUG - ====Verifying data for ctest-policy1-03208767 in API_Server ====== 2025-08-11 02:05:26,472 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-08-11 02:05:26,479 - DEBUG - Requesting: http://10.0.0.27:8082/domain/ae93f2b5-73fa-40cd-bc91-721b233695b8 2025-08-11 02:05:26,494 - DEBUG - Requesting: http://10.0.0.27:8082/project/d717a12f-46f1-414b-8701-53a53aceb721 2025-08-11 02:05:26,573 - DEBUG - Requesting: http://10.0.0.27:8082/network-policy/7a5b2fde-905a-416c-9db7-309905e8a816 2025-08-11 02:05:26,587 - INFO - Verified policy ctest-policy1-03208767 in API Server, Result: True 2025-08-11 02:05:26,588 - INFO - Done with setup and verification, moving onto test .. 2025-08-11 02:05:26,598 - INFO - Deleting VN ctest-vn4-66008509 2025-08-11 02:05:26,740 - DEBUG - Response for deleting network () 2025-08-11 02:05:26,740 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/6463c787-ddc7-4f6d-9114-baeb04d644f1 2025-08-11 02:05:26,748 - DEBUG - Response Code: 404 2025-08-11 02:05:26,748 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-08-11 02:05:26,753 - DEBUG - Requesting: http://10.0.0.27:8082/domain/ae93f2b5-73fa-40cd-bc91-721b233695b8 2025-08-11 02:05:26,811 - DEBUG - Requesting: http://10.0.0.27:8082/project/d717a12f-46f1-414b-8701-53a53aceb721 2025-08-11 02:05:26,891 - INFO - Validated that VN ctest-vn4-66008509 is not found in API Server 2025-08-11 02:05:26,903 - DEBUG - VN ctest-vn4-66008509 is not present in Agent 10.0.0.27 2025-08-11 02:05:26,903 - INFO - Validated that VN ctest-vn4-66008509 is not in any agent 2025-08-11 02:05:26,921 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-66008509 info 2025-08-11 02:05:26,948 - INFO - Deleted policy ctest-policy1-03208767 2025-08-11 02:05:27,116 - DEBUG - policy ctest-policy1-03208767 is not found in API Server 2025-08-11 02:05:27,374 - DEBUG - No XMPP flaps were noticed during the test 2025-08-11 02:05:27,374 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-08-11 02:05:27,374 - INFO - -------------------------------------------------------------------------------- 2025-08-11 02:05:27,674 - DEBUG - No XMPP flaps were noticed during the test 2025-08-11 02:05:27,674 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-08-11 02:05:27,674 - INFO - -------------------------------------------------------------------------------- 2025-08-11 02:05:28,384 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-80081059, ID : d717a12f-46f1-414b-8701-53a53aceb721