2025-09-05 16:07:48,921 - INFO - Domain Default found not creating 2025-09-05 16:07:49,178 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-60024275 not found, creating it 2025-09-05 16:07:49,916 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-60024275, ID : 466532a1-c2ca-421e-b480-12a0965a0886 2025-09-05 16:07:52,026 - INFO - ================================================================================ 2025-09-05 16:07:52,026 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-05 16:07:52,338 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0'}} with 2025-09-05 16:07:52,338 - INFO - Initial checks done. Running the testcase now 2025-09-05 16:07:52,339 - INFO - 2025-09-05 16:07:52,339 - INFO - ================================================================================ 2025-09-05 16:07:52,339 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-05 16:07:52,339 - 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-09-05 16:07:52,685 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0'}} with 2025-09-05 16:07:52,685 - INFO - Initial checks done. Running the testcase now 2025-09-05 16:07:52,685 - INFO - 2025-09-05 16:07:53,116 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-60024275:ctest-vn4-38182739, 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-60024275:ctest-vn4-38182739, 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-60024275:ctest-vn4-38182739, 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-60024275:ctest-vn4-38182739, 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-09-05 16:07:53,914 - DEBUG - Response for create_network : {'network': {'id': '004c3ba7-1c62-406e-8c43-c48d5040f10e', 'name': 'ctest-vn4-38182739', 'tenant_id': '466532a1c2ca421eb48012a0965a0886', 'project_id': '466532a1c2ca421eb48012a0965a0886', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-60024275', 'ctest-vn4-38182739'], 'port_security_enabled': True, 'description': ''}} 2025-09-05 16:07:54,184 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cae328df-b4e2-46e4-9794-01ed77e4527d', 'name': '', 'tenant_id': '466532a1c2ca421eb48012a0965a0886', 'network_id': '004c3ba7-1c62-406e-8c43-c48d5040f10e', 'ip_version': 4, 'cidr': '84.67.113.128/26', 'allocation_pools': [{'start': '84.67.113.130', 'end': '84.67.113.190'}], 'gateway_ip': '84.67.113.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '84.67.113.130', 'tags': [], 'project_id': '466532a1c2ca421eb48012a0965a0886'}} 2025-09-05 16:07:54,403 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a8c1525c-81ee-4f0c-a7d2-1e327e0ae261', 'name': '', 'tenant_id': '466532a1c2ca421eb48012a0965a0886', 'network_id': '004c3ba7-1c62-406e-8c43-c48d5040f10e', 'ip_version': 6, 'cidr': '29cb:7e38:821c:539c:685f:5051::/96', 'allocation_pools': [{'start': '29cb:7e38:821c:539c:685f:5051:0:2', 'end': '29cb:7e38:821c:539c:685f:5051:ffff:fffe'}], 'gateway_ip': '29cb:7e38:821c:539c:685f:5051:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '29cb:7e38:821c:539c:685f:5051:0:2', 'tags': [], 'project_id': '466532a1c2ca421eb48012a0965a0886'}} 2025-09-05 16:07:54,431 - INFO - Created VN ctest-vn4-38182739 2025-09-05 16:07:54,496 - DEBUG - VN ctest-vn4-38182739 UUID is 004c3ba7-1c62-406e-8c43-c48d5040f10e 2025-09-05 16:07:54,932 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '004c3ba7-1c62-406e-8c43-c48d5040f10e', 'name': 'ctest-vn4-38182739', 'tenant_id': '466532a1c2ca421eb48012a0965a0886', 'project_id': '466532a1c2ca421eb48012a0965a0886', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['cae328df-b4e2-46e4-9794-01ed77e4527d', 'a8c1525c-81ee-4f0c-a7d2-1e327e0ae261'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-60024275', 'ctest-vn4-38182739'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-60024275', 'ctest-policy1-46342382']], 'subnet_ipam': [{'subnet_cidr': '84.67.113.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '29cb:7e38:821c:539c:685f:5051::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-09-05 16:07:55,095 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-09-05 16:07:55,457 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-09-05 16:07:55,496 - DEBUG - Requesting: http://10.0.0.22:8082/domain/f27c11e2-da49-4485-8c6b-c125be6c8d28 2025-09-05 16:07:55,523 - DEBUG - Requesting: http://10.0.0.22:8082/project/466532a1-c2ca-421e-b480-12a0965a0886 2025-09-05 16:07:55,626 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/004c3ba7-1c62-406e-8c43-c48d5040f10e 2025-09-05 16:07:55,641 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/004c3ba7-1c62-406e-8c43-c48d5040f10e 2025-09-05 16:07:55,655 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/b0784cee-6338-461e-aa2f-c7be3c144688 2025-09-05 16:07:55,663 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/b0784cee-6338-461e-aa2f-c7be3c144688 2025-09-05 16:07:55,672 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/8c615693-0658-484c-803f-5ca197b093fc 2025-09-05 16:07:55,680 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-05 16:07:55,681 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/004c3ba7-1c62-406e-8c43-c48d5040f10e 2025-09-05 16:07:55,698 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/b0784cee-6338-461e-aa2f-c7be3c144688 2025-09-05 16:07:55,726 - INFO - Verified VN network id 11 for VN 004c3ba7-1c62-406e-8c43-c48d5040f10e 2025-09-05 16:07:55,727 - INFO - Verifications in API Server for VN ctest-vn4-38182739 passed 2025-09-05 16:07:55,727 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/004c3ba7-1c62-406e-8c43-c48d5040f10e 2025-09-05 16:07:55,747 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/b0784cee-6338-461e-aa2f-c7be3c144688 2025-09-05 16:07:55,760 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/b0784cee-6338-461e-aa2f-c7be3c144688 2025-09-05 16:07:55,776 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/8c615693-0658-484c-803f-5ca197b093fc 2025-09-05 16:07:55,805 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-60024275:ctest-vn4-38182739', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-60024275', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '21457687151788142', 'uuid-lslong': '10107138099965391118'}, 'enable': 'true', 'created': '2025-09-05T16:07:53', 'last-modified': '2025-09-05T16:07:54', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.946791'} 2025-09-05 16:07:55,823 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-05 16:07:55,824 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-38182739 passed 2025-09-05 16:07:55,824 - DEBUG - ====Verifying policy data for ctest-vn4-38182739 in API_Server ====== 2025-09-05 16:07:55,825 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-09-05 16:07:55,838 - DEBUG - Requesting: http://10.0.0.22:8082/domain/f27c11e2-da49-4485-8c6b-c125be6c8d28 2025-09-05 16:07:55,867 - DEBUG - Requesting: http://10.0.0.22:8082/project/466532a1-c2ca-421e-b480-12a0965a0886 2025-09-05 16:07:55,993 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/004c3ba7-1c62-406e-8c43-c48d5040f10e 2025-09-05 16:07:56,015 - DEBUG - ==>Verifying data for policy with id: aab5d5d3-6131-4b4b-8e70-1849ad59b635, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-60024275', 'ctest-policy1-46342382'] 2025-09-05 16:07:56,015 - INFO - VN ctest-vn4-38182739 Policy verification: verify_vn_policy_in_api_server, status: True 2025-09-05 16:07:56,016 - DEBUG - Verifying the vn in opserver 2025-09-05 16:07:56,016 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-60024275:ctest-vn4-38182739 virtual network link through opserver 10.0.0.22 2025-09-05 16:07:56,016 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-09-05 16:07:56,374 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-09-05 16:07:56,475 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-60024275:ctest-vn4-38182739', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-60024275:ctest-vn4-38182739?flat'} 2025-09-05 16:07:56,476 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-60024275:ctest-vn4-38182739 is found in opserver 2025-09-05 16:07:56,508 - DEBUG - Do not have enough data to verify VN in agent 2025-09-05 16:07:56,522 - DEBUG - VRF ids for VN ctest-vn4-38182739: {} 2025-09-05 16:07:56,523 - DEBUG - ====Verifying data for ctest-policy1-46342382 in API_Server ====== 2025-09-05 16:07:56,523 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-09-05 16:07:56,535 - DEBUG - Requesting: http://10.0.0.22:8082/domain/f27c11e2-da49-4485-8c6b-c125be6c8d28 2025-09-05 16:07:56,575 - DEBUG - Requesting: http://10.0.0.22:8082/project/466532a1-c2ca-421e-b480-12a0965a0886 2025-09-05 16:07:56,699 - DEBUG - Requesting: http://10.0.0.22:8082/network-policy/aab5d5d3-6131-4b4b-8e70-1849ad59b635 2025-09-05 16:07:56,729 - INFO - Verified policy ctest-policy1-46342382 in API Server, Result: True 2025-09-05 16:07:56,730 - INFO - Done with setup and verification, moving onto test .. 2025-09-05 16:07:56,746 - INFO - Deleting VN ctest-vn4-38182739 2025-09-05 16:07:56,957 - DEBUG - Response for deleting network () 2025-09-05 16:07:56,957 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/b0784cee-6338-461e-aa2f-c7be3c144688 2025-09-05 16:07:56,963 - DEBUG - Response Code: 404 2025-09-05 16:07:56,963 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-09-05 16:07:56,969 - DEBUG - Requesting: http://10.0.0.22:8082/domain/f27c11e2-da49-4485-8c6b-c125be6c8d28 2025-09-05 16:07:57,028 - DEBUG - Requesting: http://10.0.0.22:8082/project/466532a1-c2ca-421e-b480-12a0965a0886 2025-09-05 16:07:57,129 - INFO - Validated that VN ctest-vn4-38182739 is not found in API Server 2025-09-05 16:07:57,146 - DEBUG - VN ctest-vn4-38182739 is not present in Agent 10.0.0.22 2025-09-05 16:07:57,146 - INFO - Validated that VN ctest-vn4-38182739 is not in any agent 2025-09-05 16:07:57,175 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-38182739 info 2025-09-05 16:07:57,224 - INFO - Deleted policy ctest-policy1-46342382 2025-09-05 16:07:57,438 - DEBUG - policy ctest-policy1-46342382 is not found in API Server 2025-09-05 16:07:57,768 - DEBUG - No XMPP flaps were noticed during the test
2025-09-05 16:07:57,769 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2025-09-05 16:07:57,769 - INFO - -------------------------------------------------------------------------------- 2025-09-05 16:07:58,106 - DEBUG - No XMPP flaps were noticed during the test
2025-09-05 16:07:58,106 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:06]
2025-09-05 16:07:58,106 - INFO - -------------------------------------------------------------------------------- 2025-09-05 16:07:59,025 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-60024275, ID : 466532a1-c2ca-421e-b480-12a0965a0886