2025-08-11 07:40:51,391 - INFO - Domain Default found not creating 2025-08-11 07:40:51,510 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-45805331 not found, creating it 2025-08-11 07:40:51,925 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-45805331, ID : 741dad3f-6f0a-4cad-a492-1b098d9ae845 2025-08-11 07:40:53,221 - INFO - ================================================================================ 2025-08-11 07:40:53,221 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-11 07:40:53,476 - DEBUG - Nothing to compare xmpp stats {'10.0.0.130': {'10.20.0.14': '0'}} with 2025-08-11 07:40:53,476 - INFO - Initial checks done. Running the testcase now 2025-08-11 07:40:53,476 - INFO - 2025-08-11 07:40:53,476 - INFO - ================================================================================ 2025-08-11 07:40:53,476 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-11 07:40:53,476 - 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 07:40:53,775 - DEBUG - Nothing to compare xmpp stats {'10.0.0.130': {'10.20.0.14': '0'}} with 2025-08-11 07:40:53,776 - INFO - Initial checks done. Running the testcase now 2025-08-11 07:40:53,776 - INFO - 2025-08-11 07:40:54,111 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-45805331:ctest-vn4-48936264, 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-45805331:ctest-vn4-48936264, 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-45805331:ctest-vn4-48936264, 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-45805331:ctest-vn4-48936264, 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 07:40:54,592 - DEBUG - Response for create_network : {'network': {'id': '9338e94a-3b22-46b1-8958-d82dd5688c95', 'name': 'ctest-vn4-48936264', 'tenant_id': '741dad3f6f0a4cada4921b098d9ae845', 'project_id': '741dad3f6f0a4cada4921b098d9ae845', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-45805331', 'ctest-vn4-48936264'], 'port_security_enabled': True, 'description': ''}} 2025-08-11 07:40:54,794 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ba9151a9-03e7-4e83-bf62-045f933deabd', 'name': '', 'tenant_id': '741dad3f6f0a4cada4921b098d9ae845', 'network_id': '9338e94a-3b22-46b1-8958-d82dd5688c95', 'ip_version': 4, 'cidr': '174.139.193.64/26', 'allocation_pools': [{'start': '174.139.193.66', 'end': '174.139.193.126'}], 'gateway_ip': '174.139.193.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '174.139.193.66', 'tags': [], 'project_id': '741dad3f6f0a4cada4921b098d9ae845'}} 2025-08-11 07:40:54,986 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c12c5231-99fd-48cf-98a2-43a25db2fec4', 'name': '', 'tenant_id': '741dad3f6f0a4cada4921b098d9ae845', 'network_id': '9338e94a-3b22-46b1-8958-d82dd5688c95', 'ip_version': 6, 'cidr': '2e36:cf31:982b:ccd8:60c1:769f::/96', 'allocation_pools': [{'start': '2e36:cf31:982b:ccd8:60c1:769f:0:2', 'end': '2e36:cf31:982b:ccd8:60c1:769f:ffff:fffe'}], 'gateway_ip': '2e36:cf31:982b:ccd8:60c1:769f:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2e36:cf31:982b:ccd8:60c1:769f:0:2', 'tags': [], 'project_id': '741dad3f6f0a4cada4921b098d9ae845'}} 2025-08-11 07:40:55,005 - INFO - Created VN ctest-vn4-48936264 2025-08-11 07:40:55,058 - DEBUG - VN ctest-vn4-48936264 UUID is 9338e94a-3b22-46b1-8958-d82dd5688c95 2025-08-11 07:40:55,237 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9338e94a-3b22-46b1-8958-d82dd5688c95', 'name': 'ctest-vn4-48936264', 'tenant_id': '741dad3f6f0a4cada4921b098d9ae845', 'project_id': '741dad3f6f0a4cada4921b098d9ae845', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ba9151a9-03e7-4e83-bf62-045f933deabd', 'c12c5231-99fd-48cf-98a2-43a25db2fec4'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-45805331', 'ctest-vn4-48936264'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-45805331', 'ctest-policy1-12903916']], 'subnet_ipam': [{'subnet_cidr': '174.139.193.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2e36:cf31:982b:ccd8:60c1:769f::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-11 07:40:55,398 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2025-08-11 07:40:55,686 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2025-08-11 07:40:55,710 - DEBUG - Requesting: http://10.0.0.130:8082/domain/b328bc76-276e-4db9-8317-eacaafad8778 2025-08-11 07:40:55,722 - DEBUG - Requesting: http://10.0.0.130:8082/project/741dad3f-6f0a-4cad-a492-1b098d9ae845 2025-08-11 07:40:55,793 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/9338e94a-3b22-46b1-8958-d82dd5688c95 2025-08-11 07:40:55,804 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/9338e94a-3b22-46b1-8958-d82dd5688c95 2025-08-11 07:40:55,813 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/7aea2afd-c7fa-420b-8eba-5e8d12318234 2025-08-11 07:40:55,820 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/7aea2afd-c7fa-420b-8eba-5e8d12318234 2025-08-11 07:40:55,826 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/b71d9d70-b6a8-4f6c-99b0-bd6934855a9a 2025-08-11 07:40:55,831 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-11 07:40:55,831 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/9338e94a-3b22-46b1-8958-d82dd5688c95 2025-08-11 07:40:55,840 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/7aea2afd-c7fa-420b-8eba-5e8d12318234 2025-08-11 07:40:55,852 - INFO - Verified VN network id 11 for VN 9338e94a-3b22-46b1-8958-d82dd5688c95 2025-08-11 07:40:55,852 - INFO - Verifications in API Server for VN ctest-vn4-48936264 passed 2025-08-11 07:40:55,852 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/9338e94a-3b22-46b1-8958-d82dd5688c95 2025-08-11 07:40:55,862 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/7aea2afd-c7fa-420b-8eba-5e8d12318234 2025-08-11 07:40:55,867 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/7aea2afd-c7fa-420b-8eba-5e8d12318234 2025-08-11 07:40:55,874 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/b71d9d70-b6a8-4f6c-99b0-bd6934855a9a 2025-08-11 07:40:55,885 - DEBUG - Control-node 10.0.0.130 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-45805331:ctest-vn4-48936264', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-45805331', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10608485427300157105', 'uuid-lslong': '9896897872512191637'}, 'enable': 'true', 'created': '2025-08-11T07:40:54', 'last-modified': '2025-08-11T07:40:55', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.676948'} 2025-08-11 07:40:55,892 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-11 07:40:55,892 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-48936264 passed 2025-08-11 07:40:55,892 - DEBUG - ====Verifying policy data for ctest-vn4-48936264 in API_Server ====== 2025-08-11 07:40:55,892 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2025-08-11 07:40:55,898 - DEBUG - Requesting: http://10.0.0.130:8082/domain/b328bc76-276e-4db9-8317-eacaafad8778 2025-08-11 07:40:55,909 - DEBUG - Requesting: http://10.0.0.130:8082/project/741dad3f-6f0a-4cad-a492-1b098d9ae845 2025-08-11 07:40:55,978 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/9338e94a-3b22-46b1-8958-d82dd5688c95 2025-08-11 07:40:55,988 - DEBUG - ==>Verifying data for policy with id: cddd3c91-0a7f-4a06-a199-a99054fb332e, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-45805331', 'ctest-policy1-12903916'] 2025-08-11 07:40:55,988 - INFO - VN ctest-vn4-48936264 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-11 07:40:55,988 - DEBUG - Verifying the vn in opserver 2025-08-11 07:40:55,988 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-45805331:ctest-vn4-48936264 virtual network link through opserver 10.0.0.130 2025-08-11 07:40:55,989 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks 2025-08-11 07:40:56,275 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks 2025-08-11 07:40:56,324 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-45805331:ctest-vn4-48936264', 'href': 'http://10.0.0.130:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-45805331:ctest-vn4-48936264?flat'} 2025-08-11 07:40:56,324 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-45805331:ctest-vn4-48936264 is found in opserver 2025-08-11 07:40:56,335 - DEBUG - Do not have enough data to verify VN in agent 2025-08-11 07:40:56,340 - DEBUG - VRF ids for VN ctest-vn4-48936264: {} 2025-08-11 07:40:56,340 - DEBUG - ====Verifying data for ctest-policy1-12903916 in API_Server ====== 2025-08-11 07:40:56,340 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2025-08-11 07:40:56,345 - DEBUG - Requesting: http://10.0.0.130:8082/domain/b328bc76-276e-4db9-8317-eacaafad8778 2025-08-11 07:40:56,355 - DEBUG - Requesting: http://10.0.0.130:8082/project/741dad3f-6f0a-4cad-a492-1b098d9ae845 2025-08-11 07:40:56,425 - DEBUG - Requesting: http://10.0.0.130:8082/network-policy/cddd3c91-0a7f-4a06-a199-a99054fb332e 2025-08-11 07:40:56,435 - INFO - Verified policy ctest-policy1-12903916 in API Server, Result: True 2025-08-11 07:40:56,435 - INFO - Done with setup and verification, moving onto test .. 2025-08-11 07:40:56,442 - INFO - Deleting VN ctest-vn4-48936264 2025-08-11 07:40:56,545 - DEBUG - Response for deleting network () 2025-08-11 07:40:56,546 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/7aea2afd-c7fa-420b-8eba-5e8d12318234 2025-08-11 07:40:56,550 - DEBUG - Response Code: 404 2025-08-11 07:40:56,550 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2025-08-11 07:40:56,555 - DEBUG - Requesting: http://10.0.0.130:8082/domain/b328bc76-276e-4db9-8317-eacaafad8778 2025-08-11 07:40:56,607 - DEBUG - Requesting: http://10.0.0.130:8082/project/741dad3f-6f0a-4cad-a492-1b098d9ae845 2025-08-11 07:40:56,677 - INFO - Validated that VN ctest-vn4-48936264 is not found in API Server 2025-08-11 07:40:56,688 - DEBUG - VN ctest-vn4-48936264 is not present in Agent 10.0.0.130 2025-08-11 07:40:56,688 - INFO - Validated that VN ctest-vn4-48936264 is not in any agent 2025-08-11 07:40:56,702 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-48936264 info 2025-08-11 07:40:56,725 - INFO - Deleted policy ctest-policy1-12903916 2025-08-11 07:40:56,886 - DEBUG - policy ctest-policy1-12903916 is not found in API Server 2025-08-11 07:40:57,144 - DEBUG - No XMPP flaps were noticed during the test
2025-08-11 07:40:57,144 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-08-11 07:40:57,144 - INFO - -------------------------------------------------------------------------------- 2025-08-11 07:40:57,432 - DEBUG - No XMPP flaps were noticed during the test
2025-08-11 07:40:57,433 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-08-11 07:40:57,433 - INFO - -------------------------------------------------------------------------------- 2025-08-11 07:40:58,067 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-45805331, ID : 741dad3f-6f0a-4cad-a492-1b098d9ae845