2025-11-10 16:13:01,704 - INFO - Domain Default found not creating 2025-11-10 16:13:01,953 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-36347737 not found, creating it 2025-11-10 16:13:02,603 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-36347737, ID : 1914fed3-b188-4e11-b8fb-518cf8733a54 2025-11-10 16:13:04,588 - INFO - ================================================================================ 2025-11-10 16:13:04,589 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-10 16:13:04,903 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.254': '0'}} with 2025-11-10 16:13:04,904 - INFO - Initial checks done. Running the testcase now 2025-11-10 16:13:04,904 - INFO - 2025-11-10 16:13:04,904 - INFO - ================================================================================ 2025-11-10 16:13:04,904 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-10 16:13:04,904 - 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-10 16:13:05,222 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.254': '0'}} with 2025-11-10 16:13:05,222 - INFO - Initial checks done. Running the testcase now 2025-11-10 16:13:05,222 - INFO - 2025-11-10 16:13:05,678 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-36347737:ctest-vn4-89997029, 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-36347737:ctest-vn4-89997029, 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-36347737:ctest-vn4-89997029, 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-36347737:ctest-vn4-89997029, 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-10 16:13:06,307 - DEBUG - Response for create_network : {'network': {'id': '0554e6e0-d95a-4747-82fd-eddb32afd55e', 'name': 'ctest-vn4-89997029', 'tenant_id': '1914fed3b1884e11b8fb518cf8733a54', 'project_id': '1914fed3b1884e11b8fb518cf8733a54', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-36347737', 'ctest-vn4-89997029'], 'port_security_enabled': True, 'description': ''}} 2025-11-10 16:13:06,503 - DEBUG - Response for create_subnet : {'subnet': {'id': '5ee85195-deab-4240-a26e-8df7057ca202', 'name': '', 'tenant_id': '1914fed3b1884e11b8fb518cf8733a54', 'network_id': '0554e6e0-d95a-4747-82fd-eddb32afd55e', 'ip_version': 4, 'cidr': '65.255.221.192/26', 'allocation_pools': [{'start': '65.255.221.194', 'end': '65.255.221.254'}], 'gateway_ip': '65.255.221.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '65.255.221.194', 'tags': [], 'project_id': '1914fed3b1884e11b8fb518cf8733a54'}} 2025-11-10 16:13:06,699 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd941f687-9a1b-44ce-a1a1-29e80f0e1f54', 'name': '', 'tenant_id': '1914fed3b1884e11b8fb518cf8733a54', 'network_id': '0554e6e0-d95a-4747-82fd-eddb32afd55e', 'ip_version': 6, 'cidr': '3904:13fb:33d6:cf89:5625:4fb2::/96', 'allocation_pools': [{'start': '3904:13fb:33d6:cf89:5625:4fb2:0:2', 'end': '3904:13fb:33d6:cf89:5625:4fb2:ffff:fffe'}], 'gateway_ip': '3904:13fb:33d6:cf89:5625:4fb2:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3904:13fb:33d6:cf89:5625:4fb2:0:2', 'tags': [], 'project_id': '1914fed3b1884e11b8fb518cf8733a54'}} 2025-11-10 16:13:06,735 - INFO - Created VN ctest-vn4-89997029 2025-11-10 16:13:06,798 - DEBUG - VN ctest-vn4-89997029 UUID is 0554e6e0-d95a-4747-82fd-eddb32afd55e 2025-11-10 16:13:07,148 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0554e6e0-d95a-4747-82fd-eddb32afd55e', 'name': 'ctest-vn4-89997029', 'tenant_id': '1914fed3b1884e11b8fb518cf8733a54', 'project_id': '1914fed3b1884e11b8fb518cf8733a54', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5ee85195-deab-4240-a26e-8df7057ca202', 'd941f687-9a1b-44ce-a1a1-29e80f0e1f54'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-36347737', 'ctest-vn4-89997029'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-36347737', 'ctest-policy1-08496933']], 'subnet_ipam': [{'subnet_cidr': '65.255.221.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3904:13fb:33d6:cf89:5625:4fb2::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-11-10 16:13:07,332 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-11-10 16:13:07,688 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-11-10 16:13:07,739 - DEBUG - Requesting: http://10.0.0.27:8082/domain/1dbc2da7-f6b7-4e72-a5de-730a43c64aa6 2025-11-10 16:13:07,773 - DEBUG - Requesting: http://10.0.0.27:8082/project/1914fed3-b188-4e11-b8fb-518cf8733a54 2025-11-10 16:13:07,875 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/0554e6e0-d95a-4747-82fd-eddb32afd55e 2025-11-10 16:13:07,902 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/0554e6e0-d95a-4747-82fd-eddb32afd55e 2025-11-10 16:13:07,920 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/bcd40804-f7a5-4c40-ab92-5c627b241bf3 2025-11-10 16:13:07,936 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/bcd40804-f7a5-4c40-ab92-5c627b241bf3 2025-11-10 16:13:07,953 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/d01ce90c-07c0-4993-a729-ea1c66c2bb50 2025-11-10 16:13:07,975 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-10 16:13:07,975 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/0554e6e0-d95a-4747-82fd-eddb32afd55e 2025-11-10 16:13:08,000 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/bcd40804-f7a5-4c40-ab92-5c627b241bf3 2025-11-10 16:13:08,032 - INFO - Verified VN network id 11 for VN 0554e6e0-d95a-4747-82fd-eddb32afd55e 2025-11-10 16:13:08,033 - INFO - Verifications in API Server for VN ctest-vn4-89997029 passed 2025-11-10 16:13:08,033 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/0554e6e0-d95a-4747-82fd-eddb32afd55e 2025-11-10 16:13:08,057 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/bcd40804-f7a5-4c40-ab92-5c627b241bf3 2025-11-10 16:13:08,071 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/bcd40804-f7a5-4c40-ab92-5c627b241bf3 2025-11-10 16:13:08,087 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/d01ce90c-07c0-4993-a729-ea1c66c2bb50 2025-11-10 16:13:08,110 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-36347737:ctest-vn4-89997029', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-36347737', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '384185721626969927', 'uuid-lslong': '9438961919742432606'}, 'enable': 'true', 'created': '2025-11-10T16:13:06', 'last-modified': '2025-11-10T16:13:07', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.009756'} 2025-11-10 16:13:08,122 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-10 16:13:08,122 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-89997029 passed 2025-11-10 16:13:08,123 - DEBUG - ====Verifying policy data for ctest-vn4-89997029 in API_Server ====== 2025-11-10 16:13:08,123 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-11-10 16:13:08,135 - DEBUG - Requesting: http://10.0.0.27:8082/domain/1dbc2da7-f6b7-4e72-a5de-730a43c64aa6 2025-11-10 16:13:08,160 - DEBUG - Requesting: http://10.0.0.27:8082/project/1914fed3-b188-4e11-b8fb-518cf8733a54 2025-11-10 16:13:08,276 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/0554e6e0-d95a-4747-82fd-eddb32afd55e 2025-11-10 16:13:08,297 - DEBUG - ==>Verifying data for policy with id: c5582d5f-d694-4dd9-9bff-bbd36c5c3104, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-36347737', 'ctest-policy1-08496933'] 2025-11-10 16:13:08,298 - INFO - VN ctest-vn4-89997029 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-10 16:13:08,298 - DEBUG - Verifying the vn in opserver 2025-11-10 16:13:08,298 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-36347737:ctest-vn4-89997029 virtual network link through opserver 10.0.0.27 2025-11-10 16:13:08,298 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2025-11-10 16:13:08,634 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2025-11-10 16:13:08,738 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-36347737:ctest-vn4-89997029', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-36347737:ctest-vn4-89997029?flat'} 2025-11-10 16:13:08,738 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-36347737:ctest-vn4-89997029 is found in opserver 2025-11-10 16:13:08,765 - DEBUG - Do not have enough data to verify VN in agent 2025-11-10 16:13:08,771 - DEBUG - VRF ids for VN ctest-vn4-89997029: {} 2025-11-10 16:13:08,771 - DEBUG - ====Verifying data for ctest-policy1-08496933 in API_Server ====== 2025-11-10 16:13:08,771 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-11-10 16:13:08,782 - DEBUG - Requesting: http://10.0.0.27:8082/domain/1dbc2da7-f6b7-4e72-a5de-730a43c64aa6 2025-11-10 16:13:08,813 - DEBUG - Requesting: http://10.0.0.27:8082/project/1914fed3-b188-4e11-b8fb-518cf8733a54 2025-11-10 16:13:08,912 - DEBUG - Requesting: http://10.0.0.27:8082/network-policy/c5582d5f-d694-4dd9-9bff-bbd36c5c3104 2025-11-10 16:13:08,938 - INFO - Verified policy ctest-policy1-08496933 in API Server, Result: True 2025-11-10 16:13:08,938 - INFO - Done with setup and verification, moving onto test .. 2025-11-10 16:13:08,952 - INFO - Deleting VN ctest-vn4-89997029 2025-11-10 16:13:09,124 - DEBUG - Response for deleting network () 2025-11-10 16:13:09,124 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/bcd40804-f7a5-4c40-ab92-5c627b241bf3 2025-11-10 16:13:09,128 - DEBUG - Response Code: 404 2025-11-10 16:13:09,129 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-11-10 16:13:09,134 - DEBUG - Requesting: http://10.0.0.27:8082/domain/1dbc2da7-f6b7-4e72-a5de-730a43c64aa6 2025-11-10 16:13:09,188 - DEBUG - Requesting: http://10.0.0.27:8082/project/1914fed3-b188-4e11-b8fb-518cf8733a54 2025-11-10 16:13:09,277 - INFO - Validated that VN ctest-vn4-89997029 is not found in API Server 2025-11-10 16:13:09,295 - DEBUG - VN ctest-vn4-89997029 is not present in Agent 10.0.0.27 2025-11-10 16:13:09,295 - INFO - Validated that VN ctest-vn4-89997029 is not in any agent 2025-11-10 16:13:09,319 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-89997029 info 2025-11-10 16:13:09,344 - INFO - Deleted policy ctest-policy1-08496933 2025-11-10 16:13:09,530 - DEBUG - policy ctest-policy1-08496933 is not found in API Server 2025-11-10 16:13:09,825 - DEBUG - No XMPP flaps were noticed during the test