2025-09-29 21:03:36,409 - INFO - Domain Default found not creating 2025-09-29 21:03:36,525 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-74001091 not found, creating it 2025-09-29 21:03:36,971 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-74001091, ID : 7dd4df4a-f5cf-49da-9df3-96bafc772008 2025-09-29 21:03:38,252 - INFO - ================================================================================ 2025-09-29 21:03:38,252 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-29 21:03:38,510 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-09-29 21:03:38,510 - INFO - Initial checks done. Running the testcase now 2025-09-29 21:03:38,510 - INFO - 2025-09-29 21:03:38,510 - INFO - ================================================================================ 2025-09-29 21:03:38,510 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-29 21:03:38,510 - 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-29 21:03:38,798 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-09-29 21:03:38,798 - INFO - Initial checks done. Running the testcase now 2025-09-29 21:03:38,798 - INFO - 2025-09-29 21:03:39,133 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-74001091:ctest-vn4-12202255, 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-74001091:ctest-vn4-12202255, 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-74001091:ctest-vn4-12202255, 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-74001091:ctest-vn4-12202255, 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-29 21:03:39,601 - DEBUG - Response for create_network : {'network': {'id': 'a04f58c1-237a-4696-a7f6-a1959a8e7a89', 'name': 'ctest-vn4-12202255', 'tenant_id': '7dd4df4af5cf49da9df396bafc772008', 'project_id': '7dd4df4af5cf49da9df396bafc772008', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-74001091', 'ctest-vn4-12202255'], 'port_security_enabled': True, 'description': ''}} 2025-09-29 21:03:39,799 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a22fae67-7b4d-461e-9ff3-df4d070e8244', 'name': '', 'tenant_id': '7dd4df4af5cf49da9df396bafc772008', 'network_id': 'a04f58c1-237a-4696-a7f6-a1959a8e7a89', 'ip_version': 4, 'cidr': '47.180.245.0/26', 'allocation_pools': [{'start': '47.180.245.2', 'end': '47.180.245.62'}], 'gateway_ip': '47.180.245.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '47.180.245.2', 'tags': [], 'project_id': '7dd4df4af5cf49da9df396bafc772008'}} 2025-09-29 21:03:39,941 - DEBUG - Response for create_subnet : {'subnet': {'id': '2c45eee0-7cb0-4d09-b76c-d094a409bbd9', 'name': '', 'tenant_id': '7dd4df4af5cf49da9df396bafc772008', 'network_id': 'a04f58c1-237a-4696-a7f6-a1959a8e7a89', 'ip_version': 6, 'cidr': '27fd:c016:a072:e3cd:5f58:a5ad::/96', 'allocation_pools': [{'start': '27fd:c016:a072:e3cd:5f58:a5ad:0:2', 'end': '27fd:c016:a072:e3cd:5f58:a5ad:ffff:fffe'}], 'gateway_ip': '27fd:c016:a072:e3cd:5f58:a5ad:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '27fd:c016:a072:e3cd:5f58:a5ad:0:2', 'tags': [], 'project_id': '7dd4df4af5cf49da9df396bafc772008'}} 2025-09-29 21:03:39,961 - INFO - Created VN ctest-vn4-12202255 2025-09-29 21:03:40,009 - DEBUG - VN ctest-vn4-12202255 UUID is a04f58c1-237a-4696-a7f6-a1959a8e7a89 2025-09-29 21:03:40,177 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a04f58c1-237a-4696-a7f6-a1959a8e7a89', 'name': 'ctest-vn4-12202255', 'tenant_id': '7dd4df4af5cf49da9df396bafc772008', 'project_id': '7dd4df4af5cf49da9df396bafc772008', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a22fae67-7b4d-461e-9ff3-df4d070e8244', '2c45eee0-7cb0-4d09-b76c-d094a409bbd9'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-74001091', 'ctest-vn4-12202255'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-74001091', 'ctest-policy1-61797384']], 'subnet_ipam': [{'subnet_cidr': '47.180.245.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '27fd:c016:a072:e3cd:5f58:a5ad::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-09-29 21:03:40,341 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-09-29 21:03:40,627 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-09-29 21:03:40,650 - DEBUG - Requesting: http://10.0.0.254:8082/domain/9761f08d-2501-4bad-9e0d-42016bddd5eb 2025-09-29 21:03:40,660 - DEBUG - Requesting: http://10.0.0.254:8082/project/7dd4df4a-f5cf-49da-9df3-96bafc772008 2025-09-29 21:03:40,724 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/a04f58c1-237a-4696-a7f6-a1959a8e7a89 2025-09-29 21:03:40,734 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/a04f58c1-237a-4696-a7f6-a1959a8e7a89 2025-09-29 21:03:40,741 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/8e6e80f8-4873-491c-8ae1-2bb1d033253f 2025-09-29 21:03:40,747 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/8e6e80f8-4873-491c-8ae1-2bb1d033253f 2025-09-29 21:03:40,752 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/827cac92-44db-4b63-962c-933e7e956d18 2025-09-29 21:03:40,756 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-29 21:03:40,756 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/a04f58c1-237a-4696-a7f6-a1959a8e7a89 2025-09-29 21:03:40,763 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/8e6e80f8-4873-491c-8ae1-2bb1d033253f 2025-09-29 21:03:40,774 - INFO - Verified VN network id 11 for VN a04f58c1-237a-4696-a7f6-a1959a8e7a89 2025-09-29 21:03:40,774 - INFO - Verifications in API Server for VN ctest-vn4-12202255 passed 2025-09-29 21:03:40,774 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/a04f58c1-237a-4696-a7f6-a1959a8e7a89 2025-09-29 21:03:40,781 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/8e6e80f8-4873-491c-8ae1-2bb1d033253f 2025-09-29 21:03:40,786 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/8e6e80f8-4873-491c-8ae1-2bb1d033253f 2025-09-29 21:03:40,792 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/827cac92-44db-4b63-962c-933e7e956d18 2025-09-29 21:03:40,800 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-74001091:ctest-vn4-12202255', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-74001091', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11551549155775760022', 'uuid-lslong': '12103038712520014473'}, 'enable': 'true', 'created': '2025-09-29T21:03:39', 'last-modified': '2025-09-29T21:03:40', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.642879'} 2025-09-29 21:03:40,805 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-29 21:03:40,805 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-12202255 passed 2025-09-29 21:03:40,806 - DEBUG - ====Verifying policy data for ctest-vn4-12202255 in API_Server ====== 2025-09-29 21:03:40,806 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-09-29 21:03:40,809 - DEBUG - Requesting: http://10.0.0.254:8082/domain/9761f08d-2501-4bad-9e0d-42016bddd5eb 2025-09-29 21:03:40,818 - DEBUG - Requesting: http://10.0.0.254:8082/project/7dd4df4a-f5cf-49da-9df3-96bafc772008 2025-09-29 21:03:40,884 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/a04f58c1-237a-4696-a7f6-a1959a8e7a89 2025-09-29 21:03:40,891 - DEBUG - ==>Verifying data for policy with id: 1559ad51-ef65-4680-9ecb-352a9b99f51a, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-74001091', 'ctest-policy1-61797384'] 2025-09-29 21:03:40,892 - INFO - VN ctest-vn4-12202255 Policy verification: verify_vn_policy_in_api_server, status: True 2025-09-29 21:03:40,892 - DEBUG - Verifying the vn in opserver 2025-09-29 21:03:40,892 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-74001091:ctest-vn4-12202255 virtual network link through opserver 10.0.0.254 2025-09-29 21:03:40,892 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-09-29 21:03:41,179 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-09-29 21:03:41,228 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-74001091:ctest-vn4-12202255', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-74001091:ctest-vn4-12202255?flat'} 2025-09-29 21:03:41,228 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-74001091:ctest-vn4-12202255 is found in opserver 2025-09-29 21:03:41,236 - DEBUG - Do not have enough data to verify VN in agent 2025-09-29 21:03:41,240 - DEBUG - VRF ids for VN ctest-vn4-12202255: {} 2025-09-29 21:03:41,240 - DEBUG - ====Verifying data for ctest-policy1-61797384 in API_Server ====== 2025-09-29 21:03:41,240 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-09-29 21:03:41,244 - DEBUG - Requesting: http://10.0.0.254:8082/domain/9761f08d-2501-4bad-9e0d-42016bddd5eb 2025-09-29 21:03:41,253 - DEBUG - Requesting: http://10.0.0.254:8082/project/7dd4df4a-f5cf-49da-9df3-96bafc772008 2025-09-29 21:03:41,318 - DEBUG - Requesting: http://10.0.0.254:8082/network-policy/1559ad51-ef65-4680-9ecb-352a9b99f51a 2025-09-29 21:03:41,325 - INFO - Verified policy ctest-policy1-61797384 in API Server, Result: True 2025-09-29 21:03:41,325 - INFO - Done with setup and verification, moving onto test .. 2025-09-29 21:03:41,331 - INFO - Deleting VN ctest-vn4-12202255 2025-09-29 21:03:41,422 - DEBUG - Response for deleting network () 2025-09-29 21:03:41,422 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/8e6e80f8-4873-491c-8ae1-2bb1d033253f 2025-09-29 21:03:41,426 - DEBUG - Response Code: 404 2025-09-29 21:03:41,427 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-09-29 21:03:41,481 - DEBUG - Requesting: http://10.0.0.254:8082/domain/9761f08d-2501-4bad-9e0d-42016bddd5eb 2025-09-29 21:03:41,490 - DEBUG - Requesting: http://10.0.0.254:8082/project/7dd4df4a-f5cf-49da-9df3-96bafc772008 2025-09-29 21:03:41,561 - INFO - Validated that VN ctest-vn4-12202255 is not found in API Server 2025-09-29 21:03:41,569 - DEBUG - VN ctest-vn4-12202255 is not present in Agent 10.0.0.254 2025-09-29 21:03:41,569 - INFO - Validated that VN ctest-vn4-12202255 is not in any agent 2025-09-29 21:03:41,579 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-12202255 info 2025-09-29 21:03:41,600 - INFO - Deleted policy ctest-policy1-61797384 2025-09-29 21:03:41,757 - DEBUG - policy ctest-policy1-61797384 is not found in API Server 2025-09-29 21:03:42,005 - DEBUG - No XMPP flaps were noticed during the test
2025-09-29 21:03:42,005 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-09-29 21:03:42,005 - INFO - -------------------------------------------------------------------------------- 2025-09-29 21:03:42,293 - DEBUG - No XMPP flaps were noticed during the test
2025-09-29 21:03:42,294 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-09-29 21:03:42,294 - INFO - -------------------------------------------------------------------------------- 2025-09-29 21:03:42,929 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-74001091, ID : 7dd4df4a-f5cf-49da-9df3-96bafc772008