2025-12-11 17:40:55,060 - INFO - Domain Default found not creating 2025-12-11 17:40:55,308 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-02391831 not found, creating it 2025-12-11 17:40:55,814 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-02391831, ID : 4e8810d8-5b0c-4d63-ad70-8d633b5ad47e 2025-12-11 17:40:57,598 - INFO - ================================================================================ 2025-12-11 17:40:57,598 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-12-11 17:40:57,873 - DEBUG - Nothing to compare xmpp stats {'10.0.0.129': {'10.20.0.14': '0'}} with 2025-12-11 17:40:57,873 - INFO - Initial checks done. Running the testcase now 2025-12-11 17:40:57,873 - INFO - 2025-12-11 17:40:57,873 - INFO - ================================================================================ 2025-12-11 17:40:57,873 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-12-11 17:40:57,874 - 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-11 17:40:58,171 - DEBUG - Nothing to compare xmpp stats {'10.0.0.129': {'10.20.0.14': '0'}} with 2025-12-11 17:40:58,171 - INFO - Initial checks done. Running the testcase now 2025-12-11 17:40:58,171 - INFO - 2025-12-11 17:40:58,605 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-02391831:ctest-vn4-27818820, 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-02391831:ctest-vn4-27818820, 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-02391831:ctest-vn4-27818820, 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-02391831:ctest-vn4-27818820, 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-11 17:40:59,168 - DEBUG - Response for create_network : {'network': {'id': '52809b7a-99c6-42a1-80ff-8c56d421bbbb', 'name': 'ctest-vn4-27818820', 'tenant_id': '4e8810d85b0c4d63ad708d633b5ad47e', 'project_id': '4e8810d85b0c4d63ad708d633b5ad47e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-02391831', 'ctest-vn4-27818820'], 'port_security_enabled': True, 'description': ''}} 2025-12-11 17:40:59,371 - DEBUG - Response for create_subnet : {'subnet': {'id': '48241687-9463-4cde-84e1-7e0de55d1ae6', 'name': '', 'tenant_id': '4e8810d85b0c4d63ad708d633b5ad47e', 'network_id': '52809b7a-99c6-42a1-80ff-8c56d421bbbb', 'ip_version': 4, 'cidr': '42.77.90.0/26', 'allocation_pools': [{'start': '42.77.90.2', 'end': '42.77.90.62'}], 'gateway_ip': '42.77.90.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '42.77.90.2', 'tags': [], 'project_id': '4e8810d85b0c4d63ad708d633b5ad47e'}} 2025-12-11 17:40:59,574 - DEBUG - Response for create_subnet : {'subnet': {'id': '547ca710-55b8-4851-bc63-bf1886890293', 'name': '', 'tenant_id': '4e8810d85b0c4d63ad708d633b5ad47e', 'network_id': '52809b7a-99c6-42a1-80ff-8c56d421bbbb', 'ip_version': 6, 'cidr': '2576:fe4c:e625:32dc:13de:eaff::/96', 'allocation_pools': [{'start': '2576:fe4c:e625:32dc:13de:eaff:0:2', 'end': '2576:fe4c:e625:32dc:13de:eaff:ffff:fffe'}], 'gateway_ip': '2576:fe4c:e625:32dc:13de:eaff:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2576:fe4c:e625:32dc:13de:eaff:0:2', 'tags': [], 'project_id': '4e8810d85b0c4d63ad708d633b5ad47e'}} 2025-12-11 17:40:59,602 - INFO - Created VN ctest-vn4-27818820 2025-12-11 17:40:59,661 - DEBUG - VN ctest-vn4-27818820 UUID is 52809b7a-99c6-42a1-80ff-8c56d421bbbb 2025-12-11 17:40:59,899 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '52809b7a-99c6-42a1-80ff-8c56d421bbbb', 'name': 'ctest-vn4-27818820', 'tenant_id': '4e8810d85b0c4d63ad708d633b5ad47e', 'project_id': '4e8810d85b0c4d63ad708d633b5ad47e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['48241687-9463-4cde-84e1-7e0de55d1ae6', '547ca710-55b8-4851-bc63-bf1886890293'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-02391831', 'ctest-vn4-27818820'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-02391831', 'ctest-policy1-15547379']], 'subnet_ipam': [{'subnet_cidr': '42.77.90.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2576:fe4c:e625:32dc:13de:eaff::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-12-11 17:41:00,073 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2025-12-11 17:41:00,378 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2025-12-11 17:41:00,416 - DEBUG - Requesting: http://10.0.0.129:8082/domain/c79b124c-9a6a-4e7a-80ca-83213d0213be 2025-12-11 17:41:00,431 - DEBUG - Requesting: http://10.0.0.129:8082/project/4e8810d8-5b0c-4d63-ad70-8d633b5ad47e 2025-12-11 17:41:00,522 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/52809b7a-99c6-42a1-80ff-8c56d421bbbb 2025-12-11 17:41:00,540 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/52809b7a-99c6-42a1-80ff-8c56d421bbbb 2025-12-11 17:41:00,552 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/655ef8ab-567f-4491-8aba-a9eda5f176a8 2025-12-11 17:41:00,560 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/655ef8ab-567f-4491-8aba-a9eda5f176a8 2025-12-11 17:41:00,570 - DEBUG - Requesting: http://10.0.0.129:8082/route-target/d35fa5ad-1379-4152-8b55-d63110e1729b 2025-12-11 17:41:00,580 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-11 17:41:00,580 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/52809b7a-99c6-42a1-80ff-8c56d421bbbb 2025-12-11 17:41:00,594 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/655ef8ab-567f-4491-8aba-a9eda5f176a8 2025-12-11 17:41:00,613 - INFO - Verified VN network id 11 for VN 52809b7a-99c6-42a1-80ff-8c56d421bbbb 2025-12-11 17:41:00,613 - INFO - Verifications in API Server for VN ctest-vn4-27818820 passed 2025-12-11 17:41:00,613 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/52809b7a-99c6-42a1-80ff-8c56d421bbbb 2025-12-11 17:41:00,624 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/655ef8ab-567f-4491-8aba-a9eda5f176a8 2025-12-11 17:41:00,633 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/655ef8ab-567f-4491-8aba-a9eda5f176a8 2025-12-11 17:41:00,642 - DEBUG - Requesting: http://10.0.0.129:8082/route-target/d35fa5ad-1379-4152-8b55-d63110e1729b 2025-12-11 17:41:00,659 - DEBUG - Control-node 10.0.0.129 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-02391831:ctest-vn4-27818820', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-02391831', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5944922458997277345', 'uuid-lslong': '9295302460470049723'}, 'enable': 'true', 'created': '2025-12-11T17:40:59', 'last-modified': '2025-12-11T17:40:59', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.794844'} 2025-12-11 17:41:00,669 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-11 17:41:00,669 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-27818820 passed 2025-12-11 17:41:00,670 - DEBUG - ====Verifying policy data for ctest-vn4-27818820 in API_Server ====== 2025-12-11 17:41:00,670 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2025-12-11 17:41:00,677 - DEBUG - Requesting: http://10.0.0.129:8082/domain/c79b124c-9a6a-4e7a-80ca-83213d0213be 2025-12-11 17:41:00,689 - DEBUG - Requesting: http://10.0.0.129:8082/project/4e8810d8-5b0c-4d63-ad70-8d633b5ad47e 2025-12-11 17:41:00,767 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/52809b7a-99c6-42a1-80ff-8c56d421bbbb 2025-12-11 17:41:00,781 - DEBUG - ==>Verifying data for policy with id: a51e0db6-adc1-4e75-82dc-65270e72d7cf, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-02391831', 'ctest-policy1-15547379'] 2025-12-11 17:41:00,781 - INFO - VN ctest-vn4-27818820 Policy verification: verify_vn_policy_in_api_server, status: True 2025-12-11 17:41:00,781 - DEBUG - Verifying the vn in opserver 2025-12-11 17:41:00,781 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-02391831:ctest-vn4-27818820 virtual network link through opserver 10.0.0.129 2025-12-11 17:41:00,782 - DEBUG - Requesting: http://10.0.0.129:8081/analytics/uves/virtual-networks 2025-12-11 17:41:01,085 - DEBUG - Requesting: http://10.0.0.129:8081/analytics/uves/virtual-networks 2025-12-11 17:41:01,156 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-02391831:ctest-vn4-27818820', 'href': 'http://10.0.0.129:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-02391831:ctest-vn4-27818820?flat'} 2025-12-11 17:41:01,156 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-02391831:ctest-vn4-27818820 is found in opserver 2025-12-11 17:41:01,167 - DEBUG - Do not have enough data to verify VN in agent 2025-12-11 17:41:01,173 - DEBUG - VRF ids for VN ctest-vn4-27818820: {} 2025-12-11 17:41:01,174 - DEBUG - ====Verifying data for ctest-policy1-15547379 in API_Server ====== 2025-12-11 17:41:01,174 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2025-12-11 17:41:01,181 - DEBUG - Requesting: http://10.0.0.129:8082/domain/c79b124c-9a6a-4e7a-80ca-83213d0213be 2025-12-11 17:41:01,194 - DEBUG - Requesting: http://10.0.0.129:8082/project/4e8810d8-5b0c-4d63-ad70-8d633b5ad47e 2025-12-11 17:41:01,282 - DEBUG - Requesting: http://10.0.0.129:8082/network-policy/a51e0db6-adc1-4e75-82dc-65270e72d7cf 2025-12-11 17:41:01,293 - INFO - Verified policy ctest-policy1-15547379 in API Server, Result: True 2025-12-11 17:41:01,293 - INFO - Done with setup and verification, moving onto test .. 2025-12-11 17:41:01,304 - INFO - Deleting VN ctest-vn4-27818820 2025-12-11 17:41:01,453 - DEBUG - Response for deleting network () 2025-12-11 17:41:01,453 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/655ef8ab-567f-4491-8aba-a9eda5f176a8 2025-12-11 17:41:01,459 - DEBUG - Response Code: 404 2025-12-11 17:41:01,460 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2025-12-11 17:41:01,466 - DEBUG - Requesting: http://10.0.0.129:8082/domain/c79b124c-9a6a-4e7a-80ca-83213d0213be 2025-12-11 17:41:01,523 - DEBUG - Requesting: http://10.0.0.129:8082/project/4e8810d8-5b0c-4d63-ad70-8d633b5ad47e 2025-12-11 17:41:01,603 - INFO - Validated that VN ctest-vn4-27818820 is not found in API Server 2025-12-11 17:41:01,617 - DEBUG - VN ctest-vn4-27818820 is not present in Agent 10.0.0.129 2025-12-11 17:41:01,617 - INFO - Validated that VN ctest-vn4-27818820 is not in any agent 2025-12-11 17:41:01,638 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-27818820 info 2025-12-11 17:41:01,667 - INFO - Deleted policy ctest-policy1-15547379 2025-12-11 17:41:01,837 - DEBUG - policy ctest-policy1-15547379 is not found in API Server 2025-12-11 17:41:02,102 - DEBUG - No XMPP flaps were noticed during the test
2025-12-11 17:41:02,102 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2025-12-11 17:41:02,102 - INFO - -------------------------------------------------------------------------------- 2025-12-11 17:41:02,391 - DEBUG - No XMPP flaps were noticed during the test
2025-12-11 17:41:02,391 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2025-12-11 17:41:02,391 - INFO - -------------------------------------------------------------------------------- 2025-12-11 17:41:03,161 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-02391831, ID : 4e8810d8-5b0c-4d63-ad70-8d633b5ad47e