2025-08-15 16:32:19,917 - INFO - Domain Default found not creating 2025-08-15 16:32:20,034 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-02863113 not found, creating it 2025-08-15 16:32:20,459 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-02863113, ID : 43cef7dd-c5ef-41fd-90a7-b5f168a61f8c 2025-08-15 16:32:21,744 - INFO - ================================================================================ 2025-08-15 16:32:21,744 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-15 16:32:21,997 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.254': '0'}} with 2025-08-15 16:32:21,997 - INFO - Initial checks done. Running the testcase now 2025-08-15 16:32:21,997 - INFO - 2025-08-15 16:32:21,997 - INFO - ================================================================================ 2025-08-15 16:32:21,997 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-15 16:32:21,997 - 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-15 16:32:22,294 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.254': '0'}} with 2025-08-15 16:32:22,294 - INFO - Initial checks done. Running the testcase now 2025-08-15 16:32:22,294 - INFO - 2025-08-15 16:32:22,630 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-02863113:ctest-vn4-86660359, 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-02863113:ctest-vn4-86660359, 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-02863113:ctest-vn4-86660359, 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-02863113:ctest-vn4-86660359, 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-15 16:32:23,145 - DEBUG - Response for create_network : {'network': {'id': '22211347-8122-4a5a-a27a-28ea1416e534', 'name': 'ctest-vn4-86660359', 'tenant_id': '43cef7ddc5ef41fd90a7b5f168a61f8c', 'project_id': '43cef7ddc5ef41fd90a7b5f168a61f8c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-02863113', 'ctest-vn4-86660359'], 'port_security_enabled': True, 'description': ''}} 2025-08-15 16:32:23,343 - DEBUG - Response for create_subnet : {'subnet': {'id': '86dab824-59d3-448f-b48b-f2fe963e38ec', 'name': '', 'tenant_id': '43cef7ddc5ef41fd90a7b5f168a61f8c', 'network_id': '22211347-8122-4a5a-a27a-28ea1416e534', 'ip_version': 4, 'cidr': '31.90.73.128/26', 'allocation_pools': [{'start': '31.90.73.130', 'end': '31.90.73.190'}], 'gateway_ip': '31.90.73.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '31.90.73.130', 'tags': [], 'project_id': '43cef7ddc5ef41fd90a7b5f168a61f8c'}} 2025-08-15 16:32:23,492 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b92bc8ab-2759-44cc-a61d-aa02ad8de99f', 'name': '', 'tenant_id': '43cef7ddc5ef41fd90a7b5f168a61f8c', 'network_id': '22211347-8122-4a5a-a27a-28ea1416e534', 'ip_version': 6, 'cidr': '34cd:216a:db2d:6a3a:fc20:d239::/96', 'allocation_pools': [{'start': '34cd:216a:db2d:6a3a:fc20:d239:0:2', 'end': '34cd:216a:db2d:6a3a:fc20:d239:ffff:fffe'}], 'gateway_ip': '34cd:216a:db2d:6a3a:fc20:d239:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '34cd:216a:db2d:6a3a:fc20:d239:0:2', 'tags': [], 'project_id': '43cef7ddc5ef41fd90a7b5f168a61f8c'}} 2025-08-15 16:32:23,510 - INFO - Created VN ctest-vn4-86660359 2025-08-15 16:32:23,560 - DEBUG - VN ctest-vn4-86660359 UUID is 22211347-8122-4a5a-a27a-28ea1416e534 2025-08-15 16:32:23,761 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '22211347-8122-4a5a-a27a-28ea1416e534', 'name': 'ctest-vn4-86660359', 'tenant_id': '43cef7ddc5ef41fd90a7b5f168a61f8c', 'project_id': '43cef7ddc5ef41fd90a7b5f168a61f8c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['86dab824-59d3-448f-b48b-f2fe963e38ec', 'b92bc8ab-2759-44cc-a61d-aa02ad8de99f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-02863113', 'ctest-vn4-86660359'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-02863113', 'ctest-policy1-97042210']], 'subnet_ipam': [{'subnet_cidr': '31.90.73.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '34cd:216a:db2d:6a3a:fc20:d239::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-15 16:32:23,928 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-08-15 16:32:24,218 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-08-15 16:32:24,242 - DEBUG - Requesting: http://10.0.0.50:8082/domain/e807ff4e-deb0-4f2b-83f6-c90fc6771ab8 2025-08-15 16:32:24,254 - DEBUG - Requesting: http://10.0.0.50:8082/project/43cef7dd-c5ef-41fd-90a7-b5f168a61f8c 2025-08-15 16:32:24,326 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/22211347-8122-4a5a-a27a-28ea1416e534 2025-08-15 16:32:24,338 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/22211347-8122-4a5a-a27a-28ea1416e534 2025-08-15 16:32:24,347 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/9355ecfa-0ed2-4f47-8260-cc6697a71cfe 2025-08-15 16:32:24,353 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/9355ecfa-0ed2-4f47-8260-cc6697a71cfe 2025-08-15 16:32:24,359 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/24228272-298a-47d4-977e-eefc9edb7586 2025-08-15 16:32:24,364 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-15 16:32:24,364 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/22211347-8122-4a5a-a27a-28ea1416e534 2025-08-15 16:32:24,373 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/9355ecfa-0ed2-4f47-8260-cc6697a71cfe 2025-08-15 16:32:24,385 - INFO - Verified VN network id 11 for VN 22211347-8122-4a5a-a27a-28ea1416e534 2025-08-15 16:32:24,385 - INFO - Verifications in API Server for VN ctest-vn4-86660359 passed 2025-08-15 16:32:24,385 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/22211347-8122-4a5a-a27a-28ea1416e534 2025-08-15 16:32:24,394 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/9355ecfa-0ed2-4f47-8260-cc6697a71cfe 2025-08-15 16:32:24,400 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/9355ecfa-0ed2-4f47-8260-cc6697a71cfe 2025-08-15 16:32:24,406 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/24228272-298a-47d4-977e-eefc9edb7586 2025-08-15 16:32:24,416 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-02863113:ctest-vn4-86660359', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-02863113', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2459268069351115354', 'uuid-lslong': '11707715167127528756'}, 'enable': 'true', 'created': '2025-08-15T16:32:23', 'last-modified': '2025-08-15T16:32:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.690648'} 2025-08-15 16:32:24,422 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-15 16:32:24,424 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-86660359 passed 2025-08-15 16:32:24,424 - DEBUG - ====Verifying policy data for ctest-vn4-86660359 in API_Server ====== 2025-08-15 16:32:24,424 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-08-15 16:32:24,429 - DEBUG - Requesting: http://10.0.0.50:8082/domain/e807ff4e-deb0-4f2b-83f6-c90fc6771ab8 2025-08-15 16:32:24,439 - DEBUG - Requesting: http://10.0.0.50:8082/project/43cef7dd-c5ef-41fd-90a7-b5f168a61f8c 2025-08-15 16:32:24,507 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/22211347-8122-4a5a-a27a-28ea1416e534 2025-08-15 16:32:24,517 - DEBUG - ==>Verifying data for policy with id: e250d411-c099-4497-86cc-9aaaecfefd35, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-02863113', 'ctest-policy1-97042210'] 2025-08-15 16:32:24,517 - INFO - VN ctest-vn4-86660359 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-15 16:32:24,517 - DEBUG - Verifying the vn in opserver 2025-08-15 16:32:24,517 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-02863113:ctest-vn4-86660359 virtual network link through opserver 10.0.0.50 2025-08-15 16:32:24,517 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-08-15 16:32:24,803 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-08-15 16:32:24,852 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-02863113:ctest-vn4-86660359', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-02863113:ctest-vn4-86660359?flat'} 2025-08-15 16:32:24,852 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-02863113:ctest-vn4-86660359 is found in opserver 2025-08-15 16:32:24,862 - DEBUG - Do not have enough data to verify VN in agent 2025-08-15 16:32:24,866 - DEBUG - VRF ids for VN ctest-vn4-86660359: {} 2025-08-15 16:32:24,867 - DEBUG - ====Verifying data for ctest-policy1-97042210 in API_Server ====== 2025-08-15 16:32:24,867 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-08-15 16:32:24,872 - DEBUG - Requesting: http://10.0.0.50:8082/domain/e807ff4e-deb0-4f2b-83f6-c90fc6771ab8 2025-08-15 16:32:24,882 - DEBUG - Requesting: http://10.0.0.50:8082/project/43cef7dd-c5ef-41fd-90a7-b5f168a61f8c 2025-08-15 16:32:24,957 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/e250d411-c099-4497-86cc-9aaaecfefd35 2025-08-15 16:32:24,966 - INFO - Verified policy ctest-policy1-97042210 in API Server, Result: True 2025-08-15 16:32:24,966 - INFO - Done with setup and verification, moving onto test .. 2025-08-15 16:32:24,973 - INFO - Deleting VN ctest-vn4-86660359 2025-08-15 16:32:25,078 - DEBUG - Response for deleting network () 2025-08-15 16:32:25,078 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/9355ecfa-0ed2-4f47-8260-cc6697a71cfe 2025-08-15 16:32:25,083 - DEBUG - Response Code: 404 2025-08-15 16:32:25,083 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-08-15 16:32:25,088 - DEBUG - Requesting: http://10.0.0.50:8082/domain/e807ff4e-deb0-4f2b-83f6-c90fc6771ab8 2025-08-15 16:32:25,141 - DEBUG - Requesting: http://10.0.0.50:8082/project/43cef7dd-c5ef-41fd-90a7-b5f168a61f8c 2025-08-15 16:32:25,209 - INFO - Validated that VN ctest-vn4-86660359 is not found in API Server 2025-08-15 16:32:25,220 - DEBUG - VN ctest-vn4-86660359 is not present in Agent 10.0.0.50 2025-08-15 16:32:25,220 - INFO - Validated that VN ctest-vn4-86660359 is not in any agent 2025-08-15 16:32:25,236 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-86660359 info 2025-08-15 16:32:25,261 - INFO - Deleted policy ctest-policy1-97042210 2025-08-15 16:32:25,432 - DEBUG - policy ctest-policy1-97042210 is not found in API Server 2025-08-15 16:32:25,689 - DEBUG - No XMPP flaps were noticed during the test
2025-08-15 16:32:25,689 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-08-15 16:32:25,689 - INFO - -------------------------------------------------------------------------------- 2025-08-15 16:32:25,976 - DEBUG - No XMPP flaps were noticed during the test
2025-08-15 16:32:25,976 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-08-15 16:32:25,977 - INFO - -------------------------------------------------------------------------------- 2025-08-15 16:32:26,614 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-02863113, ID : 43cef7dd-c5ef-41fd-90a7-b5f168a61f8c