2025-10-24 17:11:33,782 - INFO - Domain Default found not creating 2025-10-24 17:11:33,958 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-58233776 not found, creating it 2025-10-24 17:11:34,457 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-58233776, ID : ecd4ed1d-f16d-4e38-a213-250d3558a474 2025-10-24 17:11:36,003 - INFO - ================================================================================ 2025-10-24 17:11:36,003 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-24 17:11:36,262 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.17': '0'}} with 2025-10-24 17:11:36,262 - INFO - Initial checks done. Running the testcase now 2025-10-24 17:11:36,262 - INFO - 2025-10-24 17:11:36,262 - INFO - ================================================================================ 2025-10-24 17:11:36,262 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-24 17:11:36,262 - 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 17:11:36,554 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.17': '0'}} with 2025-10-24 17:11:36,555 - INFO - Initial checks done. Running the testcase now 2025-10-24 17:11:36,555 - INFO - 2025-10-24 17:11:36,938 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-58233776:ctest-vn4-22754321, 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-58233776:ctest-vn4-22754321, 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-58233776:ctest-vn4-22754321, 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-58233776:ctest-vn4-22754321, 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 17:11:37,465 - DEBUG - Response for create_network : {'network': {'id': 'c7bb8ff0-4f7d-4160-8056-1bf90e86c1d3', 'name': 'ctest-vn4-22754321', 'tenant_id': 'ecd4ed1df16d4e38a213250d3558a474', 'project_id': 'ecd4ed1df16d4e38a213250d3558a474', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-58233776', 'ctest-vn4-22754321'], 'port_security_enabled': True, 'description': ''}} 2025-10-24 17:11:37,662 - DEBUG - Response for create_subnet : {'subnet': {'id': '0fa18a08-2e65-443d-b1d6-abb9153ecead', 'name': '', 'tenant_id': 'ecd4ed1df16d4e38a213250d3558a474', 'network_id': 'c7bb8ff0-4f7d-4160-8056-1bf90e86c1d3', 'ip_version': 4, 'cidr': '34.9.121.0/26', 'allocation_pools': [{'start': '34.9.121.2', 'end': '34.9.121.62'}], 'gateway_ip': '34.9.121.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '34.9.121.2', 'tags': [], 'project_id': 'ecd4ed1df16d4e38a213250d3558a474'}} 2025-10-24 17:11:37,834 - DEBUG - Response for create_subnet : {'subnet': {'id': '037be13d-b0c4-442e-9eb0-7bea34606949', 'name': '', 'tenant_id': 'ecd4ed1df16d4e38a213250d3558a474', 'network_id': 'c7bb8ff0-4f7d-4160-8056-1bf90e86c1d3', 'ip_version': 6, 'cidr': '252f:7972:a7b:c65e:34ab:2994::/96', 'allocation_pools': [{'start': '252f:7972:a7b:c65e:34ab:2994:0:2', 'end': '252f:7972:a7b:c65e:34ab:2994:ffff:fffe'}], 'gateway_ip': '252f:7972:a7b:c65e:34ab:2994:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '252f:7972:a7b:c65e:34ab:2994:0:2', 'tags': [], 'project_id': 'ecd4ed1df16d4e38a213250d3558a474'}} 2025-10-24 17:11:37,935 - INFO - Created VN ctest-vn4-22754321 2025-10-24 17:11:37,988 - DEBUG - VN ctest-vn4-22754321 UUID is c7bb8ff0-4f7d-4160-8056-1bf90e86c1d3 2025-10-24 17:11:38,224 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c7bb8ff0-4f7d-4160-8056-1bf90e86c1d3', 'name': 'ctest-vn4-22754321', 'tenant_id': 'ecd4ed1df16d4e38a213250d3558a474', 'project_id': 'ecd4ed1df16d4e38a213250d3558a474', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0fa18a08-2e65-443d-b1d6-abb9153ecead', '037be13d-b0c4-442e-9eb0-7bea34606949'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-58233776', 'ctest-vn4-22754321'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-58233776', 'ctest-policy1-28585726']], 'subnet_ipam': [{'subnet_cidr': '34.9.121.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '252f:7972:a7b:c65e:34ab:2994::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-24 17:11:38,388 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-10-24 17:11:38,683 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-10-24 17:11:38,713 - DEBUG - Requesting: http://10.0.0.249:8082/domain/772a02ec-55f7-4bf5-98a6-67943cfe9afd 2025-10-24 17:11:38,731 - DEBUG - Requesting: http://10.0.0.249:8082/project/ecd4ed1d-f16d-4e38-a213-250d3558a474 2025-10-24 17:11:38,809 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/c7bb8ff0-4f7d-4160-8056-1bf90e86c1d3 2025-10-24 17:11:38,823 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/c7bb8ff0-4f7d-4160-8056-1bf90e86c1d3 2025-10-24 17:11:38,833 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/265f94bf-7e0e-428c-955c-2d5b59654708 2025-10-24 17:11:38,841 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/265f94bf-7e0e-428c-955c-2d5b59654708 2025-10-24 17:11:38,848 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/597c131a-f79d-49f5-9bea-1ec0e917e2aa 2025-10-24 17:11:38,855 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-24 17:11:38,855 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/c7bb8ff0-4f7d-4160-8056-1bf90e86c1d3 2025-10-24 17:11:38,865 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/265f94bf-7e0e-428c-955c-2d5b59654708 2025-10-24 17:11:38,879 - INFO - Verified VN network id 11 for VN c7bb8ff0-4f7d-4160-8056-1bf90e86c1d3 2025-10-24 17:11:38,879 - INFO - Verifications in API Server for VN ctest-vn4-22754321 passed 2025-10-24 17:11:38,879 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/c7bb8ff0-4f7d-4160-8056-1bf90e86c1d3 2025-10-24 17:11:38,893 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/265f94bf-7e0e-428c-955c-2d5b59654708 2025-10-24 17:11:38,901 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/265f94bf-7e0e-428c-955c-2d5b59654708 2025-10-24 17:11:38,910 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/597c131a-f79d-49f5-9bea-1ec0e917e2aa 2025-10-24 17:11:38,925 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-58233776:ctest-vn4-22754321', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-58233776', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14392255296481083744', 'uuid-lslong': '9247609641356411347'}, 'enable': 'true', 'created': '2025-10-24T17:11:37', 'last-modified': '2025-10-24T17:11:38', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.738050'} 2025-10-24 17:11:38,937 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-24 17:11:38,937 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-22754321 passed 2025-10-24 17:11:38,937 - DEBUG - ====Verifying policy data for ctest-vn4-22754321 in API_Server ====== 2025-10-24 17:11:38,937 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-10-24 17:11:38,943 - DEBUG - Requesting: http://10.0.0.249:8082/domain/772a02ec-55f7-4bf5-98a6-67943cfe9afd 2025-10-24 17:11:38,954 - DEBUG - Requesting: http://10.0.0.249:8082/project/ecd4ed1d-f16d-4e38-a213-250d3558a474 2025-10-24 17:11:39,035 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/c7bb8ff0-4f7d-4160-8056-1bf90e86c1d3 2025-10-24 17:11:39,048 - DEBUG - ==>Verifying data for policy with id: 89442f1a-93b3-4527-b0a2-807a03a69122, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-58233776', 'ctest-policy1-28585726'] 2025-10-24 17:11:39,048 - INFO - VN ctest-vn4-22754321 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-24 17:11:39,048 - DEBUG - Verifying the vn in opserver 2025-10-24 17:11:39,048 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-58233776:ctest-vn4-22754321 virtual network link through opserver 10.0.0.249 2025-10-24 17:11:39,049 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2025-10-24 17:11:39,347 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2025-10-24 17:11:39,414 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-58233776:ctest-vn4-22754321', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-58233776:ctest-vn4-22754321?flat'} 2025-10-24 17:11:39,414 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-58233776:ctest-vn4-22754321 is found in opserver 2025-10-24 17:11:39,426 - DEBUG - Do not have enough data to verify VN in agent 2025-10-24 17:11:39,431 - DEBUG - VRF ids for VN ctest-vn4-22754321: {} 2025-10-24 17:11:39,431 - DEBUG - ====Verifying data for ctest-policy1-28585726 in API_Server ====== 2025-10-24 17:11:39,432 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-10-24 17:11:39,437 - DEBUG - Requesting: http://10.0.0.249:8082/domain/772a02ec-55f7-4bf5-98a6-67943cfe9afd 2025-10-24 17:11:39,448 - DEBUG - Requesting: http://10.0.0.249:8082/project/ecd4ed1d-f16d-4e38-a213-250d3558a474 2025-10-24 17:11:39,524 - DEBUG - Requesting: http://10.0.0.249:8082/network-policy/89442f1a-93b3-4527-b0a2-807a03a69122 2025-10-24 17:11:39,534 - INFO - Verified policy ctest-policy1-28585726 in API Server, Result: True 2025-10-24 17:11:39,535 - INFO - Done with setup and verification, moving onto test .. 2025-10-24 17:11:39,543 - INFO - Deleting VN ctest-vn4-22754321 2025-10-24 17:11:39,685 - DEBUG - Response for deleting network () 2025-10-24 17:11:39,685 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/265f94bf-7e0e-428c-955c-2d5b59654708 2025-10-24 17:11:39,691 - DEBUG - Response Code: 404 2025-10-24 17:11:39,691 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-10-24 17:11:39,697 - DEBUG - Requesting: http://10.0.0.249:8082/domain/772a02ec-55f7-4bf5-98a6-67943cfe9afd 2025-10-24 17:11:39,753 - DEBUG - Requesting: http://10.0.0.249:8082/project/ecd4ed1d-f16d-4e38-a213-250d3558a474 2025-10-24 17:11:39,834 - INFO - Validated that VN ctest-vn4-22754321 is not found in API Server 2025-10-24 17:11:39,846 - DEBUG - VN ctest-vn4-22754321 is not present in Agent 10.0.0.249 2025-10-24 17:11:39,846 - INFO - Validated that VN ctest-vn4-22754321 is not in any agent 2025-10-24 17:11:39,866 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-22754321 info 2025-10-24 17:11:39,893 - INFO - Deleted policy ctest-policy1-28585726 2025-10-24 17:11:40,092 - DEBUG - policy ctest-policy1-28585726 is not found in API Server 2025-10-24 17:11:40,346 - DEBUG - No XMPP flaps were noticed during the test