2025-07-24 02:27:08,085 - INFO - Domain Default found not creating 2025-07-24 02:27:08,286 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-03157189 not found, creating it 2025-07-24 02:27:08,822 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-03157189, ID : 352e06c6-fce0-4c65-99c5-d8b8129f3496 2025-07-24 02:27:10,448 - INFO - ================================================================================ 2025-07-24 02:27:10,448 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-07-24 02:27:10,719 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.14': '0'}} with 2025-07-24 02:27:10,719 - INFO - Initial checks done. Running the testcase now 2025-07-24 02:27:10,719 - INFO - 2025-07-24 02:27:10,719 - INFO - ================================================================================ 2025-07-24 02:27:10,720 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-07-24 02:27:10,720 - 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-07-24 02:27:11,003 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.14': '0'}} with 2025-07-24 02:27:11,003 - INFO - Initial checks done. Running the testcase now 2025-07-24 02:27:11,003 - INFO - 2025-07-24 02:27:11,394 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-03157189:ctest-vn4-51547343, 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-03157189:ctest-vn4-51547343, 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-03157189:ctest-vn4-51547343, 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-03157189:ctest-vn4-51547343, 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-07-24 02:27:11,980 - DEBUG - Response for create_network : {'network': {'id': '0c5d5b25-bff6-4dab-9d1e-4486b9d508ed', 'name': 'ctest-vn4-51547343', 'tenant_id': '352e06c6fce04c6599c5d8b8129f3496', 'project_id': '352e06c6fce04c6599c5d8b8129f3496', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-03157189', 'ctest-vn4-51547343'], 'port_security_enabled': True, 'description': ''}} 2025-07-24 02:27:12,202 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b5ea24cc-e853-400c-8d6a-a2e75d0e99af', 'name': '', 'tenant_id': '352e06c6fce04c6599c5d8b8129f3496', 'network_id': '0c5d5b25-bff6-4dab-9d1e-4486b9d508ed', 'ip_version': 4, 'cidr': '63.168.58.128/26', 'allocation_pools': [{'start': '63.168.58.130', 'end': '63.168.58.190'}], 'gateway_ip': '63.168.58.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '63.168.58.130', 'tags': [], 'project_id': '352e06c6fce04c6599c5d8b8129f3496'}} 2025-07-24 02:27:12,359 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd23c49e9-b28d-45cf-b5cd-629ed4a48b90', 'name': '', 'tenant_id': '352e06c6fce04c6599c5d8b8129f3496', 'network_id': '0c5d5b25-bff6-4dab-9d1e-4486b9d508ed', 'ip_version': 6, 'cidr': '26cc:fea6:d5ca:9a33:bbec:83fb::/96', 'allocation_pools': [{'start': '26cc:fea6:d5ca:9a33:bbec:83fb:0:2', 'end': '26cc:fea6:d5ca:9a33:bbec:83fb:ffff:fffe'}], 'gateway_ip': '26cc:fea6:d5ca:9a33:bbec:83fb:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '26cc:fea6:d5ca:9a33:bbec:83fb:0:2', 'tags': [], 'project_id': '352e06c6fce04c6599c5d8b8129f3496'}} 2025-07-24 02:27:12,384 - INFO - Created VN ctest-vn4-51547343 2025-07-24 02:27:12,440 - DEBUG - VN ctest-vn4-51547343 UUID is 0c5d5b25-bff6-4dab-9d1e-4486b9d508ed 2025-07-24 02:27:12,714 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0c5d5b25-bff6-4dab-9d1e-4486b9d508ed', 'name': 'ctest-vn4-51547343', 'tenant_id': '352e06c6fce04c6599c5d8b8129f3496', 'project_id': '352e06c6fce04c6599c5d8b8129f3496', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b5ea24cc-e853-400c-8d6a-a2e75d0e99af', 'd23c49e9-b28d-45cf-b5cd-629ed4a48b90'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-03157189', 'ctest-vn4-51547343'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-03157189', 'ctest-policy1-67854459']], 'subnet_ipam': [{'subnet_cidr': '63.168.58.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '26cc:fea6:d5ca:9a33:bbec:83fb::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-07-24 02:27:12,896 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-07-24 02:27:13,204 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-07-24 02:27:13,240 - DEBUG - Requesting: http://10.0.0.50:8082/domain/8ce4b32a-1f3b-43f0-a6b5-c82ec0c5a34b 2025-07-24 02:27:13,256 - DEBUG - Requesting: http://10.0.0.50:8082/project/352e06c6-fce0-4c65-99c5-d8b8129f3496 2025-07-24 02:27:13,338 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/0c5d5b25-bff6-4dab-9d1e-4486b9d508ed 2025-07-24 02:27:13,354 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/0c5d5b25-bff6-4dab-9d1e-4486b9d508ed 2025-07-24 02:27:13,368 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/9e7cc87b-38ad-48a4-ba92-83f10c5d2b65 2025-07-24 02:27:13,379 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/9e7cc87b-38ad-48a4-ba92-83f10c5d2b65 2025-07-24 02:27:13,389 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/9555751e-0f9c-4568-bd55-d1ab47794bbd 2025-07-24 02:27:13,398 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-07-24 02:27:13,398 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/0c5d5b25-bff6-4dab-9d1e-4486b9d508ed 2025-07-24 02:27:13,412 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/9e7cc87b-38ad-48a4-ba92-83f10c5d2b65 2025-07-24 02:27:13,431 - INFO - Verified VN network id 11 for VN 0c5d5b25-bff6-4dab-9d1e-4486b9d508ed 2025-07-24 02:27:13,431 - INFO - Verifications in API Server for VN ctest-vn4-51547343 passed 2025-07-24 02:27:13,431 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/0c5d5b25-bff6-4dab-9d1e-4486b9d508ed 2025-07-24 02:27:13,448 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/9e7cc87b-38ad-48a4-ba92-83f10c5d2b65 2025-07-24 02:27:13,457 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/9e7cc87b-38ad-48a4-ba92-83f10c5d2b65 2025-07-24 02:27:13,468 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/9555751e-0f9c-4568-bd55-d1ab47794bbd 2025-07-24 02:27:13,484 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-03157189:ctest-vn4-51547343', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-03157189', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '890968518981733803', 'uuid-lslong': '11321561858690058477'}, 'enable': 'true', 'created': '2025-07-24T02:27:11', 'last-modified': '2025-07-24T02:27:12', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.817569'} 2025-07-24 02:27:13,492 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-07-24 02:27:13,492 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-51547343 passed 2025-07-24 02:27:13,492 - DEBUG - ====Verifying policy data for ctest-vn4-51547343 in API_Server ====== 2025-07-24 02:27:13,493 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-07-24 02:27:13,501 - DEBUG - Requesting: http://10.0.0.50:8082/domain/8ce4b32a-1f3b-43f0-a6b5-c82ec0c5a34b 2025-07-24 02:27:13,517 - DEBUG - Requesting: http://10.0.0.50:8082/project/352e06c6-fce0-4c65-99c5-d8b8129f3496 2025-07-24 02:27:13,596 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/0c5d5b25-bff6-4dab-9d1e-4486b9d508ed 2025-07-24 02:27:13,612 - DEBUG - ==>Verifying data for policy with id: fab24227-6cba-4d96-899c-88f9939bcedf, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-03157189', 'ctest-policy1-67854459'] 2025-07-24 02:27:13,612 - INFO - VN ctest-vn4-51547343 Policy verification: verify_vn_policy_in_api_server, status: True 2025-07-24 02:27:13,612 - DEBUG - Verifying the vn in opserver 2025-07-24 02:27:13,612 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-03157189:ctest-vn4-51547343 virtual network link through opserver 10.0.0.50 2025-07-24 02:27:13,612 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-07-24 02:27:13,919 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-07-24 02:27:13,994 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-03157189:ctest-vn4-51547343', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-03157189:ctest-vn4-51547343?flat'} 2025-07-24 02:27:13,994 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-03157189:ctest-vn4-51547343 is found in opserver 2025-07-24 02:27:14,008 - DEBUG - Do not have enough data to verify VN in agent 2025-07-24 02:27:14,015 - DEBUG - VRF ids for VN ctest-vn4-51547343: {} 2025-07-24 02:27:14,016 - DEBUG - ====Verifying data for ctest-policy1-67854459 in API_Server ====== 2025-07-24 02:27:14,016 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-07-24 02:27:14,023 - DEBUG - Requesting: http://10.0.0.50:8082/domain/8ce4b32a-1f3b-43f0-a6b5-c82ec0c5a34b 2025-07-24 02:27:14,038 - DEBUG - Requesting: http://10.0.0.50:8082/project/352e06c6-fce0-4c65-99c5-d8b8129f3496 2025-07-24 02:27:14,120 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/fab24227-6cba-4d96-899c-88f9939bcedf 2025-07-24 02:27:14,135 - INFO - Verified policy ctest-policy1-67854459 in API Server, Result: True 2025-07-24 02:27:14,135 - INFO - Done with setup and verification, moving onto test .. 2025-07-24 02:27:14,149 - INFO - Deleting VN ctest-vn4-51547343 2025-07-24 02:27:14,309 - DEBUG - Response for deleting network () 2025-07-24 02:27:14,309 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/9e7cc87b-38ad-48a4-ba92-83f10c5d2b65 2025-07-24 02:27:14,316 - DEBUG - Response Code: 404 2025-07-24 02:27:14,317 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-07-24 02:27:14,326 - DEBUG - Requesting: http://10.0.0.50:8082/domain/8ce4b32a-1f3b-43f0-a6b5-c82ec0c5a34b 2025-07-24 02:27:14,390 - DEBUG - Requesting: http://10.0.0.50:8082/project/352e06c6-fce0-4c65-99c5-d8b8129f3496 2025-07-24 02:27:14,467 - INFO - Validated that VN ctest-vn4-51547343 is not found in API Server 2025-07-24 02:27:14,479 - DEBUG - VN ctest-vn4-51547343 is not present in Agent 10.0.0.50 2025-07-24 02:27:14,479 - INFO - Validated that VN ctest-vn4-51547343 is not in any agent 2025-07-24 02:27:14,497 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-51547343 info 2025-07-24 02:27:14,527 - INFO - Deleted policy ctest-policy1-67854459 2025-07-24 02:27:14,708 - DEBUG - policy ctest-policy1-67854459 is not found in API Server 2025-07-24 02:27:14,988 - DEBUG - No XMPP flaps were noticed during the test