2025-10-24 13:20:23,648 - INFO - Domain Default found not creating 2025-10-24 13:20:23,803 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-65031030 not found, creating it 2025-10-24 13:20:24,238 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-65031030, ID : cf05b1f3-3173-4f66-94f7-387b6d194b8e 2025-10-24 13:20:25,604 - INFO - ================================================================================ 2025-10-24 13:20:25,604 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-24 13:20:25,862 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-10-24 13:20:25,862 - INFO - Initial checks done. Running the testcase now 2025-10-24 13:20:25,862 - INFO - 2025-10-24 13:20:25,862 - INFO - ================================================================================ 2025-10-24 13:20:25,862 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-24 13:20:25,862 - 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-24 13:20:26,149 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-10-24 13:20:26,149 - INFO - Initial checks done. Running the testcase now 2025-10-24 13:20:26,149 - INFO - 2025-10-24 13:20:26,491 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-65031030:ctest-vn4-58149583, 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-65031030:ctest-vn4-58149583, 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-65031030:ctest-vn4-58149583, 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-65031030:ctest-vn4-58149583, 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-24 13:20:26,990 - DEBUG - Response for create_network : {'network': {'id': '0ba39488-7d27-4d3c-9dbf-2a2e90af81a1', 'name': 'ctest-vn4-58149583', 'tenant_id': 'cf05b1f331734f6694f7387b6d194b8e', 'project_id': 'cf05b1f331734f6694f7387b6d194b8e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-65031030', 'ctest-vn4-58149583'], 'port_security_enabled': True, 'description': ''}} 2025-10-24 13:20:27,137 - DEBUG - Response for create_subnet : {'subnet': {'id': '074dd033-5fce-4606-a113-4d804e2077c1', 'name': '', 'tenant_id': 'cf05b1f331734f6694f7387b6d194b8e', 'network_id': '0ba39488-7d27-4d3c-9dbf-2a2e90af81a1', 'ip_version': 4, 'cidr': '216.143.107.64/26', 'allocation_pools': [{'start': '216.143.107.66', 'end': '216.143.107.126'}], 'gateway_ip': '216.143.107.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '216.143.107.66', 'tags': [], 'project_id': 'cf05b1f331734f6694f7387b6d194b8e'}} 2025-10-24 13:20:27,282 - DEBUG - Response for create_subnet : {'subnet': {'id': '53fb0f14-d521-4bea-9016-20af435da6c3', 'name': '', 'tenant_id': 'cf05b1f331734f6694f7387b6d194b8e', 'network_id': '0ba39488-7d27-4d3c-9dbf-2a2e90af81a1', 'ip_version': 6, 'cidr': '3b14:1231:fe73:37a9:6d17:4671::/96', 'allocation_pools': [{'start': '3b14:1231:fe73:37a9:6d17:4671:0:2', 'end': '3b14:1231:fe73:37a9:6d17:4671:ffff:fffe'}], 'gateway_ip': '3b14:1231:fe73:37a9:6d17:4671:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3b14:1231:fe73:37a9:6d17:4671:0:2', 'tags': [], 'project_id': 'cf05b1f331734f6694f7387b6d194b8e'}} 2025-10-24 13:20:27,302 - INFO - Created VN ctest-vn4-58149583 2025-10-24 13:20:27,353 - DEBUG - VN ctest-vn4-58149583 UUID is 0ba39488-7d27-4d3c-9dbf-2a2e90af81a1 2025-10-24 13:20:27,546 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0ba39488-7d27-4d3c-9dbf-2a2e90af81a1', 'name': 'ctest-vn4-58149583', 'tenant_id': 'cf05b1f331734f6694f7387b6d194b8e', 'project_id': 'cf05b1f331734f6694f7387b6d194b8e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['074dd033-5fce-4606-a113-4d804e2077c1', '53fb0f14-d521-4bea-9016-20af435da6c3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-65031030', 'ctest-vn4-58149583'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-65031030', 'ctest-policy1-97289245']], 'subnet_ipam': [{'subnet_cidr': '216.143.107.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3b14:1231:fe73:37a9:6d17:4671::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-24 13:20:27,713 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-24 13:20:28,017 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-24 13:20:28,043 - DEBUG - Requesting: http://10.0.0.254:8082/domain/50c900fd-0a35-4530-8cfc-f3f20e598ed1 2025-10-24 13:20:28,055 - DEBUG - Requesting: http://10.0.0.254:8082/project/cf05b1f3-3173-4f66-94f7-387b6d194b8e 2025-10-24 13:20:28,130 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/0ba39488-7d27-4d3c-9dbf-2a2e90af81a1 2025-10-24 13:20:28,142 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/0ba39488-7d27-4d3c-9dbf-2a2e90af81a1 2025-10-24 13:20:28,151 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/4d996ed6-ee26-4876-b490-de0e1ec45585 2025-10-24 13:20:28,158 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/4d996ed6-ee26-4876-b490-de0e1ec45585 2025-10-24 13:20:28,165 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/c53b4855-f66c-4177-8ff0-bfc5b0e52f3a 2025-10-24 13:20:28,171 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-24 13:20:28,171 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/0ba39488-7d27-4d3c-9dbf-2a2e90af81a1 2025-10-24 13:20:28,181 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/4d996ed6-ee26-4876-b490-de0e1ec45585 2025-10-24 13:20:28,258 - INFO - Verified VN network id 12 for VN 0ba39488-7d27-4d3c-9dbf-2a2e90af81a1 2025-10-24 13:20:28,258 - INFO - Verifications in API Server for VN ctest-vn4-58149583 passed 2025-10-24 13:20:28,258 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/0ba39488-7d27-4d3c-9dbf-2a2e90af81a1 2025-10-24 13:20:28,267 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/4d996ed6-ee26-4876-b490-de0e1ec45585 2025-10-24 13:20:28,272 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/4d996ed6-ee26-4876-b490-de0e1ec45585 2025-10-24 13:20:28,277 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/c53b4855-f66c-4177-8ff0-bfc5b0e52f3a 2025-10-24 13:20:28,287 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-65031030:ctest-vn4-58149583', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-65031030', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '838677269557235004', 'uuid-lslong': '11366850363990704545'}, 'enable': 'true', 'created': '2025-10-24T13:20:26', 'last-modified': '2025-10-24T13:20:27', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.765105'} 2025-10-24 13:20:28,292 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-24 13:20:28,292 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-58149583 passed 2025-10-24 13:20:28,292 - DEBUG - ====Verifying policy data for ctest-vn4-58149583 in API_Server ====== 2025-10-24 13:20:28,292 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-24 13:20:28,297 - DEBUG - Requesting: http://10.0.0.254:8082/domain/50c900fd-0a35-4530-8cfc-f3f20e598ed1 2025-10-24 13:20:28,307 - DEBUG - Requesting: http://10.0.0.254:8082/project/cf05b1f3-3173-4f66-94f7-387b6d194b8e 2025-10-24 13:20:28,379 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/0ba39488-7d27-4d3c-9dbf-2a2e90af81a1 2025-10-24 13:20:28,388 - DEBUG - ==>Verifying data for policy with id: 83807056-ceda-4837-9423-e2cf1b8f9f0d, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-65031030', 'ctest-policy1-97289245'] 2025-10-24 13:20:28,388 - INFO - VN ctest-vn4-58149583 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-24 13:20:28,388 - DEBUG - Verifying the vn in opserver 2025-10-24 13:20:28,389 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-65031030:ctest-vn4-58149583 virtual network link through opserver 10.0.0.254 2025-10-24 13:20:28,389 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-10-24 13:20:28,678 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-10-24 13:20:28,729 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-65031030:ctest-vn4-58149583', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-65031030:ctest-vn4-58149583?flat'} 2025-10-24 13:20:28,729 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-65031030:ctest-vn4-58149583 is found in opserver 2025-10-24 13:20:28,737 - DEBUG - Do not have enough data to verify VN in agent 2025-10-24 13:20:28,741 - DEBUG - VRF ids for VN ctest-vn4-58149583: {} 2025-10-24 13:20:28,741 - DEBUG - ====Verifying data for ctest-policy1-97289245 in API_Server ====== 2025-10-24 13:20:28,741 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-24 13:20:28,746 - DEBUG - Requesting: http://10.0.0.254:8082/domain/50c900fd-0a35-4530-8cfc-f3f20e598ed1 2025-10-24 13:20:28,757 - DEBUG - Requesting: http://10.0.0.254:8082/project/cf05b1f3-3173-4f66-94f7-387b6d194b8e 2025-10-24 13:20:28,825 - DEBUG - Requesting: http://10.0.0.254:8082/network-policy/83807056-ceda-4837-9423-e2cf1b8f9f0d 2025-10-24 13:20:28,833 - INFO - Verified policy ctest-policy1-97289245 in API Server, Result: True 2025-10-24 13:20:28,833 - INFO - Done with setup and verification, moving onto test .. 2025-10-24 13:20:28,840 - INFO - Deleting VN ctest-vn4-58149583 2025-10-24 13:20:28,946 - DEBUG - Response for deleting network () 2025-10-24 13:20:28,946 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/4d996ed6-ee26-4876-b490-de0e1ec45585 2025-10-24 13:20:28,951 - DEBUG - Response Code: 404 2025-10-24 13:20:28,951 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-24 13:20:28,956 - DEBUG - Requesting: http://10.0.0.254:8082/domain/50c900fd-0a35-4530-8cfc-f3f20e598ed1 2025-10-24 13:20:29,013 - DEBUG - Requesting: http://10.0.0.254:8082/project/cf05b1f3-3173-4f66-94f7-387b6d194b8e 2025-10-24 13:20:29,086 - INFO - Validated that VN ctest-vn4-58149583 is not found in API Server 2025-10-24 13:20:29,095 - DEBUG - VN ctest-vn4-58149583 is not present in Agent 10.0.0.254 2025-10-24 13:20:29,095 - INFO - Validated that VN ctest-vn4-58149583 is not in any agent 2025-10-24 13:20:29,108 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-58149583 info 2025-10-24 13:20:29,141 - INFO - Deleted policy ctest-policy1-97289245 2025-10-24 13:20:29,304 - DEBUG - policy ctest-policy1-97289245 is not found in API Server 2025-10-24 13:20:29,558 - DEBUG - No XMPP flaps were noticed during the test
2025-10-24 13:20:29,558 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-10-24 13:20:29,558 - INFO - -------------------------------------------------------------------------------- 2025-10-24 13:20:29,849 - DEBUG - No XMPP flaps were noticed during the test
2025-10-24 13:20:29,849 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-10-24 13:20:29,849 - INFO - -------------------------------------------------------------------------------- 2025-10-24 13:20:30,497 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-65031030, ID : cf05b1f3-3173-4f66-94f7-387b6d194b8e