2025-10-21 16:28:33,583 - INFO - Domain Default found not creating 2025-10-21 16:28:33,891 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-10574433 not found, creating it 2025-10-21 16:28:34,502 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-10574433, ID : c4377d6b-048b-4a84-aa35-047a2ca41c09 2025-10-21 16:28:36,433 - INFO - ================================================================================ 2025-10-21 16:28:36,433 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-21 16:28:36,745 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-10-21 16:28:36,745 - INFO - Initial checks done. Running the testcase now 2025-10-21 16:28:36,745 - INFO - 2025-10-21 16:28:36,746 - INFO - ================================================================================ 2025-10-21 16:28:36,746 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-21 16:28:36,746 - 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-21 16:28:37,037 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-10-21 16:28:37,037 - INFO - Initial checks done. Running the testcase now 2025-10-21 16:28:37,037 - INFO - 2025-10-21 16:28:37,527 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-10574433:ctest-vn4-53501265, 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-10574433:ctest-vn4-53501265, 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-10574433:ctest-vn4-53501265, 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-10574433:ctest-vn4-53501265, 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-21 16:28:38,255 - DEBUG - Response for create_network : {'network': {'id': 'd5dfeec2-1418-4da7-b0e6-b48a34440174', 'name': 'ctest-vn4-53501265', 'tenant_id': 'c4377d6b048b4a84aa35047a2ca41c09', 'project_id': 'c4377d6b048b4a84aa35047a2ca41c09', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-10574433', 'ctest-vn4-53501265'], 'port_security_enabled': True, 'description': ''}} 2025-10-21 16:28:38,504 - DEBUG - Response for create_subnet : {'subnet': {'id': '7c012a5c-00ab-460d-a388-2d465e9c2ac4', 'name': '', 'tenant_id': 'c4377d6b048b4a84aa35047a2ca41c09', 'network_id': 'd5dfeec2-1418-4da7-b0e6-b48a34440174', 'ip_version': 4, 'cidr': '213.84.114.192/26', 'allocation_pools': [{'start': '213.84.114.194', 'end': '213.84.114.254'}], 'gateway_ip': '213.84.114.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '213.84.114.194', 'tags': [], 'project_id': 'c4377d6b048b4a84aa35047a2ca41c09'}} 2025-10-21 16:28:38,702 - DEBUG - Response for create_subnet : {'subnet': {'id': '52a8feef-c95d-412b-899c-6f5b2ef5ae11', 'name': '', 'tenant_id': 'c4377d6b048b4a84aa35047a2ca41c09', 'network_id': 'd5dfeec2-1418-4da7-b0e6-b48a34440174', 'ip_version': 6, 'cidr': '237a:b55f:777a:1283:bc7a:a353::/96', 'allocation_pools': [{'start': '237a:b55f:777a:1283:bc7a:a353:0:2', 'end': '237a:b55f:777a:1283:bc7a:a353:ffff:fffe'}], 'gateway_ip': '237a:b55f:777a:1283:bc7a:a353:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '237a:b55f:777a:1283:bc7a:a353:0:2', 'tags': [], 'project_id': 'c4377d6b048b4a84aa35047a2ca41c09'}} 2025-10-21 16:28:38,729 - INFO - Created VN ctest-vn4-53501265 2025-10-21 16:28:38,783 - DEBUG - VN ctest-vn4-53501265 UUID is d5dfeec2-1418-4da7-b0e6-b48a34440174 2025-10-21 16:28:39,146 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd5dfeec2-1418-4da7-b0e6-b48a34440174', 'name': 'ctest-vn4-53501265', 'tenant_id': 'c4377d6b048b4a84aa35047a2ca41c09', 'project_id': 'c4377d6b048b4a84aa35047a2ca41c09', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7c012a5c-00ab-460d-a388-2d465e9c2ac4', '52a8feef-c95d-412b-899c-6f5b2ef5ae11'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-10574433', 'ctest-vn4-53501265'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-10574433', 'ctest-policy1-63286524']], 'subnet_ipam': [{'subnet_cidr': '213.84.114.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '237a:b55f:777a:1283:bc7a:a353::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-21 16:28:39,331 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-21 16:28:39,633 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-21 16:28:39,687 - DEBUG - Requesting: http://10.0.0.254:8082/domain/572e6c3c-b47f-408f-a718-2d4ad77686ae 2025-10-21 16:28:39,709 - DEBUG - Requesting: http://10.0.0.254:8082/project/c4377d6b-048b-4a84-aa35-047a2ca41c09 2025-10-21 16:28:39,817 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/d5dfeec2-1418-4da7-b0e6-b48a34440174 2025-10-21 16:28:39,838 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/d5dfeec2-1418-4da7-b0e6-b48a34440174 2025-10-21 16:28:39,853 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/9c6c09d4-6b18-400a-8166-f464032c7712 2025-10-21 16:28:39,864 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/9c6c09d4-6b18-400a-8166-f464032c7712 2025-10-21 16:28:39,874 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/701b7888-77c6-490f-bd89-5b2d52b3d3d6 2025-10-21 16:28:39,884 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-21 16:28:39,885 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/d5dfeec2-1418-4da7-b0e6-b48a34440174 2025-10-21 16:28:39,903 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/9c6c09d4-6b18-400a-8166-f464032c7712 2025-10-21 16:28:39,930 - INFO - Verified VN network id 11 for VN d5dfeec2-1418-4da7-b0e6-b48a34440174 2025-10-21 16:28:39,930 - INFO - Verifications in API Server for VN ctest-vn4-53501265 passed 2025-10-21 16:28:39,930 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/d5dfeec2-1418-4da7-b0e6-b48a34440174 2025-10-21 16:28:39,957 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/9c6c09d4-6b18-400a-8166-f464032c7712 2025-10-21 16:28:39,982 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/9c6c09d4-6b18-400a-8166-f464032c7712 2025-10-21 16:28:39,998 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/701b7888-77c6-490f-bd89-5b2d52b3d3d6 2025-10-21 16:28:40,024 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-10574433:ctest-vn4-53501265', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-10574433', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15411298967213329831', 'uuid-lslong': '12747074300994126196'}, 'enable': 'true', 'created': '2025-10-21T16:28:38', 'last-modified': '2025-10-21T16:28:39', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.982148'} 2025-10-21 16:28:40,035 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-21 16:28:40,035 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-53501265 passed 2025-10-21 16:28:40,036 - DEBUG - ====Verifying policy data for ctest-vn4-53501265 in API_Server ====== 2025-10-21 16:28:40,036 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-21 16:28:40,044 - DEBUG - Requesting: http://10.0.0.254:8082/domain/572e6c3c-b47f-408f-a718-2d4ad77686ae 2025-10-21 16:28:40,060 - DEBUG - Requesting: http://10.0.0.254:8082/project/c4377d6b-048b-4a84-aa35-047a2ca41c09 2025-10-21 16:28:40,154 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/d5dfeec2-1418-4da7-b0e6-b48a34440174 2025-10-21 16:28:40,168 - DEBUG - ==>Verifying data for policy with id: 51c746fb-7a2f-429b-bed5-b9a84301656b, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-10574433', 'ctest-policy1-63286524'] 2025-10-21 16:28:40,168 - INFO - VN ctest-vn4-53501265 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-21 16:28:40,169 - DEBUG - Verifying the vn in opserver 2025-10-21 16:28:40,169 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-10574433:ctest-vn4-53501265 virtual network link through opserver 10.0.0.254 2025-10-21 16:28:40,169 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-10-21 16:28:40,500 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-10-21 16:28:40,607 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-10574433:ctest-vn4-53501265', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-10574433:ctest-vn4-53501265?flat'} 2025-10-21 16:28:40,608 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-10574433:ctest-vn4-53501265 is found in opserver 2025-10-21 16:28:40,624 - DEBUG - Do not have enough data to verify VN in agent 2025-10-21 16:28:40,638 - DEBUG - VRF ids for VN ctest-vn4-53501265: {} 2025-10-21 16:28:40,639 - DEBUG - ====Verifying data for ctest-policy1-63286524 in API_Server ====== 2025-10-21 16:28:40,639 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-21 16:28:40,649 - DEBUG - Requesting: http://10.0.0.254:8082/domain/572e6c3c-b47f-408f-a718-2d4ad77686ae 2025-10-21 16:28:40,674 - DEBUG - Requesting: http://10.0.0.254:8082/project/c4377d6b-048b-4a84-aa35-047a2ca41c09 2025-10-21 16:28:40,791 - DEBUG - Requesting: http://10.0.0.254:8082/network-policy/51c746fb-7a2f-429b-bed5-b9a84301656b 2025-10-21 16:28:40,813 - INFO - Verified policy ctest-policy1-63286524 in API Server, Result: True 2025-10-21 16:28:40,813 - INFO - Done with setup and verification, moving onto test .. 2025-10-21 16:28:40,828 - INFO - Deleting VN ctest-vn4-53501265 2025-10-21 16:28:41,008 - DEBUG - Response for deleting network () 2025-10-21 16:28:41,008 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/9c6c09d4-6b18-400a-8166-f464032c7712 2025-10-21 16:28:41,014 - DEBUG - Response Code: 404 2025-10-21 16:28:41,015 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-21 16:28:41,021 - DEBUG - Requesting: http://10.0.0.254:8082/domain/572e6c3c-b47f-408f-a718-2d4ad77686ae 2025-10-21 16:28:41,084 - DEBUG - Requesting: http://10.0.0.254:8082/project/c4377d6b-048b-4a84-aa35-047a2ca41c09 2025-10-21 16:28:41,177 - INFO - Validated that VN ctest-vn4-53501265 is not found in API Server 2025-10-21 16:28:41,200 - DEBUG - VN ctest-vn4-53501265 is not present in Agent 10.0.0.254 2025-10-21 16:28:41,200 - INFO - Validated that VN ctest-vn4-53501265 is not in any agent 2025-10-21 16:28:41,228 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-53501265 info 2025-10-21 16:28:41,278 - INFO - Deleted policy ctest-policy1-63286524 2025-10-21 16:28:41,455 - DEBUG - policy ctest-policy1-63286524 is not found in API Server 2025-10-21 16:28:41,773 - DEBUG - No XMPP flaps were noticed during the test