2025-12-04 16:44:17,194 - INFO - Domain Default found not creating 2025-12-04 16:44:17,403 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-92842577 not found, creating it 2025-12-04 16:44:17,860 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-92842577, ID : 15ae6271-aaf0-45c5-a9f1-adf91f4e6b0b 2025-12-04 16:44:19,478 - INFO - ================================================================================ 2025-12-04 16:44:19,478 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-12-04 16:44:19,745 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with 2025-12-04 16:44:19,745 - INFO - Initial checks done. Running the testcase now 2025-12-04 16:44:19,745 - INFO - 2025-12-04 16:44:19,745 - INFO - ================================================================================ 2025-12-04 16:44:19,745 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-12-04 16:44:19,745 - 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-04 16:44:20,036 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with 2025-12-04 16:44:20,036 - INFO - Initial checks done. Running the testcase now 2025-12-04 16:44:20,036 - INFO - 2025-12-04 16:44:20,442 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-92842577:ctest-vn4-26934700, 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-92842577:ctest-vn4-26934700, 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-92842577:ctest-vn4-26934700, 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-92842577:ctest-vn4-26934700, 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-04 16:44:20,966 - DEBUG - Response for create_network : {'network': {'id': 'ebc34a70-3872-47d0-aaad-75947ccbc809', 'name': 'ctest-vn4-26934700', 'tenant_id': '15ae6271aaf045c5a9f1adf91f4e6b0b', 'project_id': '15ae6271aaf045c5a9f1adf91f4e6b0b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-92842577', 'ctest-vn4-26934700'], 'port_security_enabled': True, 'description': ''}} 2025-12-04 16:44:21,171 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b45c48cc-2423-4b6f-acb5-52f6d954adbc', 'name': '', 'tenant_id': '15ae6271aaf045c5a9f1adf91f4e6b0b', 'network_id': 'ebc34a70-3872-47d0-aaad-75947ccbc809', 'ip_version': 4, 'cidr': '181.166.2.0/26', 'allocation_pools': [{'start': '181.166.2.2', 'end': '181.166.2.62'}], 'gateway_ip': '181.166.2.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '181.166.2.2', 'tags': [], 'project_id': '15ae6271aaf045c5a9f1adf91f4e6b0b'}} 2025-12-04 16:44:21,387 - DEBUG - Response for create_subnet : {'subnet': {'id': '7895d074-297f-4f11-ac67-d91ce2567f5f', 'name': '', 'tenant_id': '15ae6271aaf045c5a9f1adf91f4e6b0b', 'network_id': 'ebc34a70-3872-47d0-aaad-75947ccbc809', 'ip_version': 6, 'cidr': '375f:ac1d:eee9:b785:19a2:a871::/96', 'allocation_pools': [{'start': '375f:ac1d:eee9:b785:19a2:a871:0:2', 'end': '375f:ac1d:eee9:b785:19a2:a871:ffff:fffe'}], 'gateway_ip': '375f:ac1d:eee9:b785:19a2:a871:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '375f:ac1d:eee9:b785:19a2:a871:0:2', 'tags': [], 'project_id': '15ae6271aaf045c5a9f1adf91f4e6b0b'}} 2025-12-04 16:44:21,415 - INFO - Created VN ctest-vn4-26934700 2025-12-04 16:44:21,467 - DEBUG - VN ctest-vn4-26934700 UUID is ebc34a70-3872-47d0-aaad-75947ccbc809 2025-12-04 16:44:21,679 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ebc34a70-3872-47d0-aaad-75947ccbc809', 'name': 'ctest-vn4-26934700', 'tenant_id': '15ae6271aaf045c5a9f1adf91f4e6b0b', 'project_id': '15ae6271aaf045c5a9f1adf91f4e6b0b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b45c48cc-2423-4b6f-acb5-52f6d954adbc', '7895d074-297f-4f11-ac67-d91ce2567f5f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-92842577', 'ctest-vn4-26934700'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-92842577', 'ctest-policy1-75141443']], 'subnet_ipam': [{'subnet_cidr': '181.166.2.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '375f:ac1d:eee9:b785:19a2:a871::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-12-04 16:44:21,843 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-12-04 16:44:22,191 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-12-04 16:44:22,223 - DEBUG - Requesting: http://10.0.0.38:8082/domain/c0e664ba-d85c-49e5-b7f5-e4604e9d8c7a 2025-12-04 16:44:22,236 - DEBUG - Requesting: http://10.0.0.38:8082/project/15ae6271-aaf0-45c5-a9f1-adf91f4e6b0b 2025-12-04 16:44:22,305 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ebc34a70-3872-47d0-aaad-75947ccbc809 2025-12-04 16:44:22,317 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ebc34a70-3872-47d0-aaad-75947ccbc809 2025-12-04 16:44:22,326 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/43428313-7526-4ca9-83d1-052b009fb514 2025-12-04 16:44:22,332 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/43428313-7526-4ca9-83d1-052b009fb514 2025-12-04 16:44:22,340 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/6964136c-d47f-437e-9e93-5ebf11066926 2025-12-04 16:44:22,347 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-04 16:44:22,347 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ebc34a70-3872-47d0-aaad-75947ccbc809 2025-12-04 16:44:22,357 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/43428313-7526-4ca9-83d1-052b009fb514 2025-12-04 16:44:22,371 - INFO - Verified VN network id 11 for VN ebc34a70-3872-47d0-aaad-75947ccbc809 2025-12-04 16:44:22,371 - INFO - Verifications in API Server for VN ctest-vn4-26934700 passed 2025-12-04 16:44:22,371 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ebc34a70-3872-47d0-aaad-75947ccbc809 2025-12-04 16:44:22,380 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/43428313-7526-4ca9-83d1-052b009fb514 2025-12-04 16:44:22,387 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/43428313-7526-4ca9-83d1-052b009fb514 2025-12-04 16:44:22,394 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/6964136c-d47f-437e-9e93-5ebf11066926 2025-12-04 16:44:22,407 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-92842577:ctest-vn4-26934700', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-92842577', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16988504065215449040', 'uuid-lslong': '12298615438028032009'}, 'enable': 'true', 'created': '2025-12-04T16:44:20', 'last-modified': '2025-12-04T16:44:21', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.760391'} 2025-12-04 16:44:22,413 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-04 16:44:22,413 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-26934700 passed 2025-12-04 16:44:22,413 - DEBUG - ====Verifying policy data for ctest-vn4-26934700 in API_Server ====== 2025-12-04 16:44:22,413 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-12-04 16:44:22,422 - DEBUG - Requesting: http://10.0.0.38:8082/domain/c0e664ba-d85c-49e5-b7f5-e4604e9d8c7a 2025-12-04 16:44:22,433 - DEBUG - Requesting: http://10.0.0.38:8082/project/15ae6271-aaf0-45c5-a9f1-adf91f4e6b0b 2025-12-04 16:44:22,510 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ebc34a70-3872-47d0-aaad-75947ccbc809 2025-12-04 16:44:22,520 - DEBUG - ==>Verifying data for policy with id: 1cc0a4a3-67f3-4269-ad50-26787433ba81, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-92842577', 'ctest-policy1-75141443'] 2025-12-04 16:44:22,521 - INFO - VN ctest-vn4-26934700 Policy verification: verify_vn_policy_in_api_server, status: True 2025-12-04 16:44:22,521 - DEBUG - Verifying the vn in opserver 2025-12-04 16:44:22,521 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-92842577:ctest-vn4-26934700 virtual network link through opserver 10.0.0.38 2025-12-04 16:44:22,521 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-12-04 16:44:22,858 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-12-04 16:44:22,922 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-92842577:ctest-vn4-26934700', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-92842577:ctest-vn4-26934700?flat'} 2025-12-04 16:44:22,922 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-92842577:ctest-vn4-26934700 is found in opserver 2025-12-04 16:44:22,932 - DEBUG - Do not have enough data to verify VN in agent 2025-12-04 16:44:22,937 - DEBUG - VRF ids for VN ctest-vn4-26934700: {} 2025-12-04 16:44:22,938 - DEBUG - ====Verifying data for ctest-policy1-75141443 in API_Server ====== 2025-12-04 16:44:22,938 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-12-04 16:44:22,943 - DEBUG - Requesting: http://10.0.0.38:8082/domain/c0e664ba-d85c-49e5-b7f5-e4604e9d8c7a 2025-12-04 16:44:22,955 - DEBUG - Requesting: http://10.0.0.38:8082/project/15ae6271-aaf0-45c5-a9f1-adf91f4e6b0b 2025-12-04 16:44:23,029 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/1cc0a4a3-67f3-4269-ad50-26787433ba81 2025-12-04 16:44:23,041 - INFO - Verified policy ctest-policy1-75141443 in API Server, Result: True 2025-12-04 16:44:23,041 - INFO - Done with setup and verification, moving onto test .. 2025-12-04 16:44:23,049 - INFO - Deleting VN ctest-vn4-26934700 2025-12-04 16:44:23,175 - DEBUG - Response for deleting network () 2025-12-04 16:44:23,176 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/43428313-7526-4ca9-83d1-052b009fb514 2025-12-04 16:44:23,181 - DEBUG - Response Code: 404 2025-12-04 16:44:23,181 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-12-04 16:44:23,188 - DEBUG - Requesting: http://10.0.0.38:8082/domain/c0e664ba-d85c-49e5-b7f5-e4604e9d8c7a 2025-12-04 16:44:23,242 - DEBUG - Requesting: http://10.0.0.38:8082/project/15ae6271-aaf0-45c5-a9f1-adf91f4e6b0b 2025-12-04 16:44:23,312 - INFO - Validated that VN ctest-vn4-26934700 is not found in API Server 2025-12-04 16:44:23,321 - DEBUG - VN ctest-vn4-26934700 is not present in Agent 10.0.0.38 2025-12-04 16:44:23,321 - INFO - Validated that VN ctest-vn4-26934700 is not in any agent 2025-12-04 16:44:23,335 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-26934700 info 2025-12-04 16:44:23,357 - INFO - Deleted policy ctest-policy1-75141443 2025-12-04 16:44:23,519 - DEBUG - policy ctest-policy1-75141443 is not found in API Server 2025-12-04 16:44:23,773 - DEBUG - No XMPP flaps were noticed during the test