2025-10-16 02:11:54,343 - INFO - Domain Default found not creating 2025-10-16 02:11:54,488 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-47362392 not found, creating it 2025-10-16 02:11:54,918 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-47362392, ID : 1d1b6dbf-531b-484c-a125-dcf5231d5daa 2025-10-16 02:11:56,302 - INFO - ================================================================================ 2025-10-16 02:11:56,302 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-16 02:11:56,559 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.249': '0'}} with 2025-10-16 02:11:56,559 - INFO - Initial checks done. Running the testcase now 2025-10-16 02:11:56,559 - INFO - 2025-10-16 02:11:56,559 - INFO - ================================================================================ 2025-10-16 02:11:56,559 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-16 02:11:56,559 - 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-16 02:11:56,846 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.249': '0'}} with 2025-10-16 02:11:56,846 - INFO - Initial checks done. Running the testcase now 2025-10-16 02:11:56,846 - INFO - 2025-10-16 02:11:57,190 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-47362392:ctest-vn4-52921245, 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-47362392:ctest-vn4-52921245, 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-47362392:ctest-vn4-52921245, 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-47362392:ctest-vn4-52921245, 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-16 02:11:57,701 - DEBUG - Response for create_network : {'network': {'id': '128d11ee-9a5b-4add-8151-58ab0ffeae92', 'name': 'ctest-vn4-52921245', 'tenant_id': '1d1b6dbf531b484ca125dcf5231d5daa', 'project_id': '1d1b6dbf531b484ca125dcf5231d5daa', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-47362392', 'ctest-vn4-52921245'], 'port_security_enabled': True, 'description': ''}} 2025-10-16 02:11:57,943 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f1f94f08-0e91-4f7a-b333-b2814f496500', 'name': '', 'tenant_id': '1d1b6dbf531b484ca125dcf5231d5daa', 'network_id': '128d11ee-9a5b-4add-8151-58ab0ffeae92', 'ip_version': 4, 'cidr': '87.215.166.64/26', 'allocation_pools': [{'start': '87.215.166.66', 'end': '87.215.166.126'}], 'gateway_ip': '87.215.166.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '87.215.166.66', 'tags': [], 'project_id': '1d1b6dbf531b484ca125dcf5231d5daa'}} 2025-10-16 02:11:58,138 - DEBUG - Response for create_subnet : {'subnet': {'id': '285a10c7-c992-4b2a-9f37-870848a8cf0e', 'name': '', 'tenant_id': '1d1b6dbf531b484ca125dcf5231d5daa', 'network_id': '128d11ee-9a5b-4add-8151-58ab0ffeae92', 'ip_version': 6, 'cidr': '39e9:dee9:c2a4:53ab:70c6:2ee6::/96', 'allocation_pools': [{'start': '39e9:dee9:c2a4:53ab:70c6:2ee6:0:2', 'end': '39e9:dee9:c2a4:53ab:70c6:2ee6:ffff:fffe'}], 'gateway_ip': '39e9:dee9:c2a4:53ab:70c6:2ee6:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '39e9:dee9:c2a4:53ab:70c6:2ee6:0:2', 'tags': [], 'project_id': '1d1b6dbf531b484ca125dcf5231d5daa'}} 2025-10-16 02:11:58,159 - INFO - Created VN ctest-vn4-52921245 2025-10-16 02:11:58,214 - DEBUG - VN ctest-vn4-52921245 UUID is 128d11ee-9a5b-4add-8151-58ab0ffeae92 2025-10-16 02:11:58,396 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '128d11ee-9a5b-4add-8151-58ab0ffeae92', 'name': 'ctest-vn4-52921245', 'tenant_id': '1d1b6dbf531b484ca125dcf5231d5daa', 'project_id': '1d1b6dbf531b484ca125dcf5231d5daa', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f1f94f08-0e91-4f7a-b333-b2814f496500', '285a10c7-c992-4b2a-9f37-870848a8cf0e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-47362392', 'ctest-vn4-52921245'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-47362392', 'ctest-policy1-13476974']], 'subnet_ipam': [{'subnet_cidr': '87.215.166.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '39e9:dee9:c2a4:53ab:70c6:2ee6::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-16 02:11:58,562 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2025-10-16 02:11:58,856 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2025-10-16 02:11:58,883 - DEBUG - Requesting: http://10.0.0.41:8082/domain/d11bab7d-671b-44cf-bcaf-5e65cae8fbe6 2025-10-16 02:11:58,894 - DEBUG - Requesting: http://10.0.0.41:8082/project/1d1b6dbf-531b-484c-a125-dcf5231d5daa 2025-10-16 02:11:58,964 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/128d11ee-9a5b-4add-8151-58ab0ffeae92 2025-10-16 02:11:58,976 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/128d11ee-9a5b-4add-8151-58ab0ffeae92 2025-10-16 02:11:58,985 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/bd3cbded-682e-4ba9-9ab8-60819cadac67 2025-10-16 02:11:58,993 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/bd3cbded-682e-4ba9-9ab8-60819cadac67 2025-10-16 02:11:59,000 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/973e8650-57e9-461d-bfb6-ec42d28ec7bd 2025-10-16 02:11:59,006 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-16 02:11:59,006 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/128d11ee-9a5b-4add-8151-58ab0ffeae92 2025-10-16 02:11:59,015 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/bd3cbded-682e-4ba9-9ab8-60819cadac67 2025-10-16 02:11:59,028 - INFO - Verified VN network id 12 for VN 128d11ee-9a5b-4add-8151-58ab0ffeae92 2025-10-16 02:11:59,029 - INFO - Verifications in API Server for VN ctest-vn4-52921245 passed 2025-10-16 02:11:59,029 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/128d11ee-9a5b-4add-8151-58ab0ffeae92 2025-10-16 02:11:59,037 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/bd3cbded-682e-4ba9-9ab8-60819cadac67 2025-10-16 02:11:59,043 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/bd3cbded-682e-4ba9-9ab8-60819cadac67 2025-10-16 02:11:59,048 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/973e8650-57e9-461d-bfb6-ec42d28ec7bd 2025-10-16 02:11:59,058 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-47362392:ctest-vn4-52921245', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-47362392', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1336744380888468189', 'uuid-lslong': '9318326595737267858'}, 'enable': 'true', 'created': '2025-10-16T02:11:57', 'last-modified': '2025-10-16T02:11:58', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.688649'} 2025-10-16 02:11:59,065 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-16 02:11:59,065 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-52921245 passed 2025-10-16 02:11:59,065 - DEBUG - ====Verifying policy data for ctest-vn4-52921245 in API_Server ====== 2025-10-16 02:11:59,065 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2025-10-16 02:11:59,070 - DEBUG - Requesting: http://10.0.0.41:8082/domain/d11bab7d-671b-44cf-bcaf-5e65cae8fbe6 2025-10-16 02:11:59,080 - DEBUG - Requesting: http://10.0.0.41:8082/project/1d1b6dbf-531b-484c-a125-dcf5231d5daa 2025-10-16 02:11:59,150 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/128d11ee-9a5b-4add-8151-58ab0ffeae92 2025-10-16 02:11:59,159 - DEBUG - ==>Verifying data for policy with id: abb5fe78-62d9-4755-97c9-e23d4ee8bf5e, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-47362392', 'ctest-policy1-13476974'] 2025-10-16 02:11:59,159 - INFO - VN ctest-vn4-52921245 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-16 02:11:59,159 - DEBUG - Verifying the vn in opserver 2025-10-16 02:11:59,159 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-47362392:ctest-vn4-52921245 virtual network link through opserver 10.0.0.41 2025-10-16 02:11:59,160 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks 2025-10-16 02:11:59,451 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks 2025-10-16 02:11:59,502 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-47362392:ctest-vn4-52921245', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-47362392:ctest-vn4-52921245?flat'} 2025-10-16 02:11:59,502 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-47362392:ctest-vn4-52921245 is found in opserver 2025-10-16 02:11:59,513 - DEBUG - Do not have enough data to verify VN in agent 2025-10-16 02:11:59,519 - DEBUG - VRF ids for VN ctest-vn4-52921245: {} 2025-10-16 02:11:59,519 - DEBUG - ====Verifying data for ctest-policy1-13476974 in API_Server ====== 2025-10-16 02:11:59,519 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2025-10-16 02:11:59,526 - DEBUG - Requesting: http://10.0.0.41:8082/domain/d11bab7d-671b-44cf-bcaf-5e65cae8fbe6 2025-10-16 02:11:59,538 - DEBUG - Requesting: http://10.0.0.41:8082/project/1d1b6dbf-531b-484c-a125-dcf5231d5daa 2025-10-16 02:11:59,608 - DEBUG - Requesting: http://10.0.0.41:8082/network-policy/abb5fe78-62d9-4755-97c9-e23d4ee8bf5e 2025-10-16 02:11:59,616 - INFO - Verified policy ctest-policy1-13476974 in API Server, Result: True 2025-10-16 02:11:59,617 - INFO - Done with setup and verification, moving onto test .. 2025-10-16 02:11:59,623 - INFO - Deleting VN ctest-vn4-52921245 2025-10-16 02:11:59,732 - DEBUG - Response for deleting network () 2025-10-16 02:11:59,732 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/bd3cbded-682e-4ba9-9ab8-60819cadac67 2025-10-16 02:11:59,736 - DEBUG - Response Code: 404 2025-10-16 02:11:59,736 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2025-10-16 02:11:59,741 - DEBUG - Requesting: http://10.0.0.41:8082/domain/d11bab7d-671b-44cf-bcaf-5e65cae8fbe6 2025-10-16 02:11:59,794 - DEBUG - Requesting: http://10.0.0.41:8082/project/1d1b6dbf-531b-484c-a125-dcf5231d5daa 2025-10-16 02:11:59,865 - INFO - Validated that VN ctest-vn4-52921245 is not found in API Server 2025-10-16 02:11:59,874 - DEBUG - VN ctest-vn4-52921245 is not present in Agent 10.0.0.41 2025-10-16 02:11:59,874 - INFO - Validated that VN ctest-vn4-52921245 is not in any agent 2025-10-16 02:11:59,886 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-52921245 info 2025-10-16 02:11:59,912 - INFO - Deleted policy ctest-policy1-13476974 2025-10-16 02:12:00,074 - DEBUG - policy ctest-policy1-13476974 is not found in API Server 2025-10-16 02:12:00,326 - DEBUG - No XMPP flaps were noticed during the test