2025-10-09 02:01:20,825 - INFO - Domain Default found not creating 2025-10-09 02:01:20,955 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-40425131 not found, creating it 2025-10-09 02:01:21,396 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-40425131, ID : 00fd686b-ec01-4828-a15d-68b7a8be58e4 2025-10-09 02:01:22,786 - INFO - ================================================================================ 2025-10-09 02:01:22,786 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-09 02:01:23,042 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.254': '0'}} with 2025-10-09 02:01:23,042 - INFO - Initial checks done. Running the testcase now 2025-10-09 02:01:23,042 - INFO - 2025-10-09 02:01:23,042 - INFO - ================================================================================ 2025-10-09 02:01:23,042 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-09 02:01:23,042 - 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-09 02:01:23,332 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.254': '0'}} with 2025-10-09 02:01:23,332 - INFO - Initial checks done. Running the testcase now 2025-10-09 02:01:23,332 - INFO - 2025-10-09 02:01:23,674 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-40425131:ctest-vn4-97258357, 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-40425131:ctest-vn4-97258357, 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-40425131:ctest-vn4-97258357, 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-40425131:ctest-vn4-97258357, 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-09 02:01:24,186 - DEBUG - Response for create_network : {'network': {'id': '9a99c6da-c171-485e-a53b-99512d095dfa', 'name': 'ctest-vn4-97258357', 'tenant_id': '00fd686bec014828a15d68b7a8be58e4', 'project_id': '00fd686bec014828a15d68b7a8be58e4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-40425131', 'ctest-vn4-97258357'], 'port_security_enabled': True, 'description': ''}} 2025-10-09 02:01:24,362 - DEBUG - Response for create_subnet : {'subnet': {'id': 'aed9faad-28e3-48f4-a71f-3dc2d35523c5', 'name': '', 'tenant_id': '00fd686bec014828a15d68b7a8be58e4', 'network_id': '9a99c6da-c171-485e-a53b-99512d095dfa', 'ip_version': 4, 'cidr': '97.248.42.0/26', 'allocation_pools': [{'start': '97.248.42.2', 'end': '97.248.42.62'}], 'gateway_ip': '97.248.42.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '97.248.42.2', 'tags': [], 'project_id': '00fd686bec014828a15d68b7a8be58e4'}} 2025-10-09 02:01:24,514 - DEBUG - Response for create_subnet : {'subnet': {'id': '4ca11921-cd64-4c38-b128-016669d46ac6', 'name': '', 'tenant_id': '00fd686bec014828a15d68b7a8be58e4', 'network_id': '9a99c6da-c171-485e-a53b-99512d095dfa', 'ip_version': 6, 'cidr': '2e60:e2c8:d824:fc02:c57d:7e69::/96', 'allocation_pools': [{'start': '2e60:e2c8:d824:fc02:c57d:7e69:0:2', 'end': '2e60:e2c8:d824:fc02:c57d:7e69:ffff:fffe'}], 'gateway_ip': '2e60:e2c8:d824:fc02:c57d:7e69:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2e60:e2c8:d824:fc02:c57d:7e69:0:2', 'tags': [], 'project_id': '00fd686bec014828a15d68b7a8be58e4'}} 2025-10-09 02:01:24,533 - INFO - Created VN ctest-vn4-97258357 2025-10-09 02:01:24,585 - DEBUG - VN ctest-vn4-97258357 UUID is 9a99c6da-c171-485e-a53b-99512d095dfa 2025-10-09 02:01:24,762 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9a99c6da-c171-485e-a53b-99512d095dfa', 'name': 'ctest-vn4-97258357', 'tenant_id': '00fd686bec014828a15d68b7a8be58e4', 'project_id': '00fd686bec014828a15d68b7a8be58e4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['aed9faad-28e3-48f4-a71f-3dc2d35523c5', '4ca11921-cd64-4c38-b128-016669d46ac6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-40425131', 'ctest-vn4-97258357'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-40425131', 'ctest-policy1-86912927']], 'subnet_ipam': [{'subnet_cidr': '97.248.42.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2e60:e2c8:d824:fc02:c57d:7e69::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-09 02:01:24,921 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-10-09 02:01:25,234 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-10-09 02:01:25,262 - DEBUG - Requesting: http://10.0.0.50:8082/domain/86448381-0e5c-46f2-937e-94571e0d2d9d 2025-10-09 02:01:25,274 - DEBUG - Requesting: http://10.0.0.50:8082/project/00fd686b-ec01-4828-a15d-68b7a8be58e4 2025-10-09 02:01:25,347 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/9a99c6da-c171-485e-a53b-99512d095dfa 2025-10-09 02:01:25,357 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/9a99c6da-c171-485e-a53b-99512d095dfa 2025-10-09 02:01:25,365 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/50fdf6b9-1bc2-407d-aab0-7c6cbbd0eaee 2025-10-09 02:01:25,370 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/50fdf6b9-1bc2-407d-aab0-7c6cbbd0eaee 2025-10-09 02:01:25,376 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/63d2592c-15be-495a-a110-81f4c8122539 2025-10-09 02:01:25,381 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-09 02:01:25,381 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/9a99c6da-c171-485e-a53b-99512d095dfa 2025-10-09 02:01:25,390 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/50fdf6b9-1bc2-407d-aab0-7c6cbbd0eaee 2025-10-09 02:01:25,404 - INFO - Verified VN network id 12 for VN 9a99c6da-c171-485e-a53b-99512d095dfa 2025-10-09 02:01:25,405 - INFO - Verifications in API Server for VN ctest-vn4-97258357 passed 2025-10-09 02:01:25,405 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/9a99c6da-c171-485e-a53b-99512d095dfa 2025-10-09 02:01:25,414 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/50fdf6b9-1bc2-407d-aab0-7c6cbbd0eaee 2025-10-09 02:01:25,420 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/50fdf6b9-1bc2-407d-aab0-7c6cbbd0eaee 2025-10-09 02:01:25,425 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/63d2592c-15be-495a-a110-81f4c8122539 2025-10-09 02:01:25,434 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-40425131:ctest-vn4-97258357', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-40425131', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11140153796128229470', 'uuid-lslong': '11906278613811027450'}, 'enable': 'true', 'created': '2025-10-09T02:01:24', 'last-modified': '2025-10-09T02:01:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.691375'} 2025-10-09 02:01:25,439 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-09 02:01:25,439 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-97258357 passed 2025-10-09 02:01:25,439 - DEBUG - ====Verifying policy data for ctest-vn4-97258357 in API_Server ====== 2025-10-09 02:01:25,439 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-10-09 02:01:25,443 - DEBUG - Requesting: http://10.0.0.50:8082/domain/86448381-0e5c-46f2-937e-94571e0d2d9d 2025-10-09 02:01:25,452 - DEBUG - Requesting: http://10.0.0.50:8082/project/00fd686b-ec01-4828-a15d-68b7a8be58e4 2025-10-09 02:01:25,519 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/9a99c6da-c171-485e-a53b-99512d095dfa 2025-10-09 02:01:25,527 - DEBUG - ==>Verifying data for policy with id: dcbaa6a2-5ce7-4023-97ef-e588e9905e54, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-40425131', 'ctest-policy1-86912927'] 2025-10-09 02:01:25,527 - INFO - VN ctest-vn4-97258357 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-09 02:01:25,527 - DEBUG - Verifying the vn in opserver 2025-10-09 02:01:25,527 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-40425131:ctest-vn4-97258357 virtual network link through opserver 10.0.0.50 2025-10-09 02:01:25,528 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-10-09 02:01:25,817 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-10-09 02:01:25,868 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-40425131:ctest-vn4-97258357', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-40425131:ctest-vn4-97258357?flat'} 2025-10-09 02:01:25,868 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-40425131:ctest-vn4-97258357 is found in opserver 2025-10-09 02:01:25,878 - DEBUG - Do not have enough data to verify VN in agent 2025-10-09 02:01:25,881 - DEBUG - VRF ids for VN ctest-vn4-97258357: {} 2025-10-09 02:01:25,882 - DEBUG - ====Verifying data for ctest-policy1-86912927 in API_Server ====== 2025-10-09 02:01:25,882 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-10-09 02:01:25,886 - DEBUG - Requesting: http://10.0.0.50:8082/domain/86448381-0e5c-46f2-937e-94571e0d2d9d 2025-10-09 02:01:25,897 - DEBUG - Requesting: http://10.0.0.50:8082/project/00fd686b-ec01-4828-a15d-68b7a8be58e4 2025-10-09 02:01:25,966 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/dcbaa6a2-5ce7-4023-97ef-e588e9905e54 2025-10-09 02:01:25,974 - INFO - Verified policy ctest-policy1-86912927 in API Server, Result: True 2025-10-09 02:01:25,974 - INFO - Done with setup and verification, moving onto test .. 2025-10-09 02:01:25,981 - INFO - Deleting VN ctest-vn4-97258357 2025-10-09 02:01:26,093 - DEBUG - Response for deleting network () 2025-10-09 02:01:26,093 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/50fdf6b9-1bc2-407d-aab0-7c6cbbd0eaee 2025-10-09 02:01:26,098 - DEBUG - Response Code: 404 2025-10-09 02:01:26,098 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-10-09 02:01:26,103 - DEBUG - Requesting: http://10.0.0.50:8082/domain/86448381-0e5c-46f2-937e-94571e0d2d9d 2025-10-09 02:01:26,158 - DEBUG - Requesting: http://10.0.0.50:8082/project/00fd686b-ec01-4828-a15d-68b7a8be58e4 2025-10-09 02:01:26,230 - INFO - Validated that VN ctest-vn4-97258357 is not found in API Server 2025-10-09 02:01:26,239 - DEBUG - VN ctest-vn4-97258357 is not present in Agent 10.0.0.50 2025-10-09 02:01:26,239 - INFO - Validated that VN ctest-vn4-97258357 is not in any agent 2025-10-09 02:01:26,250 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-97258357 info 2025-10-09 02:01:26,273 - INFO - Deleted policy ctest-policy1-86912927 2025-10-09 02:01:26,433 - DEBUG - policy ctest-policy1-86912927 is not found in API Server 2025-10-09 02:01:26,686 - DEBUG - No XMPP flaps were noticed during the test
2025-10-09 02:01:26,686 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:03]
2025-10-09 02:01:26,686 - INFO - -------------------------------------------------------------------------------- 2025-10-09 02:01:26,974 - DEBUG - No XMPP flaps were noticed during the test
2025-10-09 02:01:26,974 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-10-09 02:01:26,974 - INFO - -------------------------------------------------------------------------------- 2025-10-09 02:01:27,639 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-40425131, ID : 00fd686b-ec01-4828-a15d-68b7a8be58e4