2025-10-14 11:43:20,276 - INFO - Domain Default found not creating 2025-10-14 11:43:20,485 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-74018714 not found, creating it 2025-10-14 11:43:21,104 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-74018714, ID : 807a0138-9aec-4477-be8c-987f946be675 2025-10-14 11:43:22,816 - INFO - ================================================================================ 2025-10-14 11:43:22,816 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-14 11:43:24,099 - DEBUG - Nothing to compare xmpp stats {'10.0.0.65': {'10.20.0.17': '0', '10.20.0.210': '0'}, '10.0.0.22': {'10.20.0.210': '0', '10.20.0.14': '0'}} with 2025-10-14 11:43:24,099 - INFO - Initial checks done. Running the testcase now 2025-10-14 11:43:24,099 - INFO - 2025-10-14 11:43:24,099 - INFO - ================================================================================ 2025-10-14 11:43:24,099 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-14 11:43:24,099 - 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-10-14 11:43:25,391 - DEBUG - Nothing to compare xmpp stats {'10.0.0.65': {'10.20.0.17': '0', '10.20.0.210': '0'}, '10.0.0.22': {'10.20.0.210': '0', '10.20.0.14': '0'}} with 2025-10-14 11:43:25,391 - INFO - Initial checks done. Running the testcase now 2025-10-14 11:43:25,391 - INFO - 2025-10-14 11:43:25,784 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-74018714:ctest-vn4-29758256, 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-74018714:ctest-vn4-29758256, 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-74018714:ctest-vn4-29758256, 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-74018714:ctest-vn4-29758256, 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-10-14 11:43:26,483 - DEBUG - Response for create_network : {'network': {'id': 'bb390ab4-a4ec-4c48-b4ad-e20fc6ca3e5f', 'name': 'ctest-vn4-29758256', 'tenant_id': '807a01389aec4477be8c987f946be675', 'project_id': '807a01389aec4477be8c987f946be675', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-74018714', 'ctest-vn4-29758256'], 'port_security_enabled': True, 'description': ''}} 2025-10-14 11:43:26,840 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f568820a-5555-4863-8c8a-36dccd187780', 'name': '', 'tenant_id': '807a01389aec4477be8c987f946be675', 'network_id': 'bb390ab4-a4ec-4c48-b4ad-e20fc6ca3e5f', 'ip_version': 4, 'cidr': '146.58.250.192/26', 'allocation_pools': [{'start': '146.58.250.194', 'end': '146.58.250.254'}], 'gateway_ip': '146.58.250.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '146.58.250.194', 'tags': [], 'project_id': '807a01389aec4477be8c987f946be675'}} 2025-10-14 11:43:27,110 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e2c74ad5-fe87-46a9-ab0b-c2df64d12514', 'name': '', 'tenant_id': '807a01389aec4477be8c987f946be675', 'network_id': 'bb390ab4-a4ec-4c48-b4ad-e20fc6ca3e5f', 'ip_version': 6, 'cidr': '33ab:307b:75e0:1fb:b8e3:8ecc::/96', 'allocation_pools': [{'start': '33ab:307b:75e0:1fb:b8e3:8ecc:0:2', 'end': '33ab:307b:75e0:1fb:b8e3:8ecc:ffff:fffe'}], 'gateway_ip': '33ab:307b:75e0:1fb:b8e3:8ecc:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '33ab:307b:75e0:1fb:b8e3:8ecc:0:2', 'tags': [], 'project_id': '807a01389aec4477be8c987f946be675'}} 2025-10-14 11:43:27,142 - INFO - Created VN ctest-vn4-29758256 2025-10-14 11:43:27,156 - DEBUG - VN ctest-vn4-29758256 UUID is bb390ab4-a4ec-4c48-b4ad-e20fc6ca3e5f 2025-10-14 11:43:27,476 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'bb390ab4-a4ec-4c48-b4ad-e20fc6ca3e5f', 'name': 'ctest-vn4-29758256', 'tenant_id': '807a01389aec4477be8c987f946be675', 'project_id': '807a01389aec4477be8c987f946be675', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f568820a-5555-4863-8c8a-36dccd187780', 'e2c74ad5-fe87-46a9-ab0b-c2df64d12514'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-74018714', 'ctest-vn4-29758256'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-74018714', 'ctest-policy1-21206054']], 'subnet_ipam': [{'subnet_cidr': '146.58.250.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '33ab:307b:75e0:1fb:b8e3:8ecc::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-14 11:43:27,599 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-14 11:43:27,923 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-14 11:43:27,963 - DEBUG - Requesting: http://10.0.0.254:8082/domain/972a6834-584f-4bae-af8e-4c4518226241 2025-10-14 11:43:27,981 - DEBUG - Requesting: http://10.0.0.254:8082/project/807a0138-9aec-4477-be8c-987f946be675 2025-10-14 11:43:28,104 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/bb390ab4-a4ec-4c48-b4ad-e20fc6ca3e5f 2025-10-14 11:43:28,129 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/bb390ab4-a4ec-4c48-b4ad-e20fc6ca3e5f 2025-10-14 11:43:28,141 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/7c3cba8c-3cd0-49d0-85c3-4644077ba993 2025-10-14 11:43:28,153 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/7c3cba8c-3cd0-49d0-85c3-4644077ba993 2025-10-14 11:43:28,162 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/1ac2d48a-cd23-4363-8e3e-4906b09aede1 2025-10-14 11:43:28,171 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-14 11:43:28,171 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/bb390ab4-a4ec-4c48-b4ad-e20fc6ca3e5f 2025-10-14 11:43:28,185 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/7c3cba8c-3cd0-49d0-85c3-4644077ba993 2025-10-14 11:43:28,208 - INFO - Verified VN network id 14 for VN bb390ab4-a4ec-4c48-b4ad-e20fc6ca3e5f 2025-10-14 11:43:28,209 - INFO - Verifications in API Server for VN ctest-vn4-29758256 passed 2025-10-14 11:43:28,209 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/bb390ab4-a4ec-4c48-b4ad-e20fc6ca3e5f 2025-10-14 11:43:28,223 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/7c3cba8c-3cd0-49d0-85c3-4644077ba993 2025-10-14 11:43:28,232 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/7c3cba8c-3cd0-49d0-85c3-4644077ba993 2025-10-14 11:43:28,244 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/1ac2d48a-cd23-4363-8e3e-4906b09aede1 2025-10-14 11:43:28,262 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-74018714:ctest-vn4-29758256', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-74018714', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13490825929742371912', 'uuid-lslong': '13019310655185501791'}, 'enable': 'true', 'created': '2025-10-14T11:43:26', 'last-modified': '2025-10-14T11:43:27', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.857776'} 2025-10-14 11:43:28,271 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-14 11:43:28,278 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-74018714:ctest-vn4-29758256', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-74018714', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13490825929742371912', 'uuid-lslong': '13019310655185501791'}, 'enable': 'true', 'created': '2025-10-14T11:43:26', 'last-modified': '2025-10-14T11:43:27', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.881141'} 2025-10-14 11:43:28,284 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-14 11:43:28,290 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-74018714:ctest-vn4-29758256', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-74018714', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13490825929742371912', 'uuid-lslong': '13019310655185501791'}, 'enable': 'true', 'created': '2025-10-14T11:43:26', 'last-modified': '2025-10-14T11:43:27', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.892971'} 2025-10-14 11:43:28,297 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-14 11:43:28,297 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-29758256 passed 2025-10-14 11:43:28,297 - DEBUG - ====Verifying policy data for ctest-vn4-29758256 in API_Server ====== 2025-10-14 11:43:28,297 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-14 11:43:28,307 - DEBUG - Requesting: http://10.0.0.254:8082/domain/972a6834-584f-4bae-af8e-4c4518226241 2025-10-14 11:43:28,324 - DEBUG - Requesting: http://10.0.0.254:8082/project/807a0138-9aec-4477-be8c-987f946be675 2025-10-14 11:43:28,421 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/bb390ab4-a4ec-4c48-b4ad-e20fc6ca3e5f 2025-10-14 11:43:28,439 - DEBUG - ==>Verifying data for policy with id: fd51b19a-8d29-4f6a-8af7-06e301dd5e0d, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-74018714', 'ctest-policy1-21206054'] 2025-10-14 11:43:28,439 - INFO - VN ctest-vn4-29758256 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-14 11:43:28,439 - DEBUG - Verifying the vn in opserver 2025-10-14 11:43:28,439 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-74018714:ctest-vn4-29758256 virtual network link through opserver 10.0.0.254 2025-10-14 11:43:28,440 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-10-14 11:43:28,864 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-10-14 11:43:28,976 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-74018714:ctest-vn4-29758256', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-74018714:ctest-vn4-29758256?flat'} 2025-10-14 11:43:28,976 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-74018714:ctest-vn4-29758256 virtual network link through opserver 10.0.0.50 2025-10-14 11:43:28,977 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-10-14 11:43:29,317 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-10-14 11:43:29,394 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-74018714:ctest-vn4-29758256', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-74018714:ctest-vn4-29758256?flat'} 2025-10-14 11:43:29,394 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-74018714:ctest-vn4-29758256 virtual network link through opserver 10.0.0.33 2025-10-14 11:43:29,394 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-10-14 11:43:29,702 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-10-14 11:43:29,785 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-74018714:ctest-vn4-29758256', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-74018714:ctest-vn4-29758256?flat'} 2025-10-14 11:43:29,785 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-74018714:ctest-vn4-29758256 is found in opserver 2025-10-14 11:43:29,810 - DEBUG - Do not have enough data to verify VN in agent 2025-10-14 11:43:29,821 - DEBUG - VRF ids for VN ctest-vn4-29758256: {} 2025-10-14 11:43:29,821 - DEBUG - ====Verifying data for ctest-policy1-21206054 in API_Server ====== 2025-10-14 11:43:29,821 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-14 11:43:29,827 - DEBUG - Requesting: http://10.0.0.254:8082/domain/972a6834-584f-4bae-af8e-4c4518226241 2025-10-14 11:43:29,843 - DEBUG - Requesting: http://10.0.0.254:8082/project/807a0138-9aec-4477-be8c-987f946be675 2025-10-14 11:43:29,952 - DEBUG - Requesting: http://10.0.0.254:8082/network-policy/fd51b19a-8d29-4f6a-8af7-06e301dd5e0d 2025-10-14 11:43:29,964 - INFO - Verified policy ctest-policy1-21206054 in API Server, Result: True 2025-10-14 11:43:29,964 - INFO - Done with setup and verification, moving onto test .. 2025-10-14 11:43:29,977 - INFO - Deleting VN ctest-vn4-29758256 2025-10-14 11:43:30,274 - DEBUG - Response for deleting network () 2025-10-14 11:43:30,274 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/7c3cba8c-3cd0-49d0-85c3-4644077ba993 2025-10-14 11:43:30,283 - DEBUG - Response Code: 404 2025-10-14 11:43:30,283 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-14 11:43:30,292 - DEBUG - Requesting: http://10.0.0.254:8082/domain/972a6834-584f-4bae-af8e-4c4518226241 2025-10-14 11:43:30,349 - DEBUG - Requesting: http://10.0.0.254:8082/project/807a0138-9aec-4477-be8c-987f946be675 2025-10-14 11:43:30,464 - INFO - Validated that VN ctest-vn4-29758256 is not found in API Server 2025-10-14 11:43:30,476 - DEBUG - VN ctest-vn4-29758256 is not present in Agent 10.0.0.65 2025-10-14 11:43:30,487 - DEBUG - VN ctest-vn4-29758256 is not present in Agent 10.0.0.22 2025-10-14 11:43:30,487 - INFO - Validated that VN ctest-vn4-29758256 is not in any agent 2025-10-14 11:43:30,521 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-29758256 info 2025-10-14 11:43:30,572 - INFO - Deleted policy ctest-policy1-21206054 2025-10-14 11:43:30,782 - DEBUG - policy ctest-policy1-21206054 is not found in API Server 2025-10-14 11:43:32,084 - DEBUG - No XMPP flaps were noticed during the test 2025-10-14 11:43:32,084 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:08] 2025-10-14 11:43:32,084 - INFO - -------------------------------------------------------------------------------- 2025-10-14 11:43:33,353 - DEBUG - No XMPP flaps were noticed during the test 2025-10-14 11:43:33,353 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:11] 2025-10-14 11:43:33,353 - INFO - -------------------------------------------------------------------------------- 2025-10-14 11:43:34,155 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-74018714, ID : 807a0138-9aec-4477-be8c-987f946be675