2025-09-23 12:49:25,151 - INFO - Domain Default found not creating 2025-09-23 12:49:25,305 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-39025957 not found, creating it 2025-09-23 12:49:25,754 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-39025957, ID : 9bafbe41-3cdd-4367-90de-b44918da5eb3 2025-09-23 12:49:27,075 - INFO - ================================================================================ 2025-09-23 12:49:27,075 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-23 12:49:27,326 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.14': '0'}} with 2025-09-23 12:49:27,326 - INFO - Initial checks done. Running the testcase now 2025-09-23 12:49:27,326 - INFO - 2025-09-23 12:49:27,326 - INFO - ================================================================================ 2025-09-23 12:49:27,326 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-23 12:49:27,326 - 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-23 12:49:27,614 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.14': '0'}} with 2025-09-23 12:49:27,614 - INFO - Initial checks done. Running the testcase now 2025-09-23 12:49:27,614 - INFO - 2025-09-23 12:49:27,949 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-39025957:ctest-vn4-94696861, 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-39025957:ctest-vn4-94696861, 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-39025957:ctest-vn4-94696861, 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-39025957:ctest-vn4-94696861, 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-23 12:49:28,442 - DEBUG - Response for create_network : {'network': {'id': '40ad3494-5794-46f0-8fe5-7015e482f230', 'name': 'ctest-vn4-94696861', 'tenant_id': '9bafbe413cdd436790deb44918da5eb3', 'project_id': '9bafbe413cdd436790deb44918da5eb3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-39025957', 'ctest-vn4-94696861'], 'port_security_enabled': True, 'description': ''}} 2025-09-23 12:49:28,622 - DEBUG - Response for create_subnet : {'subnet': {'id': '23a1d781-f30b-42e4-87c1-af114e986571', 'name': '', 'tenant_id': '9bafbe413cdd436790deb44918da5eb3', 'network_id': '40ad3494-5794-46f0-8fe5-7015e482f230', 'ip_version': 4, 'cidr': '15.25.158.64/26', 'allocation_pools': [{'start': '15.25.158.66', 'end': '15.25.158.126'}], 'gateway_ip': '15.25.158.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '15.25.158.66', 'tags': [], 'project_id': '9bafbe413cdd436790deb44918da5eb3'}} 2025-09-23 12:49:28,765 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a851f3e7-a19d-4eab-817d-f496e58549a6', 'name': '', 'tenant_id': '9bafbe413cdd436790deb44918da5eb3', 'network_id': '40ad3494-5794-46f0-8fe5-7015e482f230', 'ip_version': 6, 'cidr': '2432:eea8:75db:fa05:11c1:2315::/96', 'allocation_pools': [{'start': '2432:eea8:75db:fa05:11c1:2315:0:2', 'end': '2432:eea8:75db:fa05:11c1:2315:ffff:fffe'}], 'gateway_ip': '2432:eea8:75db:fa05:11c1:2315:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2432:eea8:75db:fa05:11c1:2315:0:2', 'tags': [], 'project_id': '9bafbe413cdd436790deb44918da5eb3'}} 2025-09-23 12:49:28,782 - INFO - Created VN ctest-vn4-94696861 2025-09-23 12:49:28,837 - DEBUG - VN ctest-vn4-94696861 UUID is 40ad3494-5794-46f0-8fe5-7015e482f230 2025-09-23 12:49:29,009 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '40ad3494-5794-46f0-8fe5-7015e482f230', 'name': 'ctest-vn4-94696861', 'tenant_id': '9bafbe413cdd436790deb44918da5eb3', 'project_id': '9bafbe413cdd436790deb44918da5eb3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['23a1d781-f30b-42e4-87c1-af114e986571', 'a851f3e7-a19d-4eab-817d-f496e58549a6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-39025957', 'ctest-vn4-94696861'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-39025957', 'ctest-policy1-44709213']], 'subnet_ipam': [{'subnet_cidr': '15.25.158.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2432:eea8:75db:fa05:11c1:2315::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-09-23 12:49:29,174 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-09-23 12:49:29,461 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-09-23 12:49:29,485 - DEBUG - Requesting: http://10.0.0.254:8082/domain/6885e1fb-4730-453f-9180-56c383eb32b3 2025-09-23 12:49:29,496 - DEBUG - Requesting: http://10.0.0.254:8082/project/9bafbe41-3cdd-4367-90de-b44918da5eb3 2025-09-23 12:49:29,564 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/40ad3494-5794-46f0-8fe5-7015e482f230 2025-09-23 12:49:29,575 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/40ad3494-5794-46f0-8fe5-7015e482f230 2025-09-23 12:49:29,583 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/e91d630d-abd1-4a3b-a7fa-896aa2032e82 2025-09-23 12:49:29,589 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/e91d630d-abd1-4a3b-a7fa-896aa2032e82 2025-09-23 12:49:29,595 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/e857df62-6041-4202-aa50-2382132e5df6 2025-09-23 12:49:29,600 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-23 12:49:29,600 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/40ad3494-5794-46f0-8fe5-7015e482f230 2025-09-23 12:49:29,608 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/e91d630d-abd1-4a3b-a7fa-896aa2032e82 2025-09-23 12:49:29,621 - INFO - Verified VN network id 11 for VN 40ad3494-5794-46f0-8fe5-7015e482f230 2025-09-23 12:49:29,621 - INFO - Verifications in API Server for VN ctest-vn4-94696861 passed 2025-09-23 12:49:29,621 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/40ad3494-5794-46f0-8fe5-7015e482f230 2025-09-23 12:49:29,629 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/e91d630d-abd1-4a3b-a7fa-896aa2032e82 2025-09-23 12:49:29,635 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/e91d630d-abd1-4a3b-a7fa-896aa2032e82 2025-09-23 12:49:29,641 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/e857df62-6041-4202-aa50-2382132e5df6 2025-09-23 12:49:29,652 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-39025957:ctest-vn4-94696861', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-39025957', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4660439001127470832', 'uuid-lslong': '10368816956420846128'}, 'enable': 'true', 'created': '2025-09-23T12:49:28', 'last-modified': '2025-09-23T12:49:28', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.665781'} 2025-09-23 12:49:29,658 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-23 12:49:29,660 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-94696861 passed 2025-09-23 12:49:29,660 - DEBUG - ====Verifying policy data for ctest-vn4-94696861 in API_Server ====== 2025-09-23 12:49:29,660 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-09-23 12:49:29,664 - DEBUG - Requesting: http://10.0.0.254:8082/domain/6885e1fb-4730-453f-9180-56c383eb32b3 2025-09-23 12:49:29,674 - DEBUG - Requesting: http://10.0.0.254:8082/project/9bafbe41-3cdd-4367-90de-b44918da5eb3 2025-09-23 12:49:29,744 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/40ad3494-5794-46f0-8fe5-7015e482f230 2025-09-23 12:49:29,753 - DEBUG - ==>Verifying data for policy with id: dc1b5e1e-a7a1-4a36-9ef8-a8dd601f0175, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-39025957', 'ctest-policy1-44709213'] 2025-09-23 12:49:29,753 - INFO - VN ctest-vn4-94696861 Policy verification: verify_vn_policy_in_api_server, status: True 2025-09-23 12:49:29,753 - DEBUG - Verifying the vn in opserver 2025-09-23 12:49:29,753 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-39025957:ctest-vn4-94696861 virtual network link through opserver 10.0.0.254 2025-09-23 12:49:29,753 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-09-23 12:49:30,040 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-09-23 12:49:30,088 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-39025957:ctest-vn4-94696861', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-39025957:ctest-vn4-94696861?flat'} 2025-09-23 12:49:30,088 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-39025957:ctest-vn4-94696861 is found in opserver 2025-09-23 12:49:30,098 - DEBUG - Do not have enough data to verify VN in agent 2025-09-23 12:49:30,101 - DEBUG - VRF ids for VN ctest-vn4-94696861: {} 2025-09-23 12:49:30,102 - DEBUG - ====Verifying data for ctest-policy1-44709213 in API_Server ====== 2025-09-23 12:49:30,102 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-09-23 12:49:30,106 - DEBUG - Requesting: http://10.0.0.254:8082/domain/6885e1fb-4730-453f-9180-56c383eb32b3 2025-09-23 12:49:30,115 - DEBUG - Requesting: http://10.0.0.254:8082/project/9bafbe41-3cdd-4367-90de-b44918da5eb3 2025-09-23 12:49:30,180 - DEBUG - Requesting: http://10.0.0.254:8082/network-policy/dc1b5e1e-a7a1-4a36-9ef8-a8dd601f0175 2025-09-23 12:49:30,188 - INFO - Verified policy ctest-policy1-44709213 in API Server, Result: True 2025-09-23 12:49:30,188 - INFO - Done with setup and verification, moving onto test .. 2025-09-23 12:49:30,194 - INFO - Deleting VN ctest-vn4-94696861 2025-09-23 12:49:30,294 - DEBUG - Response for deleting network () 2025-09-23 12:49:30,294 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/e91d630d-abd1-4a3b-a7fa-896aa2032e82 2025-09-23 12:49:30,299 - DEBUG - Response Code: 404 2025-09-23 12:49:30,299 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-09-23 12:49:30,304 - DEBUG - Requesting: http://10.0.0.254:8082/domain/6885e1fb-4730-453f-9180-56c383eb32b3 2025-09-23 12:49:30,355 - DEBUG - Requesting: http://10.0.0.254:8082/project/9bafbe41-3cdd-4367-90de-b44918da5eb3 2025-09-23 12:49:30,510 - INFO - Validated that VN ctest-vn4-94696861 is not found in API Server 2025-09-23 12:49:30,520 - DEBUG - VN ctest-vn4-94696861 is not present in Agent 10.0.0.254 2025-09-23 12:49:30,520 - INFO - Validated that VN ctest-vn4-94696861 is not in any agent 2025-09-23 12:49:30,532 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-94696861 info 2025-09-23 12:49:30,552 - INFO - Deleted policy ctest-policy1-44709213 2025-09-23 12:49:30,713 - DEBUG - policy ctest-policy1-44709213 is not found in API Server 2025-09-23 12:49:30,975 - DEBUG - No XMPP flaps were noticed during the test