2025-10-27 01:54:52,416 - INFO - Reading existing Domain with UUID 15e0ce75-9595-48f6-b10e-49e8c56bef44 2025-10-27 01:54:52,433 - INFO - Using existing domain ['admin_domain'](15e0ce75-9595-48f6-b10e-49e8c56bef44) 2025-10-27 01:54:52,626 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-14530024 not found, creating it 2025-10-27 01:54:53,208 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-14530024, ID : cf5e27ca-baf6-4fbd-9fa5-df854759b47b 2025-10-27 01:54:54,909 - INFO - ================================================================================ 2025-10-27 01:54:54,909 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-27 01:54:55,298 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.0.0.27': '0'}} with 2025-10-27 01:54:55,298 - INFO - Initial checks done. Running the testcase now 2025-10-27 01:54:55,298 - INFO - 2025-10-27 01:54:55,298 - INFO - ================================================================================ 2025-10-27 01:54:55,298 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-27 01:54:55,298 - 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-27 01:54:55,693 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.0.0.27': '0'}} with 2025-10-27 01:54:55,693 - INFO - Initial checks done. Running the testcase now 2025-10-27 01:54:55,693 - INFO - 2025-10-27 01:54:56,112 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-14530024:ctest-vn4-39845012, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-14530024:ctest-vn4-39845012, 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 = admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-14530024:ctest-vn4-39845012, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-14530024:ctest-vn4-39845012, 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-27 01:54:56,821 - DEBUG - Response for create_network : {'network': {'id': 'bec0c860-b8c2-41f4-a7c3-6355dd5798d3', 'name': 'ctest-vn4-39845012', 'tenant_id': 'cf5e27cabaf64fbd9fa5df854759b47b', 'project_id': 'cf5e27cabaf64fbd9fa5df854759b47b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicyNegativeIpv4v6-14530024', 'ctest-vn4-39845012'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}} 2025-10-27 01:54:57,073 - DEBUG - Response for create_subnet : {'subnet': {'id': '740e1337-fd85-44e5-a5c8-20a834c17ee8', 'name': '', 'tenant_id': 'cf5e27cabaf64fbd9fa5df854759b47b', 'network_id': 'bec0c860-b8c2-41f4-a7c3-6355dd5798d3', 'ip_version': 4, 'cidr': '125.1.235.0/26', 'allocation_pools': [{'start': '125.1.235.2', 'end': '125.1.235.62'}], 'gateway_ip': '125.1.235.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2025-10-27T01:54:56.973073', 'updated_at': '2025-10-27T01:54:56.973073', 'dns_server_address': '125.1.235.2', 'tags': [], 'project_id': 'cf5e27cabaf64fbd9fa5df854759b47b'}} 2025-10-27 01:54:57,336 - DEBUG - Response for create_subnet : {'subnet': {'id': '7e1bb369-9148-4fb4-81ad-88459c1643dd', 'name': '', 'tenant_id': 'cf5e27cabaf64fbd9fa5df854759b47b', 'network_id': 'bec0c860-b8c2-41f4-a7c3-6355dd5798d3', 'ip_version': 6, 'cidr': '3f63:6d4a:4eaf:af79:edd1:528a::/96', 'allocation_pools': [{'start': '3f63:6d4a:4eaf:af79:edd1:528a:0:2', 'end': '3f63:6d4a:4eaf:af79:edd1:528a:ffff:fffe'}], 'gateway_ip': '3f63:6d4a:4eaf:af79:edd1:528a:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2025-10-27T01:54:57.227206', 'updated_at': '2025-10-27T01:54:57.227206', 'dns_server_address': '3f63:6d4a:4eaf:af79:edd1:528a:0:2', 'tags': [], 'project_id': 'cf5e27cabaf64fbd9fa5df854759b47b'}} 2025-10-27 01:54:57,402 - INFO - Created VN ctest-vn4-39845012 2025-10-27 01:54:57,460 - DEBUG - VN ctest-vn4-39845012 UUID is bec0c860-b8c2-41f4-a7c3-6355dd5798d3 2025-10-27 01:54:57,915 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'bec0c860-b8c2-41f4-a7c3-6355dd5798d3', 'name': 'ctest-vn4-39845012', 'tenant_id': 'cf5e27cabaf64fbd9fa5df854759b47b', 'project_id': 'cf5e27cabaf64fbd9fa5df854759b47b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['740e1337-fd85-44e5-a5c8-20a834c17ee8', '7e1bb369-9148-4fb4-81ad-88459c1643dd'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicyNegativeIpv4v6-14530024', 'ctest-vn4-39845012'], 'policys': [['admin_domain', 'ctest-TestBasicPolicyNegativeIpv4v6-14530024', 'ctest-policy1-23626495']], 'subnet_ipam': [{'subnet_cidr': '125.1.235.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3f63:6d4a:4eaf:af79:edd1:528a::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2025-10-27T01:54:56.740679', 'updated_at': '2025-10-27T01:54:57.241780'}} 2025-10-27 01:54:58,096 - DEBUG - Requesting: https://10.0.0.27:8082/domains 2025-10-27 01:54:58,442 - DEBUG - Requesting: https://10.0.0.27:8082/domains 2025-10-27 01:54:58,524 - DEBUG - Requesting: https://10.0.0.27:8082/domain/15e0ce75-9595-48f6-b10e-49e8c56bef44 2025-10-27 01:54:58,585 - DEBUG - Requesting: https://10.0.0.27:8082/project/cf5e27ca-baf6-4fbd-9fa5-df854759b47b 2025-10-27 01:54:58,661 - DEBUG - Requesting: https://10.0.0.27:8082/virtual-network/bec0c860-b8c2-41f4-a7c3-6355dd5798d3 2025-10-27 01:54:58,721 - DEBUG - Requesting: https://10.0.0.27:8082/virtual-network/bec0c860-b8c2-41f4-a7c3-6355dd5798d3 2025-10-27 01:54:58,786 - DEBUG - Requesting: https://10.0.0.27:8082/routing-instance/81885918-c8be-4acd-9c73-001b47a81163 2025-10-27 01:54:58,844 - DEBUG - Requesting: https://10.0.0.27:8082/routing-instance/81885918-c8be-4acd-9c73-001b47a81163 2025-10-27 01:54:58,897 - DEBUG - Requesting: https://10.0.0.27:8082/route-target/6c2e7337-a571-443a-a48a-27bd049066a6 2025-10-27 01:54:58,949 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-27 01:54:58,949 - DEBUG - Requesting: https://10.0.0.27:8082/virtual-network/bec0c860-b8c2-41f4-a7c3-6355dd5798d3 2025-10-27 01:54:59,006 - DEBUG - Requesting: https://10.0.0.27:8082/routing-instance/81885918-c8be-4acd-9c73-001b47a81163 2025-10-27 01:54:59,064 - INFO - Verified VN network id 11 for VN bec0c860-b8c2-41f4-a7c3-6355dd5798d3 2025-10-27 01:54:59,064 - INFO - Verifications in API Server for VN ctest-vn4-39845012 passed 2025-10-27 01:54:59,064 - DEBUG - Requesting: https://10.0.0.27:8082/virtual-network/bec0c860-b8c2-41f4-a7c3-6355dd5798d3 2025-10-27 01:54:59,117 - DEBUG - Requesting: https://10.0.0.27:8082/routing-instance/81885918-c8be-4acd-9c73-001b47a81163 2025-10-27 01:54:59,169 - DEBUG - Requesting: https://10.0.0.27:8082/routing-instance/81885918-c8be-4acd-9c73-001b47a81163 2025-10-27 01:54:59,220 - DEBUG - Requesting: https://10.0.0.27:8082/route-target/6c2e7337-a571-443a-a48a-27bd049066a6 2025-10-27 01:54:59,333 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-14530024:ctest-vn4-39845012', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-14530024', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13745206380476908020', 'uuid-lslong': '12088615045229418707'}, 'enable': 'true', 'created': '2025-10-27T01:54:56', 'last-modified': '2025-10-27T01:54:57', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.449434'} 2025-10-27 01:54:59,382 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-27 01:54:59,382 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-39845012 passed 2025-10-27 01:54:59,382 - DEBUG - ====Verifying policy data for ctest-vn4-39845012 in API_Server ====== 2025-10-27 01:54:59,382 - DEBUG - Requesting: https://10.0.0.27:8082/domains 2025-10-27 01:54:59,432 - DEBUG - Requesting: https://10.0.0.27:8082/domain/15e0ce75-9595-48f6-b10e-49e8c56bef44 2025-10-27 01:54:59,490 - DEBUG - Requesting: https://10.0.0.27:8082/project/cf5e27ca-baf6-4fbd-9fa5-df854759b47b 2025-10-27 01:54:59,566 - DEBUG - Requesting: https://10.0.0.27:8082/virtual-network/bec0c860-b8c2-41f4-a7c3-6355dd5798d3 2025-10-27 01:54:59,624 - DEBUG - ==>Verifying data for policy with id: 2ceda5eb-5e9a-465c-863c-eea367ead157, fqn: ['admin_domain', 'ctest-TestBasicPolicyNegativeIpv4v6-14530024', 'ctest-policy1-23626495'] 2025-10-27 01:54:59,624 - INFO - VN ctest-vn4-39845012 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-27 01:54:59,624 - DEBUG - Verifying the vn in opserver 2025-10-27 01:54:59,624 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-14530024:ctest-vn4-39845012 virtual network link through opserver 10.0.0.27 2025-10-27 01:54:59,625 - DEBUG - Requesting: https://10.0.0.27:8081/analytics/uves/virtual-networks 2025-10-27 01:54:59,963 - DEBUG - Requesting: https://10.0.0.27:8081/analytics/uves/virtual-networks 2025-10-27 01:55:00,077 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-14530024:ctest-vn4-39845012', 'href': 'https://10.0.0.27:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-14530024:ctest-vn4-39845012?flat'} 2025-10-27 01:55:00,077 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-14530024:ctest-vn4-39845012 is found in opserver 2025-10-27 01:55:00,176 - DEBUG - Do not have enough data to verify VN in agent 2025-10-27 01:55:00,228 - DEBUG - VRF ids for VN ctest-vn4-39845012: {} 2025-10-27 01:55:00,229 - DEBUG - ====Verifying data for ctest-policy1-23626495 in API_Server ====== 2025-10-27 01:55:00,229 - DEBUG - Requesting: https://10.0.0.27:8082/domains 2025-10-27 01:55:00,280 - DEBUG - Requesting: https://10.0.0.27:8082/domain/15e0ce75-9595-48f6-b10e-49e8c56bef44 2025-10-27 01:55:00,337 - DEBUG - Requesting: https://10.0.0.27:8082/project/cf5e27ca-baf6-4fbd-9fa5-df854759b47b 2025-10-27 01:55:00,417 - DEBUG - Requesting: https://10.0.0.27:8082/network-policy/2ceda5eb-5e9a-465c-863c-eea367ead157 2025-10-27 01:55:00,476 - INFO - Verified policy ctest-policy1-23626495 in API Server, Result: True 2025-10-27 01:55:00,477 - INFO - Done with setup and verification, moving onto test .. 2025-10-27 01:55:00,488 - INFO - Deleting VN ctest-vn4-39845012 2025-10-27 01:55:00,667 - DEBUG - Response for deleting network () 2025-10-27 01:55:00,667 - DEBUG - Requesting: https://10.0.0.27:8082/routing-instance/81885918-c8be-4acd-9c73-001b47a81163 2025-10-27 01:55:00,724 - DEBUG - Response Code: 404 2025-10-27 01:55:00,724 - DEBUG - Requesting: https://10.0.0.27:8082/domains 2025-10-27 01:55:00,776 - DEBUG - Requesting: https://10.0.0.27:8082/domain/15e0ce75-9595-48f6-b10e-49e8c56bef44 2025-10-27 01:55:00,833 - DEBUG - Requesting: https://10.0.0.27:8082/project/cf5e27ca-baf6-4fbd-9fa5-df854759b47b 2025-10-27 01:55:00,910 - INFO - Validated that VN ctest-vn4-39845012 is not found in API Server 2025-10-27 01:55:01,012 - DEBUG - VN ctest-vn4-39845012 is not present in Agent 10.0.0.27 2025-10-27 01:55:01,012 - INFO - Validated that VN ctest-vn4-39845012 is not in any agent 2025-10-27 01:55:01,165 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-39845012 info 2025-10-27 01:55:01,189 - INFO - Deleted policy ctest-policy1-23626495 2025-10-27 01:55:01,356 - DEBUG - policy ctest-policy1-23626495 is not found in API Server 2025-10-27 01:55:01,745 - DEBUG - No XMPP flaps were noticed during the test 2025-10-27 01:55:01,745 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:06] 2025-10-27 01:55:01,745 - INFO - -------------------------------------------------------------------------------- 2025-10-27 01:55:02,141 - DEBUG - No XMPP flaps were noticed during the test 2025-10-27 01:55:02,141 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:08] 2025-10-27 01:55:02,141 - INFO - -------------------------------------------------------------------------------- 2025-10-27 01:55:02,914 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-14530024, ID : cf5e27ca-baf6-4fbd-9fa5-df854759b47b