2025-11-12 14:42:12,338 - INFO - Domain Default found not creating 2025-11-12 14:42:12,474 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-32361075 not found, creating it 2025-11-12 14:42:12,900 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-32361075, ID : ee1e34cc-9853-4546-8991-474b24e2c653 2025-11-12 14:42:14,256 - INFO - ================================================================================ 2025-11-12 14:42:14,256 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-12 14:42:14,515 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.14': '0'}} with 2025-11-12 14:42:14,515 - INFO - Initial checks done. Running the testcase now 2025-11-12 14:42:14,515 - INFO - 2025-11-12 14:42:14,515 - INFO - ================================================================================ 2025-11-12 14:42:14,515 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-12 14:42:14,515 - 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-12 14:42:14,801 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.14': '0'}} with 2025-11-12 14:42:14,801 - INFO - Initial checks done. Running the testcase now 2025-11-12 14:42:14,801 - INFO - 2025-11-12 14:42:15,143 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-32361075:ctest-vn4-22194807, 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-32361075:ctest-vn4-22194807, 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-32361075:ctest-vn4-22194807, 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-32361075:ctest-vn4-22194807, 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-12 14:42:15,631 - DEBUG - Response for create_network : {'network': {'id': '75e28f89-d1ef-40fb-810b-e21b9aaabd86', 'name': 'ctest-vn4-22194807', 'tenant_id': 'ee1e34cc985345468991474b24e2c653', 'project_id': 'ee1e34cc985345468991474b24e2c653', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-32361075', 'ctest-vn4-22194807'], 'port_security_enabled': True, 'description': ''}} 2025-11-12 14:42:15,793 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd7e31eb8-7ea6-410e-b29d-ddee003994b7', 'name': '', 'tenant_id': 'ee1e34cc985345468991474b24e2c653', 'network_id': '75e28f89-d1ef-40fb-810b-e21b9aaabd86', 'ip_version': 4, 'cidr': '186.221.211.0/26', 'allocation_pools': [{'start': '186.221.211.2', 'end': '186.221.211.62'}], 'gateway_ip': '186.221.211.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '186.221.211.2', 'tags': [], 'project_id': 'ee1e34cc985345468991474b24e2c653'}} 2025-11-12 14:42:15,938 - DEBUG - Response for create_subnet : {'subnet': {'id': '9e3e7b16-fa08-483b-98ca-1f81fcbf6ac8', 'name': '', 'tenant_id': 'ee1e34cc985345468991474b24e2c653', 'network_id': '75e28f89-d1ef-40fb-810b-e21b9aaabd86', 'ip_version': 6, 'cidr': '3141:9a9c:9bb7:e49:e82:e405::/96', 'allocation_pools': [{'start': '3141:9a9c:9bb7:e49:e82:e405:0:2', 'end': '3141:9a9c:9bb7:e49:e82:e405:ffff:fffe'}], 'gateway_ip': '3141:9a9c:9bb7:e49:e82:e405:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3141:9a9c:9bb7:e49:e82:e405:0:2', 'tags': [], 'project_id': 'ee1e34cc985345468991474b24e2c653'}} 2025-11-12 14:42:15,957 - INFO - Created VN ctest-vn4-22194807 2025-11-12 14:42:16,008 - DEBUG - VN ctest-vn4-22194807 UUID is 75e28f89-d1ef-40fb-810b-e21b9aaabd86 2025-11-12 14:42:16,200 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '75e28f89-d1ef-40fb-810b-e21b9aaabd86', 'name': 'ctest-vn4-22194807', 'tenant_id': 'ee1e34cc985345468991474b24e2c653', 'project_id': 'ee1e34cc985345468991474b24e2c653', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d7e31eb8-7ea6-410e-b29d-ddee003994b7', '9e3e7b16-fa08-483b-98ca-1f81fcbf6ac8'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-32361075', 'ctest-vn4-22194807'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-32361075', 'ctest-policy1-14384378']], 'subnet_ipam': [{'subnet_cidr': '186.221.211.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3141:9a9c:9bb7:e49:e82:e405::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-11-12 14:42:16,413 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-11-12 14:42:16,703 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-11-12 14:42:16,727 - DEBUG - Requesting: http://10.0.0.38:8082/domain/604661ca-7fee-40a5-80d8-54c8a18b7e9d 2025-11-12 14:42:16,737 - DEBUG - Requesting: http://10.0.0.38:8082/project/ee1e34cc-9853-4546-8991-474b24e2c653 2025-11-12 14:42:16,805 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/75e28f89-d1ef-40fb-810b-e21b9aaabd86 2025-11-12 14:42:16,814 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/75e28f89-d1ef-40fb-810b-e21b9aaabd86 2025-11-12 14:42:16,822 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/1532db1e-b27d-4784-bf27-efcd08ebf85d 2025-11-12 14:42:16,828 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/1532db1e-b27d-4784-bf27-efcd08ebf85d 2025-11-12 14:42:16,833 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/94155d07-fb48-45aa-a3c3-b17b7aab10a0 2025-11-12 14:42:16,838 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-12 14:42:16,838 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/75e28f89-d1ef-40fb-810b-e21b9aaabd86 2025-11-12 14:42:16,845 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/1532db1e-b27d-4784-bf27-efcd08ebf85d 2025-11-12 14:42:16,856 - INFO - Verified VN network id 12 for VN 75e28f89-d1ef-40fb-810b-e21b9aaabd86 2025-11-12 14:42:16,856 - INFO - Verifications in API Server for VN ctest-vn4-22194807 passed 2025-11-12 14:42:16,856 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/75e28f89-d1ef-40fb-810b-e21b9aaabd86 2025-11-12 14:42:16,863 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/1532db1e-b27d-4784-bf27-efcd08ebf85d 2025-11-12 14:42:16,868 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/1532db1e-b27d-4784-bf27-efcd08ebf85d 2025-11-12 14:42:16,874 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/94155d07-fb48-45aa-a3c3-b17b7aab10a0 2025-11-12 14:42:16,883 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-32361075:ctest-vn4-22194807', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-32361075', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8494509669269586171', 'uuid-lslong': '9298774463823396230'}, 'enable': 'true', 'created': '2025-11-12T14:42:15', 'last-modified': '2025-11-12T14:42:16', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.713095'} 2025-11-12 14:42:16,888 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-12 14:42:16,888 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-22194807 passed 2025-11-12 14:42:16,889 - DEBUG - ====Verifying policy data for ctest-vn4-22194807 in API_Server ====== 2025-11-12 14:42:16,889 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-11-12 14:42:16,894 - DEBUG - Requesting: http://10.0.0.38:8082/domain/604661ca-7fee-40a5-80d8-54c8a18b7e9d 2025-11-12 14:42:16,905 - DEBUG - Requesting: http://10.0.0.38:8082/project/ee1e34cc-9853-4546-8991-474b24e2c653 2025-11-12 14:42:16,971 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/75e28f89-d1ef-40fb-810b-e21b9aaabd86 2025-11-12 14:42:16,979 - DEBUG - ==>Verifying data for policy with id: e7355e56-cbb7-429d-a421-862dfbe1b810, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-32361075', 'ctest-policy1-14384378'] 2025-11-12 14:42:16,979 - INFO - VN ctest-vn4-22194807 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-12 14:42:16,979 - DEBUG - Verifying the vn in opserver 2025-11-12 14:42:16,979 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-32361075:ctest-vn4-22194807 virtual network link through opserver 10.0.0.38 2025-11-12 14:42:16,979 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-11-12 14:42:17,268 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-11-12 14:42:17,325 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-32361075:ctest-vn4-22194807', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-32361075:ctest-vn4-22194807?flat'} 2025-11-12 14:42:17,325 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-32361075:ctest-vn4-22194807 is found in opserver 2025-11-12 14:42:17,336 - DEBUG - Do not have enough data to verify VN in agent 2025-11-12 14:42:17,340 - DEBUG - VRF ids for VN ctest-vn4-22194807: {} 2025-11-12 14:42:17,341 - DEBUG - ====Verifying data for ctest-policy1-14384378 in API_Server ====== 2025-11-12 14:42:17,341 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-11-12 14:42:17,347 - DEBUG - Requesting: http://10.0.0.38:8082/domain/604661ca-7fee-40a5-80d8-54c8a18b7e9d 2025-11-12 14:42:17,356 - DEBUG - Requesting: http://10.0.0.38:8082/project/ee1e34cc-9853-4546-8991-474b24e2c653 2025-11-12 14:42:17,424 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/e7355e56-cbb7-429d-a421-862dfbe1b810 2025-11-12 14:42:17,432 - INFO - Verified policy ctest-policy1-14384378 in API Server, Result: True 2025-11-12 14:42:17,432 - INFO - Done with setup and verification, moving onto test .. 2025-11-12 14:42:17,438 - INFO - Deleting VN ctest-vn4-22194807 2025-11-12 14:42:17,545 - DEBUG - Response for deleting network () 2025-11-12 14:42:17,545 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/1532db1e-b27d-4784-bf27-efcd08ebf85d 2025-11-12 14:42:17,550 - DEBUG - Response Code: 404 2025-11-12 14:42:17,550 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-11-12 14:42:17,554 - DEBUG - Requesting: http://10.0.0.38:8082/domain/604661ca-7fee-40a5-80d8-54c8a18b7e9d 2025-11-12 14:42:17,605 - DEBUG - Requesting: http://10.0.0.38:8082/project/ee1e34cc-9853-4546-8991-474b24e2c653 2025-11-12 14:42:17,683 - INFO - Validated that VN ctest-vn4-22194807 is not found in API Server 2025-11-12 14:42:17,693 - DEBUG - VN ctest-vn4-22194807 is not present in Agent 10.0.0.38 2025-11-12 14:42:17,693 - INFO - Validated that VN ctest-vn4-22194807 is not in any agent 2025-11-12 14:42:17,705 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-22194807 info 2025-11-12 14:42:17,726 - INFO - Deleted policy ctest-policy1-14384378 2025-11-12 14:42:17,888 - DEBUG - policy ctest-policy1-14384378 is not found in API Server 2025-11-12 14:42:18,146 - DEBUG - No XMPP flaps were noticed during the test
2025-11-12 14:42:18,146 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-11-12 14:42:18,146 - INFO - -------------------------------------------------------------------------------- 2025-11-12 14:42:18,436 - DEBUG - No XMPP flaps were noticed during the test
2025-11-12 14:42:18,436 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-11-12 14:42:18,436 - INFO - -------------------------------------------------------------------------------- 2025-11-12 14:42:19,092 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-32361075, ID : ee1e34cc-9853-4546-8991-474b24e2c653