2025-08-10 11:20:38,589 - INFO - Domain Default found not creating 2025-08-10 11:20:38,705 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-78314037 not found, creating it 2025-08-10 11:20:39,226 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-78314037, ID : bfb09daa-5959-4744-9eae-1812320dc121 2025-08-10 11:20:40,578 - INFO - ================================================================================ 2025-08-10 11:20:40,578 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-10 11:20:41,829 - DEBUG - Nothing to compare xmpp stats {'10.0.0.65': {'10.20.0.14': '0', '10.20.0.25': '0'}, '10.0.0.56': {'10.20.0.14': '0', '10.20.0.25': '0'}} with 2025-08-10 11:20:41,829 - INFO - Initial checks done. Running the testcase now 2025-08-10 11:20:41,829 - INFO - 2025-08-10 11:20:41,829 - INFO - ================================================================================ 2025-08-10 11:20:41,829 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-10 11:20:41,829 - 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-10 11:20:43,067 - DEBUG - Nothing to compare xmpp stats {'10.0.0.65': {'10.20.0.14': '0', '10.20.0.25': '0'}, '10.0.0.56': {'10.20.0.14': '0', '10.20.0.25': '0'}} with 2025-08-10 11:20:43,067 - INFO - Initial checks done. Running the testcase now 2025-08-10 11:20:43,067 - INFO - 2025-08-10 11:20:43,417 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-78314037:ctest-vn4-22813463, 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-78314037:ctest-vn4-22813463, 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-78314037:ctest-vn4-22813463, 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-78314037:ctest-vn4-22813463, 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-10 11:20:43,943 - DEBUG - Response for create_network : {'network': {'id': 'e02367fa-47b9-4a67-8c43-04f93bb803d1', 'name': 'ctest-vn4-22813463', 'tenant_id': 'bfb09daa595947449eae1812320dc121', 'project_id': 'bfb09daa595947449eae1812320dc121', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-78314037', 'ctest-vn4-22813463'], 'port_security_enabled': True, 'description': ''}} 2025-08-10 11:20:44,211 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ccb81c20-2ff5-40a1-863f-363cb7574542', 'name': '', 'tenant_id': 'bfb09daa595947449eae1812320dc121', 'network_id': 'e02367fa-47b9-4a67-8c43-04f93bb803d1', 'ip_version': 4, 'cidr': '185.79.140.192/26', 'allocation_pools': [{'start': '185.79.140.194', 'end': '185.79.140.254'}], 'gateway_ip': '185.79.140.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '185.79.140.194', 'tags': [], 'project_id': 'bfb09daa595947449eae1812320dc121'}} 2025-08-10 11:20:44,398 - DEBUG - Response for create_subnet : {'subnet': {'id': '075609fd-8af2-4cd0-a06a-9058c44853b7', 'name': '', 'tenant_id': 'bfb09daa595947449eae1812320dc121', 'network_id': 'e02367fa-47b9-4a67-8c43-04f93bb803d1', 'ip_version': 6, 'cidr': '2135:6cce:f129:e829:3115:f3::/96', 'allocation_pools': [{'start': '2135:6cce:f129:e829:3115:f3:0:2', 'end': '2135:6cce:f129:e829:3115:f3:ffff:fffe'}], 'gateway_ip': '2135:6cce:f129:e829:3115:f3:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2135:6cce:f129:e829:3115:f3:0:2', 'tags': [], 'project_id': 'bfb09daa595947449eae1812320dc121'}} 2025-08-10 11:20:44,418 - INFO - Created VN ctest-vn4-22813463 2025-08-10 11:20:44,432 - DEBUG - VN ctest-vn4-22813463 UUID is e02367fa-47b9-4a67-8c43-04f93bb803d1 2025-08-10 11:20:44,599 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e02367fa-47b9-4a67-8c43-04f93bb803d1', 'name': 'ctest-vn4-22813463', 'tenant_id': 'bfb09daa595947449eae1812320dc121', 'project_id': 'bfb09daa595947449eae1812320dc121', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ccb81c20-2ff5-40a1-863f-363cb7574542', '075609fd-8af2-4cd0-a06a-9058c44853b7'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-78314037', 'ctest-vn4-22813463'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-78314037', 'ctest-policy1-51319112']], 'subnet_ipam': [{'subnet_cidr': '185.79.140.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2135:6cce:f129:e829:3115:f3::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-10 11:20:44,702 - DEBUG - Requesting: http://10.0.0.49:8082/domains 2025-08-10 11:20:44,995 - DEBUG - Requesting: http://10.0.0.49:8082/domains 2025-08-10 11:20:45,020 - DEBUG - Requesting: http://10.0.0.49:8082/domain/506b9682-8eb9-488e-ab69-24d332f4d228 2025-08-10 11:20:45,037 - DEBUG - Requesting: http://10.0.0.49:8082/project/bfb09daa-5959-4744-9eae-1812320dc121 2025-08-10 11:20:45,126 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/e02367fa-47b9-4a67-8c43-04f93bb803d1 2025-08-10 11:20:45,139 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/e02367fa-47b9-4a67-8c43-04f93bb803d1 2025-08-10 11:20:45,149 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/2ac3bafa-3033-46cd-b0bd-1df8213a0a8a 2025-08-10 11:20:45,156 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/2ac3bafa-3033-46cd-b0bd-1df8213a0a8a 2025-08-10 11:20:45,163 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/98da5236-537d-4de7-ab35-4ab4a660317e 2025-08-10 11:20:45,170 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-10 11:20:45,170 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/e02367fa-47b9-4a67-8c43-04f93bb803d1 2025-08-10 11:20:45,180 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/2ac3bafa-3033-46cd-b0bd-1df8213a0a8a 2025-08-10 11:20:45,194 - INFO - Verified VN network id 15 for VN e02367fa-47b9-4a67-8c43-04f93bb803d1 2025-08-10 11:20:45,194 - INFO - Verifications in API Server for VN ctest-vn4-22813463 passed 2025-08-10 11:20:45,194 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/e02367fa-47b9-4a67-8c43-04f93bb803d1 2025-08-10 11:20:45,205 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/2ac3bafa-3033-46cd-b0bd-1df8213a0a8a 2025-08-10 11:20:45,211 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/2ac3bafa-3033-46cd-b0bd-1df8213a0a8a 2025-08-10 11:20:45,219 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/98da5236-537d-4de7-ab35-4ab4a660317e 2025-08-10 11:20:45,233 - DEBUG - Control-node 10.0.0.49 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-78314037:ctest-vn4-22813463', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-78314037', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16150867013323541095', 'uuid-lslong': '10106927457244808145'}, 'enable': 'true', 'created': '2025-08-10T11:20:43', 'last-modified': '2025-08-10T11:20:44', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.670624'} 2025-08-10 11:20:45,239 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-10 11:20:45,244 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-78314037:ctest-vn4-22813463', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-78314037', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16150867013323541095', 'uuid-lslong': '10106927457244808145'}, 'enable': 'true', 'created': '2025-08-10T11:20:43', 'last-modified': '2025-08-10T11:20:44', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.678889'} 2025-08-10 11:20:45,250 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-10 11:20:45,257 - DEBUG - Control-node 10.0.0.57 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-78314037:ctest-vn4-22813463', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-78314037', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16150867013323541095', 'uuid-lslong': '10106927457244808145'}, 'enable': 'true', 'created': '2025-08-10T11:20:43', 'last-modified': '2025-08-10T11:20:44', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.690699'} 2025-08-10 11:20:45,264 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-10 11:20:45,264 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-22813463 passed 2025-08-10 11:20:45,264 - DEBUG - ====Verifying policy data for ctest-vn4-22813463 in API_Server ====== 2025-08-10 11:20:45,264 - DEBUG - Requesting: http://10.0.0.49:8082/domains 2025-08-10 11:20:45,269 - DEBUG - Requesting: http://10.0.0.49:8082/domain/506b9682-8eb9-488e-ab69-24d332f4d228 2025-08-10 11:20:45,280 - DEBUG - Requesting: http://10.0.0.49:8082/project/bfb09daa-5959-4744-9eae-1812320dc121 2025-08-10 11:20:45,365 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/e02367fa-47b9-4a67-8c43-04f93bb803d1 2025-08-10 11:20:45,378 - DEBUG - ==>Verifying data for policy with id: 17b987d4-85d7-4cac-9047-ab8faed7f22c, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-78314037', 'ctest-policy1-51319112'] 2025-08-10 11:20:45,378 - INFO - VN ctest-vn4-22813463 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-10 11:20:45,378 - DEBUG - Verifying the vn in opserver 2025-08-10 11:20:45,378 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-78314037:ctest-vn4-22813463 virtual network link through opserver 10.0.0.49 2025-08-10 11:20:45,378 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks 2025-08-10 11:20:45,671 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks 2025-08-10 11:20:45,719 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-78314037:ctest-vn4-22813463', 'href': 'http://10.0.0.49:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-78314037:ctest-vn4-22813463?flat'} 2025-08-10 11:20:45,719 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-78314037:ctest-vn4-22813463 virtual network link through opserver 10.0.0.254 2025-08-10 11:20:45,719 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-08-10 11:20:46,003 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-08-10 11:20:46,050 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-78314037:ctest-vn4-22813463', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-78314037:ctest-vn4-22813463?flat'} 2025-08-10 11:20:46,050 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-78314037:ctest-vn4-22813463 virtual network link through opserver 10.0.0.57 2025-08-10 11:20:46,050 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks 2025-08-10 11:20:46,335 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks 2025-08-10 11:20:46,383 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-78314037:ctest-vn4-22813463', 'href': 'http://10.0.0.57:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-78314037:ctest-vn4-22813463?flat'} 2025-08-10 11:20:46,383 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-78314037:ctest-vn4-22813463 is found in opserver 2025-08-10 11:20:46,404 - DEBUG - Do not have enough data to verify VN in agent 2025-08-10 11:20:46,414 - DEBUG - VRF ids for VN ctest-vn4-22813463: {} 2025-08-10 11:20:46,414 - DEBUG - ====Verifying data for ctest-policy1-51319112 in API_Server ====== 2025-08-10 11:20:46,414 - DEBUG - Requesting: http://10.0.0.49:8082/domains 2025-08-10 11:20:46,419 - DEBUG - Requesting: http://10.0.0.49:8082/domain/506b9682-8eb9-488e-ab69-24d332f4d228 2025-08-10 11:20:46,430 - DEBUG - Requesting: http://10.0.0.49:8082/project/bfb09daa-5959-4744-9eae-1812320dc121 2025-08-10 11:20:46,525 - DEBUG - Requesting: http://10.0.0.49:8082/network-policy/17b987d4-85d7-4cac-9047-ab8faed7f22c 2025-08-10 11:20:46,534 - INFO - Verified policy ctest-policy1-51319112 in API Server, Result: True 2025-08-10 11:20:46,534 - INFO - Done with setup and verification, moving onto test .. 2025-08-10 11:20:46,552 - INFO - Deleting VN ctest-vn4-22813463 2025-08-10 11:20:46,709 - DEBUG - Response for deleting network () 2025-08-10 11:20:46,709 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/2ac3bafa-3033-46cd-b0bd-1df8213a0a8a 2025-08-10 11:20:46,716 - DEBUG - Response Code: 404 2025-08-10 11:20:46,717 - DEBUG - Requesting: http://10.0.0.49:8082/domains 2025-08-10 11:20:46,724 - DEBUG - Requesting: http://10.0.0.49:8082/domain/506b9682-8eb9-488e-ab69-24d332f4d228 2025-08-10 11:20:46,735 - DEBUG - Requesting: http://10.0.0.49:8082/project/bfb09daa-5959-4744-9eae-1812320dc121 2025-08-10 11:20:46,822 - INFO - Validated that VN ctest-vn4-22813463 is not found in API Server 2025-08-10 11:20:46,833 - DEBUG - VN ctest-vn4-22813463 is not present in Agent 10.0.0.65 2025-08-10 11:20:46,843 - DEBUG - VN ctest-vn4-22813463 is not present in Agent 10.0.0.56 2025-08-10 11:20:46,843 - INFO - Validated that VN ctest-vn4-22813463 is not in any agent 2025-08-10 11:20:46,873 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-22813463 info 2025-08-10 11:20:46,906 - INFO - Deleted policy ctest-policy1-51319112 2025-08-10 11:20:47,080 - DEBUG - policy ctest-policy1-51319112 is not found in API Server 2025-08-10 11:20:48,349 - DEBUG - No XMPP flaps were noticed during the test
2025-08-10 11:20:48,349 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:07]
2025-08-10 11:20:48,349 - INFO - -------------------------------------------------------------------------------- 2025-08-10 11:20:49,578 - DEBUG - No XMPP flaps were noticed during the test
2025-08-10 11:20:49,578 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:09]
2025-08-10 11:20:49,578 - INFO - -------------------------------------------------------------------------------- 2025-08-10 11:20:50,256 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-78314037, ID : bfb09daa-5959-4744-9eae-1812320dc121