2025-08-06 08:01:34,699 - INFO - Domain Default found not creating 2025-08-06 08:01:34,883 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-88332930 not found, creating it 2025-08-06 08:01:35,495 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-88332930, ID : 2a8b336d-8025-49fb-ac2a-411b1f8f53b0 2025-08-06 08:01:37,049 - INFO - ================================================================================ 2025-08-06 08:01:37,050 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-06 08:01:38,330 - DEBUG - Nothing to compare xmpp stats {'10.0.0.49': {'10.20.0.25': '0', '10.20.0.14': '0'}, '10.0.0.57': {'10.20.0.14': '0', '10.20.0.254': '0'}} with 2025-08-06 08:01:38,330 - INFO - Initial checks done. Running the testcase now 2025-08-06 08:01:38,330 - INFO - 2025-08-06 08:01:38,330 - INFO - ================================================================================ 2025-08-06 08:01:38,330 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-06 08:01:38,330 - 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-06 08:01:39,622 - DEBUG - Nothing to compare xmpp stats {'10.0.0.49': {'10.20.0.25': '0', '10.20.0.14': '0'}, '10.0.0.57': {'10.20.0.14': '0', '10.20.0.254': '0'}} with 2025-08-06 08:01:39,622 - INFO - Initial checks done. Running the testcase now 2025-08-06 08:01:39,622 - INFO - 2025-08-06 08:01:39,976 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-88332930:ctest-vn4-27304985, 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-88332930:ctest-vn4-27304985, 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-88332930:ctest-vn4-27304985, 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-88332930:ctest-vn4-27304985, 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-06 08:01:40,700 - DEBUG - Response for create_network : {'network': {'id': 'c41675c6-3e43-4f56-ade3-04c1b43966d1', 'name': 'ctest-vn4-27304985', 'tenant_id': '2a8b336d802549fbac2a411b1f8f53b0', 'project_id': '2a8b336d802549fbac2a411b1f8f53b0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-88332930', 'ctest-vn4-27304985'], 'port_security_enabled': True, 'description': ''}} 2025-08-06 08:01:40,986 - DEBUG - Response for create_subnet : {'subnet': {'id': '8e4ecef1-25f8-4e1a-848e-5c11a81f2b3d', 'name': '', 'tenant_id': '2a8b336d802549fbac2a411b1f8f53b0', 'network_id': 'c41675c6-3e43-4f56-ade3-04c1b43966d1', 'ip_version': 4, 'cidr': '90.153.61.128/26', 'allocation_pools': [{'start': '90.153.61.130', 'end': '90.153.61.190'}], 'gateway_ip': '90.153.61.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '90.153.61.130', 'tags': [], 'project_id': '2a8b336d802549fbac2a411b1f8f53b0'}} 2025-08-06 08:01:41,284 - DEBUG - Response for create_subnet : {'subnet': {'id': '75129f05-8d67-424e-a9cf-dd77694c86aa', 'name': '', 'tenant_id': '2a8b336d802549fbac2a411b1f8f53b0', 'network_id': 'c41675c6-3e43-4f56-ade3-04c1b43966d1', 'ip_version': 6, 'cidr': '3ee6:1e75:b556:28fe:48:12dd::/96', 'allocation_pools': [{'start': '3ee6:1e75:b556:28fe:48:12dd:0:2', 'end': '3ee6:1e75:b556:28fe:48:12dd:ffff:fffe'}], 'gateway_ip': '3ee6:1e75:b556:28fe:48:12dd:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3ee6:1e75:b556:28fe:48:12dd:0:2', 'tags': [], 'project_id': '2a8b336d802549fbac2a411b1f8f53b0'}} 2025-08-06 08:01:41,326 - INFO - Created VN ctest-vn4-27304985 2025-08-06 08:01:41,341 - DEBUG - VN ctest-vn4-27304985 UUID is c41675c6-3e43-4f56-ade3-04c1b43966d1 2025-08-06 08:01:41,615 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c41675c6-3e43-4f56-ade3-04c1b43966d1', 'name': 'ctest-vn4-27304985', 'tenant_id': '2a8b336d802549fbac2a411b1f8f53b0', 'project_id': '2a8b336d802549fbac2a411b1f8f53b0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8e4ecef1-25f8-4e1a-848e-5c11a81f2b3d', '75129f05-8d67-424e-a9cf-dd77694c86aa'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-88332930', 'ctest-vn4-27304985'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-88332930', 'ctest-policy1-55118682']], 'subnet_ipam': [{'subnet_cidr': '90.153.61.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3ee6:1e75:b556:28fe:48:12dd::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-06 08:01:41,755 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2025-08-06 08:01:42,052 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2025-08-06 08:01:42,084 - DEBUG - Requesting: http://10.0.0.48:8082/domain/e3e88518-0617-4e53-bc15-162decab76e0 2025-08-06 08:01:42,106 - DEBUG - Requesting: http://10.0.0.48:8082/project/2a8b336d-8025-49fb-ac2a-411b1f8f53b0 2025-08-06 08:01:42,213 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/c41675c6-3e43-4f56-ade3-04c1b43966d1 2025-08-06 08:01:42,233 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/c41675c6-3e43-4f56-ade3-04c1b43966d1 2025-08-06 08:01:42,247 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/f3ce561c-bb37-42e0-ac86-6c34d20b58f3 2025-08-06 08:01:42,257 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/f3ce561c-bb37-42e0-ac86-6c34d20b58f3 2025-08-06 08:01:42,267 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/d4493337-a815-4678-b330-e4955bd1fc1c 2025-08-06 08:01:42,279 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-06 08:01:42,280 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/c41675c6-3e43-4f56-ade3-04c1b43966d1 2025-08-06 08:01:42,296 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/f3ce561c-bb37-42e0-ac86-6c34d20b58f3 2025-08-06 08:01:42,320 - INFO - Verified VN network id 15 for VN c41675c6-3e43-4f56-ade3-04c1b43966d1 2025-08-06 08:01:42,320 - INFO - Verifications in API Server for VN ctest-vn4-27304985 passed 2025-08-06 08:01:42,320 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/c41675c6-3e43-4f56-ade3-04c1b43966d1 2025-08-06 08:01:42,336 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/f3ce561c-bb37-42e0-ac86-6c34d20b58f3 2025-08-06 08:01:42,345 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/f3ce561c-bb37-42e0-ac86-6c34d20b58f3 2025-08-06 08:01:42,355 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/d4493337-a815-4678-b330-e4955bd1fc1c 2025-08-06 08:01:42,370 - DEBUG - Control-node 10.0.0.48 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-88332930:ctest-vn4-27304985', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-88332930', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14129610375230082902', 'uuid-lslong': '12529863818273711825'}, 'enable': 'true', 'created': '2025-08-06T08:01:40', 'last-modified': '2025-08-06T08:01:41', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.824009'} 2025-08-06 08:01:42,377 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-06 08:01:42,387 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-88332930:ctest-vn4-27304985', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-88332930', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14129610375230082902', 'uuid-lslong': '12529863818273711825'}, 'enable': 'true', 'created': '2025-08-06T08:01:40', 'last-modified': '2025-08-06T08:01:41', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.840952'} 2025-08-06 08:01:42,396 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-06 08:01:42,403 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-88332930:ctest-vn4-27304985', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-88332930', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14129610375230082902', 'uuid-lslong': '12529863818273711825'}, 'enable': 'true', 'created': '2025-08-06T08:01:40', 'last-modified': '2025-08-06T08:01:41', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.855059'} 2025-08-06 08:01:42,410 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-06 08:01:42,410 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-27304985 passed 2025-08-06 08:01:42,410 - DEBUG - ====Verifying policy data for ctest-vn4-27304985 in API_Server ====== 2025-08-06 08:01:42,410 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2025-08-06 08:01:42,418 - DEBUG - Requesting: http://10.0.0.48:8082/domain/e3e88518-0617-4e53-bc15-162decab76e0 2025-08-06 08:01:42,434 - DEBUG - Requesting: http://10.0.0.48:8082/project/2a8b336d-8025-49fb-ac2a-411b1f8f53b0 2025-08-06 08:01:42,554 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/c41675c6-3e43-4f56-ade3-04c1b43966d1 2025-08-06 08:01:42,569 - DEBUG - ==>Verifying data for policy with id: e3d6c938-dc02-420e-9efd-1e304d77a75b, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-88332930', 'ctest-policy1-55118682'] 2025-08-06 08:01:42,569 - INFO - VN ctest-vn4-27304985 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-06 08:01:42,569 - DEBUG - Verifying the vn in opserver 2025-08-06 08:01:42,569 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-88332930:ctest-vn4-27304985 virtual network link through opserver 10.0.0.48 2025-08-06 08:01:42,570 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks 2025-08-06 08:01:42,868 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks 2025-08-06 08:01:42,935 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-88332930:ctest-vn4-27304985', 'href': 'http://10.0.0.48:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-88332930:ctest-vn4-27304985?flat'} 2025-08-06 08:01:42,935 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-88332930:ctest-vn4-27304985 virtual network link through opserver 10.0.0.254 2025-08-06 08:01:42,935 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-08-06 08:01:43,237 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-08-06 08:01:43,311 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-88332930:ctest-vn4-27304985', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-88332930:ctest-vn4-27304985?flat'} 2025-08-06 08:01:43,311 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-88332930:ctest-vn4-27304985 virtual network link through opserver 10.0.0.38 2025-08-06 08:01:43,311 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-08-06 08:01:43,611 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-08-06 08:01:43,678 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-88332930:ctest-vn4-27304985', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-88332930:ctest-vn4-27304985?flat'} 2025-08-06 08:01:43,678 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-88332930:ctest-vn4-27304985 is found in opserver 2025-08-06 08:01:43,705 - DEBUG - Do not have enough data to verify VN in agent 2025-08-06 08:01:43,719 - DEBUG - VRF ids for VN ctest-vn4-27304985: {} 2025-08-06 08:01:43,719 - DEBUG - ====Verifying data for ctest-policy1-55118682 in API_Server ====== 2025-08-06 08:01:43,719 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2025-08-06 08:01:43,727 - DEBUG - Requesting: http://10.0.0.48:8082/domain/e3e88518-0617-4e53-bc15-162decab76e0 2025-08-06 08:01:43,744 - DEBUG - Requesting: http://10.0.0.48:8082/project/2a8b336d-8025-49fb-ac2a-411b1f8f53b0 2025-08-06 08:01:43,852 - DEBUG - Requesting: http://10.0.0.48:8082/network-policy/e3d6c938-dc02-420e-9efd-1e304d77a75b 2025-08-06 08:01:43,877 - INFO - Verified policy ctest-policy1-55118682 in API Server, Result: True 2025-08-06 08:01:43,878 - INFO - Done with setup and verification, moving onto test .. 2025-08-06 08:01:43,893 - INFO - Deleting VN ctest-vn4-27304985 2025-08-06 08:01:44,091 - DEBUG - Response for deleting network () 2025-08-06 08:01:44,091 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/f3ce561c-bb37-42e0-ac86-6c34d20b58f3 2025-08-06 08:01:44,098 - DEBUG - Response Code: 404 2025-08-06 08:01:44,098 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2025-08-06 08:01:44,121 - DEBUG - Requesting: http://10.0.0.48:8082/domain/e3e88518-0617-4e53-bc15-162decab76e0 2025-08-06 08:01:44,140 - DEBUG - Requesting: http://10.0.0.48:8082/project/2a8b336d-8025-49fb-ac2a-411b1f8f53b0 2025-08-06 08:01:44,260 - INFO - Validated that VN ctest-vn4-27304985 is not found in API Server 2025-08-06 08:01:44,274 - DEBUG - VN ctest-vn4-27304985 is not present in Agent 10.0.0.49 2025-08-06 08:01:44,287 - DEBUG - VN ctest-vn4-27304985 is not present in Agent 10.0.0.57 2025-08-06 08:01:44,287 - INFO - Validated that VN ctest-vn4-27304985 is not in any agent 2025-08-06 08:01:44,325 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-27304985 info 2025-08-06 08:01:44,367 - INFO - Deleted policy ctest-policy1-55118682 2025-08-06 08:01:44,562 - DEBUG - policy ctest-policy1-55118682 is not found in API Server 2025-08-06 08:01:45,858 - DEBUG - No XMPP flaps were noticed during the test
2025-08-06 08:01:45,859 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:07]
2025-08-06 08:01:45,859 - INFO - -------------------------------------------------------------------------------- 2025-08-06 08:01:47,148 - DEBUG - No XMPP flaps were noticed during the test
2025-08-06 08:01:47,148 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:10]
2025-08-06 08:01:47,149 - INFO - -------------------------------------------------------------------------------- 2025-08-06 08:01:48,005 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-88332930, ID : 2a8b336d-8025-49fb-ac2a-411b1f8f53b0