2025-10-22 10:34:00,981 - INFO - Domain Default found not creating 2025-10-22 10:34:01,148 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-22898021 not found, creating it 2025-10-22 10:34:01,636 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-22898021, ID : aff6c2e9-dbd5-479b-8285-5c129d0abfbe 2025-10-22 10:34:03,258 - INFO - ================================================================================ 2025-10-22 10:34:03,258 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-22 10:34:03,518 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.254': '0'}} with 2025-10-22 10:34:03,518 - INFO - Initial checks done. Running the testcase now 2025-10-22 10:34:03,518 - INFO - 2025-10-22 10:34:03,518 - INFO - ================================================================================ 2025-10-22 10:34:03,518 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-22 10:34:03,518 - 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-10-22 10:34:03,815 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.254': '0'}} with 2025-10-22 10:34:03,816 - INFO - Initial checks done. Running the testcase now 2025-10-22 10:34:03,816 - INFO - 2025-10-22 10:34:04,222 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-22898021:ctest-vn4-83502059, 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-22898021:ctest-vn4-83502059, 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-22898021:ctest-vn4-83502059, 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-22898021:ctest-vn4-83502059, 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-10-22 10:34:04,759 - DEBUG - Response for create_network : {'network': {'id': '235b1dc4-908a-424d-9f0a-6a98829fb7e1', 'name': 'ctest-vn4-83502059', 'tenant_id': 'aff6c2e9dbd5479b82855c129d0abfbe', 'project_id': 'aff6c2e9dbd5479b82855c129d0abfbe', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-22898021', 'ctest-vn4-83502059'], 'port_security_enabled': True, 'description': ''}} 2025-10-22 10:34:04,986 - DEBUG - Response for create_subnet : {'subnet': {'id': '6248e532-46c9-44c6-a8a5-21e646d0e5ac', 'name': '', 'tenant_id': 'aff6c2e9dbd5479b82855c129d0abfbe', 'network_id': '235b1dc4-908a-424d-9f0a-6a98829fb7e1', 'ip_version': 4, 'cidr': '208.42.248.0/26', 'allocation_pools': [{'start': '208.42.248.2', 'end': '208.42.248.62'}], 'gateway_ip': '208.42.248.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '208.42.248.2', 'tags': [], 'project_id': 'aff6c2e9dbd5479b82855c129d0abfbe'}} 2025-10-22 10:34:05,145 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fd67d9ff-72ba-45d3-b9e3-e5e7fed80903', 'name': '', 'tenant_id': 'aff6c2e9dbd5479b82855c129d0abfbe', 'network_id': '235b1dc4-908a-424d-9f0a-6a98829fb7e1', 'ip_version': 6, 'cidr': '30df:4807:4da8:2f20:df85:a7ed::/96', 'allocation_pools': [{'start': '30df:4807:4da8:2f20:df85:a7ed:0:2', 'end': '30df:4807:4da8:2f20:df85:a7ed:ffff:fffe'}], 'gateway_ip': '30df:4807:4da8:2f20:df85:a7ed:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '30df:4807:4da8:2f20:df85:a7ed:0:2', 'tags': [], 'project_id': 'aff6c2e9dbd5479b82855c129d0abfbe'}} 2025-10-22 10:34:05,166 - INFO - Created VN ctest-vn4-83502059 2025-10-22 10:34:05,221 - DEBUG - VN ctest-vn4-83502059 UUID is 235b1dc4-908a-424d-9f0a-6a98829fb7e1 2025-10-22 10:34:05,446 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '235b1dc4-908a-424d-9f0a-6a98829fb7e1', 'name': 'ctest-vn4-83502059', 'tenant_id': 'aff6c2e9dbd5479b82855c129d0abfbe', 'project_id': 'aff6c2e9dbd5479b82855c129d0abfbe', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6248e532-46c9-44c6-a8a5-21e646d0e5ac', 'fd67d9ff-72ba-45d3-b9e3-e5e7fed80903'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-22898021', 'ctest-vn4-83502059'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-22898021', 'ctest-policy1-72565584']], 'subnet_ipam': [{'subnet_cidr': '208.42.248.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '30df:4807:4da8:2f20:df85:a7ed::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-22 10:34:05,637 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-10-22 10:34:05,971 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-10-22 10:34:06,002 - DEBUG - Requesting: http://10.0.0.22:8082/domain/801435cb-d0d9-4a4b-86b0-d3e5add8f350 2025-10-22 10:34:06,015 - DEBUG - Requesting: http://10.0.0.22:8082/project/aff6c2e9-dbd5-479b-8285-5c129d0abfbe 2025-10-22 10:34:06,094 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/235b1dc4-908a-424d-9f0a-6a98829fb7e1 2025-10-22 10:34:06,109 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/235b1dc4-908a-424d-9f0a-6a98829fb7e1 2025-10-22 10:34:06,121 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f44e4ca2-ccc9-41cb-b2a4-18da85bb60ef 2025-10-22 10:34:06,130 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f44e4ca2-ccc9-41cb-b2a4-18da85bb60ef 2025-10-22 10:34:06,137 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/b1844441-1263-45e7-814c-7b604603eaf2 2025-10-22 10:34:06,145 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-22 10:34:06,145 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/235b1dc4-908a-424d-9f0a-6a98829fb7e1 2025-10-22 10:34:06,155 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f44e4ca2-ccc9-41cb-b2a4-18da85bb60ef 2025-10-22 10:34:06,171 - INFO - Verified VN network id 12 for VN 235b1dc4-908a-424d-9f0a-6a98829fb7e1 2025-10-22 10:34:06,171 - INFO - Verifications in API Server for VN ctest-vn4-83502059 passed 2025-10-22 10:34:06,171 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/235b1dc4-908a-424d-9f0a-6a98829fb7e1 2025-10-22 10:34:06,181 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f44e4ca2-ccc9-41cb-b2a4-18da85bb60ef 2025-10-22 10:34:06,189 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f44e4ca2-ccc9-41cb-b2a4-18da85bb60ef 2025-10-22 10:34:06,197 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/b1844441-1263-45e7-814c-7b604603eaf2 2025-10-22 10:34:06,209 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-22898021:ctest-vn4-83502059', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-22898021', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2547662744283923021', 'uuid-lslong': '11460089405056727009'}, 'enable': 'true', 'created': '2025-10-22T10:34:04', 'last-modified': '2025-10-22T10:34:05', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.801311'} 2025-10-22 10:34:06,216 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-22 10:34:06,216 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-83502059 passed 2025-10-22 10:34:06,216 - DEBUG - ====Verifying policy data for ctest-vn4-83502059 in API_Server ====== 2025-10-22 10:34:06,216 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-10-22 10:34:06,222 - DEBUG - Requesting: http://10.0.0.22:8082/domain/801435cb-d0d9-4a4b-86b0-d3e5add8f350 2025-10-22 10:34:06,233 - DEBUG - Requesting: http://10.0.0.22:8082/project/aff6c2e9-dbd5-479b-8285-5c129d0abfbe 2025-10-22 10:34:06,307 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/235b1dc4-908a-424d-9f0a-6a98829fb7e1 2025-10-22 10:34:06,319 - DEBUG - ==>Verifying data for policy with id: 11cb1e87-3a9b-4ede-bedb-3eba7cb96dcd, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-22898021', 'ctest-policy1-72565584'] 2025-10-22 10:34:06,319 - INFO - VN ctest-vn4-83502059 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-22 10:34:06,319 - DEBUG - Verifying the vn in opserver 2025-10-22 10:34:06,319 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-22898021:ctest-vn4-83502059 virtual network link through opserver 10.0.0.22 2025-10-22 10:34:06,319 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-10-22 10:34:06,652 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-10-22 10:34:06,710 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-22898021:ctest-vn4-83502059', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-22898021:ctest-vn4-83502059?flat'} 2025-10-22 10:34:06,710 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-22898021:ctest-vn4-83502059 is found in opserver 2025-10-22 10:34:06,719 - DEBUG - Do not have enough data to verify VN in agent 2025-10-22 10:34:06,724 - DEBUG - VRF ids for VN ctest-vn4-83502059: {} 2025-10-22 10:34:06,724 - DEBUG - ====Verifying data for ctest-policy1-72565584 in API_Server ====== 2025-10-22 10:34:06,724 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-10-22 10:34:06,730 - DEBUG - Requesting: http://10.0.0.22:8082/domain/801435cb-d0d9-4a4b-86b0-d3e5add8f350 2025-10-22 10:34:06,744 - DEBUG - Requesting: http://10.0.0.22:8082/project/aff6c2e9-dbd5-479b-8285-5c129d0abfbe 2025-10-22 10:34:06,816 - DEBUG - Requesting: http://10.0.0.22:8082/network-policy/11cb1e87-3a9b-4ede-bedb-3eba7cb96dcd 2025-10-22 10:34:06,826 - INFO - Verified policy ctest-policy1-72565584 in API Server, Result: True 2025-10-22 10:34:06,826 - INFO - Done with setup and verification, moving onto test .. 2025-10-22 10:34:06,834 - INFO - Deleting VN ctest-vn4-83502059 2025-10-22 10:34:06,952 - DEBUG - Response for deleting network () 2025-10-22 10:34:06,952 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f44e4ca2-ccc9-41cb-b2a4-18da85bb60ef 2025-10-22 10:34:06,958 - DEBUG - Response Code: 404 2025-10-22 10:34:06,958 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-10-22 10:34:06,963 - DEBUG - Requesting: http://10.0.0.22:8082/domain/801435cb-d0d9-4a4b-86b0-d3e5add8f350 2025-10-22 10:34:07,019 - DEBUG - Requesting: http://10.0.0.22:8082/project/aff6c2e9-dbd5-479b-8285-5c129d0abfbe 2025-10-22 10:34:07,093 - INFO - Validated that VN ctest-vn4-83502059 is not found in API Server 2025-10-22 10:34:07,103 - DEBUG - VN ctest-vn4-83502059 is not present in Agent 10.0.0.22 2025-10-22 10:34:07,103 - INFO - Validated that VN ctest-vn4-83502059 is not in any agent 2025-10-22 10:34:07,117 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-83502059 info 2025-10-22 10:34:07,150 - INFO - Deleted policy ctest-policy1-72565584 2025-10-22 10:34:07,312 - DEBUG - policy ctest-policy1-72565584 is not found in API Server 2025-10-22 10:34:07,571 - DEBUG - No XMPP flaps were noticed during the test