2025-09-15 02:02:02,783 - INFO - Domain Default found not creating 2025-09-15 02:02:02,927 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-54088854 not found, creating it 2025-09-15 02:02:03,365 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-54088854, ID : ad761803-2cbf-401c-a6cc-05b51182967a 2025-09-15 02:02:04,798 - INFO - ================================================================================ 2025-09-15 02:02:04,798 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-15 02:02:05,059 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-09-15 02:02:05,059 - INFO - Initial checks done. Running the testcase now 2025-09-15 02:02:05,059 - INFO - 2025-09-15 02:02:05,060 - INFO - ================================================================================ 2025-09-15 02:02:05,060 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-15 02:02:05,060 - 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-15 02:02:05,350 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-09-15 02:02:05,350 - INFO - Initial checks done. Running the testcase now 2025-09-15 02:02:05,350 - INFO - 2025-09-15 02:02:05,701 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-54088854:ctest-vn4-05264006, 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-54088854:ctest-vn4-05264006, 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-54088854:ctest-vn4-05264006, 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-54088854:ctest-vn4-05264006, 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-15 02:02:06,210 - DEBUG - Response for create_network : {'network': {'id': '1218fc6f-4472-4335-9deb-af722aea5039', 'name': 'ctest-vn4-05264006', 'tenant_id': 'ad7618032cbf401ca6cc05b51182967a', 'project_id': 'ad7618032cbf401ca6cc05b51182967a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-54088854', 'ctest-vn4-05264006'], 'port_security_enabled': True, 'description': ''}} 2025-09-15 02:02:06,428 - DEBUG - Response for create_subnet : {'subnet': {'id': '47d60ae9-9cc6-4941-a32a-e16142dc75d7', 'name': '', 'tenant_id': 'ad7618032cbf401ca6cc05b51182967a', 'network_id': '1218fc6f-4472-4335-9deb-af722aea5039', 'ip_version': 4, 'cidr': '200.134.138.128/26', 'allocation_pools': [{'start': '200.134.138.130', 'end': '200.134.138.190'}], 'gateway_ip': '200.134.138.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '200.134.138.130', 'tags': [], 'project_id': 'ad7618032cbf401ca6cc05b51182967a'}} 2025-09-15 02:02:06,619 - DEBUG - Response for create_subnet : {'subnet': {'id': '7fef58c3-c4c1-4d6a-adac-a3ed2051439c', 'name': '', 'tenant_id': 'ad7618032cbf401ca6cc05b51182967a', 'network_id': '1218fc6f-4472-4335-9deb-af722aea5039', 'ip_version': 6, 'cidr': '2945:c7d8:5140:ae67:ed25:3eb3::/96', 'allocation_pools': [{'start': '2945:c7d8:5140:ae67:ed25:3eb3:0:2', 'end': '2945:c7d8:5140:ae67:ed25:3eb3:ffff:fffe'}], 'gateway_ip': '2945:c7d8:5140:ae67:ed25:3eb3:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2945:c7d8:5140:ae67:ed25:3eb3:0:2', 'tags': [], 'project_id': 'ad7618032cbf401ca6cc05b51182967a'}} 2025-09-15 02:02:06,638 - INFO - Created VN ctest-vn4-05264006 2025-09-15 02:02:06,689 - DEBUG - VN ctest-vn4-05264006 UUID is 1218fc6f-4472-4335-9deb-af722aea5039 2025-09-15 02:02:06,943 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1218fc6f-4472-4335-9deb-af722aea5039', 'name': 'ctest-vn4-05264006', 'tenant_id': 'ad7618032cbf401ca6cc05b51182967a', 'project_id': 'ad7618032cbf401ca6cc05b51182967a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['47d60ae9-9cc6-4941-a32a-e16142dc75d7', '7fef58c3-c4c1-4d6a-adac-a3ed2051439c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-54088854', 'ctest-vn4-05264006'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-54088854', 'ctest-policy1-26576520']], 'subnet_ipam': [{'subnet_cidr': '200.134.138.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2945:c7d8:5140:ae67:ed25:3eb3::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-09-15 02:02:07,105 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-09-15 02:02:07,399 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-09-15 02:02:07,426 - DEBUG - Requesting: http://10.0.0.254:8082/domain/ac83a039-4cbb-4139-aca9-fb3f5fba8a51 2025-09-15 02:02:07,439 - DEBUG - Requesting: http://10.0.0.254:8082/project/ad761803-2cbf-401c-a6cc-05b51182967a 2025-09-15 02:02:07,508 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/1218fc6f-4472-4335-9deb-af722aea5039 2025-09-15 02:02:07,518 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/1218fc6f-4472-4335-9deb-af722aea5039 2025-09-15 02:02:07,526 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/102dff08-9d4a-4a2e-950b-d9b3b9e4b056 2025-09-15 02:02:07,531 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/102dff08-9d4a-4a2e-950b-d9b3b9e4b056 2025-09-15 02:02:07,536 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/d238fd09-81fc-41a8-84b3-2d57b09b4548 2025-09-15 02:02:07,542 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-15 02:02:07,542 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/1218fc6f-4472-4335-9deb-af722aea5039 2025-09-15 02:02:07,550 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/102dff08-9d4a-4a2e-950b-d9b3b9e4b056 2025-09-15 02:02:07,570 - INFO - Verified VN network id 12 for VN 1218fc6f-4472-4335-9deb-af722aea5039 2025-09-15 02:02:07,570 - INFO - Verifications in API Server for VN ctest-vn4-05264006 passed 2025-09-15 02:02:07,570 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/1218fc6f-4472-4335-9deb-af722aea5039 2025-09-15 02:02:07,581 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/102dff08-9d4a-4a2e-950b-d9b3b9e4b056 2025-09-15 02:02:07,587 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/102dff08-9d4a-4a2e-950b-d9b3b9e4b056 2025-09-15 02:02:07,592 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/d238fd09-81fc-41a8-84b3-2d57b09b4548 2025-09-15 02:02:07,602 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-54088854:ctest-vn4-05264006', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-54088854', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1304069646943666997', 'uuid-lslong': '11379381788362821689'}, 'enable': 'true', 'created': '2025-09-15T02:02:06', 'last-modified': '2025-09-15T02:02:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.679048'} 2025-09-15 02:02:07,608 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-15 02:02:07,608 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-05264006 passed 2025-09-15 02:02:07,608 - DEBUG - ====Verifying policy data for ctest-vn4-05264006 in API_Server ====== 2025-09-15 02:02:07,608 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-09-15 02:02:07,613 - DEBUG - Requesting: http://10.0.0.254:8082/domain/ac83a039-4cbb-4139-aca9-fb3f5fba8a51 2025-09-15 02:02:07,623 - DEBUG - Requesting: http://10.0.0.254:8082/project/ad761803-2cbf-401c-a6cc-05b51182967a 2025-09-15 02:02:07,694 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/1218fc6f-4472-4335-9deb-af722aea5039 2025-09-15 02:02:07,704 - DEBUG - ==>Verifying data for policy with id: 59dcb74d-e9f2-4e91-bd6d-6260398f28f2, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-54088854', 'ctest-policy1-26576520'] 2025-09-15 02:02:07,704 - INFO - VN ctest-vn4-05264006 Policy verification: verify_vn_policy_in_api_server, status: True 2025-09-15 02:02:07,704 - DEBUG - Verifying the vn in opserver 2025-09-15 02:02:07,704 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-54088854:ctest-vn4-05264006 virtual network link through opserver 10.0.0.254 2025-09-15 02:02:07,704 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-09-15 02:02:08,005 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-09-15 02:02:08,088 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-54088854:ctest-vn4-05264006', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-54088854:ctest-vn4-05264006?flat'} 2025-09-15 02:02:08,088 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-54088854:ctest-vn4-05264006 is found in opserver 2025-09-15 02:02:08,097 - DEBUG - Do not have enough data to verify VN in agent 2025-09-15 02:02:08,101 - DEBUG - VRF ids for VN ctest-vn4-05264006: {} 2025-09-15 02:02:08,101 - DEBUG - ====Verifying data for ctest-policy1-26576520 in API_Server ====== 2025-09-15 02:02:08,101 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-09-15 02:02:08,121 - DEBUG - Requesting: http://10.0.0.254:8082/domain/ac83a039-4cbb-4139-aca9-fb3f5fba8a51 2025-09-15 02:02:08,154 - DEBUG - Requesting: http://10.0.0.254:8082/project/ad761803-2cbf-401c-a6cc-05b51182967a 2025-09-15 02:02:08,229 - DEBUG - Requesting: http://10.0.0.254:8082/network-policy/59dcb74d-e9f2-4e91-bd6d-6260398f28f2 2025-09-15 02:02:08,243 - INFO - Verified policy ctest-policy1-26576520 in API Server, Result: True 2025-09-15 02:02:08,243 - INFO - Done with setup and verification, moving onto test .. 2025-09-15 02:02:08,254 - INFO - Deleting VN ctest-vn4-05264006 2025-09-15 02:02:08,575 - DEBUG - Response for deleting network () 2025-09-15 02:02:08,576 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/102dff08-9d4a-4a2e-950b-d9b3b9e4b056 2025-09-15 02:02:08,583 - DEBUG - Response Code: 404 2025-09-15 02:02:08,583 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-09-15 02:02:08,592 - DEBUG - Requesting: http://10.0.0.254:8082/domain/ac83a039-4cbb-4139-aca9-fb3f5fba8a51 2025-09-15 02:02:08,607 - DEBUG - Requesting: http://10.0.0.254:8082/project/ad761803-2cbf-401c-a6cc-05b51182967a 2025-09-15 02:02:08,676 - INFO - Validated that VN ctest-vn4-05264006 is not found in API Server 2025-09-15 02:02:08,684 - DEBUG - VN ctest-vn4-05264006 is not present in Agent 10.0.0.254 2025-09-15 02:02:08,684 - INFO - Validated that VN ctest-vn4-05264006 is not in any agent 2025-09-15 02:02:08,698 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-05264006 info 2025-09-15 02:02:08,725 - INFO - Deleted policy ctest-policy1-26576520 2025-09-15 02:02:08,885 - DEBUG - policy ctest-policy1-26576520 is not found in API Server 2025-09-15 02:02:09,137 - DEBUG - No XMPP flaps were noticed during the test 2025-09-15 02:02:09,138 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-09-15 02:02:09,138 - INFO - -------------------------------------------------------------------------------- 2025-09-15 02:02:09,426 - DEBUG - No XMPP flaps were noticed during the test 2025-09-15 02:02:09,426 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2025-09-15 02:02:09,426 - INFO - -------------------------------------------------------------------------------- 2025-09-15 02:02:10,097 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-54088854, ID : ad761803-2cbf-401c-a6cc-05b51182967a