2025-10-16 15:21:10,803 - INFO - Domain Default found not creating 2025-10-16 15:21:10,988 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-22376094 not found, creating it 2025-10-16 15:21:11,489 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-22376094, ID : db224c31-b345-4ac4-af9f-c1c0596493d2 2025-10-16 15:21:13,054 - INFO - ================================================================================ 2025-10-16 15:21:13,054 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-16 15:21:13,313 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0'}} with 2025-10-16 15:21:13,313 - INFO - Initial checks done. Running the testcase now 2025-10-16 15:21:13,313 - INFO - 2025-10-16 15:21:13,313 - INFO - ================================================================================ 2025-10-16 15:21:13,313 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-16 15:21:13,313 - 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-10-16 15:21:13,608 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0'}} with 2025-10-16 15:21:13,608 - INFO - Initial checks done. Running the testcase now 2025-10-16 15:21:13,608 - INFO - 2025-10-16 15:21:13,969 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-22376094:ctest-vn4-33184935, 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-22376094:ctest-vn4-33184935, 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-22376094:ctest-vn4-33184935, 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-22376094:ctest-vn4-33184935, 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-10-16 15:21:14,522 - DEBUG - Response for create_network : {'network': {'id': '15bd459b-188e-4f30-97ec-8331dc554111', 'name': 'ctest-vn4-33184935', 'tenant_id': 'db224c31b3454ac4af9fc1c0596493d2', 'project_id': 'db224c31b3454ac4af9fc1c0596493d2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-22376094', 'ctest-vn4-33184935'], 'port_security_enabled': True, 'description': ''}} 2025-10-16 15:21:14,680 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c118b92a-6b83-4e0c-aedc-fa3dca2e0264', 'name': '', 'tenant_id': 'db224c31b3454ac4af9fc1c0596493d2', 'network_id': '15bd459b-188e-4f30-97ec-8331dc554111', 'ip_version': 4, 'cidr': '182.132.196.128/26', 'allocation_pools': [{'start': '182.132.196.130', 'end': '182.132.196.190'}], 'gateway_ip': '182.132.196.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '182.132.196.130', 'tags': [], 'project_id': 'db224c31b3454ac4af9fc1c0596493d2'}} 2025-10-16 15:21:14,870 - DEBUG - Response for create_subnet : {'subnet': {'id': '97e7f70c-cefa-4d55-af85-b70c18d992f1', 'name': '', 'tenant_id': 'db224c31b3454ac4af9fc1c0596493d2', 'network_id': '15bd459b-188e-4f30-97ec-8331dc554111', 'ip_version': 6, 'cidr': '20a7:665c:734d:df25:defe:2a0d::/96', 'allocation_pools': [{'start': '20a7:665c:734d:df25:defe:2a0d:0:2', 'end': '20a7:665c:734d:df25:defe:2a0d:ffff:fffe'}], 'gateway_ip': '20a7:665c:734d:df25:defe:2a0d:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '20a7:665c:734d:df25:defe:2a0d:0:2', 'tags': [], 'project_id': 'db224c31b3454ac4af9fc1c0596493d2'}} 2025-10-16 15:21:14,892 - INFO - Created VN ctest-vn4-33184935 2025-10-16 15:21:14,947 - DEBUG - VN ctest-vn4-33184935 UUID is 15bd459b-188e-4f30-97ec-8331dc554111 2025-10-16 15:21:15,172 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '15bd459b-188e-4f30-97ec-8331dc554111', 'name': 'ctest-vn4-33184935', 'tenant_id': 'db224c31b3454ac4af9fc1c0596493d2', 'project_id': 'db224c31b3454ac4af9fc1c0596493d2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c118b92a-6b83-4e0c-aedc-fa3dca2e0264', '97e7f70c-cefa-4d55-af85-b70c18d992f1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-22376094', 'ctest-vn4-33184935'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-22376094', 'ctest-policy1-88960221']], 'subnet_ipam': [{'subnet_cidr': '182.132.196.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '20a7:665c:734d:df25:defe:2a0d::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-16 15:21:15,355 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-10-16 15:21:15,671 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-10-16 15:21:15,703 - DEBUG - Requesting: http://10.0.0.22:8082/domain/3b60fbaa-15dc-4692-879a-5ed0016d47d2 2025-10-16 15:21:15,718 - DEBUG - Requesting: http://10.0.0.22:8082/project/db224c31-b345-4ac4-af9f-c1c0596493d2 2025-10-16 15:21:15,798 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/15bd459b-188e-4f30-97ec-8331dc554111 2025-10-16 15:21:15,810 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/15bd459b-188e-4f30-97ec-8331dc554111 2025-10-16 15:21:15,821 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/a1d7ece5-edc6-42f8-9aa2-cc58eb8f0c53 2025-10-16 15:21:15,828 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/a1d7ece5-edc6-42f8-9aa2-cc58eb8f0c53 2025-10-16 15:21:15,836 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/e896b719-374b-45d2-b324-086b93f64ddc 2025-10-16 15:21:15,843 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-16 15:21:15,843 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/15bd459b-188e-4f30-97ec-8331dc554111 2025-10-16 15:21:15,855 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/a1d7ece5-edc6-42f8-9aa2-cc58eb8f0c53 2025-10-16 15:21:15,873 - INFO - Verified VN network id 12 for VN 15bd459b-188e-4f30-97ec-8331dc554111 2025-10-16 15:21:15,873 - INFO - Verifications in API Server for VN ctest-vn4-33184935 passed 2025-10-16 15:21:15,873 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/15bd459b-188e-4f30-97ec-8331dc554111 2025-10-16 15:21:15,884 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/a1d7ece5-edc6-42f8-9aa2-cc58eb8f0c53 2025-10-16 15:21:15,891 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/a1d7ece5-edc6-42f8-9aa2-cc58eb8f0c53 2025-10-16 15:21:15,899 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/e896b719-374b-45d2-b324-086b93f64ddc 2025-10-16 15:21:15,912 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-22376094:ctest-vn4-33184935', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-22376094', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1566484777829027632', 'uuid-lslong': '10947269044404044049'}, 'enable': 'true', 'created': '2025-10-16T15:21:14', 'last-modified': '2025-10-16T15:21:15', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.767182'} 2025-10-16 15:21:15,921 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-16 15:21:15,921 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-33184935 passed 2025-10-16 15:21:15,922 - DEBUG - ====Verifying policy data for ctest-vn4-33184935 in API_Server ====== 2025-10-16 15:21:15,922 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-10-16 15:21:15,928 - DEBUG - Requesting: http://10.0.0.22:8082/domain/3b60fbaa-15dc-4692-879a-5ed0016d47d2 2025-10-16 15:21:15,940 - DEBUG - Requesting: http://10.0.0.22:8082/project/db224c31-b345-4ac4-af9f-c1c0596493d2 2025-10-16 15:21:16,018 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/15bd459b-188e-4f30-97ec-8331dc554111 2025-10-16 15:21:16,031 - DEBUG - ==>Verifying data for policy with id: 46e15333-8141-42fe-9864-4f6400e0728c, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-22376094', 'ctest-policy1-88960221'] 2025-10-16 15:21:16,031 - INFO - VN ctest-vn4-33184935 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-16 15:21:16,032 - DEBUG - Verifying the vn in opserver 2025-10-16 15:21:16,032 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-22376094:ctest-vn4-33184935 virtual network link through opserver 10.0.0.22 2025-10-16 15:21:16,032 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-10-16 15:21:16,332 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-10-16 15:21:16,404 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-22376094:ctest-vn4-33184935', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-22376094:ctest-vn4-33184935?flat'} 2025-10-16 15:21:16,404 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-22376094:ctest-vn4-33184935 is found in opserver 2025-10-16 15:21:16,417 - DEBUG - Do not have enough data to verify VN in agent 2025-10-16 15:21:16,435 - DEBUG - VRF ids for VN ctest-vn4-33184935: {} 2025-10-16 15:21:16,436 - DEBUG - ====Verifying data for ctest-policy1-88960221 in API_Server ====== 2025-10-16 15:21:16,436 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-10-16 15:21:16,442 - DEBUG - Requesting: http://10.0.0.22:8082/domain/3b60fbaa-15dc-4692-879a-5ed0016d47d2 2025-10-16 15:21:16,454 - DEBUG - Requesting: http://10.0.0.22:8082/project/db224c31-b345-4ac4-af9f-c1c0596493d2 2025-10-16 15:21:16,531 - DEBUG - Requesting: http://10.0.0.22:8082/network-policy/46e15333-8141-42fe-9864-4f6400e0728c 2025-10-16 15:21:16,541 - INFO - Verified policy ctest-policy1-88960221 in API Server, Result: True 2025-10-16 15:21:16,541 - INFO - Done with setup and verification, moving onto test .. 2025-10-16 15:21:16,551 - INFO - Deleting VN ctest-vn4-33184935 2025-10-16 15:21:16,690 - DEBUG - Response for deleting network () 2025-10-16 15:21:16,690 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/a1d7ece5-edc6-42f8-9aa2-cc58eb8f0c53 2025-10-16 15:21:16,696 - DEBUG - Response Code: 404 2025-10-16 15:21:16,696 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-10-16 15:21:16,702 - DEBUG - Requesting: http://10.0.0.22:8082/domain/3b60fbaa-15dc-4692-879a-5ed0016d47d2 2025-10-16 15:21:16,757 - DEBUG - Requesting: http://10.0.0.22:8082/project/db224c31-b345-4ac4-af9f-c1c0596493d2 2025-10-16 15:21:16,834 - INFO - Validated that VN ctest-vn4-33184935 is not found in API Server 2025-10-16 15:21:16,845 - DEBUG - VN ctest-vn4-33184935 is not present in Agent 10.0.0.22 2025-10-16 15:21:16,845 - INFO - Validated that VN ctest-vn4-33184935 is not in any agent 2025-10-16 15:21:16,860 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-33184935 info 2025-10-16 15:21:16,896 - INFO - Deleted policy ctest-policy1-88960221 2025-10-16 15:21:17,066 - DEBUG - policy ctest-policy1-88960221 is not found in API Server 2025-10-16 15:21:17,335 - DEBUG - No XMPP flaps were noticed during the test 2025-10-16 15:21:17,335 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-10-16 15:21:17,336 - INFO - -------------------------------------------------------------------------------- 2025-10-16 15:21:17,633 - DEBUG - No XMPP flaps were noticed during the test 2025-10-16 15:21:17,633 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-10-16 15:21:17,633 - INFO - -------------------------------------------------------------------------------- 2025-10-16 15:21:18,354 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-22376094, ID : db224c31-b345-4ac4-af9f-c1c0596493d2