2025-09-21 08:59:00,599 - INFO - Domain Default found not creating 2025-09-21 08:59:00,735 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-76517163 not found, creating it 2025-09-21 08:59:01,168 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-76517163, ID : 6a48daf9-6e14-40f5-a080-a4c4b34163f2 2025-09-21 08:59:02,549 - INFO - ================================================================================ 2025-09-21 08:59:02,549 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-21 08:59:02,803 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-09-21 08:59:02,804 - INFO - Initial checks done. Running the testcase now 2025-09-21 08:59:02,804 - INFO - 2025-09-21 08:59:02,804 - INFO - ================================================================================ 2025-09-21 08:59:02,804 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-21 08:59:02,804 - 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-09-21 08:59:03,094 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-09-21 08:59:03,094 - INFO - Initial checks done. Running the testcase now 2025-09-21 08:59:03,094 - INFO - 2025-09-21 08:59:03,444 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-76517163:ctest-vn4-70109870, 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-76517163:ctest-vn4-70109870, 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-76517163:ctest-vn4-70109870, 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-76517163:ctest-vn4-70109870, 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-09-21 08:59:03,953 - DEBUG - Response for create_network : {'network': {'id': '685496b0-1062-4e98-97cf-59c5a25ea0e1', 'name': 'ctest-vn4-70109870', 'tenant_id': '6a48daf96e1440f5a080a4c4b34163f2', 'project_id': '6a48daf96e1440f5a080a4c4b34163f2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-76517163', 'ctest-vn4-70109870'], 'port_security_enabled': True, 'description': ''}} 2025-09-21 08:59:04,153 - DEBUG - Response for create_subnet : {'subnet': {'id': '4ad9dda6-7828-453e-9cce-f7b2d22f6965', 'name': '', 'tenant_id': '6a48daf96e1440f5a080a4c4b34163f2', 'network_id': '685496b0-1062-4e98-97cf-59c5a25ea0e1', 'ip_version': 4, 'cidr': '86.119.148.128/26', 'allocation_pools': [{'start': '86.119.148.130', 'end': '86.119.148.190'}], 'gateway_ip': '86.119.148.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '86.119.148.130', 'tags': [], 'project_id': '6a48daf96e1440f5a080a4c4b34163f2'}} 2025-09-21 08:59:04,344 - DEBUG - Response for create_subnet : {'subnet': {'id': '58a883be-c30e-459d-9486-7598d810110b', 'name': '', 'tenant_id': '6a48daf96e1440f5a080a4c4b34163f2', 'network_id': '685496b0-1062-4e98-97cf-59c5a25ea0e1', 'ip_version': 6, 'cidr': '3be7:90a8:2d20:562:c645:b28f::/96', 'allocation_pools': [{'start': '3be7:90a8:2d20:562:c645:b28f:0:2', 'end': '3be7:90a8:2d20:562:c645:b28f:ffff:fffe'}], 'gateway_ip': '3be7:90a8:2d20:562:c645:b28f:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3be7:90a8:2d20:562:c645:b28f:0:2', 'tags': [], 'project_id': '6a48daf96e1440f5a080a4c4b34163f2'}} 2025-09-21 08:59:04,364 - INFO - Created VN ctest-vn4-70109870 2025-09-21 08:59:04,417 - DEBUG - VN ctest-vn4-70109870 UUID is 685496b0-1062-4e98-97cf-59c5a25ea0e1 2025-09-21 08:59:04,612 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '685496b0-1062-4e98-97cf-59c5a25ea0e1', 'name': 'ctest-vn4-70109870', 'tenant_id': '6a48daf96e1440f5a080a4c4b34163f2', 'project_id': '6a48daf96e1440f5a080a4c4b34163f2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4ad9dda6-7828-453e-9cce-f7b2d22f6965', '58a883be-c30e-459d-9486-7598d810110b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-76517163', 'ctest-vn4-70109870'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-76517163', 'ctest-policy1-86247307']], 'subnet_ipam': [{'subnet_cidr': '86.119.148.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3be7:90a8:2d20:562:c645:b28f::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-09-21 08:59:04,773 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-09-21 08:59:05,082 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-09-21 08:59:05,114 - DEBUG - Requesting: http://10.0.0.254:8082/domain/c41d3cc5-b86c-4895-a393-223ab88c8f4f 2025-09-21 08:59:05,125 - DEBUG - Requesting: http://10.0.0.254:8082/project/6a48daf9-6e14-40f5-a080-a4c4b34163f2 2025-09-21 08:59:05,196 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/685496b0-1062-4e98-97cf-59c5a25ea0e1 2025-09-21 08:59:05,208 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/685496b0-1062-4e98-97cf-59c5a25ea0e1 2025-09-21 08:59:05,217 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/36963e77-0657-48fb-90aa-82ee42ea5ff0 2025-09-21 08:59:05,223 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/36963e77-0657-48fb-90aa-82ee42ea5ff0 2025-09-21 08:59:05,230 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/f02c8fed-137a-4214-bf59-83e4837969ac 2025-09-21 08:59:05,235 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-21 08:59:05,235 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/685496b0-1062-4e98-97cf-59c5a25ea0e1 2025-09-21 08:59:05,244 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/36963e77-0657-48fb-90aa-82ee42ea5ff0 2025-09-21 08:59:05,258 - INFO - Verified VN network id 12 for VN 685496b0-1062-4e98-97cf-59c5a25ea0e1 2025-09-21 08:59:05,258 - INFO - Verifications in API Server for VN ctest-vn4-70109870 passed 2025-09-21 08:59:05,258 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/685496b0-1062-4e98-97cf-59c5a25ea0e1 2025-09-21 08:59:05,267 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/36963e77-0657-48fb-90aa-82ee42ea5ff0 2025-09-21 08:59:05,273 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/36963e77-0657-48fb-90aa-82ee42ea5ff0 2025-09-21 08:59:05,279 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/f02c8fed-137a-4214-bf59-83e4837969ac 2025-09-21 08:59:05,288 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-76517163:ctest-vn4-70109870', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-76517163', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7517799360921489048', 'uuid-lslong': '10939060725273764065'}, 'enable': 'true', 'created': '2025-09-21T08:59:03', 'last-modified': '2025-09-21T08:59:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.701223'} 2025-09-21 08:59:05,296 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-21 08:59:05,296 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-70109870 passed 2025-09-21 08:59:05,296 - DEBUG - ====Verifying policy data for ctest-vn4-70109870 in API_Server ====== 2025-09-21 08:59:05,296 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-09-21 08:59:05,303 - DEBUG - Requesting: http://10.0.0.254:8082/domain/c41d3cc5-b86c-4895-a393-223ab88c8f4f 2025-09-21 08:59:05,316 - DEBUG - Requesting: http://10.0.0.254:8082/project/6a48daf9-6e14-40f5-a080-a4c4b34163f2 2025-09-21 08:59:05,393 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/685496b0-1062-4e98-97cf-59c5a25ea0e1 2025-09-21 08:59:05,402 - DEBUG - ==>Verifying data for policy with id: de6d9a3e-e254-407a-8126-a23849694185, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-76517163', 'ctest-policy1-86247307'] 2025-09-21 08:59:05,402 - INFO - VN ctest-vn4-70109870 Policy verification: verify_vn_policy_in_api_server, status: True 2025-09-21 08:59:05,402 - DEBUG - Verifying the vn in opserver 2025-09-21 08:59:05,402 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-76517163:ctest-vn4-70109870 virtual network link through opserver 10.0.0.254 2025-09-21 08:59:05,402 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-09-21 08:59:05,699 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-09-21 08:59:05,754 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-76517163:ctest-vn4-70109870', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-76517163:ctest-vn4-70109870?flat'} 2025-09-21 08:59:05,754 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-76517163:ctest-vn4-70109870 is found in opserver 2025-09-21 08:59:05,763 - DEBUG - Do not have enough data to verify VN in agent 2025-09-21 08:59:05,766 - DEBUG - VRF ids for VN ctest-vn4-70109870: {} 2025-09-21 08:59:05,767 - DEBUG - ====Verifying data for ctest-policy1-86247307 in API_Server ====== 2025-09-21 08:59:05,767 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-09-21 08:59:05,772 - DEBUG - Requesting: http://10.0.0.254:8082/domain/c41d3cc5-b86c-4895-a393-223ab88c8f4f 2025-09-21 08:59:05,849 - DEBUG - Requesting: http://10.0.0.254:8082/project/6a48daf9-6e14-40f5-a080-a4c4b34163f2 2025-09-21 08:59:05,920 - DEBUG - Requesting: http://10.0.0.254:8082/network-policy/de6d9a3e-e254-407a-8126-a23849694185 2025-09-21 08:59:05,929 - INFO - Verified policy ctest-policy1-86247307 in API Server, Result: True 2025-09-21 08:59:05,929 - INFO - Done with setup and verification, moving onto test .. 2025-09-21 08:59:05,936 - INFO - Deleting VN ctest-vn4-70109870 2025-09-21 08:59:06,050 - DEBUG - Response for deleting network () 2025-09-21 08:59:06,050 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/36963e77-0657-48fb-90aa-82ee42ea5ff0 2025-09-21 08:59:06,055 - DEBUG - Response Code: 404 2025-09-21 08:59:06,056 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-09-21 08:59:06,061 - DEBUG - Requesting: http://10.0.0.254:8082/domain/c41d3cc5-b86c-4895-a393-223ab88c8f4f 2025-09-21 08:59:06,115 - DEBUG - Requesting: http://10.0.0.254:8082/project/6a48daf9-6e14-40f5-a080-a4c4b34163f2 2025-09-21 08:59:06,186 - INFO - Validated that VN ctest-vn4-70109870 is not found in API Server 2025-09-21 08:59:06,194 - DEBUG - VN ctest-vn4-70109870 is not present in Agent 10.0.0.254 2025-09-21 08:59:06,194 - INFO - Validated that VN ctest-vn4-70109870 is not in any agent 2025-09-21 08:59:06,206 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-70109870 info 2025-09-21 08:59:06,230 - INFO - Deleted policy ctest-policy1-86247307 2025-09-21 08:59:06,393 - DEBUG - policy ctest-policy1-86247307 is not found in API Server 2025-09-21 08:59:06,646 - DEBUG - No XMPP flaps were noticed during the test 2025-09-21 08:59:06,646 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-09-21 08:59:06,646 - INFO - -------------------------------------------------------------------------------- 2025-09-21 08:59:06,934 - DEBUG - No XMPP flaps were noticed during the test 2025-09-21 08:59:06,934 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-09-21 08:59:06,935 - INFO - -------------------------------------------------------------------------------- 2025-09-21 08:59:07,608 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-76517163, ID : 6a48daf9-6e14-40f5-a080-a4c4b34163f2