2025-12-10 02:29:25,935 - INFO - Domain Default found not creating 2025-12-10 02:29:26,245 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-69819700 not found, creating it 2025-12-10 02:29:27,016 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-69819700, ID : 015da683-8628-4e38-b04b-df012315eb9d 2025-12-10 02:29:28,789 - INFO - ================================================================================ 2025-12-10 02:29:28,789 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-12-10 02:29:29,052 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.14': '0'}} with 2025-12-10 02:29:29,052 - INFO - Initial checks done. Running the testcase now 2025-12-10 02:29:29,052 - INFO - 2025-12-10 02:29:29,052 - INFO - ================================================================================ 2025-12-10 02:29:29,052 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-12-10 02:29:29,052 - 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-12-10 02:29:29,338 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.14': '0'}} with 2025-12-10 02:29:29,338 - INFO - Initial checks done. Running the testcase now 2025-12-10 02:29:29,338 - INFO - 2025-12-10 02:29:29,777 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-69819700:ctest-vn4-05062937, 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-69819700:ctest-vn4-05062937, 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-69819700:ctest-vn4-05062937, 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-69819700:ctest-vn4-05062937, 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-12-10 02:29:30,336 - DEBUG - Response for create_network : {'network': {'id': '6c5b2a1e-1633-4643-9e32-e57920651235', 'name': 'ctest-vn4-05062937', 'tenant_id': '015da68386284e38b04bdf012315eb9d', 'project_id': '015da68386284e38b04bdf012315eb9d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-69819700', 'ctest-vn4-05062937'], 'port_security_enabled': True, 'description': ''}} 2025-12-10 02:29:30,537 - DEBUG - Response for create_subnet : {'subnet': {'id': '868391c4-f2d1-4c2d-bef3-6e8b145dd683', 'name': '', 'tenant_id': '015da68386284e38b04bdf012315eb9d', 'network_id': '6c5b2a1e-1633-4643-9e32-e57920651235', 'ip_version': 4, 'cidr': '215.47.179.0/26', 'allocation_pools': [{'start': '215.47.179.2', 'end': '215.47.179.62'}], 'gateway_ip': '215.47.179.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '215.47.179.2', 'tags': [], 'project_id': '015da68386284e38b04bdf012315eb9d'}} 2025-12-10 02:29:30,706 - DEBUG - Response for create_subnet : {'subnet': {'id': '6f73f823-db15-4d48-b876-40ce39cb1c31', 'name': '', 'tenant_id': '015da68386284e38b04bdf012315eb9d', 'network_id': '6c5b2a1e-1633-4643-9e32-e57920651235', 'ip_version': 6, 'cidr': '2b5a:7401:c354:e3e8:1bda:bab2::/96', 'allocation_pools': [{'start': '2b5a:7401:c354:e3e8:1bda:bab2:0:2', 'end': '2b5a:7401:c354:e3e8:1bda:bab2:ffff:fffe'}], 'gateway_ip': '2b5a:7401:c354:e3e8:1bda:bab2:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2b5a:7401:c354:e3e8:1bda:bab2:0:2', 'tags': [], 'project_id': '015da68386284e38b04bdf012315eb9d'}} 2025-12-10 02:29:30,728 - INFO - Created VN ctest-vn4-05062937 2025-12-10 02:29:30,780 - DEBUG - VN ctest-vn4-05062937 UUID is 6c5b2a1e-1633-4643-9e32-e57920651235 2025-12-10 02:29:31,005 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6c5b2a1e-1633-4643-9e32-e57920651235', 'name': 'ctest-vn4-05062937', 'tenant_id': '015da68386284e38b04bdf012315eb9d', 'project_id': '015da68386284e38b04bdf012315eb9d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['868391c4-f2d1-4c2d-bef3-6e8b145dd683', '6f73f823-db15-4d48-b876-40ce39cb1c31'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-69819700', 'ctest-vn4-05062937'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-69819700', 'ctest-policy1-33971980']], 'subnet_ipam': [{'subnet_cidr': '215.47.179.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2b5a:7401:c354:e3e8:1bda:bab2::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-12-10 02:29:31,172 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-12-10 02:29:31,517 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-12-10 02:29:31,550 - DEBUG - Requesting: http://10.0.0.38:8082/domain/d5d15235-639a-4924-9336-4603fa5d0c32 2025-12-10 02:29:31,564 - DEBUG - Requesting: http://10.0.0.38:8082/project/015da683-8628-4e38-b04b-df012315eb9d 2025-12-10 02:29:31,642 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/6c5b2a1e-1633-4643-9e32-e57920651235 2025-12-10 02:29:31,657 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/6c5b2a1e-1633-4643-9e32-e57920651235 2025-12-10 02:29:31,669 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3a2a294c-8530-41d3-81ee-f8f45200697e 2025-12-10 02:29:31,677 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3a2a294c-8530-41d3-81ee-f8f45200697e 2025-12-10 02:29:31,685 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/8a4e0d4f-80bc-42a1-b449-6e2073ca062a 2025-12-10 02:29:31,692 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-10 02:29:31,692 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/6c5b2a1e-1633-4643-9e32-e57920651235 2025-12-10 02:29:31,704 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3a2a294c-8530-41d3-81ee-f8f45200697e 2025-12-10 02:29:31,721 - INFO - Verified VN network id 12 for VN 6c5b2a1e-1633-4643-9e32-e57920651235 2025-12-10 02:29:31,721 - INFO - Verifications in API Server for VN ctest-vn4-05062937 passed 2025-12-10 02:29:31,721 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/6c5b2a1e-1633-4643-9e32-e57920651235 2025-12-10 02:29:31,734 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3a2a294c-8530-41d3-81ee-f8f45200697e 2025-12-10 02:29:31,741 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3a2a294c-8530-41d3-81ee-f8f45200697e 2025-12-10 02:29:31,748 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/8a4e0d4f-80bc-42a1-b449-6e2073ca062a 2025-12-10 02:29:31,759 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-69819700:ctest-vn4-05062937', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-69819700', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7807880687686731331', 'uuid-lslong': '11399425915225444917'}, 'enable': 'true', 'created': '2025-12-10T02:29:30', 'last-modified': '2025-12-10T02:29:30', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.786354'} 2025-12-10 02:29:31,765 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-10 02:29:31,765 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-05062937 passed 2025-12-10 02:29:31,765 - DEBUG - ====Verifying policy data for ctest-vn4-05062937 in API_Server ====== 2025-12-10 02:29:31,765 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-12-10 02:29:31,770 - DEBUG - Requesting: http://10.0.0.38:8082/domain/d5d15235-639a-4924-9336-4603fa5d0c32 2025-12-10 02:29:31,780 - DEBUG - Requesting: http://10.0.0.38:8082/project/015da683-8628-4e38-b04b-df012315eb9d 2025-12-10 02:29:31,854 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/6c5b2a1e-1633-4643-9e32-e57920651235 2025-12-10 02:29:31,869 - DEBUG - ==>Verifying data for policy with id: 7fa0db72-b128-4454-ba2c-3908bb78692a, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-69819700', 'ctest-policy1-33971980'] 2025-12-10 02:29:31,869 - INFO - VN ctest-vn4-05062937 Policy verification: verify_vn_policy_in_api_server, status: True 2025-12-10 02:29:31,869 - DEBUG - Verifying the vn in opserver 2025-12-10 02:29:31,869 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-69819700:ctest-vn4-05062937 virtual network link through opserver 10.0.0.38 2025-12-10 02:29:31,869 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-12-10 02:29:32,216 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-12-10 02:29:32,286 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-69819700:ctest-vn4-05062937', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-69819700:ctest-vn4-05062937?flat'} 2025-12-10 02:29:32,286 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-69819700:ctest-vn4-05062937 is found in opserver 2025-12-10 02:29:32,306 - DEBUG - Do not have enough data to verify VN in agent 2025-12-10 02:29:32,311 - DEBUG - VRF ids for VN ctest-vn4-05062937: {} 2025-12-10 02:29:32,312 - DEBUG - ====Verifying data for ctest-policy1-33971980 in API_Server ====== 2025-12-10 02:29:32,312 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-12-10 02:29:32,318 - DEBUG - Requesting: http://10.0.0.38:8082/domain/d5d15235-639a-4924-9336-4603fa5d0c32 2025-12-10 02:29:32,333 - DEBUG - Requesting: http://10.0.0.38:8082/project/015da683-8628-4e38-b04b-df012315eb9d 2025-12-10 02:29:32,409 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/7fa0db72-b128-4454-ba2c-3908bb78692a 2025-12-10 02:29:32,422 - INFO - Verified policy ctest-policy1-33971980 in API Server, Result: True 2025-12-10 02:29:32,422 - INFO - Done with setup and verification, moving onto test .. 2025-12-10 02:29:32,431 - INFO - Deleting VN ctest-vn4-05062937 2025-12-10 02:29:32,571 - DEBUG - Response for deleting network () 2025-12-10 02:29:32,571 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3a2a294c-8530-41d3-81ee-f8f45200697e 2025-12-10 02:29:32,576 - DEBUG - Response Code: 404 2025-12-10 02:29:32,576 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-12-10 02:29:32,581 - DEBUG - Requesting: http://10.0.0.38:8082/domain/d5d15235-639a-4924-9336-4603fa5d0c32 2025-12-10 02:29:32,637 - DEBUG - Requesting: http://10.0.0.38:8082/project/015da683-8628-4e38-b04b-df012315eb9d 2025-12-10 02:29:32,720 - INFO - Validated that VN ctest-vn4-05062937 is not found in API Server 2025-12-10 02:29:32,731 - DEBUG - VN ctest-vn4-05062937 is not present in Agent 10.0.0.38 2025-12-10 02:29:32,731 - INFO - Validated that VN ctest-vn4-05062937 is not in any agent 2025-12-10 02:29:32,749 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-05062937 info 2025-12-10 02:29:32,787 - INFO - Deleted policy ctest-policy1-33971980 2025-12-10 02:29:32,968 - DEBUG - policy ctest-policy1-33971980 is not found in API Server 2025-12-10 02:29:33,230 - DEBUG - No XMPP flaps were noticed during the test 2025-12-10 02:29:33,230 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-12-10 02:29:33,230 - INFO - -------------------------------------------------------------------------------- 2025-12-10 02:29:33,522 - DEBUG - No XMPP flaps were noticed during the test 2025-12-10 02:29:33,522 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2025-12-10 02:29:33,523 - INFO - -------------------------------------------------------------------------------- 2025-12-10 02:29:34,321 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-69819700, ID : 015da683-8628-4e38-b04b-df012315eb9d