2025-08-20 13:25:16,812 - INFO - Domain Default found not creating 2025-08-20 13:25:16,955 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-09072713 not found, creating it 2025-08-20 13:25:17,400 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-09072713, ID : fbbc6b6d-914e-471e-8939-68f03bc66949 2025-08-20 13:25:18,767 - INFO - ================================================================================ 2025-08-20 13:25:18,767 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-20 13:25:19,016 - DEBUG - Nothing to compare xmpp stats {'10.0.0.65': {'10.20.0.17': '0'}} with 2025-08-20 13:25:19,016 - INFO - Initial checks done. Running the testcase now 2025-08-20 13:25:19,016 - INFO - 2025-08-20 13:25:19,017 - INFO - ================================================================================ 2025-08-20 13:25:19,017 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-20 13:25:19,017 - 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-20 13:25:19,303 - DEBUG - Nothing to compare xmpp stats {'10.0.0.65': {'10.20.0.17': '0'}} with 2025-08-20 13:25:19,303 - INFO - Initial checks done. Running the testcase now 2025-08-20 13:25:19,303 - INFO - 2025-08-20 13:25:19,644 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-09072713:ctest-vn4-28042478, 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-09072713:ctest-vn4-28042478, 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-09072713:ctest-vn4-28042478, 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-09072713:ctest-vn4-28042478, 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-20 13:25:20,161 - DEBUG - Response for create_network : {'network': {'id': '38913b88-39b9-4083-8603-483e7f1a90c2', 'name': 'ctest-vn4-28042478', 'tenant_id': 'fbbc6b6d914e471e893968f03bc66949', 'project_id': 'fbbc6b6d914e471e893968f03bc66949', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-09072713', 'ctest-vn4-28042478'], 'port_security_enabled': True, 'description': ''}} 2025-08-20 13:25:20,358 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fa99fbe1-ef22-4bb0-bf58-68419509588c', 'name': '', 'tenant_id': 'fbbc6b6d914e471e893968f03bc66949', 'network_id': '38913b88-39b9-4083-8603-483e7f1a90c2', 'ip_version': 4, 'cidr': '63.253.2.0/26', 'allocation_pools': [{'start': '63.253.2.2', 'end': '63.253.2.62'}], 'gateway_ip': '63.253.2.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '63.253.2.2', 'tags': [], 'project_id': 'fbbc6b6d914e471e893968f03bc66949'}} 2025-08-20 13:25:20,539 - DEBUG - Response for create_subnet : {'subnet': {'id': 'db0640a2-9003-43a0-9086-18838d9e524d', 'name': '', 'tenant_id': 'fbbc6b6d914e471e893968f03bc66949', 'network_id': '38913b88-39b9-4083-8603-483e7f1a90c2', 'ip_version': 6, 'cidr': '3b7c:cc37:f122:fff4:80cd:43b2::/96', 'allocation_pools': [{'start': '3b7c:cc37:f122:fff4:80cd:43b2:0:2', 'end': '3b7c:cc37:f122:fff4:80cd:43b2:ffff:fffe'}], 'gateway_ip': '3b7c:cc37:f122:fff4:80cd:43b2:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3b7c:cc37:f122:fff4:80cd:43b2:0:2', 'tags': [], 'project_id': 'fbbc6b6d914e471e893968f03bc66949'}} 2025-08-20 13:25:20,557 - INFO - Created VN ctest-vn4-28042478 2025-08-20 13:25:20,613 - DEBUG - VN ctest-vn4-28042478 UUID is 38913b88-39b9-4083-8603-483e7f1a90c2 2025-08-20 13:25:20,818 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '38913b88-39b9-4083-8603-483e7f1a90c2', 'name': 'ctest-vn4-28042478', 'tenant_id': 'fbbc6b6d914e471e893968f03bc66949', 'project_id': 'fbbc6b6d914e471e893968f03bc66949', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['fa99fbe1-ef22-4bb0-bf58-68419509588c', 'db0640a2-9003-43a0-9086-18838d9e524d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-09072713', 'ctest-vn4-28042478'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-09072713', 'ctest-policy1-36485827']], 'subnet_ipam': [{'subnet_cidr': '63.253.2.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3b7c:cc37:f122:fff4:80cd:43b2::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-20 13:25:20,982 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2025-08-20 13:25:21,271 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2025-08-20 13:25:21,296 - DEBUG - Requesting: http://10.0.0.65:8082/domain/48138fab-26af-4851-aa93-5524da3e178e 2025-08-20 13:25:21,308 - DEBUG - Requesting: http://10.0.0.65:8082/project/fbbc6b6d-914e-471e-8939-68f03bc66949 2025-08-20 13:25:21,383 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/38913b88-39b9-4083-8603-483e7f1a90c2 2025-08-20 13:25:21,396 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/38913b88-39b9-4083-8603-483e7f1a90c2 2025-08-20 13:25:21,406 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/bd7e034f-62eb-4717-9cde-2af30073296f 2025-08-20 13:25:21,413 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/bd7e034f-62eb-4717-9cde-2af30073296f 2025-08-20 13:25:21,419 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/73fdbba0-d554-4ce3-bf3c-18161b6961cf 2025-08-20 13:25:21,426 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-20 13:25:21,426 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/38913b88-39b9-4083-8603-483e7f1a90c2 2025-08-20 13:25:21,436 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/bd7e034f-62eb-4717-9cde-2af30073296f 2025-08-20 13:25:21,449 - INFO - Verified VN network id 12 for VN 38913b88-39b9-4083-8603-483e7f1a90c2 2025-08-20 13:25:21,449 - INFO - Verifications in API Server for VN ctest-vn4-28042478 passed 2025-08-20 13:25:21,449 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/38913b88-39b9-4083-8603-483e7f1a90c2 2025-08-20 13:25:21,459 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/bd7e034f-62eb-4717-9cde-2af30073296f 2025-08-20 13:25:21,466 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/bd7e034f-62eb-4717-9cde-2af30073296f 2025-08-20 13:25:21,472 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/73fdbba0-d554-4ce3-bf3c-18161b6961cf 2025-08-20 13:25:21,484 - DEBUG - Control-node 10.0.0.65 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-09072713:ctest-vn4-28042478', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-09072713', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4076104594017042563', 'uuid-lslong': '9656641459270095042'}, 'enable': 'true', 'created': '2025-08-20T13:25:20', 'last-modified': '2025-08-20T13:25:20', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.693959'} 2025-08-20 13:25:21,490 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-20 13:25:21,490 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-28042478 passed 2025-08-20 13:25:21,490 - DEBUG - ====Verifying policy data for ctest-vn4-28042478 in API_Server ====== 2025-08-20 13:25:21,490 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2025-08-20 13:25:21,497 - DEBUG - Requesting: http://10.0.0.65:8082/domain/48138fab-26af-4851-aa93-5524da3e178e 2025-08-20 13:25:21,508 - DEBUG - Requesting: http://10.0.0.65:8082/project/fbbc6b6d-914e-471e-8939-68f03bc66949 2025-08-20 13:25:21,580 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/38913b88-39b9-4083-8603-483e7f1a90c2 2025-08-20 13:25:21,590 - DEBUG - ==>Verifying data for policy with id: d4438bb1-0e3b-419e-abbf-823371c0e010, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-09072713', 'ctest-policy1-36485827'] 2025-08-20 13:25:21,590 - INFO - VN ctest-vn4-28042478 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-20 13:25:21,590 - DEBUG - Verifying the vn in opserver 2025-08-20 13:25:21,590 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-09072713:ctest-vn4-28042478 virtual network link through opserver 10.0.0.65 2025-08-20 13:25:21,591 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks 2025-08-20 13:25:21,882 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks 2025-08-20 13:25:21,935 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-09072713:ctest-vn4-28042478', 'href': 'http://10.0.0.65:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-09072713:ctest-vn4-28042478?flat'} 2025-08-20 13:25:21,935 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-09072713:ctest-vn4-28042478 is found in opserver 2025-08-20 13:25:21,945 - DEBUG - Do not have enough data to verify VN in agent 2025-08-20 13:25:21,950 - DEBUG - VRF ids for VN ctest-vn4-28042478: {} 2025-08-20 13:25:21,951 - DEBUG - ====Verifying data for ctest-policy1-36485827 in API_Server ====== 2025-08-20 13:25:21,951 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2025-08-20 13:25:21,956 - DEBUG - Requesting: http://10.0.0.65:8082/domain/48138fab-26af-4851-aa93-5524da3e178e 2025-08-20 13:25:21,967 - DEBUG - Requesting: http://10.0.0.65:8082/project/fbbc6b6d-914e-471e-8939-68f03bc66949 2025-08-20 13:25:22,041 - DEBUG - Requesting: http://10.0.0.65:8082/network-policy/d4438bb1-0e3b-419e-abbf-823371c0e010 2025-08-20 13:25:22,052 - INFO - Verified policy ctest-policy1-36485827 in API Server, Result: True 2025-08-20 13:25:22,052 - INFO - Done with setup and verification, moving onto test .. 2025-08-20 13:25:22,060 - INFO - Deleting VN ctest-vn4-28042478 2025-08-20 13:25:22,168 - DEBUG - Response for deleting network () 2025-08-20 13:25:22,168 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/bd7e034f-62eb-4717-9cde-2af30073296f 2025-08-20 13:25:22,173 - DEBUG - Response Code: 404 2025-08-20 13:25:22,173 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2025-08-20 13:25:22,178 - DEBUG - Requesting: http://10.0.0.65:8082/domain/48138fab-26af-4851-aa93-5524da3e178e 2025-08-20 13:25:22,235 - DEBUG - Requesting: http://10.0.0.65:8082/project/fbbc6b6d-914e-471e-8939-68f03bc66949 2025-08-20 13:25:22,320 - INFO - Validated that VN ctest-vn4-28042478 is not found in API Server 2025-08-20 13:25:22,331 - DEBUG - VN ctest-vn4-28042478 is not present in Agent 10.0.0.65 2025-08-20 13:25:22,331 - INFO - Validated that VN ctest-vn4-28042478 is not in any agent 2025-08-20 13:25:22,348 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-28042478 info 2025-08-20 13:25:22,375 - INFO - Deleted policy ctest-policy1-36485827 2025-08-20 13:25:22,537 - DEBUG - policy ctest-policy1-36485827 is not found in API Server 2025-08-20 13:25:22,791 - DEBUG - No XMPP flaps were noticed during the test
2025-08-20 13:25:22,791 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:03]
2025-08-20 13:25:22,791 - INFO - -------------------------------------------------------------------------------- 2025-08-20 13:25:23,079 - DEBUG - No XMPP flaps were noticed during the test
2025-08-20 13:25:23,079 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2025-08-20 13:25:23,079 - INFO - -------------------------------------------------------------------------------- 2025-08-20 13:25:23,736 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-09072713, ID : fbbc6b6d-914e-471e-8939-68f03bc66949