2025-08-11 02:04:02,945 - INFO - Domain Default found not creating 2025-08-11 02:04:03,096 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-29994104 not found, creating it 2025-08-11 02:04:03,561 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-29994104, ID : f9e3c270-289d-4b97-ae4d-c85011093d17 2025-08-11 02:04:04,932 - INFO - ================================================================================ 2025-08-11 02:04:04,932 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-11 02:04:05,187 - DEBUG - Nothing to compare xmpp stats {'10.0.0.137': {'10.20.0.193': '0'}} with 2025-08-11 02:04:05,187 - INFO - Initial checks done. Running the testcase now 2025-08-11 02:04:05,188 - INFO - 2025-08-11 02:04:05,188 - INFO - ================================================================================ 2025-08-11 02:04:05,188 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-11 02:04:05,188 - 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-11 02:04:05,480 - DEBUG - Nothing to compare xmpp stats {'10.0.0.137': {'10.20.0.193': '0'}} with 2025-08-11 02:04:05,480 - INFO - Initial checks done. Running the testcase now 2025-08-11 02:04:05,480 - INFO - 2025-08-11 02:04:05,829 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-29994104:ctest-vn4-64058917, 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-29994104:ctest-vn4-64058917, 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-29994104:ctest-vn4-64058917, 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-29994104:ctest-vn4-64058917, 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-11 02:04:06,348 - DEBUG - Response for create_network : {'network': {'id': '087e4c70-a557-4b2f-bca2-d71968b5c105', 'name': 'ctest-vn4-64058917', 'tenant_id': 'f9e3c270289d4b97ae4dc85011093d17', 'project_id': 'f9e3c270289d4b97ae4dc85011093d17', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-29994104', 'ctest-vn4-64058917'], 'port_security_enabled': True, 'description': ''}} 2025-08-11 02:04:06,554 - DEBUG - Response for create_subnet : {'subnet': {'id': '7ad161b1-00e6-4f1a-ac8c-52a648276edf', 'name': '', 'tenant_id': 'f9e3c270289d4b97ae4dc85011093d17', 'network_id': '087e4c70-a557-4b2f-bca2-d71968b5c105', 'ip_version': 4, 'cidr': '44.107.134.128/26', 'allocation_pools': [{'start': '44.107.134.130', 'end': '44.107.134.190'}], 'gateway_ip': '44.107.134.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '44.107.134.130', 'tags': [], 'project_id': 'f9e3c270289d4b97ae4dc85011093d17'}} 2025-08-11 02:04:06,750 - DEBUG - Response for create_subnet : {'subnet': {'id': 'dab1d704-b1b5-4738-b9e7-9842f029f262', 'name': '', 'tenant_id': 'f9e3c270289d4b97ae4dc85011093d17', 'network_id': '087e4c70-a557-4b2f-bca2-d71968b5c105', 'ip_version': 6, 'cidr': '31ca:ffad:5ac:683b:6098:927b::/96', 'allocation_pools': [{'start': '31ca:ffad:5ac:683b:6098:927b:0:2', 'end': '31ca:ffad:5ac:683b:6098:927b:ffff:fffe'}], 'gateway_ip': '31ca:ffad:5ac:683b:6098:927b:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '31ca:ffad:5ac:683b:6098:927b:0:2', 'tags': [], 'project_id': 'f9e3c270289d4b97ae4dc85011093d17'}} 2025-08-11 02:04:06,769 - INFO - Created VN ctest-vn4-64058917 2025-08-11 02:04:06,821 - DEBUG - VN ctest-vn4-64058917 UUID is 087e4c70-a557-4b2f-bca2-d71968b5c105 2025-08-11 02:04:07,015 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '087e4c70-a557-4b2f-bca2-d71968b5c105', 'name': 'ctest-vn4-64058917', 'tenant_id': 'f9e3c270289d4b97ae4dc85011093d17', 'project_id': 'f9e3c270289d4b97ae4dc85011093d17', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7ad161b1-00e6-4f1a-ac8c-52a648276edf', 'dab1d704-b1b5-4738-b9e7-9842f029f262'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-29994104', 'ctest-vn4-64058917'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-29994104', 'ctest-policy1-23716341']], 'subnet_ipam': [{'subnet_cidr': '44.107.134.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '31ca:ffad:5ac:683b:6098:927b::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-11 02:04:07,177 - DEBUG - Requesting: http://10.0.0.137:8082/domains 2025-08-11 02:04:07,472 - DEBUG - Requesting: http://10.0.0.137:8082/domains 2025-08-11 02:04:07,498 - DEBUG - Requesting: http://10.0.0.137:8082/domain/4f50ffac-df1c-40e0-836b-06b55563f63d 2025-08-11 02:04:07,512 - DEBUG - Requesting: http://10.0.0.137:8082/project/f9e3c270-289d-4b97-ae4d-c85011093d17 2025-08-11 02:04:07,587 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/087e4c70-a557-4b2f-bca2-d71968b5c105 2025-08-11 02:04:07,600 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/087e4c70-a557-4b2f-bca2-d71968b5c105 2025-08-11 02:04:07,613 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/59906d51-2131-4182-91b2-4a200a44c1f3 2025-08-11 02:04:07,620 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/59906d51-2131-4182-91b2-4a200a44c1f3 2025-08-11 02:04:07,627 - DEBUG - Requesting: http://10.0.0.137:8082/route-target/9954a15d-d0b3-495c-bee1-2852d792feac 2025-08-11 02:04:07,632 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-11 02:04:07,632 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/087e4c70-a557-4b2f-bca2-d71968b5c105 2025-08-11 02:04:07,641 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/59906d51-2131-4182-91b2-4a200a44c1f3 2025-08-11 02:04:07,655 - INFO - Verified VN network id 11 for VN 087e4c70-a557-4b2f-bca2-d71968b5c105 2025-08-11 02:04:07,655 - INFO - Verifications in API Server for VN ctest-vn4-64058917 passed 2025-08-11 02:04:07,655 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/087e4c70-a557-4b2f-bca2-d71968b5c105 2025-08-11 02:04:07,667 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/59906d51-2131-4182-91b2-4a200a44c1f3 2025-08-11 02:04:07,674 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/59906d51-2131-4182-91b2-4a200a44c1f3 2025-08-11 02:04:07,682 - DEBUG - Requesting: http://10.0.0.137:8082/route-target/9954a15d-d0b3-495c-bee1-2852d792feac 2025-08-11 02:04:07,695 - DEBUG - Control-node 10.0.0.137 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-29994104:ctest-vn4-64058917', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-29994104', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '612010646062975791', 'uuid-lslong': '13592663129488474373'}, 'enable': 'true', 'created': '2025-08-11T02:04:06', 'last-modified': '2025-08-11T02:04:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.706814'} 2025-08-11 02:04:07,701 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-11 02:04:07,701 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-64058917 passed 2025-08-11 02:04:07,701 - DEBUG - ====Verifying policy data for ctest-vn4-64058917 in API_Server ====== 2025-08-11 02:04:07,701 - DEBUG - Requesting: http://10.0.0.137:8082/domains 2025-08-11 02:04:07,707 - DEBUG - Requesting: http://10.0.0.137:8082/domain/4f50ffac-df1c-40e0-836b-06b55563f63d 2025-08-11 02:04:07,718 - DEBUG - Requesting: http://10.0.0.137:8082/project/f9e3c270-289d-4b97-ae4d-c85011093d17 2025-08-11 02:04:07,791 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/087e4c70-a557-4b2f-bca2-d71968b5c105 2025-08-11 02:04:07,805 - DEBUG - ==>Verifying data for policy with id: 4587a4cf-f3ca-46a7-b654-a2f4bf71fd17, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-29994104', 'ctest-policy1-23716341'] 2025-08-11 02:04:07,805 - INFO - VN ctest-vn4-64058917 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-11 02:04:07,805 - DEBUG - Verifying the vn in opserver 2025-08-11 02:04:07,805 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-29994104:ctest-vn4-64058917 virtual network link through opserver 10.0.0.137 2025-08-11 02:04:07,805 - DEBUG - Requesting: http://10.0.0.137:8081/analytics/uves/virtual-networks 2025-08-11 02:04:08,096 - DEBUG - Requesting: http://10.0.0.137:8081/analytics/uves/virtual-networks 2025-08-11 02:04:08,153 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-29994104:ctest-vn4-64058917', 'href': 'http://10.0.0.137:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-29994104:ctest-vn4-64058917?flat'} 2025-08-11 02:04:08,153 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-29994104:ctest-vn4-64058917 is found in opserver 2025-08-11 02:04:08,164 - DEBUG - Do not have enough data to verify VN in agent 2025-08-11 02:04:08,170 - DEBUG - VRF ids for VN ctest-vn4-64058917: {} 2025-08-11 02:04:08,170 - DEBUG - ====Verifying data for ctest-policy1-23716341 in API_Server ====== 2025-08-11 02:04:08,170 - DEBUG - Requesting: http://10.0.0.137:8082/domains 2025-08-11 02:04:08,177 - DEBUG - Requesting: http://10.0.0.137:8082/domain/4f50ffac-df1c-40e0-836b-06b55563f63d 2025-08-11 02:04:08,192 - DEBUG - Requesting: http://10.0.0.137:8082/project/f9e3c270-289d-4b97-ae4d-c85011093d17 2025-08-11 02:04:08,266 - DEBUG - Requesting: http://10.0.0.137:8082/network-policy/4587a4cf-f3ca-46a7-b654-a2f4bf71fd17 2025-08-11 02:04:08,276 - INFO - Verified policy ctest-policy1-23716341 in API Server, Result: True 2025-08-11 02:04:08,277 - INFO - Done with setup and verification, moving onto test .. 2025-08-11 02:04:08,284 - INFO - Deleting VN ctest-vn4-64058917 2025-08-11 02:04:08,404 - DEBUG - Response for deleting network () 2025-08-11 02:04:08,404 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/59906d51-2131-4182-91b2-4a200a44c1f3 2025-08-11 02:04:08,410 - DEBUG - Response Code: 404 2025-08-11 02:04:08,410 - DEBUG - Requesting: http://10.0.0.137:8082/domains 2025-08-11 02:04:08,417 - DEBUG - Requesting: http://10.0.0.137:8082/domain/4f50ffac-df1c-40e0-836b-06b55563f63d 2025-08-11 02:04:08,471 - DEBUG - Requesting: http://10.0.0.137:8082/project/f9e3c270-289d-4b97-ae4d-c85011093d17 2025-08-11 02:04:08,544 - INFO - Validated that VN ctest-vn4-64058917 is not found in API Server 2025-08-11 02:04:08,555 - DEBUG - VN ctest-vn4-64058917 is not present in Agent 10.0.0.137 2025-08-11 02:04:08,555 - INFO - Validated that VN ctest-vn4-64058917 is not in any agent 2025-08-11 02:04:08,571 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-64058917 info 2025-08-11 02:04:08,606 - INFO - Deleted policy ctest-policy1-23716341 2025-08-11 02:04:08,777 - DEBUG - policy ctest-policy1-23716341 is not found in API Server 2025-08-11 02:04:09,030 - DEBUG - No XMPP flaps were noticed during the test 2025-08-11 02:04:09,030 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-08-11 02:04:09,030 - INFO - -------------------------------------------------------------------------------- 2025-08-11 02:04:09,318 - DEBUG - No XMPP flaps were noticed during the test 2025-08-11 02:04:09,318 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2025-08-11 02:04:09,318 - INFO - -------------------------------------------------------------------------------- 2025-08-11 02:04:09,964 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-29994104, ID : f9e3c270-289d-4b97-ae4d-c85011093d17