2025-11-10 02:29:39,125 - INFO - Domain Default found not creating 2025-11-10 02:29:39,306 - INFO - Project ctest-TestBasicPolicy-92127305 not found, creating it 2025-11-10 02:29:39,937 - INFO - Created Project:ctest-TestBasicPolicy-92127305, ID : cae26211-9f37-4119-bb52-9b8f6e9b731c 2025-11-10 02:29:41,418 - INFO - ================================================================================ 2025-11-10 02:29:41,419 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-11-10 02:29:41,419 - INFO - TEST DESCRIPTION : Create 2 Vns and allow icmp traffic between them and validate with pings Update the policy to deny the same traffic Check that pings fail 2025-11-10 02:29:42,721 - DEBUG - Nothing to compare xmpp stats {'10.0.0.65': {'10.20.0.193': '0', '10.20.0.129': '0'}, '10.0.0.130': {'10.20.0.193': '0', '10.20.0.18': '0'}} with 2025-11-10 02:29:42,721 - INFO - Initial checks done. Running the testcase now 2025-11-10 02:29:42,721 - INFO - 2025-11-10 02:29:43,408 - DEBUG - Response for create_network : {'network': {'id': '8aec26ea-fc4a-49dd-8d50-c4927971d150', 'name': 'ctest-vn-23418947', 'tenant_id': 'cae262119f374119bb529b8f6e9b731c', 'project_id': 'cae262119f374119bb529b8f6e9b731c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-92127305', 'ctest-vn-23418947'], 'port_security_enabled': True, 'description': ''}} 2025-11-10 02:29:43,677 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ea870fa0-bd0f-45e4-9550-a7a20bcdd648', 'name': '', 'tenant_id': 'cae262119f374119bb529b8f6e9b731c', 'network_id': '8aec26ea-fc4a-49dd-8d50-c4927971d150', 'ip_version': 4, 'cidr': '107.2.63.64/26', 'allocation_pools': [{'start': '107.2.63.66', 'end': '107.2.63.126'}], 'gateway_ip': '107.2.63.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '107.2.63.66', 'tags': [], 'project_id': 'cae262119f374119bb529b8f6e9b731c'}} 2025-11-10 02:29:43,700 - INFO - Created VN ctest-vn-23418947 2025-11-10 02:29:43,715 - DEBUG - VN ctest-vn-23418947 UUID is 8aec26ea-fc4a-49dd-8d50-c4927971d150 2025-11-10 02:29:44,084 - DEBUG - Response for create_network : {'network': {'id': 'c40bf735-646b-4672-bf18-5926cc499a49', 'name': 'ctest-vn-97035353', 'tenant_id': 'cae262119f374119bb529b8f6e9b731c', 'project_id': 'cae262119f374119bb529b8f6e9b731c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-92127305', 'ctest-vn-97035353'], 'port_security_enabled': True, 'description': ''}} 2025-11-10 02:29:44,377 - DEBUG - Response for create_subnet : {'subnet': {'id': '9a8d92a8-67a5-4648-b7fc-0e1875b52f47', 'name': '', 'tenant_id': 'cae262119f374119bb529b8f6e9b731c', 'network_id': 'c40bf735-646b-4672-bf18-5926cc499a49', 'ip_version': 4, 'cidr': '38.33.59.0/26', 'allocation_pools': [{'start': '38.33.59.2', 'end': '38.33.59.62'}], 'gateway_ip': '38.33.59.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '38.33.59.2', 'tags': [], 'project_id': 'cae262119f374119bb529b8f6e9b731c'}} 2025-11-10 02:29:44,402 - INFO - Created VN ctest-vn-97035353 2025-11-10 02:29:44,418 - DEBUG - VN ctest-vn-97035353 UUID is c40bf735-646b-4672-bf18-5926cc499a49 2025-11-10 02:29:44,506 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-92127305:ctest-vn-23418947, 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-TestBasicPolicy-92127305:ctest-vn-97035353, 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-11-10 02:29:44,843 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8aec26ea-fc4a-49dd-8d50-c4927971d150', 'name': 'ctest-vn-23418947', 'tenant_id': 'cae262119f374119bb529b8f6e9b731c', 'project_id': 'cae262119f374119bb529b8f6e9b731c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ea870fa0-bd0f-45e4-9550-a7a20bcdd648'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-92127305', 'ctest-vn-23418947'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-92127305', 'ctest-policy-allow-all-45795267']], 'subnet_ipam': [{'subnet_cidr': '107.2.63.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-11-10 02:29:45,101 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c40bf735-646b-4672-bf18-5926cc499a49', 'name': 'ctest-vn-97035353', 'tenant_id': 'cae262119f374119bb529b8f6e9b731c', 'project_id': 'cae262119f374119bb529b8f6e9b731c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9a8d92a8-67a5-4648-b7fc-0e1875b52f47'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-92127305', 'ctest-vn-97035353'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-92127305', 'ctest-policy-allow-all-45795267']], 'subnet_ipam': [{'subnet_cidr': '38.33.59.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-11-10 02:29:45,251 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-11-10 02:29:45,558 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-11-10 02:29:45,588 - DEBUG - Requesting: http://10.0.0.22:8082/domain/dbdabfa7-f87c-4117-b05b-68cc6fd252ce 2025-11-10 02:29:45,603 - DEBUG - Requesting: http://10.0.0.22:8082/project/cae26211-9f37-4119-bb52-9b8f6e9b731c 2025-11-10 02:29:45,703 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/8aec26ea-fc4a-49dd-8d50-c4927971d150 2025-11-10 02:29:45,715 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/8aec26ea-fc4a-49dd-8d50-c4927971d150 2025-11-10 02:29:45,727 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f3035387-e87a-42ec-b76d-9a26f54c3679 2025-11-10 02:29:45,737 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f3035387-e87a-42ec-b76d-9a26f54c3679 2025-11-10 02:29:45,748 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/10b9eeeb-6c7a-4143-9615-0aaad2b3e888 2025-11-10 02:29:45,756 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-10 02:29:45,756 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/8aec26ea-fc4a-49dd-8d50-c4927971d150 2025-11-10 02:29:45,766 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f3035387-e87a-42ec-b76d-9a26f54c3679 2025-11-10 02:29:45,785 - INFO - Verified VN network id 15 for VN 8aec26ea-fc4a-49dd-8d50-c4927971d150 2025-11-10 02:29:45,785 - INFO - Verifications in API Server for VN ctest-vn-23418947 passed 2025-11-10 02:29:45,785 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/8aec26ea-fc4a-49dd-8d50-c4927971d150 2025-11-10 02:29:45,798 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f3035387-e87a-42ec-b76d-9a26f54c3679 2025-11-10 02:29:45,807 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f3035387-e87a-42ec-b76d-9a26f54c3679 2025-11-10 02:29:45,816 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/10b9eeeb-6c7a-4143-9615-0aaad2b3e888 2025-11-10 02:29:45,827 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-92127305:ctest-vn-23418947', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-92127305', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10010418862434699741', 'uuid-lslong': '10182854890866463056'}, 'enable': 'true', 'created': '2025-11-10T02:29:43', 'last-modified': '2025-11-10T02:29:44', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.013836'} 2025-11-10 02:29:45,833 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-10 02:29:45,838 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-92127305:ctest-vn-23418947', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-92127305', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10010418862434699741', 'uuid-lslong': '10182854890866463056'}, 'enable': 'true', 'created': '2025-11-10T02:29:43', 'last-modified': '2025-11-10T02:29:44', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.026164'} 2025-11-10 02:29:45,844 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-10 02:29:45,851 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-92127305:ctest-vn-23418947', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-92127305', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10010418862434699741', 'uuid-lslong': '10182854890866463056'}, 'enable': 'true', 'created': '2025-11-10T02:29:43', 'last-modified': '2025-11-10T02:29:44', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.037278'} 2025-11-10 02:29:45,857 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-10 02:29:45,857 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-23418947 passed 2025-11-10 02:29:45,857 - DEBUG - ====Verifying policy data for ctest-vn-23418947 in API_Server ====== 2025-11-10 02:29:45,857 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-11-10 02:29:45,863 - DEBUG - Requesting: http://10.0.0.22:8082/domain/dbdabfa7-f87c-4117-b05b-68cc6fd252ce 2025-11-10 02:29:45,874 - DEBUG - Requesting: http://10.0.0.22:8082/project/cae26211-9f37-4119-bb52-9b8f6e9b731c 2025-11-10 02:29:45,974 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/8aec26ea-fc4a-49dd-8d50-c4927971d150 2025-11-10 02:29:45,992 - DEBUG - ==>Verifying data for policy with id: 4a1cba54-3631-490c-a2a7-3a2622d020b7, fqn: ['default-domain', 'ctest-TestBasicPolicy-92127305', 'ctest-policy-allow-all-45795267'] 2025-11-10 02:29:45,992 - INFO - VN ctest-vn-23418947 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-10 02:29:45,992 - DEBUG - Verifying the vn in opserver 2025-11-10 02:29:45,993 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-92127305:ctest-vn-23418947 virtual network link through opserver 10.0.0.22 2025-11-10 02:29:45,993 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-11-10 02:29:46,307 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-11-10 02:29:46,366 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-92127305:ctest-vn-23418947', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-92127305:ctest-vn-23418947?flat'} 2025-11-10 02:29:46,366 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-92127305:ctest-vn-23418947 virtual network link through opserver 10.0.0.50 2025-11-10 02:29:46,366 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-11-10 02:29:46,671 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-11-10 02:29:46,761 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-92127305:ctest-vn-23418947', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-92127305:ctest-vn-23418947?flat'} 2025-11-10 02:29:46,761 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-92127305:ctest-vn-23418947 virtual network link through opserver 10.0.0.23 2025-11-10 02:29:46,761 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2025-11-10 02:29:47,082 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2025-11-10 02:29:47,164 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-92127305:ctest-vn-23418947', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-92127305:ctest-vn-23418947?flat'} 2025-11-10 02:29:47,164 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-92127305:ctest-vn-23418947 is found in opserver 2025-11-10 02:29:47,191 - DEBUG - Do not have enough data to verify VN in agent 2025-11-10 02:29:47,201 - DEBUG - VRF ids for VN ctest-vn-23418947: {} 2025-11-10 02:29:47,201 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-11-10 02:29:47,207 - DEBUG - Requesting: http://10.0.0.22:8082/domain/dbdabfa7-f87c-4117-b05b-68cc6fd252ce 2025-11-10 02:29:47,222 - DEBUG - Requesting: http://10.0.0.22:8082/project/cae26211-9f37-4119-bb52-9b8f6e9b731c 2025-11-10 02:29:47,314 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/c40bf735-646b-4672-bf18-5926cc499a49 2025-11-10 02:29:47,337 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/c40bf735-646b-4672-bf18-5926cc499a49 2025-11-10 02:29:47,347 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/121584ef-a7b7-48a8-a235-c4fdfcaa119a 2025-11-10 02:29:47,357 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/121584ef-a7b7-48a8-a235-c4fdfcaa119a 2025-11-10 02:29:47,365 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/c43e13e7-a188-4c83-9999-102cc6d6a6b6 2025-11-10 02:29:47,373 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-11-10 02:29:47,373 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/c40bf735-646b-4672-bf18-5926cc499a49 2025-11-10 02:29:47,382 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/121584ef-a7b7-48a8-a235-c4fdfcaa119a 2025-11-10 02:29:47,398 - INFO - Verified VN network id 16 for VN c40bf735-646b-4672-bf18-5926cc499a49 2025-11-10 02:29:47,398 - INFO - Verifications in API Server for VN ctest-vn-97035353 passed 2025-11-10 02:29:47,398 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/c40bf735-646b-4672-bf18-5926cc499a49 2025-11-10 02:29:47,408 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/121584ef-a7b7-48a8-a235-c4fdfcaa119a 2025-11-10 02:29:47,418 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/121584ef-a7b7-48a8-a235-c4fdfcaa119a 2025-11-10 02:29:47,426 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/c43e13e7-a188-4c83-9999-102cc6d6a6b6 2025-11-10 02:29:47,438 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-92127305:ctest-vn-97035353', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-92127305', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14126656464867772018', 'uuid-lslong': '13769853883856296521'}, 'enable': 'true', 'created': '2025-11-10T02:29:44', 'last-modified': '2025-11-10T02:29:45', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.405996'} 2025-11-10 02:29:47,444 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-11-10 02:29:47,450 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-92127305:ctest-vn-97035353', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-92127305', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14126656464867772018', 'uuid-lslong': '13769853883856296521'}, 'enable': 'true', 'created': '2025-11-10T02:29:44', 'last-modified': '2025-11-10T02:29:45', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.423535'} 2025-11-10 02:29:47,461 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-11-10 02:29:47,467 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-92127305:ctest-vn-97035353', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-92127305', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14126656464867772018', 'uuid-lslong': '13769853883856296521'}, 'enable': 'true', 'created': '2025-11-10T02:29:44', 'last-modified': '2025-11-10T02:29:45', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.433234'} 2025-11-10 02:29:47,473 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-11-10 02:29:47,473 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-97035353 passed 2025-11-10 02:29:47,473 - DEBUG - ====Verifying policy data for ctest-vn-97035353 in API_Server ====== 2025-11-10 02:29:47,473 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-11-10 02:29:47,480 - DEBUG - Requesting: http://10.0.0.22:8082/domain/dbdabfa7-f87c-4117-b05b-68cc6fd252ce 2025-11-10 02:29:47,492 - DEBUG - Requesting: http://10.0.0.22:8082/project/cae26211-9f37-4119-bb52-9b8f6e9b731c 2025-11-10 02:29:47,600 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/c40bf735-646b-4672-bf18-5926cc499a49 2025-11-10 02:29:47,612 - DEBUG - ==>Verifying data for policy with id: 4a1cba54-3631-490c-a2a7-3a2622d020b7, fqn: ['default-domain', 'ctest-TestBasicPolicy-92127305', 'ctest-policy-allow-all-45795267'] 2025-11-10 02:29:47,612 - INFO - VN ctest-vn-97035353 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-10 02:29:47,612 - DEBUG - Verifying the vn in opserver 2025-11-10 02:29:47,612 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-92127305:ctest-vn-97035353 virtual network link through opserver 10.0.0.22 2025-11-10 02:29:47,612 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-11-10 02:29:47,671 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-92127305:ctest-vn-97035353', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-92127305:ctest-vn-97035353?flat'} 2025-11-10 02:29:47,671 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-92127305:ctest-vn-97035353 virtual network link through opserver 10.0.0.50 2025-11-10 02:29:47,671 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-11-10 02:29:47,743 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-92127305:ctest-vn-97035353', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-92127305:ctest-vn-97035353?flat'} 2025-11-10 02:29:47,743 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-92127305:ctest-vn-97035353 virtual network link through opserver 10.0.0.23 2025-11-10 02:29:47,743 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2025-11-10 02:29:47,803 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-92127305:ctest-vn-97035353', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-92127305:ctest-vn-97035353?flat'} 2025-11-10 02:29:47,803 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-92127305:ctest-vn-97035353 is found in opserver 2025-11-10 02:29:47,830 - DEBUG - Do not have enough data to verify VN in agent 2025-11-10 02:29:47,843 - DEBUG - VRF ids for VN ctest-vn-97035353: {} 2025-11-10 02:29:47,908 - DEBUG - Services list from nova: [, , , ] 2025-11-10 02:29:49,030 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-4674-1), Zone: (nova:an-jenkins-deploy-platform-ansible-os-4674-1) 2025-11-10 02:29:50,423 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-4674-2), Zone: (nova:an-jenkins-deploy-platform-ansible-os-4674-2) 2025-11-10 02:29:50,423 - INFO - Waiting for VM ctest-TestBasicPolicy-92127305-23483109 to be up.. 2025-11-10 02:29:50,522 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-11-10 02:29:55,609 - DEBUG - VM is in ACTIVE state now 2025-11-10 02:29:55,609 - INFO - VM name : ctest-TestBasicPolicy-92127305-23483109 2025-11-10 02:29:55,690 - DEBUG - VM ctest-TestBasicPolicy-92127305-23483109 ID is d8e4db14-80c3-484c-a642-6b1c566722b3 2025-11-10 02:29:55,714 - DEBUG - VM ctest-TestBasicPolicy-92127305-23483109 launched on Node an-jenkins-deploy-platform-ansible-os-4674-1 2025-11-10 02:29:55,796 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine/d8e4db14-80c3-484c-a642-6b1c566722b3 2025-11-10 02:29:56,097 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine/d8e4db14-80c3-484c-a642-6b1c566722b3 2025-11-10 02:29:56,135 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine-interface/5e3740e7-d83a-4c37-928f-154e27d80514 2025-11-10 02:29:59,315 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1013ms') 2025-11-10 02:29:59,316 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-92127305-23483109 failed! 2025-11-10 02:29:59,331 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-92127305:ctest-vn-23418947 is 107.2.63.65 and allocation pool is NOT set 2025-11-10 02:30:03,403 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1015ms') 2025-11-10 02:30:03,403 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-92127305-23483109 failed! 2025-11-10 02:30:03,419 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-92127305:ctest-vn-23418947 is 107.2.63.65 and allocation pool is NOT set 2025-11-10 02:30:07,498 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1019ms') 2025-11-10 02:30:07,499 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-92127305-23483109 failed! 2025-11-10 02:30:07,515 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-92127305:ctest-vn-23418947 is 107.2.63.65 and allocation pool is NOT set 2025-11-10 02:30:11,602 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1027ms') 2025-11-10 02:30:11,602 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-92127305-23483109 failed! 2025-11-10 02:30:11,617 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-92127305:ctest-vn-23418947 is 107.2.63.65 and allocation pool is NOT set 2025-11-10 02:30:15,697 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1018ms') 2025-11-10 02:30:15,698 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-92127305-23483109 failed! 2025-11-10 02:30:15,712 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-92127305:ctest-vn-23418947 is 107.2.63.65 and allocation pool is NOT set 2025-11-10 02:30:19,789 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1014ms') 2025-11-10 02:30:19,789 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-92127305-23483109 failed! 2025-11-10 02:30:19,803 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-92127305:ctest-vn-23418947 is 107.2.63.65 and allocation pool is NOT set 2025-11-10 02:30:23,889 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1015ms') 2025-11-10 02:30:23,889 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-92127305-23483109 failed! 2025-11-10 02:30:23,905 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-92127305:ctest-vn-23418947 is 107.2.63.65 and allocation pool is NOT set 2025-11-10 02:30:27,991 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1015ms') 2025-11-10 02:30:27,991 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-92127305-23483109 failed! 2025-11-10 02:30:28,007 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-92127305:ctest-vn-23418947 is 107.2.63.65 and allocation pool is NOT set 2025-11-10 02:30:30,071 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n64 bytes from 169.254.0.3: icmp_seq=1 ttl=63 time=4.55 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.633 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1001ms\r\nrtt min/avg/max/mdev = 0.633/2.590/4.547/1.957 ms') 2025-11-10 02:30:30,071 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-92127305-23483109 passed 2025-11-10 02:30:30,149 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-10 02:30:30,149 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-92127305-23483109, IP 107.2.63.67, Port 22 2025-11-10 02:30:30,215 - DEBUG - Error on ssh to ubuntu@169.254.0.3:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.3/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.3/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.3/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2025-11-10 02:30:30,313 - DEBUG - VM ctest-TestBasicPolicy-92127305-23483109 is NOT ready for SSH connections, VM status: ACTIVE 2025-11-10 02:30:35,313 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-10 02:30:35,313 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-92127305-23483109, IP 107.2.63.67, Port 22 2025-11-10 02:30:35,379 - DEBUG - Error on ssh to ubuntu@169.254.0.3:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.3/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.3/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.3/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2025-11-10 02:30:35,486 - DEBUG - VM ctest-TestBasicPolicy-92127305-23483109 is NOT ready for SSH connections, VM status: ACTIVE 2025-11-10 02:30:40,487 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-10 02:30:40,487 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-92127305-23483109, IP 107.2.63.67, Port 22 2025-11-10 02:30:40,555 - DEBUG - Error on ssh to ubuntu@169.254.0.3:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.3/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.3/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.3/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2025-11-10 02:30:40,643 - DEBUG - VM ctest-TestBasicPolicy-92127305-23483109 is NOT ready for SSH connections, VM status: ACTIVE 2025-11-10 02:30:45,644 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-10 02:30:45,644 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-92127305-23483109, IP 107.2.63.67, Port 22 2025-11-10 02:30:45,801 - DEBUG - VM ctest-TestBasicPolicy-92127305-23483109 is ready for SSH connections 2025-11-10 02:30:45,801 - INFO - Waiting for VM ctest-TestBasicPolicy-92127305-87150581 to be up.. 2025-11-10 02:30:45,894 - DEBUG - VM is in ACTIVE state now 2025-11-10 02:30:45,894 - INFO - VM name : ctest-TestBasicPolicy-92127305-87150581 2025-11-10 02:30:45,982 - DEBUG - VM ctest-TestBasicPolicy-92127305-87150581 ID is 83f39350-a14a-416d-8c6c-b069ad5fce94 2025-11-10 02:30:45,982 - DEBUG - VM ctest-TestBasicPolicy-92127305-87150581 launched on Node an-jenkins-deploy-platform-ansible-os-4674-2 2025-11-10 02:30:46,073 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine/83f39350-a14a-416d-8c6c-b069ad5fce94 2025-11-10 02:30:46,088 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine-interface/a32cf8da-80a5-45da-88ee-f7e0d320e2cf 2025-11-10 02:30:47,253 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n64 bytes from 169.254.0.3: icmp_seq=1 ttl=63 time=3.17 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.936 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1001ms\r\nrtt min/avg/max/mdev = 0.936/2.051/3.167/1.115 ms') 2025-11-10 02:30:47,253 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-92127305-87150581 passed 2025-11-10 02:30:47,325 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-10 02:30:47,325 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-92127305-87150581, IP 38.33.59.3, Port 22 2025-11-10 02:30:47,401 - DEBUG - Error on ssh to ubuntu@169.254.0.3:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.3/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.3/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.3/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2025-11-10 02:30:47,489 - DEBUG - VM ctest-TestBasicPolicy-92127305-87150581 is NOT ready for SSH connections, VM status: ACTIVE 2025-11-10 02:30:52,490 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-10 02:30:52,490 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-92127305-87150581, IP 38.33.59.3, Port 22 2025-11-10 02:30:52,563 - DEBUG - Error on ssh to ubuntu@169.254.0.3:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.3/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.3/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.3/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2025-11-10 02:30:52,694 - DEBUG - VM ctest-TestBasicPolicy-92127305-87150581 is NOT ready for SSH connections, VM status: ACTIVE 2025-11-10 02:30:57,695 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-10 02:30:57,695 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-92127305-87150581, IP 38.33.59.3, Port 22 2025-11-10 02:30:57,867 - DEBUG - VM ctest-TestBasicPolicy-92127305-87150581 is ready for SSH connections 2025-11-10 02:30:57,867 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-10 02:30:57,867 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 38.33.59.3, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.65, gateway password: c0ntrail123 2025-11-10 02:30:57,867 - DEBUG - ping -s 56 -c 3 -W 1 38.33.59.3 2025-11-10 02:31:42,884 - DEBUG - PING 38.33.59.3 (38.33.59.3) 56(84) bytes of data. 64 bytes from 38.33.59.3: icmp_req=1 ttl=63 time=9.17 ms 64 bytes from 38.33.59.3: icmp_req=2 ttl=63 time=1.38 ms 64 bytes from 38.33.59.3: icmp_req=3 ttl=63 time=1.32 ms --- 38.33.59.3 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2004ms rtt min/avg/max/mdev = 1.325/3.959/9.174/3.687 ms 2025-11-10 02:31:42,884 - INFO - Ping to IP 38.33.59.3 from VM ctest-TestBasicPolicy-92127305-23483109 passed 2025-11-10 02:31:43,089 - DEBUG - Policy Update Response {"network-policy": {"uuid": "4a1cba54-3631-490c-a2a7-3a2622d020b7", "href": "http://10.0.0.23:8082/network-policy/4a1cba54-3631-490c-a2a7-3a2622d020b7"}} 2025-11-10 02:31:43,089 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-10 02:31:43,089 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 38.33.59.3, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.65, gateway password: c0ntrail123 2025-11-10 02:31:43,089 - DEBUG - ping -s 56 -c 3 -W 1 38.33.59.3 2025-11-10 02:31:46,525 - DEBUG - PING 38.33.59.3 (38.33.59.3) 56(84) bytes of data. 64 bytes from 38.33.59.3: icmp_req=1 ttl=63 time=3.74 ms --- 38.33.59.3 ping statistics --- 3 packets transmitted, 1 received, 66% packet loss, time 2001ms rtt min/avg/max/mdev = 3.743/3.743/3.743/0.000 ms 2025-11-10 02:31:46,525 - WARNING - Ping to IP 38.33.59.3 from VM ctest-TestBasicPolicy-92127305-23483109 failed 2025-11-10 02:31:46,526 - INFO - Deleting VM ctest-TestBasicPolicy-92127305-87150581 2025-11-10 02:31:46,608 - INFO - Deleting VM ctest-TestBasicPolicy-92127305-23483109 2025-11-10 02:31:47,087 - INFO - Deleted policy ctest-policy-allow-all-45795267 2025-11-10 02:31:47,088 - INFO - Deleting VN ctest-vn-97035353 2025-11-10 02:31:47,144 - DEBUG - VN c40bf735-646b-4672-bf18-5926cc499a49 still in use: Unable to complete operation on network c40bf735-646b-4672-bf18-5926cc499a49. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-1983283b-f015-40eb-a40c-3dc10bd84fae'] 2025-11-10 02:31:47,144 - WARNING - Deleting VN ctest-vn-97035353 failed..Will retry 2025-11-10 02:31:49,299 - DEBUG - Response for deleting network () 2025-11-10 02:31:49,300 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/121584ef-a7b7-48a8-a235-c4fdfcaa119a 2025-11-10 02:31:49,305 - DEBUG - Response Code: 404 2025-11-10 02:31:49,305 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-11-10 02:31:49,321 - DEBUG - Requesting: http://10.0.0.22:8082/domain/dbdabfa7-f87c-4117-b05b-68cc6fd252ce 2025-11-10 02:31:49,341 - DEBUG - Requesting: http://10.0.0.22:8082/project/cae26211-9f37-4119-bb52-9b8f6e9b731c 2025-11-10 02:31:49,432 - INFO - Validated that VN ctest-vn-97035353 is not found in API Server 2025-11-10 02:31:49,445 - DEBUG - VN ctest-vn-97035353 is not present in Agent 10.0.0.65 2025-11-10 02:31:49,457 - DEBUG - VN ctest-vn-97035353 is not present in Agent 10.0.0.130 2025-11-10 02:31:49,457 - INFO - Validated that VN ctest-vn-97035353 is not in any agent 2025-11-10 02:31:49,486 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-97035353 info 2025-11-10 02:31:49,486 - INFO - Deleting VN ctest-vn-23418947 2025-11-10 02:31:49,656 - DEBUG - Response for deleting network () 2025-11-10 02:31:49,656 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f3035387-e87a-42ec-b76d-9a26f54c3679 2025-11-10 02:31:49,662 - DEBUG - Response Code: 404 2025-11-10 02:31:49,662 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-11-10 02:31:49,685 - DEBUG - Requesting: http://10.0.0.22:8082/domain/dbdabfa7-f87c-4117-b05b-68cc6fd252ce 2025-11-10 02:31:49,743 - DEBUG - Requesting: http://10.0.0.22:8082/project/cae26211-9f37-4119-bb52-9b8f6e9b731c 2025-11-10 02:31:49,852 - INFO - Validated that VN ctest-vn-23418947 is not found in API Server 2025-11-10 02:31:49,866 - DEBUG - VN ctest-vn-23418947 is not present in Agent 10.0.0.65 2025-11-10 02:31:49,879 - DEBUG - VN ctest-vn-23418947 is not present in Agent 10.0.0.130 2025-11-10 02:31:49,879 - INFO - Validated that VN ctest-vn-23418947 is not in any agent 2025-11-10 02:31:49,915 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-23418947 info 2025-11-10 02:31:51,201 - DEBUG - No XMPP flaps were noticed during the test
2025-11-10 02:31:51,201 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:02:10]
2025-11-10 02:31:51,202 - INFO - -------------------------------------------------------------------------------- 2025-11-10 02:31:51,995 - INFO - Deleted project: ctest-TestBasicPolicy-92127305, ID : cae26211-9f37-4119-bb52-9b8f6e9b731c