2025-07-22 13:50:45,632 - INFO - Domain Default found not creating 2025-07-22 13:50:45,790 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-22617592 not found, creating it 2025-07-22 13:50:46,292 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-22617592, ID : 973b6755-a4e5-441a-a902-b3dab474412c 2025-07-22 13:50:47,785 - INFO - ================================================================================ 2025-07-22 13:50:47,785 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-07-22 13:50:48,042 - DEBUG - Nothing to compare xmpp stats {'10.0.0.241': {'10.20.0.18': '0'}} with 2025-07-22 13:50:48,042 - INFO - Initial checks done. Running the testcase now 2025-07-22 13:50:48,042 - INFO - 2025-07-22 13:50:48,042 - INFO - ================================================================================ 2025-07-22 13:50:48,042 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-07-22 13:50:48,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-07-22 13:50:48,333 - DEBUG - Nothing to compare xmpp stats {'10.0.0.241': {'10.20.0.18': '0'}} with 2025-07-22 13:50:48,333 - INFO - Initial checks done. Running the testcase now 2025-07-22 13:50:48,333 - INFO - 2025-07-22 13:50:48,684 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-22617592:ctest-vn4-15158927, 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-22617592:ctest-vn4-15158927, 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-22617592:ctest-vn4-15158927, 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-22617592:ctest-vn4-15158927, 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-07-22 13:50:49,200 - DEBUG - Response for create_network : {'network': {'id': 'd462e786-4e14-4a0f-95b5-88c18ce606a1', 'name': 'ctest-vn4-15158927', 'tenant_id': '973b6755a4e5441aa902b3dab474412c', 'project_id': '973b6755a4e5441aa902b3dab474412c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-22617592', 'ctest-vn4-15158927'], 'port_security_enabled': True, 'description': ''}} 2025-07-22 13:50:49,358 - DEBUG - Response for create_subnet : {'subnet': {'id': '16e713cd-c787-4747-9614-2a9337c6d74e', 'name': '', 'tenant_id': '973b6755a4e5441aa902b3dab474412c', 'network_id': 'd462e786-4e14-4a0f-95b5-88c18ce606a1', 'ip_version': 4, 'cidr': '70.110.212.64/26', 'allocation_pools': [{'start': '70.110.212.66', 'end': '70.110.212.126'}], 'gateway_ip': '70.110.212.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '70.110.212.66', 'tags': [], 'project_id': '973b6755a4e5441aa902b3dab474412c'}} 2025-07-22 13:50:49,545 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ea3ee939-a68f-43e9-b31b-64b839495c9a', 'name': '', 'tenant_id': '973b6755a4e5441aa902b3dab474412c', 'network_id': 'd462e786-4e14-4a0f-95b5-88c18ce606a1', 'ip_version': 6, 'cidr': '2627:3376:2095:331:a6a7:7f9e::/96', 'allocation_pools': [{'start': '2627:3376:2095:331:a6a7:7f9e:0:2', 'end': '2627:3376:2095:331:a6a7:7f9e:ffff:fffe'}], 'gateway_ip': '2627:3376:2095:331:a6a7:7f9e:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2627:3376:2095:331:a6a7:7f9e:0:2', 'tags': [], 'project_id': '973b6755a4e5441aa902b3dab474412c'}} 2025-07-22 13:50:49,568 - INFO - Created VN ctest-vn4-15158927 2025-07-22 13:50:49,623 - DEBUG - VN ctest-vn4-15158927 UUID is d462e786-4e14-4a0f-95b5-88c18ce606a1 2025-07-22 13:50:49,843 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd462e786-4e14-4a0f-95b5-88c18ce606a1', 'name': 'ctest-vn4-15158927', 'tenant_id': '973b6755a4e5441aa902b3dab474412c', 'project_id': '973b6755a4e5441aa902b3dab474412c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['16e713cd-c787-4747-9614-2a9337c6d74e', 'ea3ee939-a68f-43e9-b31b-64b839495c9a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-22617592', 'ctest-vn4-15158927'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-22617592', 'ctest-policy1-59572443']], 'subnet_ipam': [{'subnet_cidr': '70.110.212.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2627:3376:2095:331:a6a7:7f9e::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-07-22 13:50:50,018 - DEBUG - Requesting: http://10.0.0.241:8082/domains 2025-07-22 13:50:50,321 - DEBUG - Requesting: http://10.0.0.241:8082/domains 2025-07-22 13:50:50,352 - DEBUG - Requesting: http://10.0.0.241:8082/domain/4f09116f-d2b9-4cb1-a35c-d32045569c17 2025-07-22 13:50:50,373 - DEBUG - Requesting: http://10.0.0.241:8082/project/973b6755-a4e5-441a-a902-b3dab474412c 2025-07-22 13:50:50,454 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/d462e786-4e14-4a0f-95b5-88c18ce606a1 2025-07-22 13:50:50,469 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/d462e786-4e14-4a0f-95b5-88c18ce606a1 2025-07-22 13:50:50,482 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/2febe2a6-c837-44c5-8507-6252e5d0abf3 2025-07-22 13:50:50,491 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/2febe2a6-c837-44c5-8507-6252e5d0abf3 2025-07-22 13:50:50,501 - DEBUG - Requesting: http://10.0.0.241:8082/route-target/5c507722-f071-4e5a-b6c2-261b38585b38 2025-07-22 13:50:50,508 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-07-22 13:50:50,508 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/d462e786-4e14-4a0f-95b5-88c18ce606a1 2025-07-22 13:50:50,518 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/2febe2a6-c837-44c5-8507-6252e5d0abf3 2025-07-22 13:50:50,536 - INFO - Verified VN network id 11 for VN d462e786-4e14-4a0f-95b5-88c18ce606a1 2025-07-22 13:50:50,536 - INFO - Verifications in API Server for VN ctest-vn4-15158927 passed 2025-07-22 13:50:50,536 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/d462e786-4e14-4a0f-95b5-88c18ce606a1 2025-07-22 13:50:50,547 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/2febe2a6-c837-44c5-8507-6252e5d0abf3 2025-07-22 13:50:50,556 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/2febe2a6-c837-44c5-8507-6252e5d0abf3 2025-07-22 13:50:50,565 - DEBUG - Requesting: http://10.0.0.241:8082/route-target/5c507722-f071-4e5a-b6c2-261b38585b38 2025-07-22 13:50:50,580 - DEBUG - Control-node 10.0.0.241 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-22617592:ctest-vn4-15158927', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-22617592', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15304049047779953167', 'uuid-lslong': '10787678847309842081'}, 'enable': 'true', 'created': '2025-07-22T13:50:49', 'last-modified': '2025-07-22T13:50:49', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.762668'} 2025-07-22 13:50:50,588 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-07-22 13:50:50,588 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-15158927 passed 2025-07-22 13:50:50,588 - DEBUG - ====Verifying policy data for ctest-vn4-15158927 in API_Server ====== 2025-07-22 13:50:50,588 - DEBUG - Requesting: http://10.0.0.241:8082/domains 2025-07-22 13:50:50,596 - DEBUG - Requesting: http://10.0.0.241:8082/domain/4f09116f-d2b9-4cb1-a35c-d32045569c17 2025-07-22 13:50:50,611 - DEBUG - Requesting: http://10.0.0.241:8082/project/973b6755-a4e5-441a-a902-b3dab474412c 2025-07-22 13:50:50,694 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/d462e786-4e14-4a0f-95b5-88c18ce606a1 2025-07-22 13:50:50,705 - DEBUG - ==>Verifying data for policy with id: 8779f02f-5c7b-4b0e-849b-b9a46ddc2401, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-22617592', 'ctest-policy1-59572443'] 2025-07-22 13:50:50,705 - INFO - VN ctest-vn4-15158927 Policy verification: verify_vn_policy_in_api_server, status: True 2025-07-22 13:50:50,705 - DEBUG - Verifying the vn in opserver 2025-07-22 13:50:50,705 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-22617592:ctest-vn4-15158927 virtual network link through opserver 10.0.0.241 2025-07-22 13:50:50,705 - DEBUG - Requesting: http://10.0.0.241:8081/analytics/uves/virtual-networks 2025-07-22 13:50:50,998 - DEBUG - Requesting: http://10.0.0.241:8081/analytics/uves/virtual-networks 2025-07-22 13:50:51,056 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-22617592:ctest-vn4-15158927', 'href': 'http://10.0.0.241:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-22617592:ctest-vn4-15158927?flat'} 2025-07-22 13:50:51,056 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-22617592:ctest-vn4-15158927 is found in opserver 2025-07-22 13:50:51,068 - DEBUG - Do not have enough data to verify VN in agent 2025-07-22 13:50:51,073 - DEBUG - VRF ids for VN ctest-vn4-15158927: {} 2025-07-22 13:50:51,073 - DEBUG - ====Verifying data for ctest-policy1-59572443 in API_Server ====== 2025-07-22 13:50:51,073 - DEBUG - Requesting: http://10.0.0.241:8082/domains 2025-07-22 13:50:51,080 - DEBUG - Requesting: http://10.0.0.241:8082/domain/4f09116f-d2b9-4cb1-a35c-d32045569c17 2025-07-22 13:50:51,093 - DEBUG - Requesting: http://10.0.0.241:8082/project/973b6755-a4e5-441a-a902-b3dab474412c 2025-07-22 13:50:51,171 - DEBUG - Requesting: http://10.0.0.241:8082/network-policy/8779f02f-5c7b-4b0e-849b-b9a46ddc2401 2025-07-22 13:50:51,182 - INFO - Verified policy ctest-policy1-59572443 in API Server, Result: True 2025-07-22 13:50:51,182 - INFO - Done with setup and verification, moving onto test .. 2025-07-22 13:50:51,191 - INFO - Deleting VN ctest-vn4-15158927 2025-07-22 13:50:51,349 - DEBUG - Response for deleting network () 2025-07-22 13:50:51,349 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/2febe2a6-c837-44c5-8507-6252e5d0abf3 2025-07-22 13:50:51,358 - DEBUG - Response Code: 404 2025-07-22 13:50:51,358 - DEBUG - Requesting: http://10.0.0.241:8082/domains 2025-07-22 13:50:51,366 - DEBUG - Requesting: http://10.0.0.241:8082/domain/4f09116f-d2b9-4cb1-a35c-d32045569c17 2025-07-22 13:50:51,424 - DEBUG - Requesting: http://10.0.0.241:8082/project/973b6755-a4e5-441a-a902-b3dab474412c 2025-07-22 13:50:51,500 - INFO - Validated that VN ctest-vn4-15158927 is not found in API Server 2025-07-22 13:50:51,512 - DEBUG - VN ctest-vn4-15158927 is not present in Agent 10.0.0.241 2025-07-22 13:50:51,512 - INFO - Validated that VN ctest-vn4-15158927 is not in any agent 2025-07-22 13:50:51,530 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-15158927 info 2025-07-22 13:50:51,566 - INFO - Deleted policy ctest-policy1-59572443 2025-07-22 13:50:51,738 - DEBUG - policy ctest-policy1-59572443 is not found in API Server 2025-07-22 13:50:51,992 - DEBUG - No XMPP flaps were noticed during the test
2025-07-22 13:50:51,992 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:03]
2025-07-22 13:50:51,992 - INFO - -------------------------------------------------------------------------------- 2025-07-22 13:50:52,289 - DEBUG - No XMPP flaps were noticed during the test
2025-07-22 13:50:52,289 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2025-07-22 13:50:52,290 - INFO - -------------------------------------------------------------------------------- 2025-07-22 13:50:53,065 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-22617592, ID : 973b6755-a4e5-441a-a902-b3dab474412c