2025-08-28 17:23:08,244 - INFO - Domain Default found not creating 2025-08-28 17:23:08,402 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-54007455 not found, creating it 2025-08-28 17:23:08,870 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-54007455, ID : b20570c2-d89e-47c6-b1e6-094c6bc2fe28 2025-08-28 17:23:10,569 - INFO - ================================================================================ 2025-08-28 17:23:10,569 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-28 17:23:10,825 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.14': '0'}} with 2025-08-28 17:23:10,826 - INFO - Initial checks done. Running the testcase now 2025-08-28 17:23:10,826 - INFO - 2025-08-28 17:23:10,826 - INFO - ================================================================================ 2025-08-28 17:23:10,826 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-28 17:23:10,826 - 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 17:23:11,113 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.14': '0'}} with 2025-08-28 17:23:11,113 - INFO - Initial checks done. Running the testcase now 2025-08-28 17:23:11,114 - INFO - 2025-08-28 17:23:11,513 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-54007455:ctest-vn4-52281265, 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-54007455:ctest-vn4-52281265, 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-54007455:ctest-vn4-52281265, 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-54007455:ctest-vn4-52281265, 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 17:23:12,031 - DEBUG - Response for create_network : {'network': {'id': 'fb6c3043-64d3-425d-86f6-ad59be7d760b', 'name': 'ctest-vn4-52281265', 'tenant_id': 'b20570c2d89e47c6b1e6094c6bc2fe28', 'project_id': 'b20570c2d89e47c6b1e6094c6bc2fe28', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-54007455', 'ctest-vn4-52281265'], 'port_security_enabled': True, 'description': ''}} 2025-08-28 17:23:12,191 - DEBUG - Response for create_subnet : {'subnet': {'id': '7ca47a37-1925-4e91-9a7b-62ed00bf4966', 'name': '', 'tenant_id': 'b20570c2d89e47c6b1e6094c6bc2fe28', 'network_id': 'fb6c3043-64d3-425d-86f6-ad59be7d760b', 'ip_version': 4, 'cidr': '176.226.189.64/26', 'allocation_pools': [{'start': '176.226.189.66', 'end': '176.226.189.126'}], 'gateway_ip': '176.226.189.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '176.226.189.66', 'tags': [], 'project_id': 'b20570c2d89e47c6b1e6094c6bc2fe28'}} 2025-08-28 17:23:12,361 - DEBUG - Response for create_subnet : {'subnet': {'id': '179f32ef-dbe3-4197-a3c6-afbe4710d604', 'name': '', 'tenant_id': 'b20570c2d89e47c6b1e6094c6bc2fe28', 'network_id': 'fb6c3043-64d3-425d-86f6-ad59be7d760b', 'ip_version': 6, 'cidr': '299b:57ae:9396:da86:fb9e:5089::/96', 'allocation_pools': [{'start': '299b:57ae:9396:da86:fb9e:5089:0:2', 'end': '299b:57ae:9396:da86:fb9e:5089:ffff:fffe'}], 'gateway_ip': '299b:57ae:9396:da86:fb9e:5089:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '299b:57ae:9396:da86:fb9e:5089:0:2', 'tags': [], 'project_id': 'b20570c2d89e47c6b1e6094c6bc2fe28'}} 2025-08-28 17:23:12,385 - INFO - Created VN ctest-vn4-52281265 2025-08-28 17:23:12,439 - DEBUG - VN ctest-vn4-52281265 UUID is fb6c3043-64d3-425d-86f6-ad59be7d760b 2025-08-28 17:23:12,657 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'fb6c3043-64d3-425d-86f6-ad59be7d760b', 'name': 'ctest-vn4-52281265', 'tenant_id': 'b20570c2d89e47c6b1e6094c6bc2fe28', 'project_id': 'b20570c2d89e47c6b1e6094c6bc2fe28', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7ca47a37-1925-4e91-9a7b-62ed00bf4966', '179f32ef-dbe3-4197-a3c6-afbe4710d604'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-54007455', 'ctest-vn4-52281265'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-54007455', 'ctest-policy1-54842042']], 'subnet_ipam': [{'subnet_cidr': '176.226.189.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '299b:57ae:9396:da86:fb9e:5089::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-28 17:23:12,819 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-28 17:23:13,163 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-28 17:23:13,198 - DEBUG - Requesting: http://10.0.0.254:8082/domain/f2419a5c-7a7b-4479-9b5d-63bc94f58869 2025-08-28 17:23:13,211 - DEBUG - Requesting: http://10.0.0.254:8082/project/b20570c2-d89e-47c6-b1e6-094c6bc2fe28 2025-08-28 17:23:13,282 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/fb6c3043-64d3-425d-86f6-ad59be7d760b 2025-08-28 17:23:13,296 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/fb6c3043-64d3-425d-86f6-ad59be7d760b 2025-08-28 17:23:13,308 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/1e408f0c-62a7-4cf9-be94-9671b0886a09 2025-08-28 17:23:13,316 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/1e408f0c-62a7-4cf9-be94-9671b0886a09 2025-08-28 17:23:13,322 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/e9308037-e683-48a7-b55e-905ee4da7c5b 2025-08-28 17:23:13,329 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-28 17:23:13,329 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/fb6c3043-64d3-425d-86f6-ad59be7d760b 2025-08-28 17:23:13,340 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/1e408f0c-62a7-4cf9-be94-9671b0886a09 2025-08-28 17:23:13,357 - INFO - Verified VN network id 10 for VN fb6c3043-64d3-425d-86f6-ad59be7d760b 2025-08-28 17:23:13,357 - INFO - Verifications in API Server for VN ctest-vn4-52281265 passed 2025-08-28 17:23:13,357 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/fb6c3043-64d3-425d-86f6-ad59be7d760b 2025-08-28 17:23:13,370 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/1e408f0c-62a7-4cf9-be94-9671b0886a09 2025-08-28 17:23:13,378 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/1e408f0c-62a7-4cf9-be94-9671b0886a09 2025-08-28 17:23:13,386 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/e9308037-e683-48a7-b55e-905ee4da7c5b 2025-08-28 17:23:13,401 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-54007455:ctest-vn4-52281265', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-54007455', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18116908467017171549', 'uuid-lslong': '9725151046312752651'}, 'enable': 'true', 'created': '2025-08-28T17:23:11', 'last-modified': '2025-08-28T17:23:12', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.770662'} 2025-08-28 17:23:13,407 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-28 17:23:13,407 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-52281265 passed 2025-08-28 17:23:13,408 - DEBUG - ====Verifying policy data for ctest-vn4-52281265 in API_Server ====== 2025-08-28 17:23:13,408 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-28 17:23:13,413 - DEBUG - Requesting: http://10.0.0.254:8082/domain/f2419a5c-7a7b-4479-9b5d-63bc94f58869 2025-08-28 17:23:13,425 - DEBUG - Requesting: http://10.0.0.254:8082/project/b20570c2-d89e-47c6-b1e6-094c6bc2fe28 2025-08-28 17:23:13,494 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/fb6c3043-64d3-425d-86f6-ad59be7d760b 2025-08-28 17:23:13,505 - DEBUG - ==>Verifying data for policy with id: 78b3747c-22bf-4e39-ab6b-b2b869b9295d, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-54007455', 'ctest-policy1-54842042'] 2025-08-28 17:23:13,505 - INFO - VN ctest-vn4-52281265 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-28 17:23:13,505 - DEBUG - Verifying the vn in opserver 2025-08-28 17:23:13,505 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-54007455:ctest-vn4-52281265 virtual network link through opserver 10.0.0.254 2025-08-28 17:23:13,505 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-08-28 17:23:13,842 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-08-28 17:23:13,905 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-54007455:ctest-vn4-52281265', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-54007455:ctest-vn4-52281265?flat'} 2025-08-28 17:23:13,905 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-54007455:ctest-vn4-52281265 is found in opserver 2025-08-28 17:23:13,918 - DEBUG - Do not have enough data to verify VN in agent 2025-08-28 17:23:13,923 - DEBUG - VRF ids for VN ctest-vn4-52281265: {} 2025-08-28 17:23:13,924 - DEBUG - ====Verifying data for ctest-policy1-54842042 in API_Server ====== 2025-08-28 17:23:13,924 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-28 17:23:13,929 - DEBUG - Requesting: http://10.0.0.254:8082/domain/f2419a5c-7a7b-4479-9b5d-63bc94f58869 2025-08-28 17:23:13,942 - DEBUG - Requesting: http://10.0.0.254:8082/project/b20570c2-d89e-47c6-b1e6-094c6bc2fe28 2025-08-28 17:23:14,021 - DEBUG - Requesting: http://10.0.0.254:8082/network-policy/78b3747c-22bf-4e39-ab6b-b2b869b9295d 2025-08-28 17:23:14,033 - INFO - Verified policy ctest-policy1-54842042 in API Server, Result: True 2025-08-28 17:23:14,033 - INFO - Done with setup and verification, moving onto test .. 2025-08-28 17:23:14,043 - INFO - Deleting VN ctest-vn4-52281265 2025-08-28 17:23:14,195 - DEBUG - Response for deleting network () 2025-08-28 17:23:14,195 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/1e408f0c-62a7-4cf9-be94-9671b0886a09 2025-08-28 17:23:14,203 - DEBUG - Response Code: 404 2025-08-28 17:23:14,203 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-28 17:23:14,211 - DEBUG - Requesting: http://10.0.0.254:8082/domain/f2419a5c-7a7b-4479-9b5d-63bc94f58869 2025-08-28 17:23:14,269 - DEBUG - Requesting: http://10.0.0.254:8082/project/b20570c2-d89e-47c6-b1e6-094c6bc2fe28 2025-08-28 17:23:14,350 - INFO - Validated that VN ctest-vn4-52281265 is not found in API Server 2025-08-28 17:23:14,361 - DEBUG - VN ctest-vn4-52281265 is not present in Agent 10.0.0.254 2025-08-28 17:23:14,361 - INFO - Validated that VN ctest-vn4-52281265 is not in any agent 2025-08-28 17:23:14,376 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-52281265 info 2025-08-28 17:23:14,405 - INFO - Deleted policy ctest-policy1-54842042 2025-08-28 17:23:14,571 - DEBUG - policy ctest-policy1-54842042 is not found in API Server 2025-08-28 17:23:14,828 - DEBUG - No XMPP flaps were noticed during the test