2025-09-19 04:09:25,301 - INFO - Domain Default found not creating 2025-09-19 04:09:25,445 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-37309332 not found, creating it 2025-09-19 04:09:25,878 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-37309332, ID : 7fcb2abb-a4bf-45fe-9562-8586408d2c0a 2025-09-19 04:09:27,196 - INFO - ================================================================================ 2025-09-19 04:09:27,196 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-19 04:09:27,455 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with 2025-09-19 04:09:27,455 - INFO - Initial checks done. Running the testcase now 2025-09-19 04:09:27,455 - INFO - 2025-09-19 04:09:27,455 - INFO - ================================================================================ 2025-09-19 04:09:27,455 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-19 04:09:27,455 - 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-19 04:09:27,742 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with 2025-09-19 04:09:27,742 - INFO - Initial checks done. Running the testcase now 2025-09-19 04:09:27,742 - INFO - 2025-09-19 04:09:28,087 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-37309332:ctest-vn4-56614964, 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-37309332:ctest-vn4-56614964, 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-37309332:ctest-vn4-56614964, 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-37309332:ctest-vn4-56614964, 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-19 04:09:28,562 - DEBUG - Response for create_network : {'network': {'id': 'a12c0789-f5c2-4e87-b6a4-15badecbbb92', 'name': 'ctest-vn4-56614964', 'tenant_id': '7fcb2abba4bf45fe95628586408d2c0a', 'project_id': '7fcb2abba4bf45fe95628586408d2c0a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-37309332', 'ctest-vn4-56614964'], 'port_security_enabled': True, 'description': ''}} 2025-09-19 04:09:28,723 - DEBUG - Response for create_subnet : {'subnet': {'id': '3528b67f-94b2-4986-aebb-de774e54951d', 'name': '', 'tenant_id': '7fcb2abba4bf45fe95628586408d2c0a', 'network_id': 'a12c0789-f5c2-4e87-b6a4-15badecbbb92', 'ip_version': 4, 'cidr': '125.199.29.64/26', 'allocation_pools': [{'start': '125.199.29.66', 'end': '125.199.29.126'}], 'gateway_ip': '125.199.29.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '125.199.29.66', 'tags': [], 'project_id': '7fcb2abba4bf45fe95628586408d2c0a'}} 2025-09-19 04:09:28,906 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b4b1a4a7-565f-4457-be13-84c7d7f0e190', 'name': '', 'tenant_id': '7fcb2abba4bf45fe95628586408d2c0a', 'network_id': 'a12c0789-f5c2-4e87-b6a4-15badecbbb92', 'ip_version': 6, 'cidr': '362e:37c:752d:fb20:6e9a:c4f8::/96', 'allocation_pools': [{'start': '362e:37c:752d:fb20:6e9a:c4f8:0:2', 'end': '362e:37c:752d:fb20:6e9a:c4f8:ffff:fffe'}], 'gateway_ip': '362e:37c:752d:fb20:6e9a:c4f8:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '362e:37c:752d:fb20:6e9a:c4f8:0:2', 'tags': [], 'project_id': '7fcb2abba4bf45fe95628586408d2c0a'}} 2025-09-19 04:09:28,925 - INFO - Created VN ctest-vn4-56614964 2025-09-19 04:09:28,977 - DEBUG - VN ctest-vn4-56614964 UUID is a12c0789-f5c2-4e87-b6a4-15badecbbb92 2025-09-19 04:09:29,163 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a12c0789-f5c2-4e87-b6a4-15badecbbb92', 'name': 'ctest-vn4-56614964', 'tenant_id': '7fcb2abba4bf45fe95628586408d2c0a', 'project_id': '7fcb2abba4bf45fe95628586408d2c0a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3528b67f-94b2-4986-aebb-de774e54951d', 'b4b1a4a7-565f-4457-be13-84c7d7f0e190'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-37309332', 'ctest-vn4-56614964'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-37309332', 'ctest-policy1-99748204']], 'subnet_ipam': [{'subnet_cidr': '125.199.29.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '362e:37c:752d:fb20:6e9a:c4f8::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-09-19 04:09:29,322 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-09-19 04:09:29,614 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-09-19 04:09:29,640 - DEBUG - Requesting: http://10.0.0.33:8082/domain/96d7bd12-f6f6-4213-99d0-b74e6e816b9a 2025-09-19 04:09:29,652 - DEBUG - Requesting: http://10.0.0.33:8082/project/7fcb2abb-a4bf-45fe-9562-8586408d2c0a 2025-09-19 04:09:29,723 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/a12c0789-f5c2-4e87-b6a4-15badecbbb92 2025-09-19 04:09:29,734 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/a12c0789-f5c2-4e87-b6a4-15badecbbb92 2025-09-19 04:09:29,743 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/c5a208fe-81f1-474a-8c71-4dca97ac6188 2025-09-19 04:09:29,749 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/c5a208fe-81f1-474a-8c71-4dca97ac6188 2025-09-19 04:09:29,758 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/da76064b-fa74-40da-a0bf-e9a52a27e367 2025-09-19 04:09:29,764 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-19 04:09:29,764 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/a12c0789-f5c2-4e87-b6a4-15badecbbb92 2025-09-19 04:09:29,773 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/c5a208fe-81f1-474a-8c71-4dca97ac6188 2025-09-19 04:09:29,787 - INFO - Verified VN network id 10 for VN a12c0789-f5c2-4e87-b6a4-15badecbbb92 2025-09-19 04:09:29,787 - INFO - Verifications in API Server for VN ctest-vn4-56614964 passed 2025-09-19 04:09:29,787 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/a12c0789-f5c2-4e87-b6a4-15badecbbb92 2025-09-19 04:09:29,796 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/c5a208fe-81f1-474a-8c71-4dca97ac6188 2025-09-19 04:09:29,802 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/c5a208fe-81f1-474a-8c71-4dca97ac6188 2025-09-19 04:09:29,809 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/da76064b-fa74-40da-a0bf-e9a52a27e367 2025-09-19 04:09:29,821 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-37309332:ctest-vn4-56614964', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-37309332', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11613665828196732551', 'uuid-lslong': '13160667903429426066'}, 'enable': 'true', 'created': '2025-09-19T04:09:28', 'last-modified': '2025-09-19T04:09:29', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.681871'} 2025-09-19 04:09:29,826 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-19 04:09:29,826 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-56614964 passed 2025-09-19 04:09:29,827 - DEBUG - ====Verifying policy data for ctest-vn4-56614964 in API_Server ====== 2025-09-19 04:09:29,827 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-09-19 04:09:29,832 - DEBUG - Requesting: http://10.0.0.33:8082/domain/96d7bd12-f6f6-4213-99d0-b74e6e816b9a 2025-09-19 04:09:29,842 - DEBUG - Requesting: http://10.0.0.33:8082/project/7fcb2abb-a4bf-45fe-9562-8586408d2c0a 2025-09-19 04:09:29,910 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/a12c0789-f5c2-4e87-b6a4-15badecbbb92 2025-09-19 04:09:29,919 - DEBUG - ==>Verifying data for policy with id: 22f29be1-336d-4c26-8c6f-5c6da54d7aca, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-37309332', 'ctest-policy1-99748204'] 2025-09-19 04:09:29,919 - INFO - VN ctest-vn4-56614964 Policy verification: verify_vn_policy_in_api_server, status: True 2025-09-19 04:09:29,920 - DEBUG - Verifying the vn in opserver 2025-09-19 04:09:29,920 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-37309332:ctest-vn4-56614964 virtual network link through opserver 10.0.0.33 2025-09-19 04:09:29,920 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-09-19 04:09:30,210 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-09-19 04:09:30,263 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-37309332:ctest-vn4-56614964', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-37309332:ctest-vn4-56614964?flat'} 2025-09-19 04:09:30,263 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-37309332:ctest-vn4-56614964 is found in opserver 2025-09-19 04:09:30,271 - DEBUG - Do not have enough data to verify VN in agent 2025-09-19 04:09:30,275 - DEBUG - VRF ids for VN ctest-vn4-56614964: {} 2025-09-19 04:09:30,276 - DEBUG - ====Verifying data for ctest-policy1-99748204 in API_Server ====== 2025-09-19 04:09:30,276 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-09-19 04:09:30,280 - DEBUG - Requesting: http://10.0.0.33:8082/domain/96d7bd12-f6f6-4213-99d0-b74e6e816b9a 2025-09-19 04:09:30,289 - DEBUG - Requesting: http://10.0.0.33:8082/project/7fcb2abb-a4bf-45fe-9562-8586408d2c0a 2025-09-19 04:09:30,355 - DEBUG - Requesting: http://10.0.0.33:8082/network-policy/22f29be1-336d-4c26-8c6f-5c6da54d7aca 2025-09-19 04:09:30,362 - INFO - Verified policy ctest-policy1-99748204 in API Server, Result: True 2025-09-19 04:09:30,362 - INFO - Done with setup and verification, moving onto test .. 2025-09-19 04:09:30,369 - INFO - Deleting VN ctest-vn4-56614964 2025-09-19 04:09:30,466 - DEBUG - Response for deleting network () 2025-09-19 04:09:30,466 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/c5a208fe-81f1-474a-8c71-4dca97ac6188 2025-09-19 04:09:30,470 - DEBUG - Response Code: 404 2025-09-19 04:09:30,470 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-09-19 04:09:30,474 - DEBUG - Requesting: http://10.0.0.33:8082/domain/96d7bd12-f6f6-4213-99d0-b74e6e816b9a 2025-09-19 04:09:30,526 - DEBUG - Requesting: http://10.0.0.33:8082/project/7fcb2abb-a4bf-45fe-9562-8586408d2c0a 2025-09-19 04:09:30,591 - INFO - Validated that VN ctest-vn4-56614964 is not found in API Server 2025-09-19 04:09:30,600 - DEBUG - VN ctest-vn4-56614964 is not present in Agent 10.0.0.33 2025-09-19 04:09:30,600 - INFO - Validated that VN ctest-vn4-56614964 is not in any agent 2025-09-19 04:09:30,612 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-56614964 info 2025-09-19 04:09:30,633 - INFO - Deleted policy ctest-policy1-99748204 2025-09-19 04:09:30,789 - DEBUG - policy ctest-policy1-99748204 is not found in API Server 2025-09-19 04:09:31,046 - DEBUG - No XMPP flaps were noticed during the test 2025-09-19 04:09:31,046 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-09-19 04:09:31,046 - INFO - -------------------------------------------------------------------------------- 2025-09-19 04:09:31,342 - DEBUG - No XMPP flaps were noticed during the test 2025-09-19 04:09:31,342 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-09-19 04:09:31,342 - INFO - -------------------------------------------------------------------------------- 2025-09-19 04:09:31,979 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-37309332, ID : 7fcb2abb-a4bf-45fe-9562-8586408d2c0a