2025-10-29 14:42:11,492 - INFO - Domain Default found not creating 2025-10-29 14:42:11,652 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-86756190 not found, creating it 2025-10-29 14:42:12,094 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-86756190, ID : 12f8f988-7aee-4f97-8e3a-35fdda0ff4b9 2025-10-29 14:42:13,680 - INFO - ================================================================================ 2025-10-29 14:42:13,680 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-29 14:42:13,936 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.129': '0'}} with 2025-10-29 14:42:13,936 - INFO - Initial checks done. Running the testcase now 2025-10-29 14:42:13,936 - INFO - 2025-10-29 14:42:13,936 - INFO - ================================================================================ 2025-10-29 14:42:13,936 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-29 14:42:13,936 - 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-29 14:42:14,230 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.129': '0'}} with 2025-10-29 14:42:14,230 - INFO - Initial checks done. Running the testcase now 2025-10-29 14:42:14,231 - INFO - 2025-10-29 14:42:14,622 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-86756190:ctest-vn4-86887834, 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-86756190:ctest-vn4-86887834, 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-86756190:ctest-vn4-86887834, 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-86756190:ctest-vn4-86887834, 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-29 14:42:15,146 - DEBUG - Response for create_network : {'network': {'id': 'f73abc5f-64f4-4a38-a8d3-a2341b172ce7', 'name': 'ctest-vn4-86887834', 'tenant_id': '12f8f9887aee4f978e3a35fdda0ff4b9', 'project_id': '12f8f9887aee4f978e3a35fdda0ff4b9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-86756190', 'ctest-vn4-86887834'], 'port_security_enabled': True, 'description': ''}} 2025-10-29 14:42:15,313 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b9a6c057-e702-4b36-b1ad-c02331ff5207', 'name': '', 'tenant_id': '12f8f9887aee4f978e3a35fdda0ff4b9', 'network_id': 'f73abc5f-64f4-4a38-a8d3-a2341b172ce7', 'ip_version': 4, 'cidr': '35.154.131.64/26', 'allocation_pools': [{'start': '35.154.131.66', 'end': '35.154.131.126'}], 'gateway_ip': '35.154.131.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '35.154.131.66', 'tags': [], 'project_id': '12f8f9887aee4f978e3a35fdda0ff4b9'}} 2025-10-29 14:42:15,490 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a4e18226-5341-404d-9723-a65fb2e6c474', 'name': '', 'tenant_id': '12f8f9887aee4f978e3a35fdda0ff4b9', 'network_id': 'f73abc5f-64f4-4a38-a8d3-a2341b172ce7', 'ip_version': 6, 'cidr': '3e84:1fd7:fa92:5e74:321b:42f::/96', 'allocation_pools': [{'start': '3e84:1fd7:fa92:5e74:321b:42f:0:2', 'end': '3e84:1fd7:fa92:5e74:321b:42f:ffff:fffe'}], 'gateway_ip': '3e84:1fd7:fa92:5e74:321b:42f:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3e84:1fd7:fa92:5e74:321b:42f:0:2', 'tags': [], 'project_id': '12f8f9887aee4f978e3a35fdda0ff4b9'}} 2025-10-29 14:42:15,511 - INFO - Created VN ctest-vn4-86887834 2025-10-29 14:42:15,562 - DEBUG - VN ctest-vn4-86887834 UUID is f73abc5f-64f4-4a38-a8d3-a2341b172ce7 2025-10-29 14:42:15,759 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f73abc5f-64f4-4a38-a8d3-a2341b172ce7', 'name': 'ctest-vn4-86887834', 'tenant_id': '12f8f9887aee4f978e3a35fdda0ff4b9', 'project_id': '12f8f9887aee4f978e3a35fdda0ff4b9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b9a6c057-e702-4b36-b1ad-c02331ff5207', 'a4e18226-5341-404d-9723-a65fb2e6c474'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-86756190', 'ctest-vn4-86887834'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-86756190', 'ctest-policy1-52781377']], 'subnet_ipam': [{'subnet_cidr': '35.154.131.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3e84:1fd7:fa92:5e74:321b:42f::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-29 14:42:15,918 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-10-29 14:42:16,251 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-10-29 14:42:16,279 - DEBUG - Requesting: http://10.0.0.33:8082/domain/1ba524dc-f32c-4c6c-b739-f1f9172404bc 2025-10-29 14:42:16,291 - DEBUG - Requesting: http://10.0.0.33:8082/project/12f8f988-7aee-4f97-8e3a-35fdda0ff4b9 2025-10-29 14:42:16,367 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/f73abc5f-64f4-4a38-a8d3-a2341b172ce7 2025-10-29 14:42:16,380 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/f73abc5f-64f4-4a38-a8d3-a2341b172ce7 2025-10-29 14:42:16,391 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/a985b2fb-a36c-4699-93e8-d6d5249d6ad9 2025-10-29 14:42:16,399 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/a985b2fb-a36c-4699-93e8-d6d5249d6ad9 2025-10-29 14:42:16,407 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/dc754cc5-696d-4e9f-a016-a6319c010cfa 2025-10-29 14:42:16,413 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-29 14:42:16,414 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/f73abc5f-64f4-4a38-a8d3-a2341b172ce7 2025-10-29 14:42:16,425 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/a985b2fb-a36c-4699-93e8-d6d5249d6ad9 2025-10-29 14:42:16,439 - INFO - Verified VN network id 11 for VN f73abc5f-64f4-4a38-a8d3-a2341b172ce7 2025-10-29 14:42:16,439 - INFO - Verifications in API Server for VN ctest-vn4-86887834 passed 2025-10-29 14:42:16,439 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/f73abc5f-64f4-4a38-a8d3-a2341b172ce7 2025-10-29 14:42:16,449 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/a985b2fb-a36c-4699-93e8-d6d5249d6ad9 2025-10-29 14:42:16,455 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/a985b2fb-a36c-4699-93e8-d6d5249d6ad9 2025-10-29 14:42:16,462 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/dc754cc5-696d-4e9f-a016-a6319c010cfa 2025-10-29 14:42:16,473 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-86756190:ctest-vn4-86887834', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-86756190', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17814758393919064632', 'uuid-lslong': '12165245363134344423'}, 'enable': 'true', 'created': '2025-10-29T14:42:15', 'last-modified': '2025-10-29T14:42:15', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.740228'} 2025-10-29 14:42:16,480 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-29 14:42:16,480 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-86887834 passed 2025-10-29 14:42:16,480 - DEBUG - ====Verifying policy data for ctest-vn4-86887834 in API_Server ====== 2025-10-29 14:42:16,480 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-10-29 14:42:16,486 - DEBUG - Requesting: http://10.0.0.33:8082/domain/1ba524dc-f32c-4c6c-b739-f1f9172404bc 2025-10-29 14:42:16,497 - DEBUG - Requesting: http://10.0.0.33:8082/project/12f8f988-7aee-4f97-8e3a-35fdda0ff4b9 2025-10-29 14:42:16,568 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/f73abc5f-64f4-4a38-a8d3-a2341b172ce7 2025-10-29 14:42:16,578 - DEBUG - ==>Verifying data for policy with id: e519612f-14fe-4e95-8737-e6a0200c0280, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-86756190', 'ctest-policy1-52781377'] 2025-10-29 14:42:16,578 - INFO - VN ctest-vn4-86887834 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-29 14:42:16,578 - DEBUG - Verifying the vn in opserver 2025-10-29 14:42:16,578 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-86756190:ctest-vn4-86887834 virtual network link through opserver 10.0.0.33 2025-10-29 14:42:16,578 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-10-29 14:42:16,909 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-10-29 14:42:16,968 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-86756190:ctest-vn4-86887834', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-86756190:ctest-vn4-86887834?flat'} 2025-10-29 14:42:16,968 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-86756190:ctest-vn4-86887834 is found in opserver 2025-10-29 14:42:16,977 - DEBUG - Do not have enough data to verify VN in agent 2025-10-29 14:42:16,982 - DEBUG - VRF ids for VN ctest-vn4-86887834: {} 2025-10-29 14:42:16,983 - DEBUG - ====Verifying data for ctest-policy1-52781377 in API_Server ====== 2025-10-29 14:42:16,983 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-10-29 14:42:16,988 - DEBUG - Requesting: http://10.0.0.33:8082/domain/1ba524dc-f32c-4c6c-b739-f1f9172404bc 2025-10-29 14:42:17,000 - DEBUG - Requesting: http://10.0.0.33:8082/project/12f8f988-7aee-4f97-8e3a-35fdda0ff4b9 2025-10-29 14:42:17,072 - DEBUG - Requesting: http://10.0.0.33:8082/network-policy/e519612f-14fe-4e95-8737-e6a0200c0280 2025-10-29 14:42:17,081 - INFO - Verified policy ctest-policy1-52781377 in API Server, Result: True 2025-10-29 14:42:17,081 - INFO - Done with setup and verification, moving onto test .. 2025-10-29 14:42:17,089 - INFO - Deleting VN ctest-vn4-86887834 2025-10-29 14:42:17,223 - DEBUG - Response for deleting network () 2025-10-29 14:42:17,224 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/a985b2fb-a36c-4699-93e8-d6d5249d6ad9 2025-10-29 14:42:17,229 - DEBUG - Response Code: 404 2025-10-29 14:42:17,229 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-10-29 14:42:17,234 - DEBUG - Requesting: http://10.0.0.33:8082/domain/1ba524dc-f32c-4c6c-b739-f1f9172404bc 2025-10-29 14:42:17,288 - DEBUG - Requesting: http://10.0.0.33:8082/project/12f8f988-7aee-4f97-8e3a-35fdda0ff4b9 2025-10-29 14:42:17,365 - INFO - Validated that VN ctest-vn4-86887834 is not found in API Server 2025-10-29 14:42:17,376 - DEBUG - VN ctest-vn4-86887834 is not present in Agent 10.0.0.33 2025-10-29 14:42:17,376 - INFO - Validated that VN ctest-vn4-86887834 is not in any agent 2025-10-29 14:42:17,390 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-86887834 info 2025-10-29 14:42:17,414 - INFO - Deleted policy ctest-policy1-52781377 2025-10-29 14:42:17,582 - DEBUG - policy ctest-policy1-52781377 is not found in API Server 2025-10-29 14:42:17,850 - DEBUG - No XMPP flaps were noticed during the test 2025-10-29 14:42:17,850 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-10-29 14:42:17,851 - INFO - -------------------------------------------------------------------------------- 2025-10-29 14:42:18,146 - DEBUG - No XMPP flaps were noticed during the test 2025-10-29 14:42:18,146 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2025-10-29 14:42:18,146 - INFO - -------------------------------------------------------------------------------- 2025-10-29 14:42:18,947 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-86756190, ID : 12f8f988-7aee-4f97-8e3a-35fdda0ff4b9