2025-07-30 17:11:17,217 - INFO - Domain Default found not creating 2025-07-30 17:11:17,574 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-95125516 not found, creating it 2025-07-30 17:11:18,468 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-95125516, ID : 0f4a0559-74bb-4c3e-ae00-0310c0ae2681 2025-07-30 17:11:20,769 - INFO - ================================================================================ 2025-07-30 17:11:20,769 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-07-30 17:11:21,096 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-07-30 17:11:21,096 - INFO - Initial checks done. Running the testcase now 2025-07-30 17:11:21,096 - INFO - 2025-07-30 17:11:21,096 - INFO - ================================================================================ 2025-07-30 17:11:21,097 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-07-30 17:11:21,097 - 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-07-30 17:11:21,449 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-07-30 17:11:21,450 - INFO - Initial checks done. Running the testcase now 2025-07-30 17:11:21,450 - INFO - 2025-07-30 17:11:21,915 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95125516:ctest-vn4-65883920, 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-95125516:ctest-vn4-65883920, 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-95125516:ctest-vn4-65883920, 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-95125516:ctest-vn4-65883920, 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-07-30 17:11:22,685 - DEBUG - Response for create_network : {'network': {'id': '670792c6-e050-465d-b927-da5afa907805', 'name': 'ctest-vn4-65883920', 'tenant_id': '0f4a055974bb4c3eae000310c0ae2681', 'project_id': '0f4a055974bb4c3eae000310c0ae2681', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-95125516', 'ctest-vn4-65883920'], 'port_security_enabled': True, 'description': ''}} 2025-07-30 17:11:22,844 - DEBUG - Response for create_subnet : {'subnet': {'id': '905e2bf9-a540-4433-a0ff-4361d6e59925', 'name': '', 'tenant_id': '0f4a055974bb4c3eae000310c0ae2681', 'network_id': '670792c6-e050-465d-b927-da5afa907805', 'ip_version': 4, 'cidr': '150.36.18.128/26', 'allocation_pools': [{'start': '150.36.18.130', 'end': '150.36.18.190'}], 'gateway_ip': '150.36.18.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '150.36.18.130', 'tags': [], 'project_id': '0f4a055974bb4c3eae000310c0ae2681'}} 2025-07-30 17:11:23,109 - DEBUG - Response for create_subnet : {'subnet': {'id': '39c6cacb-f837-4e3d-926f-5661ffda322a', 'name': '', 'tenant_id': '0f4a055974bb4c3eae000310c0ae2681', 'network_id': '670792c6-e050-465d-b927-da5afa907805', 'ip_version': 6, 'cidr': '2f5b:797d:ee57:7726:ed3c:f9ad::/96', 'allocation_pools': [{'start': '2f5b:797d:ee57:7726:ed3c:f9ad:0:2', 'end': '2f5b:797d:ee57:7726:ed3c:f9ad:ffff:fffe'}], 'gateway_ip': '2f5b:797d:ee57:7726:ed3c:f9ad:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2f5b:797d:ee57:7726:ed3c:f9ad:0:2', 'tags': [], 'project_id': '0f4a055974bb4c3eae000310c0ae2681'}} 2025-07-30 17:11:23,138 - INFO - Created VN ctest-vn4-65883920 2025-07-30 17:11:23,197 - DEBUG - VN ctest-vn4-65883920 UUID is 670792c6-e050-465d-b927-da5afa907805 2025-07-30 17:11:23,565 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '670792c6-e050-465d-b927-da5afa907805', 'name': 'ctest-vn4-65883920', 'tenant_id': '0f4a055974bb4c3eae000310c0ae2681', 'project_id': '0f4a055974bb4c3eae000310c0ae2681', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['905e2bf9-a540-4433-a0ff-4361d6e59925', '39c6cacb-f837-4e3d-926f-5661ffda322a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-95125516', 'ctest-vn4-65883920'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-95125516', 'ctest-policy1-35135467']], 'subnet_ipam': [{'subnet_cidr': '150.36.18.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2f5b:797d:ee57:7726:ed3c:f9ad::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-07-30 17:11:23,733 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-07-30 17:11:24,057 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-07-30 17:11:24,114 - DEBUG - Requesting: http://10.0.0.254:8082/domain/729f7175-34a2-4828-8292-be3edcf84511 2025-07-30 17:11:24,146 - DEBUG - Requesting: http://10.0.0.254:8082/project/0f4a0559-74bb-4c3e-ae00-0310c0ae2681 2025-07-30 17:11:24,277 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/670792c6-e050-465d-b927-da5afa907805 2025-07-30 17:11:24,317 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/670792c6-e050-465d-b927-da5afa907805 2025-07-30 17:11:24,340 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/6bd12cdb-6bec-43bc-a68a-597444a44c3e 2025-07-30 17:11:24,359 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/6bd12cdb-6bec-43bc-a68a-597444a44c3e 2025-07-30 17:11:24,373 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/30326434-6423-45cd-bcc6-ab9a63d6a6e3 2025-07-30 17:11:24,384 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-07-30 17:11:24,385 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/670792c6-e050-465d-b927-da5afa907805 2025-07-30 17:11:24,401 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/6bd12cdb-6bec-43bc-a68a-597444a44c3e 2025-07-30 17:11:24,428 - INFO - Verified VN network id 11 for VN 670792c6-e050-465d-b927-da5afa907805 2025-07-30 17:11:24,428 - INFO - Verifications in API Server for VN ctest-vn4-65883920 passed 2025-07-30 17:11:24,428 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/670792c6-e050-465d-b927-da5afa907805 2025-07-30 17:11:24,446 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/6bd12cdb-6bec-43bc-a68a-597444a44c3e 2025-07-30 17:11:24,454 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/6bd12cdb-6bec-43bc-a68a-597444a44c3e 2025-07-30 17:11:24,465 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/30326434-6423-45cd-bcc6-ab9a63d6a6e3 2025-07-30 17:11:24,486 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95125516:ctest-vn4-65883920', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-95125516', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7424063893608089181', 'uuid-lslong': '13341872505394067461'}, 'enable': 'true', 'created': '2025-07-30T17:11:22', 'last-modified': '2025-07-30T17:11:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.949688'} 2025-07-30 17:11:24,497 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-07-30 17:11:24,497 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-65883920 passed 2025-07-30 17:11:24,498 - DEBUG - ====Verifying policy data for ctest-vn4-65883920 in API_Server ====== 2025-07-30 17:11:24,498 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-07-30 17:11:24,508 - DEBUG - Requesting: http://10.0.0.254:8082/domain/729f7175-34a2-4828-8292-be3edcf84511 2025-07-30 17:11:24,523 - DEBUG - Requesting: http://10.0.0.254:8082/project/0f4a0559-74bb-4c3e-ae00-0310c0ae2681 2025-07-30 17:11:24,616 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/670792c6-e050-465d-b927-da5afa907805 2025-07-30 17:11:24,634 - DEBUG - ==>Verifying data for policy with id: a93919b0-566e-41b4-8c23-dda1a7527b87, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-95125516', 'ctest-policy1-35135467'] 2025-07-30 17:11:24,634 - INFO - VN ctest-vn4-65883920 Policy verification: verify_vn_policy_in_api_server, status: True 2025-07-30 17:11:24,634 - DEBUG - Verifying the vn in opserver 2025-07-30 17:11:24,634 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95125516:ctest-vn4-65883920 virtual network link through opserver 10.0.0.254 2025-07-30 17:11:24,635 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-07-30 17:11:24,948 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-07-30 17:11:25,107 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95125516:ctest-vn4-65883920', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95125516:ctest-vn4-65883920?flat'} 2025-07-30 17:11:25,107 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95125516:ctest-vn4-65883920 is found in opserver 2025-07-30 17:11:25,149 - DEBUG - Do not have enough data to verify VN in agent 2025-07-30 17:11:25,170 - DEBUG - VRF ids for VN ctest-vn4-65883920: {} 2025-07-30 17:11:25,172 - DEBUG - ====Verifying data for ctest-policy1-35135467 in API_Server ====== 2025-07-30 17:11:25,172 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-07-30 17:11:25,190 - DEBUG - Requesting: http://10.0.0.254:8082/domain/729f7175-34a2-4828-8292-be3edcf84511 2025-07-30 17:11:25,228 - DEBUG - Requesting: http://10.0.0.254:8082/project/0f4a0559-74bb-4c3e-ae00-0310c0ae2681 2025-07-30 17:11:25,371 - DEBUG - Requesting: http://10.0.0.254:8082/network-policy/a93919b0-566e-41b4-8c23-dda1a7527b87 2025-07-30 17:11:25,406 - INFO - Verified policy ctest-policy1-35135467 in API Server, Result: True 2025-07-30 17:11:25,406 - INFO - Done with setup and verification, moving onto test .. 2025-07-30 17:11:25,427 - INFO - Deleting VN ctest-vn4-65883920 2025-07-30 17:11:25,687 - DEBUG - Response for deleting network () 2025-07-30 17:11:25,687 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/6bd12cdb-6bec-43bc-a68a-597444a44c3e 2025-07-30 17:11:25,693 - DEBUG - Response Code: 404 2025-07-30 17:11:25,693 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-07-30 17:11:25,699 - DEBUG - Requesting: http://10.0.0.254:8082/domain/729f7175-34a2-4828-8292-be3edcf84511 2025-07-30 17:11:25,759 - DEBUG - Requesting: http://10.0.0.254:8082/project/0f4a0559-74bb-4c3e-ae00-0310c0ae2681 2025-07-30 17:11:25,859 - INFO - Validated that VN ctest-vn4-65883920 is not found in API Server 2025-07-30 17:11:25,876 - DEBUG - VN ctest-vn4-65883920 is not present in Agent 10.0.0.254 2025-07-30 17:11:25,876 - INFO - Validated that VN ctest-vn4-65883920 is not in any agent 2025-07-30 17:11:25,903 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-65883920 info 2025-07-30 17:11:25,944 - INFO - Deleted policy ctest-policy1-35135467 2025-07-30 17:11:26,148 - DEBUG - policy ctest-policy1-35135467 is not found in API Server 2025-07-30 17:11:26,461 - DEBUG - No XMPP flaps were noticed during the test