2025-12-09 06:08:21,088 - INFO - Domain Default found not creating 2025-12-09 06:08:21,305 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-59955502 not found, creating it 2025-12-09 06:08:21,766 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-59955502, ID : cf9cfdb6-3da2-42cb-8ac6-410c2ea3e94e 2025-12-09 06:08:23,076 - INFO - ================================================================================ 2025-12-09 06:08:23,076 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-12-09 06:08:23,327 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.14': '0'}} with 2025-12-09 06:08:23,327 - INFO - Initial checks done. Running the testcase now 2025-12-09 06:08:23,328 - INFO - 2025-12-09 06:08:23,328 - INFO - ================================================================================ 2025-12-09 06:08:23,328 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-12-09 06:08:23,328 - 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-12-09 06:08:23,620 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.14': '0'}} with 2025-12-09 06:08:23,620 - INFO - Initial checks done. Running the testcase now 2025-12-09 06:08:23,620 - INFO - 2025-12-09 06:08:23,937 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-59955502:ctest-vn4-82627167, 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-59955502:ctest-vn4-82627167, 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-59955502:ctest-vn4-82627167, 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-59955502:ctest-vn4-82627167, 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-12-09 06:08:24,431 - DEBUG - Response for create_network : {'network': {'id': '62866f5d-a28f-403b-b15a-9de7e2a5b936', 'name': 'ctest-vn4-82627167', 'tenant_id': 'cf9cfdb63da242cb8ac6410c2ea3e94e', 'project_id': 'cf9cfdb63da242cb8ac6410c2ea3e94e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-59955502', 'ctest-vn4-82627167'], 'port_security_enabled': True, 'description': ''}} 2025-12-09 06:08:24,603 - DEBUG - Response for create_subnet : {'subnet': {'id': '78d1a312-a8cb-4ab7-851c-f796f004e020', 'name': '', 'tenant_id': 'cf9cfdb63da242cb8ac6410c2ea3e94e', 'network_id': '62866f5d-a28f-403b-b15a-9de7e2a5b936', 'ip_version': 4, 'cidr': '27.62.187.128/26', 'allocation_pools': [{'start': '27.62.187.130', 'end': '27.62.187.190'}], 'gateway_ip': '27.62.187.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '27.62.187.130', 'tags': [], 'project_id': 'cf9cfdb63da242cb8ac6410c2ea3e94e'}} 2025-12-09 06:08:24,781 - DEBUG - Response for create_subnet : {'subnet': {'id': '311e1d80-c247-45b3-b397-fd5c564bfe3e', 'name': '', 'tenant_id': 'cf9cfdb63da242cb8ac6410c2ea3e94e', 'network_id': '62866f5d-a28f-403b-b15a-9de7e2a5b936', 'ip_version': 6, 'cidr': '2765:b2fb:276d:fe7:7dc6:c208::/96', 'allocation_pools': [{'start': '2765:b2fb:276d:fe7:7dc6:c208:0:2', 'end': '2765:b2fb:276d:fe7:7dc6:c208:ffff:fffe'}], 'gateway_ip': '2765:b2fb:276d:fe7:7dc6:c208:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2765:b2fb:276d:fe7:7dc6:c208:0:2', 'tags': [], 'project_id': 'cf9cfdb63da242cb8ac6410c2ea3e94e'}} 2025-12-09 06:08:24,798 - INFO - Created VN ctest-vn4-82627167 2025-12-09 06:08:24,847 - DEBUG - VN ctest-vn4-82627167 UUID is 62866f5d-a28f-403b-b15a-9de7e2a5b936 2025-12-09 06:08:25,030 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '62866f5d-a28f-403b-b15a-9de7e2a5b936', 'name': 'ctest-vn4-82627167', 'tenant_id': 'cf9cfdb63da242cb8ac6410c2ea3e94e', 'project_id': 'cf9cfdb63da242cb8ac6410c2ea3e94e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['78d1a312-a8cb-4ab7-851c-f796f004e020', '311e1d80-c247-45b3-b397-fd5c564bfe3e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-59955502', 'ctest-vn4-82627167'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-59955502', 'ctest-policy1-05025858']], 'subnet_ipam': [{'subnet_cidr': '27.62.187.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2765:b2fb:276d:fe7:7dc6:c208::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-12-09 06:08:25,191 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-12-09 06:08:25,452 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-12-09 06:08:25,480 - DEBUG - Requesting: http://10.0.0.38:8082/domain/82582fe4-3a48-4728-978d-3e347efd8922 2025-12-09 06:08:25,490 - DEBUG - Requesting: http://10.0.0.38:8082/project/cf9cfdb6-3da2-42cb-8ac6-410c2ea3e94e 2025-12-09 06:08:25,559 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/62866f5d-a28f-403b-b15a-9de7e2a5b936 2025-12-09 06:08:25,569 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/62866f5d-a28f-403b-b15a-9de7e2a5b936 2025-12-09 06:08:25,580 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2d17ae93-ac31-48ea-a84b-63e876ebfb0f 2025-12-09 06:08:25,587 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2d17ae93-ac31-48ea-a84b-63e876ebfb0f 2025-12-09 06:08:25,594 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/44313c09-760e-44d7-9e5c-0d42418d5d83 2025-12-09 06:08:25,600 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-09 06:08:25,600 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/62866f5d-a28f-403b-b15a-9de7e2a5b936 2025-12-09 06:08:25,609 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2d17ae93-ac31-48ea-a84b-63e876ebfb0f 2025-12-09 06:08:25,622 - INFO - Verified VN network id 12 for VN 62866f5d-a28f-403b-b15a-9de7e2a5b936 2025-12-09 06:08:25,622 - INFO - Verifications in API Server for VN ctest-vn4-82627167 passed 2025-12-09 06:08:25,622 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/62866f5d-a28f-403b-b15a-9de7e2a5b936 2025-12-09 06:08:25,630 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2d17ae93-ac31-48ea-a84b-63e876ebfb0f 2025-12-09 06:08:25,636 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2d17ae93-ac31-48ea-a84b-63e876ebfb0f 2025-12-09 06:08:25,641 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/44313c09-760e-44d7-9e5c-0d42418d5d83 2025-12-09 06:08:25,651 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-59955502:ctest-vn4-82627167', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-59955502', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7099484310546104379', 'uuid-lslong': '12779700511882721590'}, 'enable': 'true', 'created': '2025-12-09T06:08:24', 'last-modified': '2025-12-09T06:08:25', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.642019'} 2025-12-09 06:08:25,656 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-09 06:08:25,656 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-82627167 passed 2025-12-09 06:08:25,656 - DEBUG - ====Verifying policy data for ctest-vn4-82627167 in API_Server ====== 2025-12-09 06:08:25,656 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-12-09 06:08:25,663 - DEBUG - Requesting: http://10.0.0.38:8082/domain/82582fe4-3a48-4728-978d-3e347efd8922 2025-12-09 06:08:25,674 - DEBUG - Requesting: http://10.0.0.38:8082/project/cf9cfdb6-3da2-42cb-8ac6-410c2ea3e94e 2025-12-09 06:08:25,743 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/62866f5d-a28f-403b-b15a-9de7e2a5b936 2025-12-09 06:08:25,751 - DEBUG - ==>Verifying data for policy with id: 4c9b4c3e-334f-4bbb-9e89-856f0daac964, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-59955502', 'ctest-policy1-05025858'] 2025-12-09 06:08:25,751 - INFO - VN ctest-vn4-82627167 Policy verification: verify_vn_policy_in_api_server, status: True 2025-12-09 06:08:25,751 - DEBUG - Verifying the vn in opserver 2025-12-09 06:08:25,751 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-59955502:ctest-vn4-82627167 virtual network link through opserver 10.0.0.38 2025-12-09 06:08:25,751 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-12-09 06:08:26,011 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-12-09 06:08:26,063 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-59955502:ctest-vn4-82627167', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-59955502:ctest-vn4-82627167?flat'} 2025-12-09 06:08:26,063 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-59955502:ctest-vn4-82627167 is found in opserver 2025-12-09 06:08:26,071 - DEBUG - Do not have enough data to verify VN in agent 2025-12-09 06:08:26,076 - DEBUG - VRF ids for VN ctest-vn4-82627167: {} 2025-12-09 06:08:26,076 - DEBUG - ====Verifying data for ctest-policy1-05025858 in API_Server ====== 2025-12-09 06:08:26,076 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-12-09 06:08:26,081 - DEBUG - Requesting: http://10.0.0.38:8082/domain/82582fe4-3a48-4728-978d-3e347efd8922 2025-12-09 06:08:26,089 - DEBUG - Requesting: http://10.0.0.38:8082/project/cf9cfdb6-3da2-42cb-8ac6-410c2ea3e94e 2025-12-09 06:08:26,153 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/4c9b4c3e-334f-4bbb-9e89-856f0daac964 2025-12-09 06:08:26,160 - INFO - Verified policy ctest-policy1-05025858 in API Server, Result: True 2025-12-09 06:08:26,160 - INFO - Done with setup and verification, moving onto test .. 2025-12-09 06:08:26,165 - INFO - Deleting VN ctest-vn4-82627167 2025-12-09 06:08:26,262 - DEBUG - Response for deleting network () 2025-12-09 06:08:26,262 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2d17ae93-ac31-48ea-a84b-63e876ebfb0f 2025-12-09 06:08:26,267 - DEBUG - Response Code: 404 2025-12-09 06:08:26,267 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-12-09 06:08:26,271 - DEBUG - Requesting: http://10.0.0.38:8082/domain/82582fe4-3a48-4728-978d-3e347efd8922 2025-12-09 06:08:26,328 - DEBUG - Requesting: http://10.0.0.38:8082/project/cf9cfdb6-3da2-42cb-8ac6-410c2ea3e94e 2025-12-09 06:08:26,392 - INFO - Validated that VN ctest-vn4-82627167 is not found in API Server 2025-12-09 06:08:26,401 - DEBUG - VN ctest-vn4-82627167 is not present in Agent 10.0.0.38 2025-12-09 06:08:26,402 - INFO - Validated that VN ctest-vn4-82627167 is not in any agent 2025-12-09 06:08:26,412 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-82627167 info 2025-12-09 06:08:26,431 - INFO - Deleted policy ctest-policy1-05025858 2025-12-09 06:08:26,590 - DEBUG - policy ctest-policy1-05025858 is not found in API Server 2025-12-09 06:08:26,847 - DEBUG - No XMPP flaps were noticed during the test 2025-12-09 06:08:26,847 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:03] 2025-12-09 06:08:26,847 - INFO - -------------------------------------------------------------------------------- 2025-12-09 06:08:27,131 - DEBUG - No XMPP flaps were noticed during the test 2025-12-09 06:08:27,132 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-12-09 06:08:27,132 - INFO - -------------------------------------------------------------------------------- 2025-12-09 06:08:27,745 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-59955502, ID : cf9cfdb6-3da2-42cb-8ac6-410c2ea3e94e