2025-11-10 02:00:50,964 - INFO - Domain Default found not creating 2025-11-10 02:00:51,161 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-91286133 not found, creating it 2025-11-10 02:00:51,679 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-91286133, ID : 12b98d83-5ce0-4d9a-9ff5-b7f71586f9b1 2025-11-10 02:00:53,187 - INFO - ================================================================================ 2025-11-10 02:00:53,187 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-10 02:00:53,441 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.192': '0'}} with 2025-11-10 02:00:53,442 - INFO - Initial checks done. Running the testcase now 2025-11-10 02:00:53,442 - INFO - 2025-11-10 02:00:53,442 - INFO - ================================================================================ 2025-11-10 02:00:53,442 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-10 02:00:53,442 - 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-11-10 02:00:53,736 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.192': '0'}} with 2025-11-10 02:00:53,736 - INFO - Initial checks done. Running the testcase now 2025-11-10 02:00:53,736 - INFO - 2025-11-10 02:00:54,093 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-91286133:ctest-vn4-38298297, 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-91286133:ctest-vn4-38298297, 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-91286133:ctest-vn4-38298297, 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-91286133:ctest-vn4-38298297, 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-11-10 02:00:54,616 - DEBUG - Response for create_network : {'network': {'id': '2e0c5006-4b9c-49c5-ab73-5ba5db342597', 'name': 'ctest-vn4-38298297', 'tenant_id': '12b98d835ce04d9a9ff5b7f71586f9b1', 'project_id': '12b98d835ce04d9a9ff5b7f71586f9b1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-91286133', 'ctest-vn4-38298297'], 'port_security_enabled': True, 'description': ''}} 2025-11-10 02:00:54,824 - DEBUG - Response for create_subnet : {'subnet': {'id': '15eb5100-ff34-42d3-af62-019aec7ffb3c', 'name': '', 'tenant_id': '12b98d835ce04d9a9ff5b7f71586f9b1', 'network_id': '2e0c5006-4b9c-49c5-ab73-5ba5db342597', 'ip_version': 4, 'cidr': '3.82.4.64/26', 'allocation_pools': [{'start': '3.82.4.66', 'end': '3.82.4.126'}], 'gateway_ip': '3.82.4.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3.82.4.66', 'tags': [], 'project_id': '12b98d835ce04d9a9ff5b7f71586f9b1'}} 2025-11-10 02:00:55,011 - DEBUG - Response for create_subnet : {'subnet': {'id': '9a87faea-4466-4969-a9d2-fa2824785f15', 'name': '', 'tenant_id': '12b98d835ce04d9a9ff5b7f71586f9b1', 'network_id': '2e0c5006-4b9c-49c5-ab73-5ba5db342597', 'ip_version': 6, 'cidr': '32c4:c2ff:ab51:1c6d:2f90:f93f::/96', 'allocation_pools': [{'start': '32c4:c2ff:ab51:1c6d:2f90:f93f:0:2', 'end': '32c4:c2ff:ab51:1c6d:2f90:f93f:ffff:fffe'}], 'gateway_ip': '32c4:c2ff:ab51:1c6d:2f90:f93f:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '32c4:c2ff:ab51:1c6d:2f90:f93f:0:2', 'tags': [], 'project_id': '12b98d835ce04d9a9ff5b7f71586f9b1'}} 2025-11-10 02:00:55,035 - INFO - Created VN ctest-vn4-38298297 2025-11-10 02:00:55,087 - DEBUG - VN ctest-vn4-38298297 UUID is 2e0c5006-4b9c-49c5-ab73-5ba5db342597 2025-11-10 02:00:55,327 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2e0c5006-4b9c-49c5-ab73-5ba5db342597', 'name': 'ctest-vn4-38298297', 'tenant_id': '12b98d835ce04d9a9ff5b7f71586f9b1', 'project_id': '12b98d835ce04d9a9ff5b7f71586f9b1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['15eb5100-ff34-42d3-af62-019aec7ffb3c', '9a87faea-4466-4969-a9d2-fa2824785f15'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-91286133', 'ctest-vn4-38298297'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-91286133', 'ctest-policy1-91009508']], 'subnet_ipam': [{'subnet_cidr': '3.82.4.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '32c4:c2ff:ab51:1c6d:2f90:f93f::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-11-10 02:00:55,492 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-11-10 02:00:55,797 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-11-10 02:00:55,825 - DEBUG - Requesting: http://10.0.0.27:8082/domain/1f84de75-c6ff-42e3-bab3-332c35fea5e6 2025-11-10 02:00:55,838 - DEBUG - Requesting: http://10.0.0.27:8082/project/12b98d83-5ce0-4d9a-9ff5-b7f71586f9b1 2025-11-10 02:00:55,913 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/2e0c5006-4b9c-49c5-ab73-5ba5db342597 2025-11-10 02:00:55,925 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/2e0c5006-4b9c-49c5-ab73-5ba5db342597 2025-11-10 02:00:55,937 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/253a5ced-35c0-4be5-b288-6d8866ebfd49 2025-11-10 02:00:55,944 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/253a5ced-35c0-4be5-b288-6d8866ebfd49 2025-11-10 02:00:55,952 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/7aea8352-4249-47d3-8b59-926ab88f7b00 2025-11-10 02:00:55,959 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-10 02:00:55,959 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/2e0c5006-4b9c-49c5-ab73-5ba5db342597 2025-11-10 02:00:55,969 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/253a5ced-35c0-4be5-b288-6d8866ebfd49 2025-11-10 02:00:55,985 - INFO - Verified VN network id 11 for VN 2e0c5006-4b9c-49c5-ab73-5ba5db342597 2025-11-10 02:00:55,985 - INFO - Verifications in API Server for VN ctest-vn4-38298297 passed 2025-11-10 02:00:55,986 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/2e0c5006-4b9c-49c5-ab73-5ba5db342597 2025-11-10 02:00:55,995 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/253a5ced-35c0-4be5-b288-6d8866ebfd49 2025-11-10 02:00:56,002 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/253a5ced-35c0-4be5-b288-6d8866ebfd49 2025-11-10 02:00:56,009 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/7aea8352-4249-47d3-8b59-926ab88f7b00 2025-11-10 02:00:56,021 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-91286133:ctest-vn4-38298297', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-91286133', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3318115013433772485', 'uuid-lslong': '12354318970712761751'}, 'enable': 'true', 'created': '2025-11-10T02:00:54', 'last-modified': '2025-11-10T02:00:55', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.722665'} 2025-11-10 02:00:56,026 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-10 02:00:56,027 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-38298297 passed 2025-11-10 02:00:56,027 - DEBUG - ====Verifying policy data for ctest-vn4-38298297 in API_Server ====== 2025-11-10 02:00:56,027 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-11-10 02:00:56,034 - DEBUG - Requesting: http://10.0.0.27:8082/domain/1f84de75-c6ff-42e3-bab3-332c35fea5e6 2025-11-10 02:00:56,045 - DEBUG - Requesting: http://10.0.0.27:8082/project/12b98d83-5ce0-4d9a-9ff5-b7f71586f9b1 2025-11-10 02:00:56,126 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/2e0c5006-4b9c-49c5-ab73-5ba5db342597 2025-11-10 02:00:56,137 - DEBUG - ==>Verifying data for policy with id: 07773da5-c88d-4c88-bfe8-eb09d1e4ef2f, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-91286133', 'ctest-policy1-91009508'] 2025-11-10 02:00:56,137 - INFO - VN ctest-vn4-38298297 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-10 02:00:56,137 - DEBUG - Verifying the vn in opserver 2025-11-10 02:00:56,137 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-91286133:ctest-vn4-38298297 virtual network link through opserver 10.0.0.27 2025-11-10 02:00:56,137 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2025-11-10 02:00:56,436 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2025-11-10 02:00:56,498 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-91286133:ctest-vn4-38298297', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-91286133:ctest-vn4-38298297?flat'} 2025-11-10 02:00:56,498 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-91286133:ctest-vn4-38298297 is found in opserver 2025-11-10 02:00:56,508 - DEBUG - Do not have enough data to verify VN in agent 2025-11-10 02:00:56,514 - DEBUG - VRF ids for VN ctest-vn4-38298297: {} 2025-11-10 02:00:56,514 - DEBUG - ====Verifying data for ctest-policy1-91009508 in API_Server ====== 2025-11-10 02:00:56,515 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-11-10 02:00:56,521 - DEBUG - Requesting: http://10.0.0.27:8082/domain/1f84de75-c6ff-42e3-bab3-332c35fea5e6 2025-11-10 02:00:56,532 - DEBUG - Requesting: http://10.0.0.27:8082/project/12b98d83-5ce0-4d9a-9ff5-b7f71586f9b1 2025-11-10 02:00:56,601 - DEBUG - Requesting: http://10.0.0.27:8082/network-policy/07773da5-c88d-4c88-bfe8-eb09d1e4ef2f 2025-11-10 02:00:56,611 - INFO - Verified policy ctest-policy1-91009508 in API Server, Result: True 2025-11-10 02:00:56,611 - INFO - Done with setup and verification, moving onto test .. 2025-11-10 02:00:56,621 - INFO - Deleting VN ctest-vn4-38298297 2025-11-10 02:00:56,764 - DEBUG - Response for deleting network () 2025-11-10 02:00:56,764 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/253a5ced-35c0-4be5-b288-6d8866ebfd49 2025-11-10 02:00:56,770 - DEBUG - Response Code: 404 2025-11-10 02:00:56,770 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-11-10 02:00:56,777 - DEBUG - Requesting: http://10.0.0.27:8082/domain/1f84de75-c6ff-42e3-bab3-332c35fea5e6 2025-11-10 02:00:56,830 - DEBUG - Requesting: http://10.0.0.27:8082/project/12b98d83-5ce0-4d9a-9ff5-b7f71586f9b1 2025-11-10 02:00:56,910 - INFO - Validated that VN ctest-vn4-38298297 is not found in API Server 2025-11-10 02:00:56,927 - DEBUG - VN ctest-vn4-38298297 is not present in Agent 10.0.0.27 2025-11-10 02:00:56,927 - INFO - Validated that VN ctest-vn4-38298297 is not in any agent 2025-11-10 02:00:56,951 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-38298297 info 2025-11-10 02:00:56,978 - INFO - Deleted policy ctest-policy1-91009508 2025-11-10 02:00:57,155 - DEBUG - policy ctest-policy1-91009508 is not found in API Server 2025-11-10 02:00:57,420 - DEBUG - No XMPP flaps were noticed during the test
2025-11-10 02:00:57,420 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-11-10 02:00:57,420 - INFO - -------------------------------------------------------------------------------- 2025-11-10 02:00:57,712 - DEBUG - No XMPP flaps were noticed during the test
2025-11-10 02:00:57,712 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-11-10 02:00:57,712 - INFO - -------------------------------------------------------------------------------- 2025-11-10 02:00:58,402 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-91286133, ID : 12b98d83-5ce0-4d9a-9ff5-b7f71586f9b1