2025-11-17 02:30:16,407 - INFO - Domain Default found not creating 2025-11-17 02:30:16,590 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-40351039 not found, creating it 2025-11-17 02:30:17,211 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-40351039, ID : 1cdec710-b709-45be-8cf2-b02aab7ef62e 2025-11-17 02:30:18,923 - INFO - ================================================================================ 2025-11-17 02:30:18,924 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-17 02:30:20,185 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.25': '0', '10.20.0.17': '0'}, '10.0.0.73': {'10.20.0.25': '0', '10.20.0.17': '0'}} with 2025-11-17 02:30:20,185 - INFO - Initial checks done. Running the testcase now 2025-11-17 02:30:20,185 - INFO - 2025-11-17 02:30:20,185 - INFO - ================================================================================ 2025-11-17 02:30:20,185 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-17 02:30:20,185 - 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-11-17 02:30:21,459 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.25': '0', '10.20.0.17': '0'}, '10.0.0.73': {'10.20.0.25': '0', '10.20.0.17': '0'}} with 2025-11-17 02:30:21,459 - INFO - Initial checks done. Running the testcase now 2025-11-17 02:30:21,459 - INFO - 2025-11-17 02:30:21,880 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-40351039:ctest-vn4-98873580, 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-40351039:ctest-vn4-98873580, 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-40351039:ctest-vn4-98873580, 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-40351039:ctest-vn4-98873580, 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-11-17 02:30:22,499 - DEBUG - Response for create_network : {'network': {'id': 'c038ca15-f294-4ee9-ab99-c17ff0063419', 'name': 'ctest-vn4-98873580', 'tenant_id': '1cdec710b70945be8cf2b02aab7ef62e', 'project_id': '1cdec710b70945be8cf2b02aab7ef62e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-40351039', 'ctest-vn4-98873580'], 'port_security_enabled': True, 'description': ''}} 2025-11-17 02:30:22,883 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fce7324b-3008-419e-b51e-780b05b851c6', 'name': '', 'tenant_id': '1cdec710b70945be8cf2b02aab7ef62e', 'network_id': 'c038ca15-f294-4ee9-ab99-c17ff0063419', 'ip_version': 4, 'cidr': '28.172.160.192/26', 'allocation_pools': [{'start': '28.172.160.194', 'end': '28.172.160.254'}], 'gateway_ip': '28.172.160.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '28.172.160.194', 'tags': [], 'project_id': '1cdec710b70945be8cf2b02aab7ef62e'}} 2025-11-17 02:30:23,086 - DEBUG - Response for create_subnet : {'subnet': {'id': '3f347c87-95d0-4328-a853-b3b629adf141', 'name': '', 'tenant_id': '1cdec710b70945be8cf2b02aab7ef62e', 'network_id': 'c038ca15-f294-4ee9-ab99-c17ff0063419', 'ip_version': 6, 'cidr': '2bd9:2c7e:3672:15a:8aa7:a7e6::/96', 'allocation_pools': [{'start': '2bd9:2c7e:3672:15a:8aa7:a7e6:0:2', 'end': '2bd9:2c7e:3672:15a:8aa7:a7e6:ffff:fffe'}], 'gateway_ip': '2bd9:2c7e:3672:15a:8aa7:a7e6:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2bd9:2c7e:3672:15a:8aa7:a7e6:0:2', 'tags': [], 'project_id': '1cdec710b70945be8cf2b02aab7ef62e'}} 2025-11-17 02:30:23,115 - INFO - Created VN ctest-vn4-98873580 2025-11-17 02:30:23,129 - DEBUG - VN ctest-vn4-98873580 UUID is c038ca15-f294-4ee9-ab99-c17ff0063419 2025-11-17 02:30:23,369 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c038ca15-f294-4ee9-ab99-c17ff0063419', 'name': 'ctest-vn4-98873580', 'tenant_id': '1cdec710b70945be8cf2b02aab7ef62e', 'project_id': '1cdec710b70945be8cf2b02aab7ef62e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['fce7324b-3008-419e-b51e-780b05b851c6', '3f347c87-95d0-4328-a853-b3b629adf141'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-40351039', 'ctest-vn4-98873580'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-40351039', 'ctest-policy1-71672730']], 'subnet_ipam': [{'subnet_cidr': '28.172.160.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2bd9:2c7e:3672:15a:8aa7:a7e6::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-11-17 02:30:23,465 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-11-17 02:30:23,817 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-11-17 02:30:23,852 - DEBUG - Requesting: http://10.0.0.22:8082/domain/b575f39c-ab2e-404a-877c-00e9b4192b03 2025-11-17 02:30:23,873 - DEBUG - Requesting: http://10.0.0.22:8082/project/1cdec710-b709-45be-8cf2-b02aab7ef62e 2025-11-17 02:30:23,969 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/c038ca15-f294-4ee9-ab99-c17ff0063419 2025-11-17 02:30:23,990 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/c038ca15-f294-4ee9-ab99-c17ff0063419 2025-11-17 02:30:24,002 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/b3046bca-79c3-449f-b2e4-3f8375106a6f 2025-11-17 02:30:24,013 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/b3046bca-79c3-449f-b2e4-3f8375106a6f 2025-11-17 02:30:24,023 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/dd47c0a4-fe5f-46a5-be30-c3b87944bc6f 2025-11-17 02:30:24,029 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-17 02:30:24,029 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/c038ca15-f294-4ee9-ab99-c17ff0063419 2025-11-17 02:30:24,040 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/b3046bca-79c3-449f-b2e4-3f8375106a6f 2025-11-17 02:30:24,056 - INFO - Verified VN network id 14 for VN c038ca15-f294-4ee9-ab99-c17ff0063419 2025-11-17 02:30:24,056 - INFO - Verifications in API Server for VN ctest-vn4-98873580 passed 2025-11-17 02:30:24,056 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/c038ca15-f294-4ee9-ab99-c17ff0063419 2025-11-17 02:30:24,067 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/b3046bca-79c3-449f-b2e4-3f8375106a6f 2025-11-17 02:30:24,076 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/b3046bca-79c3-449f-b2e4-3f8375106a6f 2025-11-17 02:30:24,083 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/dd47c0a4-fe5f-46a5-be30-c3b87944bc6f 2025-11-17 02:30:24,095 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-40351039:ctest-vn4-98873580', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-40351039', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13851042849590890217', 'uuid-lslong': '12365127007154353177'}, 'enable': 'true', 'created': '2025-11-17T02:30:22', 'last-modified': '2025-11-17T02:30:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.785298'} 2025-11-17 02:30:24,101 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-17 02:30:24,110 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-40351039:ctest-vn4-98873580', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-40351039', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13851042849590890217', 'uuid-lslong': '12365127007154353177'}, 'enable': 'true', 'created': '2025-11-17T02:30:22', 'last-modified': '2025-11-17T02:30:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.780143'} 2025-11-17 02:30:24,115 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-17 02:30:24,121 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-40351039:ctest-vn4-98873580', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-40351039', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13851042849590890217', 'uuid-lslong': '12365127007154353177'}, 'enable': 'true', 'created': '2025-11-17T02:30:22', 'last-modified': '2025-11-17T02:30:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.798037'} 2025-11-17 02:30:24,126 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-17 02:30:24,126 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-98873580 passed 2025-11-17 02:30:24,127 - DEBUG - ====Verifying policy data for ctest-vn4-98873580 in API_Server ====== 2025-11-17 02:30:24,127 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-11-17 02:30:24,133 - DEBUG - Requesting: http://10.0.0.22:8082/domain/b575f39c-ab2e-404a-877c-00e9b4192b03 2025-11-17 02:30:24,146 - DEBUG - Requesting: http://10.0.0.22:8082/project/1cdec710-b709-45be-8cf2-b02aab7ef62e 2025-11-17 02:30:24,240 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/c038ca15-f294-4ee9-ab99-c17ff0063419 2025-11-17 02:30:24,256 - DEBUG - ==>Verifying data for policy with id: ded33316-374a-474e-9191-e924314c8de5, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-40351039', 'ctest-policy1-71672730'] 2025-11-17 02:30:24,256 - INFO - VN ctest-vn4-98873580 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-17 02:30:24,256 - DEBUG - Verifying the vn in opserver 2025-11-17 02:30:24,256 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-40351039:ctest-vn4-98873580 virtual network link through opserver 10.0.0.22 2025-11-17 02:30:24,256 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-11-17 02:30:24,607 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-11-17 02:30:24,677 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-40351039:ctest-vn4-98873580', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-40351039:ctest-vn4-98873580?flat'} 2025-11-17 02:30:24,677 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-40351039:ctest-vn4-98873580 virtual network link through opserver 10.0.0.33 2025-11-17 02:30:24,677 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-11-17 02:30:25,020 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-11-17 02:30:25,094 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-40351039:ctest-vn4-98873580', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-40351039:ctest-vn4-98873580?flat'} 2025-11-17 02:30:25,094 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-40351039:ctest-vn4-98873580 virtual network link through opserver 10.0.0.23 2025-11-17 02:30:25,094 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2025-11-17 02:30:25,435 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2025-11-17 02:30:25,505 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-40351039:ctest-vn4-98873580', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-40351039:ctest-vn4-98873580?flat'} 2025-11-17 02:30:25,505 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-40351039:ctest-vn4-98873580 is found in opserver 2025-11-17 02:30:25,529 - DEBUG - Do not have enough data to verify VN in agent 2025-11-17 02:30:25,541 - DEBUG - VRF ids for VN ctest-vn4-98873580: {} 2025-11-17 02:30:25,541 - DEBUG - ====Verifying data for ctest-policy1-71672730 in API_Server ====== 2025-11-17 02:30:25,541 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-11-17 02:30:25,547 - DEBUG - Requesting: http://10.0.0.22:8082/domain/b575f39c-ab2e-404a-877c-00e9b4192b03 2025-11-17 02:30:25,559 - DEBUG - Requesting: http://10.0.0.22:8082/project/1cdec710-b709-45be-8cf2-b02aab7ef62e 2025-11-17 02:30:25,661 - DEBUG - Requesting: http://10.0.0.22:8082/network-policy/ded33316-374a-474e-9191-e924314c8de5 2025-11-17 02:30:25,672 - INFO - Verified policy ctest-policy1-71672730 in API Server, Result: True 2025-11-17 02:30:25,672 - INFO - Done with setup and verification, moving onto test .. 2025-11-17 02:30:25,684 - INFO - Deleting VN ctest-vn4-98873580 2025-11-17 02:30:25,901 - DEBUG - Response for deleting network () 2025-11-17 02:30:25,901 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/b3046bca-79c3-449f-b2e4-3f8375106a6f 2025-11-17 02:30:25,916 - DEBUG - Response Code: 404 2025-11-17 02:30:25,917 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-11-17 02:30:25,925 - DEBUG - Requesting: http://10.0.0.22:8082/domain/b575f39c-ab2e-404a-877c-00e9b4192b03 2025-11-17 02:30:25,947 - DEBUG - Requesting: http://10.0.0.22:8082/project/1cdec710-b709-45be-8cf2-b02aab7ef62e 2025-11-17 02:30:26,056 - INFO - Validated that VN ctest-vn4-98873580 is not found in API Server 2025-11-17 02:30:26,070 - DEBUG - VN ctest-vn4-98873580 is not present in Agent 10.0.0.50 2025-11-17 02:30:26,081 - DEBUG - VN ctest-vn4-98873580 is not present in Agent 10.0.0.73 2025-11-17 02:30:26,081 - INFO - Validated that VN ctest-vn4-98873580 is not in any agent 2025-11-17 02:30:26,116 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-98873580 info 2025-11-17 02:30:26,159 - INFO - Deleted policy ctest-policy1-71672730 2025-11-17 02:30:26,357 - DEBUG - policy ctest-policy1-71672730 is not found in API Server 2025-11-17 02:30:27,631 - DEBUG - No XMPP flaps were noticed during the test
2025-11-17 02:30:27,631 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:07]
2025-11-17 02:30:27,631 - INFO - -------------------------------------------------------------------------------- 2025-11-17 02:30:28,899 - DEBUG - No XMPP flaps were noticed during the test
2025-11-17 02:30:28,899 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:10]
2025-11-17 02:30:28,899 - INFO - -------------------------------------------------------------------------------- 2025-11-17 02:30:29,695 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-40351039, ID : 1cdec710-b709-45be-8cf2-b02aab7ef62e