2025-11-13 08:13:03,058 - INFO - Domain Default found not creating 2025-11-13 08:13:03,240 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-68031452 not found, creating it 2025-11-13 08:13:03,748 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-68031452, ID : e8c5074e-74d2-4e98-bb87-a5d9c97ea764 2025-11-13 08:13:05,144 - INFO - ================================================================================ 2025-11-13 08:13:05,144 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-13 08:13:05,399 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with 2025-11-13 08:13:05,399 - INFO - Initial checks done. Running the testcase now 2025-11-13 08:13:05,399 - INFO - 2025-11-13 08:13:05,399 - INFO - ================================================================================ 2025-11-13 08:13:05,399 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-13 08:13:05,399 - 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-13 08:13:05,687 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with 2025-11-13 08:13:05,687 - INFO - Initial checks done. Running the testcase now 2025-11-13 08:13:05,687 - INFO - 2025-11-13 08:13:06,044 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-68031452:ctest-vn4-11080660, 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-68031452:ctest-vn4-11080660, 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-68031452:ctest-vn4-11080660, 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-68031452:ctest-vn4-11080660, 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-13 08:13:06,540 - DEBUG - Response for create_network : {'network': {'id': 'dcb57231-0536-45be-8eac-9886474615d4', 'name': 'ctest-vn4-11080660', 'tenant_id': 'e8c5074e74d24e98bb87a5d9c97ea764', 'project_id': 'e8c5074e74d24e98bb87a5d9c97ea764', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-68031452', 'ctest-vn4-11080660'], 'port_security_enabled': True, 'description': ''}} 2025-11-13 08:13:06,758 - DEBUG - Response for create_subnet : {'subnet': {'id': '9dc822e8-b423-43b1-9346-f903c21dd99e', 'name': '', 'tenant_id': 'e8c5074e74d24e98bb87a5d9c97ea764', 'network_id': 'dcb57231-0536-45be-8eac-9886474615d4', 'ip_version': 4, 'cidr': '70.169.248.128/26', 'allocation_pools': [{'start': '70.169.248.130', 'end': '70.169.248.190'}], 'gateway_ip': '70.169.248.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '70.169.248.130', 'tags': [], 'project_id': 'e8c5074e74d24e98bb87a5d9c97ea764'}} 2025-11-13 08:13:06,976 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a7a2138f-42e7-4a65-a754-2334ec8d0826', 'name': '', 'tenant_id': 'e8c5074e74d24e98bb87a5d9c97ea764', 'network_id': 'dcb57231-0536-45be-8eac-9886474615d4', 'ip_version': 6, 'cidr': '2f7e:e3f:6eec:ac40:c7b7:a31b::/96', 'allocation_pools': [{'start': '2f7e:e3f:6eec:ac40:c7b7:a31b:0:2', 'end': '2f7e:e3f:6eec:ac40:c7b7:a31b:ffff:fffe'}], 'gateway_ip': '2f7e:e3f:6eec:ac40:c7b7:a31b:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2f7e:e3f:6eec:ac40:c7b7:a31b:0:2', 'tags': [], 'project_id': 'e8c5074e74d24e98bb87a5d9c97ea764'}} 2025-11-13 08:13:07,000 - INFO - Created VN ctest-vn4-11080660 2025-11-13 08:13:07,054 - DEBUG - VN ctest-vn4-11080660 UUID is dcb57231-0536-45be-8eac-9886474615d4 2025-11-13 08:13:07,254 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'dcb57231-0536-45be-8eac-9886474615d4', 'name': 'ctest-vn4-11080660', 'tenant_id': 'e8c5074e74d24e98bb87a5d9c97ea764', 'project_id': 'e8c5074e74d24e98bb87a5d9c97ea764', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9dc822e8-b423-43b1-9346-f903c21dd99e', 'a7a2138f-42e7-4a65-a754-2334ec8d0826'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-68031452', 'ctest-vn4-11080660'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-68031452', 'ctest-policy1-49438199']], 'subnet_ipam': [{'subnet_cidr': '70.169.248.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2f7e:e3f:6eec:ac40:c7b7:a31b::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-11-13 08:13:07,430 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-11-13 08:13:07,725 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-11-13 08:13:07,756 - DEBUG - Requesting: http://10.0.0.38:8082/domain/662de752-450c-444a-bf3c-3d2288dc488d 2025-11-13 08:13:07,768 - DEBUG - Requesting: http://10.0.0.38:8082/project/e8c5074e-74d2-4e98-bb87-a5d9c97ea764 2025-11-13 08:13:07,842 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/dcb57231-0536-45be-8eac-9886474615d4 2025-11-13 08:13:07,854 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/dcb57231-0536-45be-8eac-9886474615d4 2025-11-13 08:13:07,864 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ec3d885d-a4c2-4ea7-b3eb-47c5986adf6f 2025-11-13 08:13:07,870 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ec3d885d-a4c2-4ea7-b3eb-47c5986adf6f 2025-11-13 08:13:07,877 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/6fbdf668-207c-41a3-8194-a0164cbb331f 2025-11-13 08:13:07,883 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-13 08:13:07,883 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/dcb57231-0536-45be-8eac-9886474615d4 2025-11-13 08:13:07,892 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ec3d885d-a4c2-4ea7-b3eb-47c5986adf6f 2025-11-13 08:13:07,906 - INFO - Verified VN network id 11 for VN dcb57231-0536-45be-8eac-9886474615d4 2025-11-13 08:13:07,906 - INFO - Verifications in API Server for VN ctest-vn4-11080660 passed 2025-11-13 08:13:07,906 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/dcb57231-0536-45be-8eac-9886474615d4 2025-11-13 08:13:07,915 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ec3d885d-a4c2-4ea7-b3eb-47c5986adf6f 2025-11-13 08:13:07,921 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ec3d885d-a4c2-4ea7-b3eb-47c5986adf6f 2025-11-13 08:13:07,927 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/6fbdf668-207c-41a3-8194-a0164cbb331f 2025-11-13 08:13:07,938 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-68031452:ctest-vn4-11080660', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-68031452', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15903743213995181502', 'uuid-lslong': '10280759751868814804'}, 'enable': 'true', 'created': '2025-11-13T08:13:06', 'last-modified': '2025-11-13T08:13:07', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.708808'} 2025-11-13 08:13:07,943 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-13 08:13:07,943 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-11080660 passed 2025-11-13 08:13:07,943 - DEBUG - ====Verifying policy data for ctest-vn4-11080660 in API_Server ====== 2025-11-13 08:13:07,943 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-11-13 08:13:07,948 - DEBUG - Requesting: http://10.0.0.38:8082/domain/662de752-450c-444a-bf3c-3d2288dc488d 2025-11-13 08:13:07,957 - DEBUG - Requesting: http://10.0.0.38:8082/project/e8c5074e-74d2-4e98-bb87-a5d9c97ea764 2025-11-13 08:13:08,026 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/dcb57231-0536-45be-8eac-9886474615d4 2025-11-13 08:13:08,035 - DEBUG - ==>Verifying data for policy with id: eeca3f54-9997-486a-bb3c-5c7b3f56ebe5, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-68031452', 'ctest-policy1-49438199'] 2025-11-13 08:13:08,035 - INFO - VN ctest-vn4-11080660 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-13 08:13:08,035 - DEBUG - Verifying the vn in opserver 2025-11-13 08:13:08,035 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-68031452:ctest-vn4-11080660 virtual network link through opserver 10.0.0.38 2025-11-13 08:13:08,035 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-11-13 08:13:08,324 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-11-13 08:13:08,384 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-68031452:ctest-vn4-11080660', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-68031452:ctest-vn4-11080660?flat'} 2025-11-13 08:13:08,384 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-68031452:ctest-vn4-11080660 is found in opserver 2025-11-13 08:13:08,394 - DEBUG - Do not have enough data to verify VN in agent 2025-11-13 08:13:08,399 - DEBUG - VRF ids for VN ctest-vn4-11080660: {} 2025-11-13 08:13:08,400 - DEBUG - ====Verifying data for ctest-policy1-49438199 in API_Server ====== 2025-11-13 08:13:08,400 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-11-13 08:13:08,405 - DEBUG - Requesting: http://10.0.0.38:8082/domain/662de752-450c-444a-bf3c-3d2288dc488d 2025-11-13 08:13:08,416 - DEBUG - Requesting: http://10.0.0.38:8082/project/e8c5074e-74d2-4e98-bb87-a5d9c97ea764 2025-11-13 08:13:08,486 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/eeca3f54-9997-486a-bb3c-5c7b3f56ebe5 2025-11-13 08:13:08,494 - INFO - Verified policy ctest-policy1-49438199 in API Server, Result: True 2025-11-13 08:13:08,495 - INFO - Done with setup and verification, moving onto test .. 2025-11-13 08:13:08,502 - INFO - Deleting VN ctest-vn4-11080660 2025-11-13 08:13:08,620 - DEBUG - Response for deleting network () 2025-11-13 08:13:08,620 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ec3d885d-a4c2-4ea7-b3eb-47c5986adf6f 2025-11-13 08:13:08,626 - DEBUG - Response Code: 404 2025-11-13 08:13:08,626 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-11-13 08:13:08,632 - DEBUG - Requesting: http://10.0.0.38:8082/domain/662de752-450c-444a-bf3c-3d2288dc488d 2025-11-13 08:13:08,684 - DEBUG - Requesting: http://10.0.0.38:8082/project/e8c5074e-74d2-4e98-bb87-a5d9c97ea764 2025-11-13 08:13:08,761 - INFO - Validated that VN ctest-vn4-11080660 is not found in API Server 2025-11-13 08:13:08,772 - DEBUG - VN ctest-vn4-11080660 is not present in Agent 10.0.0.38 2025-11-13 08:13:08,772 - INFO - Validated that VN ctest-vn4-11080660 is not in any agent 2025-11-13 08:13:08,786 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-11080660 info 2025-11-13 08:13:08,819 - INFO - Deleted policy ctest-policy1-49438199 2025-11-13 08:13:08,994 - DEBUG - policy ctest-policy1-49438199 is not found in API Server 2025-11-13 08:13:09,248 - DEBUG - No XMPP flaps were noticed during the test