2025-09-05 18:21:51,066 - INFO - Domain Default found not creating 2025-09-05 18:21:51,194 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-06272811 not found, creating it 2025-09-05 18:21:51,609 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-06272811, ID : e243407b-4ecd-49d3-92f7-d50c2aa62968 2025-09-05 18:21:52,936 - INFO - ================================================================================ 2025-09-05 18:21:52,937 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-05 18:21:53,190 - DEBUG - Nothing to compare xmpp stats {'10.0.0.57': {'10.20.0.17': '0'}} with 2025-09-05 18:21:53,190 - INFO - Initial checks done. Running the testcase now 2025-09-05 18:21:53,190 - INFO - 2025-09-05 18:21:53,190 - INFO - ================================================================================ 2025-09-05 18:21:53,190 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-05 18:21:53,191 - 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 18:21:53,478 - DEBUG - Nothing to compare xmpp stats {'10.0.0.57': {'10.20.0.17': '0'}} with 2025-09-05 18:21:53,478 - INFO - Initial checks done. Running the testcase now 2025-09-05 18:21:53,478 - INFO - 2025-09-05 18:21:53,815 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-06272811:ctest-vn4-05862018, 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-06272811:ctest-vn4-05862018, 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-06272811:ctest-vn4-05862018, 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-06272811:ctest-vn4-05862018, 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 18:21:54,297 - DEBUG - Response for create_network : {'network': {'id': 'dd9a412b-8098-4676-8960-8440b3f12406', 'name': 'ctest-vn4-05862018', 'tenant_id': 'e243407b4ecd49d392f7d50c2aa62968', 'project_id': 'e243407b4ecd49d392f7d50c2aa62968', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-06272811', 'ctest-vn4-05862018'], 'port_security_enabled': True, 'description': ''}} 2025-09-05 18:21:54,466 - DEBUG - Response for create_subnet : {'subnet': {'id': '8b6ca9c1-ee37-4e3a-bb3a-c3923002e0e7', 'name': '', 'tenant_id': 'e243407b4ecd49d392f7d50c2aa62968', 'network_id': 'dd9a412b-8098-4676-8960-8440b3f12406', 'ip_version': 4, 'cidr': '58.40.239.128/26', 'allocation_pools': [{'start': '58.40.239.130', 'end': '58.40.239.190'}], 'gateway_ip': '58.40.239.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '58.40.239.130', 'tags': [], 'project_id': 'e243407b4ecd49d392f7d50c2aa62968'}} 2025-09-05 18:21:54,649 - DEBUG - Response for create_subnet : {'subnet': {'id': '89ee2205-a9d7-4ace-95a0-f73669f1c716', 'name': '', 'tenant_id': 'e243407b4ecd49d392f7d50c2aa62968', 'network_id': 'dd9a412b-8098-4676-8960-8440b3f12406', 'ip_version': 6, 'cidr': '2934:f1c6:8a3f:46fc:8566:abd7::/96', 'allocation_pools': [{'start': '2934:f1c6:8a3f:46fc:8566:abd7:0:2', 'end': '2934:f1c6:8a3f:46fc:8566:abd7:ffff:fffe'}], 'gateway_ip': '2934:f1c6:8a3f:46fc:8566:abd7:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2934:f1c6:8a3f:46fc:8566:abd7:0:2', 'tags': [], 'project_id': 'e243407b4ecd49d392f7d50c2aa62968'}} 2025-09-05 18:21:54,667 - INFO - Created VN ctest-vn4-05862018 2025-09-05 18:21:54,717 - DEBUG - VN ctest-vn4-05862018 UUID is dd9a412b-8098-4676-8960-8440b3f12406 2025-09-05 18:21:54,894 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'dd9a412b-8098-4676-8960-8440b3f12406', 'name': 'ctest-vn4-05862018', 'tenant_id': 'e243407b4ecd49d392f7d50c2aa62968', 'project_id': 'e243407b4ecd49d392f7d50c2aa62968', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8b6ca9c1-ee37-4e3a-bb3a-c3923002e0e7', '89ee2205-a9d7-4ace-95a0-f73669f1c716'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-06272811', 'ctest-vn4-05862018'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-06272811', 'ctest-policy1-37849061']], 'subnet_ipam': [{'subnet_cidr': '58.40.239.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2934:f1c6:8a3f:46fc:8566:abd7::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-09-05 18:21:55,057 - DEBUG - Requesting: http://10.0.0.57:8082/domains 2025-09-05 18:21:55,346 - DEBUG - Requesting: http://10.0.0.57:8082/domains 2025-09-05 18:21:55,377 - DEBUG - Requesting: http://10.0.0.57:8082/domain/f8d7b60e-08ab-4081-b0df-ba3261bf638b 2025-09-05 18:21:55,389 - DEBUG - Requesting: http://10.0.0.57:8082/project/e243407b-4ecd-49d3-92f7-d50c2aa62968 2025-09-05 18:21:55,459 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/dd9a412b-8098-4676-8960-8440b3f12406 2025-09-05 18:21:55,471 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/dd9a412b-8098-4676-8960-8440b3f12406 2025-09-05 18:21:55,480 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/a389c152-a7e5-4841-aa8c-2a21c2b2853e 2025-09-05 18:21:55,486 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/a389c152-a7e5-4841-aa8c-2a21c2b2853e 2025-09-05 18:21:55,493 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/42699046-8a27-413a-b532-04c9916b8fc0 2025-09-05 18:21:55,498 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-05 18:21:55,498 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/dd9a412b-8098-4676-8960-8440b3f12406 2025-09-05 18:21:55,506 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/a389c152-a7e5-4841-aa8c-2a21c2b2853e 2025-09-05 18:21:55,517 - INFO - Verified VN network id 11 for VN dd9a412b-8098-4676-8960-8440b3f12406 2025-09-05 18:21:55,517 - INFO - Verifications in API Server for VN ctest-vn4-05862018 passed 2025-09-05 18:21:55,517 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/dd9a412b-8098-4676-8960-8440b3f12406 2025-09-05 18:21:55,525 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/a389c152-a7e5-4841-aa8c-2a21c2b2853e 2025-09-05 18:21:55,530 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/a389c152-a7e5-4841-aa8c-2a21c2b2853e 2025-09-05 18:21:55,535 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/42699046-8a27-413a-b532-04c9916b8fc0 2025-09-05 18:21:55,544 - DEBUG - Control-node 10.0.0.57 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-06272811:ctest-vn4-05862018', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-06272811', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15968147083892377206', 'uuid-lslong': '9899057394392048646'}, 'enable': 'true', 'created': '2025-09-05T18:21:54', 'last-modified': '2025-09-05T18:21:54', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.669724'} 2025-09-05 18:21:55,549 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-05 18:21:55,549 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-05862018 passed 2025-09-05 18:21:55,549 - DEBUG - ====Verifying policy data for ctest-vn4-05862018 in API_Server ====== 2025-09-05 18:21:55,549 - DEBUG - Requesting: http://10.0.0.57:8082/domains 2025-09-05 18:21:55,554 - DEBUG - Requesting: http://10.0.0.57:8082/domain/f8d7b60e-08ab-4081-b0df-ba3261bf638b 2025-09-05 18:21:55,562 - DEBUG - Requesting: http://10.0.0.57:8082/project/e243407b-4ecd-49d3-92f7-d50c2aa62968 2025-09-05 18:21:55,626 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/dd9a412b-8098-4676-8960-8440b3f12406 2025-09-05 18:21:55,639 - DEBUG - ==>Verifying data for policy with id: ab477c0f-70ee-4aab-8eb9-998bb675ff83, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-06272811', 'ctest-policy1-37849061'] 2025-09-05 18:21:55,639 - INFO - VN ctest-vn4-05862018 Policy verification: verify_vn_policy_in_api_server, status: True 2025-09-05 18:21:55,639 - DEBUG - Verifying the vn in opserver 2025-09-05 18:21:55,640 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-06272811:ctest-vn4-05862018 virtual network link through opserver 10.0.0.57 2025-09-05 18:21:55,640 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks 2025-09-05 18:21:55,929 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks 2025-09-05 18:21:55,974 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-06272811:ctest-vn4-05862018', 'href': 'http://10.0.0.57:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-06272811:ctest-vn4-05862018?flat'} 2025-09-05 18:21:55,974 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-06272811:ctest-vn4-05862018 is found in opserver 2025-09-05 18:21:55,983 - DEBUG - Do not have enough data to verify VN in agent 2025-09-05 18:21:55,986 - DEBUG - VRF ids for VN ctest-vn4-05862018: {} 2025-09-05 18:21:55,987 - DEBUG - ====Verifying data for ctest-policy1-37849061 in API_Server ====== 2025-09-05 18:21:55,987 - DEBUG - Requesting: http://10.0.0.57:8082/domains 2025-09-05 18:21:55,991 - DEBUG - Requesting: http://10.0.0.57:8082/domain/f8d7b60e-08ab-4081-b0df-ba3261bf638b 2025-09-05 18:21:56,001 - DEBUG - Requesting: http://10.0.0.57:8082/project/e243407b-4ecd-49d3-92f7-d50c2aa62968 2025-09-05 18:21:56,073 - DEBUG - Requesting: http://10.0.0.57:8082/network-policy/ab477c0f-70ee-4aab-8eb9-998bb675ff83 2025-09-05 18:21:56,081 - INFO - Verified policy ctest-policy1-37849061 in API Server, Result: True 2025-09-05 18:21:56,082 - INFO - Done with setup and verification, moving onto test .. 2025-09-05 18:21:56,088 - INFO - Deleting VN ctest-vn4-05862018 2025-09-05 18:21:56,204 - DEBUG - Response for deleting network () 2025-09-05 18:21:56,204 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/a389c152-a7e5-4841-aa8c-2a21c2b2853e 2025-09-05 18:21:56,208 - DEBUG - Response Code: 404 2025-09-05 18:21:56,208 - DEBUG - Requesting: http://10.0.0.57:8082/domains 2025-09-05 18:21:56,212 - DEBUG - Requesting: http://10.0.0.57:8082/domain/f8d7b60e-08ab-4081-b0df-ba3261bf638b 2025-09-05 18:21:56,262 - DEBUG - Requesting: http://10.0.0.57:8082/project/e243407b-4ecd-49d3-92f7-d50c2aa62968 2025-09-05 18:21:56,332 - INFO - Validated that VN ctest-vn4-05862018 is not found in API Server 2025-09-05 18:21:56,341 - DEBUG - VN ctest-vn4-05862018 is not present in Agent 10.0.0.57 2025-09-05 18:21:56,341 - INFO - Validated that VN ctest-vn4-05862018 is not in any agent 2025-09-05 18:21:56,353 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-05862018 info 2025-09-05 18:21:56,375 - INFO - Deleted policy ctest-policy1-37849061 2025-09-05 18:21:56,537 - DEBUG - policy ctest-policy1-37849061 is not found in API Server 2025-09-05 18:21:56,793 - DEBUG - No XMPP flaps were noticed during the test
2025-09-05 18:21:56,793 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:03]
2025-09-05 18:21:56,793 - INFO - -------------------------------------------------------------------------------- 2025-09-05 18:21:57,077 - DEBUG - No XMPP flaps were noticed during the test
2025-09-05 18:21:57,077 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2025-09-05 18:21:57,077 - INFO - -------------------------------------------------------------------------------- 2025-09-05 18:21:57,783 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-06272811, ID : e243407b-4ecd-49d3-92f7-d50c2aa62968