2025-11-27 08:27:54,825 - INFO - Domain Default found not creating 2025-11-27 08:27:55,012 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-43945290 not found, creating it 2025-11-27 08:27:55,482 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-43945290, ID : be91e02b-e0d8-4be7-8f20-781eed57248e 2025-11-27 08:27:57,133 - INFO - ================================================================================ 2025-11-27 08:27:57,133 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-27 08:27:57,389 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with 2025-11-27 08:27:57,389 - INFO - Initial checks done. Running the testcase now 2025-11-27 08:27:57,389 - INFO - 2025-11-27 08:27:57,389 - INFO - ================================================================================ 2025-11-27 08:27:57,389 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-27 08:27:57,389 - 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-11-27 08:27:57,685 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with 2025-11-27 08:27:57,685 - INFO - Initial checks done. Running the testcase now 2025-11-27 08:27:57,685 - INFO - 2025-11-27 08:27:58,086 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-43945290:ctest-vn4-99612141, 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-43945290:ctest-vn4-99612141, 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-43945290:ctest-vn4-99612141, 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-43945290:ctest-vn4-99612141, 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-11-27 08:27:58,618 - DEBUG - Response for create_network : {'network': {'id': '340394d1-93b3-49d6-b301-3d5fada9ce17', 'name': 'ctest-vn4-99612141', 'tenant_id': 'be91e02be0d84be78f20781eed57248e', 'project_id': 'be91e02be0d84be78f20781eed57248e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-43945290', 'ctest-vn4-99612141'], 'port_security_enabled': True, 'description': ''}} 2025-11-27 08:27:58,802 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c55967c3-0a96-4b03-ab21-923b24720e0e', 'name': '', 'tenant_id': 'be91e02be0d84be78f20781eed57248e', 'network_id': '340394d1-93b3-49d6-b301-3d5fada9ce17', 'ip_version': 4, 'cidr': '39.107.5.192/26', 'allocation_pools': [{'start': '39.107.5.194', 'end': '39.107.5.254'}], 'gateway_ip': '39.107.5.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '39.107.5.194', 'tags': [], 'project_id': 'be91e02be0d84be78f20781eed57248e'}} 2025-11-27 08:27:58,962 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e3b343d6-bfa7-4d30-8e12-a451a22bdf60', 'name': '', 'tenant_id': 'be91e02be0d84be78f20781eed57248e', 'network_id': '340394d1-93b3-49d6-b301-3d5fada9ce17', 'ip_version': 6, 'cidr': '37a4:f543:56c7:31ea:d17d:9edf::/96', 'allocation_pools': [{'start': '37a4:f543:56c7:31ea:d17d:9edf:0:2', 'end': '37a4:f543:56c7:31ea:d17d:9edf:ffff:fffe'}], 'gateway_ip': '37a4:f543:56c7:31ea:d17d:9edf:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '37a4:f543:56c7:31ea:d17d:9edf:0:2', 'tags': [], 'project_id': 'be91e02be0d84be78f20781eed57248e'}} 2025-11-27 08:27:58,985 - INFO - Created VN ctest-vn4-99612141 2025-11-27 08:27:59,038 - DEBUG - VN ctest-vn4-99612141 UUID is 340394d1-93b3-49d6-b301-3d5fada9ce17 2025-11-27 08:27:59,243 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '340394d1-93b3-49d6-b301-3d5fada9ce17', 'name': 'ctest-vn4-99612141', 'tenant_id': 'be91e02be0d84be78f20781eed57248e', 'project_id': 'be91e02be0d84be78f20781eed57248e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c55967c3-0a96-4b03-ab21-923b24720e0e', 'e3b343d6-bfa7-4d30-8e12-a451a22bdf60'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-43945290', 'ctest-vn4-99612141'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-43945290', 'ctest-policy1-71765125']], 'subnet_ipam': [{'subnet_cidr': '39.107.5.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '37a4:f543:56c7:31ea:d17d:9edf::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-11-27 08:27:59,402 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-11-27 08:27:59,739 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-11-27 08:27:59,771 - DEBUG - Requesting: http://10.0.0.33:8082/domain/da942467-df54-4518-b91a-cef97911c724 2025-11-27 08:27:59,785 - DEBUG - Requesting: http://10.0.0.33:8082/project/be91e02b-e0d8-4be7-8f20-781eed57248e 2025-11-27 08:27:59,861 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/340394d1-93b3-49d6-b301-3d5fada9ce17 2025-11-27 08:27:59,875 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/340394d1-93b3-49d6-b301-3d5fada9ce17 2025-11-27 08:27:59,887 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/b019e136-0a06-408c-b092-f461db714405 2025-11-27 08:27:59,896 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/b019e136-0a06-408c-b092-f461db714405 2025-11-27 08:27:59,903 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/3913bb07-2bad-400b-a7bb-2a7718e5ff90 2025-11-27 08:27:59,911 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-27 08:27:59,912 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/340394d1-93b3-49d6-b301-3d5fada9ce17 2025-11-27 08:27:59,922 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/b019e136-0a06-408c-b092-f461db714405 2025-11-27 08:27:59,937 - INFO - Verified VN network id 11 for VN 340394d1-93b3-49d6-b301-3d5fada9ce17 2025-11-27 08:27:59,938 - INFO - Verifications in API Server for VN ctest-vn4-99612141 passed 2025-11-27 08:27:59,938 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/340394d1-93b3-49d6-b301-3d5fada9ce17 2025-11-27 08:27:59,948 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/b019e136-0a06-408c-b092-f461db714405 2025-11-27 08:27:59,956 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/b019e136-0a06-408c-b092-f461db714405 2025-11-27 08:27:59,964 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/3913bb07-2bad-400b-a7bb-2a7718e5ff90 2025-11-27 08:27:59,978 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-43945290:ctest-vn4-99612141', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-43945290', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3748002942749460950', 'uuid-lslong': '12898658288910585367'}, 'enable': 'true', 'created': '2025-11-27T08:27:58', 'last-modified': '2025-11-27T08:27:59', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.761596'} 2025-11-27 08:27:59,986 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-27 08:27:59,986 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-99612141 passed 2025-11-27 08:27:59,986 - DEBUG - ====Verifying policy data for ctest-vn4-99612141 in API_Server ====== 2025-11-27 08:27:59,986 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-11-27 08:27:59,994 - DEBUG - Requesting: http://10.0.0.33:8082/domain/da942467-df54-4518-b91a-cef97911c724 2025-11-27 08:28:00,009 - DEBUG - Requesting: http://10.0.0.33:8082/project/be91e02b-e0d8-4be7-8f20-781eed57248e 2025-11-27 08:28:00,081 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/340394d1-93b3-49d6-b301-3d5fada9ce17 2025-11-27 08:28:00,092 - DEBUG - ==>Verifying data for policy with id: 6dd1cfb0-e81f-49a6-a870-896a5fd8a4ea, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-43945290', 'ctest-policy1-71765125'] 2025-11-27 08:28:00,092 - INFO - VN ctest-vn4-99612141 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-27 08:28:00,092 - DEBUG - Verifying the vn in opserver 2025-11-27 08:28:00,093 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-43945290:ctest-vn4-99612141 virtual network link through opserver 10.0.0.33 2025-11-27 08:28:00,093 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-11-27 08:28:00,429 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-11-27 08:28:00,504 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-43945290:ctest-vn4-99612141', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-43945290:ctest-vn4-99612141?flat'} 2025-11-27 08:28:00,504 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-43945290:ctest-vn4-99612141 is found in opserver 2025-11-27 08:28:00,515 - DEBUG - Do not have enough data to verify VN in agent 2025-11-27 08:28:00,520 - DEBUG - VRF ids for VN ctest-vn4-99612141: {} 2025-11-27 08:28:00,521 - DEBUG - ====Verifying data for ctest-policy1-71765125 in API_Server ====== 2025-11-27 08:28:00,521 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-11-27 08:28:00,527 - DEBUG - Requesting: http://10.0.0.33:8082/domain/da942467-df54-4518-b91a-cef97911c724 2025-11-27 08:28:00,538 - DEBUG - Requesting: http://10.0.0.33:8082/project/be91e02b-e0d8-4be7-8f20-781eed57248e 2025-11-27 08:28:00,608 - DEBUG - Requesting: http://10.0.0.33:8082/network-policy/6dd1cfb0-e81f-49a6-a870-896a5fd8a4ea 2025-11-27 08:28:00,618 - INFO - Verified policy ctest-policy1-71765125 in API Server, Result: True 2025-11-27 08:28:00,618 - INFO - Done with setup and verification, moving onto test .. 2025-11-27 08:28:00,627 - INFO - Deleting VN ctest-vn4-99612141 2025-11-27 08:28:00,772 - DEBUG - Response for deleting network () 2025-11-27 08:28:00,772 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/b019e136-0a06-408c-b092-f461db714405 2025-11-27 08:28:00,778 - DEBUG - Response Code: 404 2025-11-27 08:28:00,778 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-11-27 08:28:00,785 - DEBUG - Requesting: http://10.0.0.33:8082/domain/da942467-df54-4518-b91a-cef97911c724 2025-11-27 08:28:00,839 - DEBUG - Requesting: http://10.0.0.33:8082/project/be91e02b-e0d8-4be7-8f20-781eed57248e 2025-11-27 08:28:00,915 - INFO - Validated that VN ctest-vn4-99612141 is not found in API Server 2025-11-27 08:28:00,927 - DEBUG - VN ctest-vn4-99612141 is not present in Agent 10.0.0.33 2025-11-27 08:28:00,927 - INFO - Validated that VN ctest-vn4-99612141 is not in any agent 2025-11-27 08:28:00,944 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-99612141 info 2025-11-27 08:28:00,971 - INFO - Deleted policy ctest-policy1-71765125 2025-11-27 08:28:01,138 - DEBUG - policy ctest-policy1-71765125 is not found in API Server 2025-11-27 08:28:01,400 - DEBUG - No XMPP flaps were noticed during the test
2025-11-27 08:28:01,400 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-11-27 08:28:01,400 - INFO - -------------------------------------------------------------------------------- 2025-11-27 08:28:01,691 - DEBUG - No XMPP flaps were noticed during the test
2025-11-27 08:28:01,691 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-11-27 08:28:01,691 - INFO - -------------------------------------------------------------------------------- 2025-11-27 08:28:02,457 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-43945290, ID : be91e02b-e0d8-4be7-8f20-781eed57248e