2025-08-28 02:17:25,134 - INFO - Domain Default found not creating 2025-08-28 02:17:25,258 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-30424388 not found, creating it 2025-08-28 02:17:25,712 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-30424388, ID : 52f8a75f-732e-4703-a1c6-92df82747e00 2025-08-28 02:17:27,008 - INFO - ================================================================================ 2025-08-28 02:17:27,008 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-28 02:17:27,265 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.18': '0'}} with 2025-08-28 02:17:27,265 - INFO - Initial checks done. Running the testcase now 2025-08-28 02:17:27,265 - INFO - 2025-08-28 02:17:27,265 - INFO - ================================================================================ 2025-08-28 02:17:27,265 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-28 02:17:27,265 - 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-08-28 02:17:27,547 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.18': '0'}} with 2025-08-28 02:17:27,547 - INFO - Initial checks done. Running the testcase now 2025-08-28 02:17:27,547 - INFO - 2025-08-28 02:17:27,889 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-30424388:ctest-vn4-99232638, 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-30424388:ctest-vn4-99232638, 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-30424388:ctest-vn4-99232638, 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-30424388:ctest-vn4-99232638, 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-08-28 02:17:28,370 - DEBUG - Response for create_network : {'network': {'id': '06777a72-a144-48ac-9d3c-fb00276fc2f5', 'name': 'ctest-vn4-99232638', 'tenant_id': '52f8a75f732e4703a1c692df82747e00', 'project_id': '52f8a75f732e4703a1c692df82747e00', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-30424388', 'ctest-vn4-99232638'], 'port_security_enabled': True, 'description': ''}} 2025-08-28 02:17:28,592 - DEBUG - Response for create_subnet : {'subnet': {'id': '5c68b5f7-4a88-442c-a11e-33ab6ba4b706', 'name': '', 'tenant_id': '52f8a75f732e4703a1c692df82747e00', 'network_id': '06777a72-a144-48ac-9d3c-fb00276fc2f5', 'ip_version': 4, 'cidr': '176.168.211.0/26', 'allocation_pools': [{'start': '176.168.211.2', 'end': '176.168.211.62'}], 'gateway_ip': '176.168.211.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '176.168.211.2', 'tags': [], 'project_id': '52f8a75f732e4703a1c692df82747e00'}} 2025-08-28 02:17:28,754 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd320c3ac-4f64-48d8-b3d4-67d0e8921eee', 'name': '', 'tenant_id': '52f8a75f732e4703a1c692df82747e00', 'network_id': '06777a72-a144-48ac-9d3c-fb00276fc2f5', 'ip_version': 6, 'cidr': '2340:e5d3:ba41:70d2:863f:f895::/96', 'allocation_pools': [{'start': '2340:e5d3:ba41:70d2:863f:f895:0:2', 'end': '2340:e5d3:ba41:70d2:863f:f895:ffff:fffe'}], 'gateway_ip': '2340:e5d3:ba41:70d2:863f:f895:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2340:e5d3:ba41:70d2:863f:f895:0:2', 'tags': [], 'project_id': '52f8a75f732e4703a1c692df82747e00'}} 2025-08-28 02:17:28,772 - INFO - Created VN ctest-vn4-99232638 2025-08-28 02:17:28,823 - DEBUG - VN ctest-vn4-99232638 UUID is 06777a72-a144-48ac-9d3c-fb00276fc2f5 2025-08-28 02:17:28,997 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '06777a72-a144-48ac-9d3c-fb00276fc2f5', 'name': 'ctest-vn4-99232638', 'tenant_id': '52f8a75f732e4703a1c692df82747e00', 'project_id': '52f8a75f732e4703a1c692df82747e00', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5c68b5f7-4a88-442c-a11e-33ab6ba4b706', 'd320c3ac-4f64-48d8-b3d4-67d0e8921eee'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-30424388', 'ctest-vn4-99232638'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-30424388', 'ctest-policy1-22355475']], 'subnet_ipam': [{'subnet_cidr': '176.168.211.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2340:e5d3:ba41:70d2:863f:f895::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-28 02:17:29,151 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-08-28 02:17:29,436 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-08-28 02:17:29,459 - DEBUG - Requesting: http://10.0.0.33:8082/domain/d95b8d88-722e-42d6-8a8d-63dff6712391 2025-08-28 02:17:29,469 - DEBUG - Requesting: http://10.0.0.33:8082/project/52f8a75f-732e-4703-a1c6-92df82747e00 2025-08-28 02:17:29,536 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/06777a72-a144-48ac-9d3c-fb00276fc2f5 2025-08-28 02:17:29,547 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/06777a72-a144-48ac-9d3c-fb00276fc2f5 2025-08-28 02:17:29,555 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/cfd7f0ba-7288-4806-9292-99c28d062b41 2025-08-28 02:17:29,560 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/cfd7f0ba-7288-4806-9292-99c28d062b41 2025-08-28 02:17:29,565 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/71348cc9-668c-4d4f-990a-e11541e767d9 2025-08-28 02:17:29,570 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-28 02:17:29,570 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/06777a72-a144-48ac-9d3c-fb00276fc2f5 2025-08-28 02:17:29,577 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/cfd7f0ba-7288-4806-9292-99c28d062b41 2025-08-28 02:17:29,587 - INFO - Verified VN network id 12 for VN 06777a72-a144-48ac-9d3c-fb00276fc2f5 2025-08-28 02:17:29,587 - INFO - Verifications in API Server for VN ctest-vn4-99232638 passed 2025-08-28 02:17:29,587 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/06777a72-a144-48ac-9d3c-fb00276fc2f5 2025-08-28 02:17:29,594 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/cfd7f0ba-7288-4806-9292-99c28d062b41 2025-08-28 02:17:29,599 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/cfd7f0ba-7288-4806-9292-99c28d062b41 2025-08-28 02:17:29,603 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/71348cc9-668c-4d4f-990a-e11541e767d9 2025-08-28 02:17:29,625 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-30424388:ctest-vn4-99232638', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-30424388', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '465975719206602924', 'uuid-lslong': '11330206740637532917'}, 'enable': 'true', 'created': '2025-08-28T02:17:28', 'last-modified': '2025-08-28T02:17:28', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.654260'} 2025-08-28 02:17:29,630 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-28 02:17:29,630 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-99232638 passed 2025-08-28 02:17:29,630 - DEBUG - ====Verifying policy data for ctest-vn4-99232638 in API_Server ====== 2025-08-28 02:17:29,630 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-08-28 02:17:29,634 - DEBUG - Requesting: http://10.0.0.33:8082/domain/d95b8d88-722e-42d6-8a8d-63dff6712391 2025-08-28 02:17:29,642 - DEBUG - Requesting: http://10.0.0.33:8082/project/52f8a75f-732e-4703-a1c6-92df82747e00 2025-08-28 02:17:29,707 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/06777a72-a144-48ac-9d3c-fb00276fc2f5 2025-08-28 02:17:29,715 - DEBUG - ==>Verifying data for policy with id: 979b7c11-d45d-49c3-8908-22e0adb3b489, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-30424388', 'ctest-policy1-22355475'] 2025-08-28 02:17:29,715 - INFO - VN ctest-vn4-99232638 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-28 02:17:29,715 - DEBUG - Verifying the vn in opserver 2025-08-28 02:17:29,716 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-30424388:ctest-vn4-99232638 virtual network link through opserver 10.0.0.33 2025-08-28 02:17:29,716 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-08-28 02:17:30,001 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-08-28 02:17:30,049 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-30424388:ctest-vn4-99232638', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-30424388:ctest-vn4-99232638?flat'} 2025-08-28 02:17:30,049 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-30424388:ctest-vn4-99232638 is found in opserver 2025-08-28 02:17:30,057 - DEBUG - Do not have enough data to verify VN in agent 2025-08-28 02:17:30,060 - DEBUG - VRF ids for VN ctest-vn4-99232638: {} 2025-08-28 02:17:30,060 - DEBUG - ====Verifying data for ctest-policy1-22355475 in API_Server ====== 2025-08-28 02:17:30,061 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-08-28 02:17:30,065 - DEBUG - Requesting: http://10.0.0.33:8082/domain/d95b8d88-722e-42d6-8a8d-63dff6712391 2025-08-28 02:17:30,076 - DEBUG - Requesting: http://10.0.0.33:8082/project/52f8a75f-732e-4703-a1c6-92df82747e00 2025-08-28 02:17:30,140 - DEBUG - Requesting: http://10.0.0.33:8082/network-policy/979b7c11-d45d-49c3-8908-22e0adb3b489 2025-08-28 02:17:30,147 - INFO - Verified policy ctest-policy1-22355475 in API Server, Result: True 2025-08-28 02:17:30,147 - INFO - Done with setup and verification, moving onto test .. 2025-08-28 02:17:30,153 - INFO - Deleting VN ctest-vn4-99232638 2025-08-28 02:17:30,252 - DEBUG - Response for deleting network () 2025-08-28 02:17:30,252 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/cfd7f0ba-7288-4806-9292-99c28d062b41 2025-08-28 02:17:30,257 - DEBUG - Response Code: 404 2025-08-28 02:17:30,257 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-08-28 02:17:30,262 - DEBUG - Requesting: http://10.0.0.33:8082/domain/d95b8d88-722e-42d6-8a8d-63dff6712391 2025-08-28 02:17:30,315 - DEBUG - Requesting: http://10.0.0.33:8082/project/52f8a75f-732e-4703-a1c6-92df82747e00 2025-08-28 02:17:30,389 - INFO - Validated that VN ctest-vn4-99232638 is not found in API Server 2025-08-28 02:17:30,397 - DEBUG - VN ctest-vn4-99232638 is not present in Agent 10.0.0.33 2025-08-28 02:17:30,397 - INFO - Validated that VN ctest-vn4-99232638 is not in any agent 2025-08-28 02:17:30,408 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-99232638 info 2025-08-28 02:17:30,429 - INFO - Deleted policy ctest-policy1-22355475 2025-08-28 02:17:30,583 - DEBUG - policy ctest-policy1-22355475 is not found in API Server 2025-08-28 02:17:30,835 - DEBUG - No XMPP flaps were noticed during the test 2025-08-28 02:17:30,835 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:03] 2025-08-28 02:17:30,835 - INFO - -------------------------------------------------------------------------------- 2025-08-28 02:17:31,123 - DEBUG - No XMPP flaps were noticed during the test 2025-08-28 02:17:31,123 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-08-28 02:17:31,123 - INFO - -------------------------------------------------------------------------------- 2025-08-28 02:17:31,763 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-30424388, ID : 52f8a75f-732e-4703-a1c6-92df82747e00