2025-07-31 12:09:20,170 - INFO - Domain Default found not creating 2025-07-31 12:09:20,358 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-88018225 not found, creating it 2025-07-31 12:09:20,846 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-88018225, ID : 55233732-f6de-46b0-a586-604dcdfe3234 2025-07-31 12:09:22,408 - INFO - ================================================================================ 2025-07-31 12:09:22,408 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-07-31 12:09:22,666 - DEBUG - Nothing to compare xmpp stats {'10.0.0.65': {'10.20.0.17': '0'}} with 2025-07-31 12:09:22,666 - INFO - Initial checks done. Running the testcase now 2025-07-31 12:09:22,666 - INFO - 2025-07-31 12:09:22,666 - INFO - ================================================================================ 2025-07-31 12:09:22,666 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-07-31 12:09:22,666 - 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-31 12:09:22,959 - DEBUG - Nothing to compare xmpp stats {'10.0.0.65': {'10.20.0.17': '0'}} with 2025-07-31 12:09:22,959 - INFO - Initial checks done. Running the testcase now 2025-07-31 12:09:22,959 - INFO - 2025-07-31 12:09:23,333 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-88018225:ctest-vn4-71236779, 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-88018225:ctest-vn4-71236779, 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-88018225:ctest-vn4-71236779, 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-88018225:ctest-vn4-71236779, 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-31 12:09:23,878 - DEBUG - Response for create_network : {'network': {'id': '3259194c-9ad7-4354-b372-9880bd4780aa', 'name': 'ctest-vn4-71236779', 'tenant_id': '55233732f6de46b0a586604dcdfe3234', 'project_id': '55233732f6de46b0a586604dcdfe3234', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-88018225', 'ctest-vn4-71236779'], 'port_security_enabled': True, 'description': ''}} 2025-07-31 12:09:24,065 - DEBUG - Response for create_subnet : {'subnet': {'id': '30bc0573-c42d-4144-a904-7fcd6f4b1ab5', 'name': '', 'tenant_id': '55233732f6de46b0a586604dcdfe3234', 'network_id': '3259194c-9ad7-4354-b372-9880bd4780aa', 'ip_version': 4, 'cidr': '169.72.113.128/26', 'allocation_pools': [{'start': '169.72.113.130', 'end': '169.72.113.190'}], 'gateway_ip': '169.72.113.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '169.72.113.130', 'tags': [], 'project_id': '55233732f6de46b0a586604dcdfe3234'}} 2025-07-31 12:09:24,225 - DEBUG - Response for create_subnet : {'subnet': {'id': '102c470c-629f-4f87-951c-87fcd3d33758', 'name': '', 'tenant_id': '55233732f6de46b0a586604dcdfe3234', 'network_id': '3259194c-9ad7-4354-b372-9880bd4780aa', 'ip_version': 6, 'cidr': '3f1c:1680:5847:44dc:e8ae:5d21::/96', 'allocation_pools': [{'start': '3f1c:1680:5847:44dc:e8ae:5d21:0:2', 'end': '3f1c:1680:5847:44dc:e8ae:5d21:ffff:fffe'}], 'gateway_ip': '3f1c:1680:5847:44dc:e8ae:5d21:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3f1c:1680:5847:44dc:e8ae:5d21:0:2', 'tags': [], 'project_id': '55233732f6de46b0a586604dcdfe3234'}} 2025-07-31 12:09:24,248 - INFO - Created VN ctest-vn4-71236779 2025-07-31 12:09:24,303 - DEBUG - VN ctest-vn4-71236779 UUID is 3259194c-9ad7-4354-b372-9880bd4780aa 2025-07-31 12:09:24,531 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3259194c-9ad7-4354-b372-9880bd4780aa', 'name': 'ctest-vn4-71236779', 'tenant_id': '55233732f6de46b0a586604dcdfe3234', 'project_id': '55233732f6de46b0a586604dcdfe3234', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['30bc0573-c42d-4144-a904-7fcd6f4b1ab5', '102c470c-629f-4f87-951c-87fcd3d33758'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-88018225', 'ctest-vn4-71236779'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-88018225', 'ctest-policy1-04294968']], 'subnet_ipam': [{'subnet_cidr': '169.72.113.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3f1c:1680:5847:44dc:e8ae:5d21::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-07-31 12:09:24,703 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2025-07-31 12:09:25,007 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2025-07-31 12:09:25,038 - DEBUG - Requesting: http://10.0.0.65:8082/domain/d870d1ce-14e5-4aec-8ebe-d4f66da6f67c 2025-07-31 12:09:25,053 - DEBUG - Requesting: http://10.0.0.65:8082/project/55233732-f6de-46b0-a586-604dcdfe3234 2025-07-31 12:09:25,134 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/3259194c-9ad7-4354-b372-9880bd4780aa 2025-07-31 12:09:25,150 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/3259194c-9ad7-4354-b372-9880bd4780aa 2025-07-31 12:09:25,164 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/3dc82945-ee68-4c3e-8c6c-ec4ecd676be1 2025-07-31 12:09:25,173 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/3dc82945-ee68-4c3e-8c6c-ec4ecd676be1 2025-07-31 12:09:25,183 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/32c39741-0a15-4f06-ae66-0a959d0a1dd0 2025-07-31 12:09:25,192 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-07-31 12:09:25,192 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/3259194c-9ad7-4354-b372-9880bd4780aa 2025-07-31 12:09:25,205 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/3dc82945-ee68-4c3e-8c6c-ec4ecd676be1 2025-07-31 12:09:25,224 - INFO - Verified VN network id 11 for VN 3259194c-9ad7-4354-b372-9880bd4780aa 2025-07-31 12:09:25,224 - INFO - Verifications in API Server for VN ctest-vn4-71236779 passed 2025-07-31 12:09:25,224 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/3259194c-9ad7-4354-b372-9880bd4780aa 2025-07-31 12:09:25,240 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/3dc82945-ee68-4c3e-8c6c-ec4ecd676be1 2025-07-31 12:09:25,249 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/3dc82945-ee68-4c3e-8c6c-ec4ecd676be1 2025-07-31 12:09:25,258 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/32c39741-0a15-4f06-ae66-0a959d0a1dd0 2025-07-31 12:09:25,273 - DEBUG - Control-node 10.0.0.65 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-88018225:ctest-vn4-71236779', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-88018225', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3627958791629652820', 'uuid-lslong': '12930565158832930986'}, 'enable': 'true', 'created': '2025-07-31T12:09:23', 'last-modified': '2025-07-31T12:09:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.767102'} 2025-07-31 12:09:25,280 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-07-31 12:09:25,281 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-71236779 passed 2025-07-31 12:09:25,281 - DEBUG - ====Verifying policy data for ctest-vn4-71236779 in API_Server ====== 2025-07-31 12:09:25,281 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2025-07-31 12:09:25,288 - DEBUG - Requesting: http://10.0.0.65:8082/domain/d870d1ce-14e5-4aec-8ebe-d4f66da6f67c 2025-07-31 12:09:25,303 - DEBUG - Requesting: http://10.0.0.65:8082/project/55233732-f6de-46b0-a586-604dcdfe3234 2025-07-31 12:09:25,376 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/3259194c-9ad7-4354-b372-9880bd4780aa 2025-07-31 12:09:25,388 - DEBUG - ==>Verifying data for policy with id: 4528542a-13a5-457b-a4c2-31e800f46e84, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-88018225', 'ctest-policy1-04294968'] 2025-07-31 12:09:25,388 - INFO - VN ctest-vn4-71236779 Policy verification: verify_vn_policy_in_api_server, status: True 2025-07-31 12:09:25,389 - DEBUG - Verifying the vn in opserver 2025-07-31 12:09:25,389 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-88018225:ctest-vn4-71236779 virtual network link through opserver 10.0.0.65 2025-07-31 12:09:25,389 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks 2025-07-31 12:09:25,683 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks 2025-07-31 12:09:25,747 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-88018225:ctest-vn4-71236779', 'href': 'http://10.0.0.65:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-88018225:ctest-vn4-71236779?flat'} 2025-07-31 12:09:25,747 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-88018225:ctest-vn4-71236779 is found in opserver 2025-07-31 12:09:25,760 - DEBUG - Do not have enough data to verify VN in agent 2025-07-31 12:09:25,765 - DEBUG - VRF ids for VN ctest-vn4-71236779: {} 2025-07-31 12:09:25,766 - DEBUG - ====Verifying data for ctest-policy1-04294968 in API_Server ====== 2025-07-31 12:09:25,766 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2025-07-31 12:09:25,772 - DEBUG - Requesting: http://10.0.0.65:8082/domain/d870d1ce-14e5-4aec-8ebe-d4f66da6f67c 2025-07-31 12:09:25,786 - DEBUG - Requesting: http://10.0.0.65:8082/project/55233732-f6de-46b0-a586-604dcdfe3234 2025-07-31 12:09:25,862 - DEBUG - Requesting: http://10.0.0.65:8082/network-policy/4528542a-13a5-457b-a4c2-31e800f46e84 2025-07-31 12:09:25,873 - INFO - Verified policy ctest-policy1-04294968 in API Server, Result: True 2025-07-31 12:09:25,874 - INFO - Done with setup and verification, moving onto test .. 2025-07-31 12:09:25,884 - INFO - Deleting VN ctest-vn4-71236779 2025-07-31 12:09:26,034 - DEBUG - Response for deleting network () 2025-07-31 12:09:26,034 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/3dc82945-ee68-4c3e-8c6c-ec4ecd676be1 2025-07-31 12:09:26,041 - DEBUG - Response Code: 404 2025-07-31 12:09:26,041 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2025-07-31 12:09:26,049 - DEBUG - Requesting: http://10.0.0.65:8082/domain/d870d1ce-14e5-4aec-8ebe-d4f66da6f67c 2025-07-31 12:09:26,107 - DEBUG - Requesting: http://10.0.0.65:8082/project/55233732-f6de-46b0-a586-604dcdfe3234 2025-07-31 12:09:26,182 - INFO - Validated that VN ctest-vn4-71236779 is not found in API Server 2025-07-31 12:09:26,196 - DEBUG - VN ctest-vn4-71236779 is not present in Agent 10.0.0.65 2025-07-31 12:09:26,196 - INFO - Validated that VN ctest-vn4-71236779 is not in any agent 2025-07-31 12:09:26,215 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-71236779 info 2025-07-31 12:09:26,257 - INFO - Deleted policy ctest-policy1-04294968 2025-07-31 12:09:26,435 - DEBUG - policy ctest-policy1-04294968 is not found in API Server 2025-07-31 12:09:26,690 - DEBUG - No XMPP flaps were noticed during the test
2025-07-31 12:09:26,690 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-07-31 12:09:26,690 - INFO - -------------------------------------------------------------------------------- 2025-07-31 12:09:26,986 - DEBUG - No XMPP flaps were noticed during the test
2025-07-31 12:09:26,986 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-07-31 12:09:26,986 - INFO - -------------------------------------------------------------------------------- 2025-07-31 12:09:27,706 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-88018225, ID : 55233732-f6de-46b0-a586-604dcdfe3234