2025-09-29 01:51:23,507 - INFO - Domain Default found not creating 2025-09-29 01:51:23,648 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-93880429 not found, creating it 2025-09-29 01:51:24,081 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-93880429, ID : a841e8eb-0686-47b7-b103-e1f8e07d2778 2025-09-29 01:51:25,446 - INFO - ================================================================================ 2025-09-29 01:51:25,446 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-29 01:51:25,701 - DEBUG - Nothing to compare xmpp stats {'10.0.0.49': {'10.20.0.18': '0'}} with 2025-09-29 01:51:25,701 - INFO - Initial checks done. Running the testcase now 2025-09-29 01:51:25,701 - INFO - 2025-09-29 01:51:25,701 - INFO - ================================================================================ 2025-09-29 01:51:25,701 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-29 01:51:25,701 - 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 01:51:25,991 - DEBUG - Nothing to compare xmpp stats {'10.0.0.49': {'10.20.0.18': '0'}} with 2025-09-29 01:51:25,991 - INFO - Initial checks done. Running the testcase now 2025-09-29 01:51:25,991 - INFO - 2025-09-29 01:51:26,351 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93880429:ctest-vn4-64617280, 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-93880429:ctest-vn4-64617280, 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-93880429:ctest-vn4-64617280, 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-93880429:ctest-vn4-64617280, 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 01:51:26,889 - DEBUG - Response for create_network : {'network': {'id': '802a3d10-e0db-4459-ad68-22b31afd3afd', 'name': 'ctest-vn4-64617280', 'tenant_id': 'a841e8eb068647b7b103e1f8e07d2778', 'project_id': 'a841e8eb068647b7b103e1f8e07d2778', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-93880429', 'ctest-vn4-64617280'], 'port_security_enabled': True, 'description': ''}} 2025-09-29 01:51:27,035 - DEBUG - Response for create_subnet : {'subnet': {'id': '5919c109-52a3-46e2-9982-a86eb025f190', 'name': '', 'tenant_id': 'a841e8eb068647b7b103e1f8e07d2778', 'network_id': '802a3d10-e0db-4459-ad68-22b31afd3afd', 'ip_version': 4, 'cidr': '95.47.249.0/26', 'allocation_pools': [{'start': '95.47.249.2', 'end': '95.47.249.62'}], 'gateway_ip': '95.47.249.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '95.47.249.2', 'tags': [], 'project_id': 'a841e8eb068647b7b103e1f8e07d2778'}} 2025-09-29 01:51:27,408 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e3a73f44-3fb9-4abb-8f29-8d0eb32074c0', 'name': '', 'tenant_id': 'a841e8eb068647b7b103e1f8e07d2778', 'network_id': '802a3d10-e0db-4459-ad68-22b31afd3afd', 'ip_version': 6, 'cidr': '3110:3623:32b9:9216:a1d9:4f77::/96', 'allocation_pools': [{'start': '3110:3623:32b9:9216:a1d9:4f77:0:2', 'end': '3110:3623:32b9:9216:a1d9:4f77:ffff:fffe'}], 'gateway_ip': '3110:3623:32b9:9216:a1d9:4f77:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3110:3623:32b9:9216:a1d9:4f77:0:2', 'tags': [], 'project_id': 'a841e8eb068647b7b103e1f8e07d2778'}} 2025-09-29 01:51:27,444 - INFO - Created VN ctest-vn4-64617280 2025-09-29 01:51:27,499 - DEBUG - VN ctest-vn4-64617280 UUID is 802a3d10-e0db-4459-ad68-22b31afd3afd 2025-09-29 01:51:27,758 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '802a3d10-e0db-4459-ad68-22b31afd3afd', 'name': 'ctest-vn4-64617280', 'tenant_id': 'a841e8eb068647b7b103e1f8e07d2778', 'project_id': 'a841e8eb068647b7b103e1f8e07d2778', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5919c109-52a3-46e2-9982-a86eb025f190', 'e3a73f44-3fb9-4abb-8f29-8d0eb32074c0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-93880429', 'ctest-vn4-64617280'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-93880429', 'ctest-policy1-65571455']], 'subnet_ipam': [{'subnet_cidr': '95.47.249.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3110:3623:32b9:9216:a1d9:4f77::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-09-29 01:51:27,891 - DEBUG - Requesting: http://10.0.0.49:8082/domains 2025-09-29 01:51:28,188 - DEBUG - Requesting: http://10.0.0.49:8082/domains 2025-09-29 01:51:28,221 - DEBUG - Requesting: http://10.0.0.49:8082/domain/87ed8b95-182e-45b1-8df3-cf05281fdb90 2025-09-29 01:51:28,234 - DEBUG - Requesting: http://10.0.0.49:8082/project/a841e8eb-0686-47b7-b103-e1f8e07d2778 2025-09-29 01:51:28,307 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/802a3d10-e0db-4459-ad68-22b31afd3afd 2025-09-29 01:51:28,317 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/802a3d10-e0db-4459-ad68-22b31afd3afd 2025-09-29 01:51:28,326 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/9c26116e-d092-4006-9b5e-f1ae725fccd4 2025-09-29 01:51:28,333 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/9c26116e-d092-4006-9b5e-f1ae725fccd4 2025-09-29 01:51:28,339 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/dcc603de-ea4a-468e-bdac-3f447b2cb6f4 2025-09-29 01:51:28,346 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-29 01:51:28,346 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/802a3d10-e0db-4459-ad68-22b31afd3afd 2025-09-29 01:51:28,355 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/9c26116e-d092-4006-9b5e-f1ae725fccd4 2025-09-29 01:51:28,368 - INFO - Verified VN network id 10 for VN 802a3d10-e0db-4459-ad68-22b31afd3afd 2025-09-29 01:51:28,368 - INFO - Verifications in API Server for VN ctest-vn4-64617280 passed 2025-09-29 01:51:28,368 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/802a3d10-e0db-4459-ad68-22b31afd3afd 2025-09-29 01:51:28,377 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/9c26116e-d092-4006-9b5e-f1ae725fccd4 2025-09-29 01:51:28,383 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/9c26116e-d092-4006-9b5e-f1ae725fccd4 2025-09-29 01:51:28,390 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/dcc603de-ea4a-468e-bdac-3f447b2cb6f4 2025-09-29 01:51:28,400 - DEBUG - Control-node 10.0.0.49 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93880429:ctest-vn4-64617280', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-93880429', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9235261128577860697', 'uuid-lslong': '12495275318786734845'}, 'enable': 'true', 'created': '2025-09-29T01:51:26', 'last-modified': '2025-09-29T01:51:27', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.662628'} 2025-09-29 01:51:28,407 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-29 01:51:28,407 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-64617280 passed 2025-09-29 01:51:28,408 - DEBUG - ====Verifying policy data for ctest-vn4-64617280 in API_Server ====== 2025-09-29 01:51:28,408 - DEBUG - Requesting: http://10.0.0.49:8082/domains 2025-09-29 01:51:28,414 - DEBUG - Requesting: http://10.0.0.49:8082/domain/87ed8b95-182e-45b1-8df3-cf05281fdb90 2025-09-29 01:51:28,424 - DEBUG - Requesting: http://10.0.0.49:8082/project/a841e8eb-0686-47b7-b103-e1f8e07d2778 2025-09-29 01:51:28,493 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/802a3d10-e0db-4459-ad68-22b31afd3afd 2025-09-29 01:51:28,503 - DEBUG - ==>Verifying data for policy with id: d30f2d7c-b349-439f-bb1b-f5f3461caf37, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-93880429', 'ctest-policy1-65571455'] 2025-09-29 01:51:28,503 - INFO - VN ctest-vn4-64617280 Policy verification: verify_vn_policy_in_api_server, status: True 2025-09-29 01:51:28,503 - DEBUG - Verifying the vn in opserver 2025-09-29 01:51:28,503 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93880429:ctest-vn4-64617280 virtual network link through opserver 10.0.0.49 2025-09-29 01:51:28,503 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks 2025-09-29 01:51:28,800 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks 2025-09-29 01:51:28,856 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93880429:ctest-vn4-64617280', 'href': 'http://10.0.0.49:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93880429:ctest-vn4-64617280?flat'} 2025-09-29 01:51:28,856 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93880429:ctest-vn4-64617280 is found in opserver 2025-09-29 01:51:28,867 - DEBUG - Do not have enough data to verify VN in agent 2025-09-29 01:51:28,872 - DEBUG - VRF ids for VN ctest-vn4-64617280: {} 2025-09-29 01:51:28,873 - DEBUG - ====Verifying data for ctest-policy1-65571455 in API_Server ====== 2025-09-29 01:51:28,873 - DEBUG - Requesting: http://10.0.0.49:8082/domains 2025-09-29 01:51:28,878 - DEBUG - Requesting: http://10.0.0.49:8082/domain/87ed8b95-182e-45b1-8df3-cf05281fdb90 2025-09-29 01:51:28,888 - DEBUG - Requesting: http://10.0.0.49:8082/project/a841e8eb-0686-47b7-b103-e1f8e07d2778 2025-09-29 01:51:28,966 - DEBUG - Requesting: http://10.0.0.49:8082/network-policy/d30f2d7c-b349-439f-bb1b-f5f3461caf37 2025-09-29 01:51:28,975 - INFO - Verified policy ctest-policy1-65571455 in API Server, Result: True 2025-09-29 01:51:28,975 - INFO - Done with setup and verification, moving onto test .. 2025-09-29 01:51:28,983 - INFO - Deleting VN ctest-vn4-64617280 2025-09-29 01:51:29,112 - DEBUG - Response for deleting network () 2025-09-29 01:51:29,112 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/9c26116e-d092-4006-9b5e-f1ae725fccd4 2025-09-29 01:51:29,117 - DEBUG - Response Code: 404 2025-09-29 01:51:29,117 - DEBUG - Requesting: http://10.0.0.49:8082/domains 2025-09-29 01:51:29,123 - DEBUG - Requesting: http://10.0.0.49:8082/domain/87ed8b95-182e-45b1-8df3-cf05281fdb90 2025-09-29 01:51:29,175 - DEBUG - Requesting: http://10.0.0.49:8082/project/a841e8eb-0686-47b7-b103-e1f8e07d2778 2025-09-29 01:51:29,248 - INFO - Validated that VN ctest-vn4-64617280 is not found in API Server 2025-09-29 01:51:29,257 - DEBUG - VN ctest-vn4-64617280 is not present in Agent 10.0.0.49 2025-09-29 01:51:29,257 - INFO - Validated that VN ctest-vn4-64617280 is not in any agent 2025-09-29 01:51:29,271 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-64617280 info 2025-09-29 01:51:29,300 - INFO - Deleted policy ctest-policy1-65571455 2025-09-29 01:51:29,467 - DEBUG - policy ctest-policy1-65571455 is not found in API Server 2025-09-29 01:51:29,723 - DEBUG - No XMPP flaps were noticed during the test
2025-09-29 01:51:29,723 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-09-29 01:51:29,723 - INFO - -------------------------------------------------------------------------------- 2025-09-29 01:51:30,012 - DEBUG - No XMPP flaps were noticed during the test
2025-09-29 01:51:30,012 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2025-09-29 01:51:30,012 - INFO - -------------------------------------------------------------------------------- 2025-09-29 01:51:30,691 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-93880429, ID : a841e8eb-0686-47b7-b103-e1f8e07d2778