2025-08-12 01:44:17,121 - INFO - Domain Default found not creating 2025-08-12 01:44:17,260 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-42830891 not found, creating it 2025-08-12 01:44:17,739 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-42830891, ID : cbaea333-b1ab-4837-ab25-c565872d9ff1 2025-08-12 01:44:19,097 - INFO - ================================================================================ 2025-08-12 01:44:19,097 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-12 01:44:19,357 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.254': '0'}} with 2025-08-12 01:44:19,357 - INFO - Initial checks done. Running the testcase now 2025-08-12 01:44:19,358 - INFO - 2025-08-12 01:44:19,358 - INFO - ================================================================================ 2025-08-12 01:44:19,358 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-12 01:44:19,358 - 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-12 01:44:19,652 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.254': '0'}} with 2025-08-12 01:44:19,653 - INFO - Initial checks done. Running the testcase now 2025-08-12 01:44:19,653 - INFO - 2025-08-12 01:44:19,991 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-42830891:ctest-vn4-70576070, 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-42830891:ctest-vn4-70576070, 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-42830891:ctest-vn4-70576070, 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-42830891:ctest-vn4-70576070, 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-12 01:44:20,498 - DEBUG - Response for create_network : {'network': {'id': '4c19eff3-8d3d-4137-b4fb-bb6bd066e671', 'name': 'ctest-vn4-70576070', 'tenant_id': 'cbaea333b1ab4837ab25c565872d9ff1', 'project_id': 'cbaea333b1ab4837ab25c565872d9ff1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-42830891', 'ctest-vn4-70576070'], 'port_security_enabled': True, 'description': ''}} 2025-08-12 01:44:20,666 - DEBUG - Response for create_subnet : {'subnet': {'id': '702446c9-66de-49e2-8e11-c91bec1055a0', 'name': '', 'tenant_id': 'cbaea333b1ab4837ab25c565872d9ff1', 'network_id': '4c19eff3-8d3d-4137-b4fb-bb6bd066e671', 'ip_version': 4, 'cidr': '16.69.255.128/26', 'allocation_pools': [{'start': '16.69.255.130', 'end': '16.69.255.190'}], 'gateway_ip': '16.69.255.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '16.69.255.130', 'tags': [], 'project_id': 'cbaea333b1ab4837ab25c565872d9ff1'}} 2025-08-12 01:44:20,842 - DEBUG - Response for create_subnet : {'subnet': {'id': '3c791ccc-11a6-4d8d-aa43-fa73972f3e78', 'name': '', 'tenant_id': 'cbaea333b1ab4837ab25c565872d9ff1', 'network_id': '4c19eff3-8d3d-4137-b4fb-bb6bd066e671', 'ip_version': 6, 'cidr': '3f63:4f31:1fea:f850:796c:2060::/96', 'allocation_pools': [{'start': '3f63:4f31:1fea:f850:796c:2060:0:2', 'end': '3f63:4f31:1fea:f850:796c:2060:ffff:fffe'}], 'gateway_ip': '3f63:4f31:1fea:f850:796c:2060:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3f63:4f31:1fea:f850:796c:2060:0:2', 'tags': [], 'project_id': 'cbaea333b1ab4837ab25c565872d9ff1'}} 2025-08-12 01:44:20,869 - INFO - Created VN ctest-vn4-70576070 2025-08-12 01:44:20,924 - DEBUG - VN ctest-vn4-70576070 UUID is 4c19eff3-8d3d-4137-b4fb-bb6bd066e671 2025-08-12 01:44:21,121 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4c19eff3-8d3d-4137-b4fb-bb6bd066e671', 'name': 'ctest-vn4-70576070', 'tenant_id': 'cbaea333b1ab4837ab25c565872d9ff1', 'project_id': 'cbaea333b1ab4837ab25c565872d9ff1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['702446c9-66de-49e2-8e11-c91bec1055a0', '3c791ccc-11a6-4d8d-aa43-fa73972f3e78'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-42830891', 'ctest-vn4-70576070'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-42830891', 'ctest-policy1-39312794']], 'subnet_ipam': [{'subnet_cidr': '16.69.255.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3f63:4f31:1fea:f850:796c:2060::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-12 01:44:21,292 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-08-12 01:44:21,580 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-08-12 01:44:21,606 - DEBUG - Requesting: http://10.0.0.242:8082/domain/59bb0ac2-25e7-436b-9d77-8fb4ef5abd5f 2025-08-12 01:44:21,619 - DEBUG - Requesting: http://10.0.0.242:8082/project/cbaea333-b1ab-4837-ab25-c565872d9ff1 2025-08-12 01:44:21,695 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/4c19eff3-8d3d-4137-b4fb-bb6bd066e671 2025-08-12 01:44:21,715 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/4c19eff3-8d3d-4137-b4fb-bb6bd066e671 2025-08-12 01:44:21,725 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/12deb339-3a46-4b0d-a2a8-e53b4857d051 2025-08-12 01:44:21,732 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/12deb339-3a46-4b0d-a2a8-e53b4857d051 2025-08-12 01:44:21,742 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/4ffd954d-5489-43bd-8728-b350f3974498 2025-08-12 01:44:21,748 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-12 01:44:21,748 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/4c19eff3-8d3d-4137-b4fb-bb6bd066e671 2025-08-12 01:44:21,758 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/12deb339-3a46-4b0d-a2a8-e53b4857d051 2025-08-12 01:44:21,770 - INFO - Verified VN network id 11 for VN 4c19eff3-8d3d-4137-b4fb-bb6bd066e671 2025-08-12 01:44:21,770 - INFO - Verifications in API Server for VN ctest-vn4-70576070 passed 2025-08-12 01:44:21,770 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/4c19eff3-8d3d-4137-b4fb-bb6bd066e671 2025-08-12 01:44:21,782 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/12deb339-3a46-4b0d-a2a8-e53b4857d051 2025-08-12 01:44:21,792 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/12deb339-3a46-4b0d-a2a8-e53b4857d051 2025-08-12 01:44:21,801 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/4ffd954d-5489-43bd-8728-b350f3974498 2025-08-12 01:44:21,818 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-42830891:ctest-vn4-70576070', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-42830891', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5483677850625982775', 'uuid-lslong': '13041223217713702513'}, 'enable': 'true', 'created': '2025-08-12T01:44:20', 'last-modified': '2025-08-12T01:44:21', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.727375'} 2025-08-12 01:44:21,825 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-12 01:44:21,825 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-70576070 passed 2025-08-12 01:44:21,825 - DEBUG - ====Verifying policy data for ctest-vn4-70576070 in API_Server ====== 2025-08-12 01:44:21,825 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-08-12 01:44:21,831 - DEBUG - Requesting: http://10.0.0.242:8082/domain/59bb0ac2-25e7-436b-9d77-8fb4ef5abd5f 2025-08-12 01:44:21,844 - DEBUG - Requesting: http://10.0.0.242:8082/project/cbaea333-b1ab-4837-ab25-c565872d9ff1 2025-08-12 01:44:21,926 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/4c19eff3-8d3d-4137-b4fb-bb6bd066e671 2025-08-12 01:44:21,938 - DEBUG - ==>Verifying data for policy with id: 92a6e4ee-5bbd-4ad8-b195-459c5b438c0e, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-42830891', 'ctest-policy1-39312794'] 2025-08-12 01:44:21,938 - INFO - VN ctest-vn4-70576070 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-12 01:44:21,939 - DEBUG - Verifying the vn in opserver 2025-08-12 01:44:21,939 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-42830891:ctest-vn4-70576070 virtual network link through opserver 10.0.0.242 2025-08-12 01:44:21,939 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2025-08-12 01:44:22,227 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2025-08-12 01:44:22,273 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-42830891:ctest-vn4-70576070', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-42830891:ctest-vn4-70576070?flat'} 2025-08-12 01:44:22,273 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-42830891:ctest-vn4-70576070 is found in opserver 2025-08-12 01:44:22,286 - DEBUG - Do not have enough data to verify VN in agent 2025-08-12 01:44:22,294 - DEBUG - VRF ids for VN ctest-vn4-70576070: {} 2025-08-12 01:44:22,295 - DEBUG - ====Verifying data for ctest-policy1-39312794 in API_Server ====== 2025-08-12 01:44:22,295 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-08-12 01:44:22,302 - DEBUG - Requesting: http://10.0.0.242:8082/domain/59bb0ac2-25e7-436b-9d77-8fb4ef5abd5f 2025-08-12 01:44:22,315 - DEBUG - Requesting: http://10.0.0.242:8082/project/cbaea333-b1ab-4837-ab25-c565872d9ff1 2025-08-12 01:44:22,388 - DEBUG - Requesting: http://10.0.0.242:8082/network-policy/92a6e4ee-5bbd-4ad8-b195-459c5b438c0e 2025-08-12 01:44:22,404 - INFO - Verified policy ctest-policy1-39312794 in API Server, Result: True 2025-08-12 01:44:22,404 - INFO - Done with setup and verification, moving onto test .. 2025-08-12 01:44:22,414 - INFO - Deleting VN ctest-vn4-70576070 2025-08-12 01:44:22,534 - DEBUG - Response for deleting network () 2025-08-12 01:44:22,534 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/12deb339-3a46-4b0d-a2a8-e53b4857d051 2025-08-12 01:44:22,539 - DEBUG - Response Code: 404 2025-08-12 01:44:22,539 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-08-12 01:44:22,544 - DEBUG - Requesting: http://10.0.0.242:8082/domain/59bb0ac2-25e7-436b-9d77-8fb4ef5abd5f 2025-08-12 01:44:22,599 - DEBUG - Requesting: http://10.0.0.242:8082/project/cbaea333-b1ab-4837-ab25-c565872d9ff1 2025-08-12 01:44:22,673 - INFO - Validated that VN ctest-vn4-70576070 is not found in API Server 2025-08-12 01:44:22,683 - DEBUG - VN ctest-vn4-70576070 is not present in Agent 10.0.0.242 2025-08-12 01:44:22,683 - INFO - Validated that VN ctest-vn4-70576070 is not in any agent 2025-08-12 01:44:22,700 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-70576070 info 2025-08-12 01:44:22,726 - INFO - Deleted policy ctest-policy1-39312794 2025-08-12 01:44:22,896 - DEBUG - policy ctest-policy1-39312794 is not found in API Server 2025-08-12 01:44:23,154 - DEBUG - No XMPP flaps were noticed during the test