2025-11-05 09:26:13,229 - INFO - Domain Default found not creating 2025-11-05 09:26:13,361 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-06043902 not found, creating it 2025-11-05 09:26:13,800 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-06043902, ID : be2050bd-ce8b-4e63-9c7f-8054d7029bdd 2025-11-05 09:26:15,166 - INFO - ================================================================================ 2025-11-05 09:26:15,166 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-05 09:26:15,426 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0'}} with 2025-11-05 09:26:15,426 - INFO - Initial checks done. Running the testcase now 2025-11-05 09:26:15,426 - INFO - 2025-11-05 09:26:15,426 - INFO - ================================================================================ 2025-11-05 09:26:15,426 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-05 09:26:15,426 - 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-11-05 09:26:15,717 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0'}} with 2025-11-05 09:26:15,717 - INFO - Initial checks done. Running the testcase now 2025-11-05 09:26:15,717 - INFO - 2025-11-05 09:26:16,073 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-06043902:ctest-vn4-65657333, 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-06043902:ctest-vn4-65657333, 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-06043902:ctest-vn4-65657333, 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-06043902:ctest-vn4-65657333, 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-11-05 09:26:16,593 - DEBUG - Response for create_network : {'network': {'id': '2ef9fddd-7b3a-434c-9067-68ee414dae40', 'name': 'ctest-vn4-65657333', 'tenant_id': 'be2050bdce8b4e639c7f8054d7029bdd', 'project_id': 'be2050bdce8b4e639c7f8054d7029bdd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-06043902', 'ctest-vn4-65657333'], 'port_security_enabled': True, 'description': ''}} 2025-11-05 09:26:16,778 - DEBUG - Response for create_subnet : {'subnet': {'id': '8ac45be5-6844-4457-9aab-e4eb9a30c62e', 'name': '', 'tenant_id': 'be2050bdce8b4e639c7f8054d7029bdd', 'network_id': '2ef9fddd-7b3a-434c-9067-68ee414dae40', 'ip_version': 4, 'cidr': '159.86.164.128/26', 'allocation_pools': [{'start': '159.86.164.130', 'end': '159.86.164.190'}], 'gateway_ip': '159.86.164.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '159.86.164.130', 'tags': [], 'project_id': 'be2050bdce8b4e639c7f8054d7029bdd'}} 2025-11-05 09:26:16,973 - DEBUG - Response for create_subnet : {'subnet': {'id': '7e201e5e-88a6-4cb7-b2eb-623e68d6ea13', 'name': '', 'tenant_id': 'be2050bdce8b4e639c7f8054d7029bdd', 'network_id': '2ef9fddd-7b3a-434c-9067-68ee414dae40', 'ip_version': 6, 'cidr': '3e84:4324:5a18:f7a0:1bf2:7447::/96', 'allocation_pools': [{'start': '3e84:4324:5a18:f7a0:1bf2:7447:0:2', 'end': '3e84:4324:5a18:f7a0:1bf2:7447:ffff:fffe'}], 'gateway_ip': '3e84:4324:5a18:f7a0:1bf2:7447:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3e84:4324:5a18:f7a0:1bf2:7447:0:2', 'tags': [], 'project_id': 'be2050bdce8b4e639c7f8054d7029bdd'}} 2025-11-05 09:26:16,991 - INFO - Created VN ctest-vn4-65657333 2025-11-05 09:26:17,044 - DEBUG - VN ctest-vn4-65657333 UUID is 2ef9fddd-7b3a-434c-9067-68ee414dae40 2025-11-05 09:26:17,244 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2ef9fddd-7b3a-434c-9067-68ee414dae40', 'name': 'ctest-vn4-65657333', 'tenant_id': 'be2050bdce8b4e639c7f8054d7029bdd', 'project_id': 'be2050bdce8b4e639c7f8054d7029bdd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8ac45be5-6844-4457-9aab-e4eb9a30c62e', '7e201e5e-88a6-4cb7-b2eb-623e68d6ea13'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-06043902', 'ctest-vn4-65657333'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-06043902', 'ctest-policy1-72500927']], 'subnet_ipam': [{'subnet_cidr': '159.86.164.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3e84:4324:5a18:f7a0:1bf2:7447::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-11-05 09:26:17,405 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-11-05 09:26:17,693 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-11-05 09:26:17,718 - DEBUG - Requesting: http://10.0.0.22:8082/domain/b71d308d-fb1f-403d-8a34-31136a746c4e 2025-11-05 09:26:17,730 - DEBUG - Requesting: http://10.0.0.22:8082/project/be2050bd-ce8b-4e63-9c7f-8054d7029bdd 2025-11-05 09:26:17,796 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/2ef9fddd-7b3a-434c-9067-68ee414dae40 2025-11-05 09:26:17,807 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/2ef9fddd-7b3a-434c-9067-68ee414dae40 2025-11-05 09:26:17,816 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/20490a80-7476-4a36-be47-715026326384 2025-11-05 09:26:17,822 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/20490a80-7476-4a36-be47-715026326384 2025-11-05 09:26:17,828 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/c5e322c4-6435-4ed7-9515-af125228ce48 2025-11-05 09:26:17,834 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-05 09:26:17,834 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/2ef9fddd-7b3a-434c-9067-68ee414dae40 2025-11-05 09:26:17,842 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/20490a80-7476-4a36-be47-715026326384 2025-11-05 09:26:17,855 - INFO - Verified VN network id 12 for VN 2ef9fddd-7b3a-434c-9067-68ee414dae40 2025-11-05 09:26:17,855 - INFO - Verifications in API Server for VN ctest-vn4-65657333 passed 2025-11-05 09:26:17,855 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/2ef9fddd-7b3a-434c-9067-68ee414dae40 2025-11-05 09:26:17,864 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/20490a80-7476-4a36-be47-715026326384 2025-11-05 09:26:17,869 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/20490a80-7476-4a36-be47-715026326384 2025-11-05 09:26:17,875 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/c5e322c4-6435-4ed7-9515-af125228ce48 2025-11-05 09:26:17,885 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-06043902:ctest-vn4-65657333', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-06043902', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3385015722642654028', 'uuid-lslong': '10405400836569935424'}, 'enable': 'true', 'created': '2025-11-05T09:26:16', 'last-modified': '2025-11-05T09:26:17', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.672863'} 2025-11-05 09:26:17,890 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-05 09:26:17,891 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-65657333 passed 2025-11-05 09:26:17,891 - DEBUG - ====Verifying policy data for ctest-vn4-65657333 in API_Server ====== 2025-11-05 09:26:17,891 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-11-05 09:26:17,896 - DEBUG - Requesting: http://10.0.0.22:8082/domain/b71d308d-fb1f-403d-8a34-31136a746c4e 2025-11-05 09:26:17,905 - DEBUG - Requesting: http://10.0.0.22:8082/project/be2050bd-ce8b-4e63-9c7f-8054d7029bdd 2025-11-05 09:26:17,971 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/2ef9fddd-7b3a-434c-9067-68ee414dae40 2025-11-05 09:26:17,980 - DEBUG - ==>Verifying data for policy with id: 62a41f28-04f1-4f09-b12e-40676661eefd, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-06043902', 'ctest-policy1-72500927'] 2025-11-05 09:26:17,980 - INFO - VN ctest-vn4-65657333 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-05 09:26:17,980 - DEBUG - Verifying the vn in opserver 2025-11-05 09:26:17,980 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-06043902:ctest-vn4-65657333 virtual network link through opserver 10.0.0.22 2025-11-05 09:26:17,980 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-11-05 09:26:18,269 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-11-05 09:26:18,322 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-06043902:ctest-vn4-65657333', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-06043902:ctest-vn4-65657333?flat'} 2025-11-05 09:26:18,322 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-06043902:ctest-vn4-65657333 is found in opserver 2025-11-05 09:26:18,332 - DEBUG - Do not have enough data to verify VN in agent 2025-11-05 09:26:18,338 - DEBUG - VRF ids for VN ctest-vn4-65657333: {} 2025-11-05 09:26:18,338 - DEBUG - ====Verifying data for ctest-policy1-72500927 in API_Server ====== 2025-11-05 09:26:18,339 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-11-05 09:26:18,344 - DEBUG - Requesting: http://10.0.0.22:8082/domain/b71d308d-fb1f-403d-8a34-31136a746c4e 2025-11-05 09:26:18,357 - DEBUG - Requesting: http://10.0.0.22:8082/project/be2050bd-ce8b-4e63-9c7f-8054d7029bdd 2025-11-05 09:26:18,423 - DEBUG - Requesting: http://10.0.0.22:8082/network-policy/62a41f28-04f1-4f09-b12e-40676661eefd 2025-11-05 09:26:18,431 - INFO - Verified policy ctest-policy1-72500927 in API Server, Result: True 2025-11-05 09:26:18,431 - INFO - Done with setup and verification, moving onto test .. 2025-11-05 09:26:18,438 - INFO - Deleting VN ctest-vn4-65657333 2025-11-05 09:26:18,543 - DEBUG - Response for deleting network () 2025-11-05 09:26:18,544 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/20490a80-7476-4a36-be47-715026326384 2025-11-05 09:26:18,548 - DEBUG - Response Code: 404 2025-11-05 09:26:18,548 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-11-05 09:26:18,553 - DEBUG - Requesting: http://10.0.0.22:8082/domain/b71d308d-fb1f-403d-8a34-31136a746c4e 2025-11-05 09:26:18,609 - DEBUG - Requesting: http://10.0.0.22:8082/project/be2050bd-ce8b-4e63-9c7f-8054d7029bdd 2025-11-05 09:26:18,731 - INFO - Validated that VN ctest-vn4-65657333 is not found in API Server 2025-11-05 09:26:18,740 - DEBUG - VN ctest-vn4-65657333 is not present in Agent 10.0.0.22 2025-11-05 09:26:18,740 - INFO - Validated that VN ctest-vn4-65657333 is not in any agent 2025-11-05 09:26:18,753 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-65657333 info 2025-11-05 09:26:18,774 - INFO - Deleted policy ctest-policy1-72500927 2025-11-05 09:26:18,936 - DEBUG - policy ctest-policy1-72500927 is not found in API Server 2025-11-05 09:26:19,189 - DEBUG - No XMPP flaps were noticed during the test 2025-11-05 09:26:19,189 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-11-05 09:26:19,189 - INFO - -------------------------------------------------------------------------------- 2025-11-05 09:26:19,473 - DEBUG - No XMPP flaps were noticed during the test 2025-11-05 09:26:19,473 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-11-05 09:26:19,473 - INFO - -------------------------------------------------------------------------------- 2025-11-05 09:26:20,128 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-06043902, ID : be2050bd-ce8b-4e63-9c7f-8054d7029bdd