Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 863770 - net-misc/gns3-server-2.2.33.1-r2 fails tests
Summary: net-misc/gns3-server-2.2.33.1-r2 fails tests
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Michael Mair-Keimberger (iamnr3)
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2022-08-05 10:14 UTC by Agostino Sarubbo
Modified: 2022-10-10 13:18 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log.xz (build.log.xz,49.64 KB, application/x-xz)
2022-08-05 10:14 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2022-08-05 10:14:49 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: net-misc/gns3-server-2.2.33.1-r1 fails tests.
Discovered on: amd64 (internal ref: ci)
Comment 1 Agostino Sarubbo gentoo-dev 2022-08-05 10:14:52 UTC
Created attachment 797863 [details]
build.log.xz

build log and emerge --info (compressed because it exceeds attachment limit, use 'xzless' to read it)
Comment 2 Agostino Sarubbo gentoo-dev 2022-08-05 10:14:53 UTC
Error(s) that match a know pattern:


E       AttributeError: 'coroutine' object has no attribute '_create_netmap_config'
E       AttributeError: 'coroutine' object has no attribute 'extract_configs'
E               AttributeError: 'coroutine' object has no attribute 'find_dynamips'
E               AttributeError: 'coroutine' object has no attribute 'find_vboxmanage'
E           AttributeError: 'coroutine' object has no attribute 'find_vboxmanage'
E       AttributeError: 'coroutine' object has no attribute 'get_abs_image_path'
E       AttributeError: 'coroutine' object has no attribute 'get_dynamips_id'
E       AttributeError: 'coroutine' object has no attribute 'get_relative_image_path'
E       AttributeError: 'coroutine' object has no attribute 'hda_disk_image'
E       AttributeError: 'coroutine' object has no attribute 'hdb_disk_image'
E       AttributeError: 'coroutine' object has no attribute 'hdc_disk_image'
E       AttributeError: 'coroutine' object has no attribute 'hdd_disk_image'
E       AttributeError: 'coroutine' object has no attribute 'id'
E           AttributeError: 'coroutine' object has no attribute 'initrd'
E       AttributeError: 'coroutine' object has no attribute 'initrd'
E       AttributeError: 'coroutine' object has no attribute 'iourc_content'
E       AttributeError: 'coroutine' object has no attribute 'is_running'
E       AttributeError: 'coroutine' object has no attribute '__json__'
E       AttributeError: 'coroutine' object has no attribute 'kvm'
E       AttributeError: 'coroutine' object has no attribute 'module_name'
E       AttributeError: 'coroutine' object has no attribute 'name'
E       AttributeError: 'coroutine' object has no attribute 'options'
E           AttributeError: 'coroutine' object has no attribute 'path'
E       AttributeError: 'coroutine' object has no attribute 'path'
E               AttributeError: 'coroutine' object has no attribute 'pictures_directory'
E           AttributeError: 'coroutine' object has no attribute 'pictures_directory'
E               AttributeError: 'coroutine' object has no attribute 'port_manager'
E           AttributeError: 'coroutine' object has no attribute 'port_manager'
E           AttributeError: 'coroutine' object has no attribute 'qemu_path'
E       AttributeError: 'coroutine' object has no attribute '_qemu_path'
E       AttributeError: 'coroutine' object has no attribute 'qemu_path'
E       AttributeError: 'coroutine' object has no attribute '_script_file'
E       AttributeError: 'coroutine' object has no attribute 'start_command'
E       AttributeError: 'coroutine' object has no attribute 'startup_config'
E       AttributeError: 'coroutine' object has no attribute 'startup_config_content'
E       AttributeError: 'coroutine' object has no attribute 'startup_script'
E       AttributeError: 'coroutine' object has no attribute 'take_dynamips_id'
E       AttributeError: 'coroutine' object has no attribute 'update_node_name'
E       AttributeError: 'coroutine' object has no attribute 'working_dir'
ERROR tests/compute/test_base_node.py::test_change_aux_port - AttributeError:...
ERROR tests/compute/test_base_node.py::test_close - AttributeError: 'coroutin...
ERROR tests/controller/test_node.py::test_create - AttributeError: 'coroutine...
ERROR tests/controller/test_node.py::test_delete - AttributeError: 'coroutine...
ERROR tests/controller/test_node.py::test_dynamips_idle_pc - AttributeError: ...
ERROR tests/controller/test_node.py::test_eq - AttributeError: 'coroutine' ob...
ERROR tests/controller/test_node.py::test_get_port - AttributeError: 'corouti...
ERROR tests/controller/test_node.py::test_json - AttributeError: 'coroutine' ...
ERROR tests/controller/test_node.py::test_post - AttributeError: 'coroutine' ...
ERROR tests/controller/test_node.py::test_reload - AttributeError: 'coroutine...
ERROR tests/controller/test_node.py::test_start - AttributeError: 'coroutine'...
ERROR tests/controller/test_node.py::test_stop - AttributeError: 'coroutine' ...
ERROR tests/controller/test_node.py::test_suspend - AttributeError: 'coroutin...
ERROR tests/controller/test_node.py::test_symbol - AttributeError: 'coroutine...
ERROR tests/controller/test_node.py::test_update - AttributeError: 'coroutine...
ERROR tests/controller/test_node.py::test_update_label - AttributeError: 'cor...
ERROR tests/controller/test_node.py::test_update_no_changes - AttributeError:...
ERROR tests/controller/test_node.py::test_update_properties - AttributeError:...
            except ValueError:
FAILED tests/compute/builtin/nodes/test_cloud.py::test_json_without_ports - A...
FAILED tests/compute/builtin/nodes/test_nat.py::test_json_windows_with_full_name_of_interface
FAILED tests/compute/docker/test_docker_vm.py::test_json - AttributeError: 'c...
FAILED tests/compute/docker/test_docker_vm.py::test_start_command - Attribute...
FAILED tests/compute/dynamips/test_dynamips_manager.py::test_get_dynamips_id
FAILED tests/compute/dynamips/test_dynamips_manager.py::test_release_dynamips_id
FAILED tests/compute/dynamips/test_dynamips_manager.py::test_take_dynamips_id
FAILED tests/compute/dynamips/test_dynamips_manager.py::test_vm_invalid_dynamips_path
FAILED tests/compute/dynamips/test_dynamips_manager.py::test_vm_non_executable_dynamips_path
FAILED tests/compute/dynamips/test_dynamips_router.py::test_convert_project_before_2_0_0_b3
FAILED tests/compute/dynamips/test_dynamips_router.py::test_router - Attribut...
FAILED tests/compute/iou/test_iou_vm.py::test_application_id - AttributeError...
FAILED tests/compute/iou/test_iou_vm.py::test_change_name - AttributeError: '...
FAILED tests/compute/iou/test_iou_vm.py::test_create_netmap_config - Attribut...
FAILED tests/compute/iou/test_iou_vm.py::test_extract_configs - AttributeErro...
FAILED tests/compute/iou/test_iou_vm.py::test_get_startup_config - AttributeE...
FAILED tests/compute/iou/test_iou_vm.py::test_iourc_content - AttributeError:...
FAILED tests/compute/iou/test_iou_vm.py::test_iourc_content_fix_carriage_return
FAILED tests/compute/iou/test_iou_vm.py::test_path - AttributeError: 'corouti...
FAILED tests/compute/iou/test_iou_vm.py::test_path_invalid_bin - AttributeErr...
FAILED tests/compute/iou/test_iou_vm.py::test_path_relative - AttributeError:...
FAILED tests/compute/iou/test_iou_vm.py::test_update_startup_config - Attribu...
FAILED tests/compute/iou/test_iou_vm.py::test_update_startup_config_content_hostname
FAILED tests/compute/iou/test_iou_vm.py::test_update_startup_config_empty - A...
FAILED tests/compute/iou/test_iou_vm.py::test_vm - AttributeError: 'coroutine...
FAILED tests/compute/iou/test_iou_vm.py::test_vm_startup_config_content - Att...
FAILED tests/compute/qemu/test_qemu_vm.py::test_get_qemu_img - AttributeError...
FAILED tests/compute/qemu/test_qemu_vm.py::test_hda_disk_image - AttributeErr...
FAILED tests/compute/qemu/test_qemu_vm.py::test_hda_disk_image_ova - Attribut...
FAILED tests/compute/qemu/test_qemu_vm.py::test_hdb_disk_image - AttributeErr...
FAILED tests/compute/qemu/test_qemu_vm.py::test_hdc_disk_image - AttributeErr...
FAILED tests/compute/qemu/test_qemu_vm.py::test_hdd_disk_image - AttributeErr...
FAILED tests/compute/qemu/test_qemu_vm.py::test_initrd_asa - AttributeError: ...
FAILED tests/compute/qemu/test_qemu_vm.py::test_initrd - AttributeError: 'cor...
FAILED tests/compute/qemu/test_qemu_vm.py::test_json - AttributeError: 'corou...
FAILED tests/compute/qemu/test_qemu_vm.py::test_options - AttributeError: 'co...
FAILED tests/compute/qemu/test_qemu_vm.py::test_options_windows - AttributeEr...
FAILED tests/compute/qemu/test_qemu_vm.py::test_set_qemu_path - AttributeErro...
FAILED tests/compute/qemu/test_qemu_vm.py::test_set_qemu_path_environ - Attri...
FAILED tests/compute/qemu/test_qemu_vm.py::test_set_qemu_path_kvm_binary - At...
FAILED tests/compute/qemu/test_qemu_vm.py::test_set_qemu_path_old_windows - A...
FAILED tests/compute/qemu/test_qemu_vm.py::test_set_qemu_path_windows - Attri...
FAILED tests/compute/test_base_node.py::test_allocate_aux - AttributeError: '...
FAILED tests/compute/test_base_node.py::test_aux - AttributeError: 'coroutine...
FAILED tests/compute/test_base_node.py::test_console - AttributeError: 'corou...
FAILED tests/compute/test_base_node.py::test_console_vnc_invalid - AttributeE...
FAILED tests/compute/test_base_node.py::test_temporary_directory - AttributeE...
FAILED tests/compute/test_manager.py::test_get_abs_image_additional_image_paths
FAILED tests/compute/test_manager.py::test_get_abs_image_path - AttributeErro...
FAILED tests/compute/test_manager.py::test_get_abs_image_path_non_local - Att...
FAILED tests/compute/test_manager.py::test_get_abs_image_recursive - Attribut...
FAILED tests/compute/test_manager.py::test_get_abs_image_recursive_ova - Attr...
FAILED tests/compute/test_manager.py::test_get_relative_image_path - Attribut...
FAILED tests/compute/virtualbox/test_virtualbox_manager.py::test_vboxmanage_path
FAILED tests/compute/virtualbox/test_virtualbox_manager.py::test_vm_invalid_executable_name_vboxmanage_path
FAILED tests/compute/virtualbox/test_virtualbox_manager.py::test_vm_invalid_vboxmanage_path
FAILED tests/compute/virtualbox/test_virtualbox_manager.py::test_vm_non_executable_vboxmanage_path
FAILED tests/compute/virtualbox/test_virtualbox_vm.py::test_json - AttributeE...
FAILED tests/compute/virtualbox/test_virtualbox_vm.py::test_patch_vm_uuid - A...
FAILED tests/compute/virtualbox/test_virtualbox_vm.py::test_patch_vm_uuid_with_corrupted_file
FAILED tests/compute/vpcs/test_vpcs_vm.py::test_change_name - AttributeError:...
FAILED tests/compute/vpcs/test_vpcs_vm.py::test_get_startup_script - Attribut...
FAILED tests/compute/vpcs/test_vpcs_vm.py::test_get_startup_script_using_default_script
FAILED tests/compute/vpcs/test_vpcs_vm.py::test_update_startup_script - Attri...
FAILED tests/compute/vpcs/test_vpcs_vm.py::test_update_startup_script_h - Att...
FAILED tests/compute/vpcs/test_vpcs_vm.py::test_update_startup_script_with_escaping_characters_in_name
FAILED tests/controller/test_drawing.py::test_image_base64 - AttributeError: ...
FAILED tests/controller/test_drawing.py::test_image_svg - AttributeError: 'co...
FAILED tests/controller/test_drawing.py::test_json - AttributeError: 'corouti...
FAILED tests/controller/test_link.py::test_eq - AttributeError: 'coroutine' o...
FAILED tests/controller/test_node_port_name.py::test_list_ports_adapters_cloud
FAILED tests/controller/test_node_port_name.py::test_list_ports_atm_switch - ...
FAILED tests/controller/test_node_port_name.py::test_list_ports_dynamips - At...
FAILED tests/controller/test_node_port_name.py::test_list_ports_ethernet_hub
FAILED tests/controller/test_node_port_name.py::test_list_ports_frame_relay_switch
FAILED tests/controller/test_node_port_name.py::test_list_ports_iou - Attribu...
FAILED tests/controller/test_node.py::test_empty_properties - AttributeError:...
FAILED tests/controller/test_node.py::test_init_without_uuid - AttributeError...
FAILED tests/controller/test_node.py::test_name - AttributeError: 'coroutine'...
FAILED tests/controller/test_node.py::test_vmname - AttributeError: 'coroutin...
FAILED tests/controller/test_notification.py::test_various_notification - Att...
FAILED tests/controller/test_project.py::test_get_snapshot - AttributeError: ...
FAILED tests/controller/test_project.py::test_is_running - AttributeError: 'c...
FAILED tests/controller/test_project.py::test_snapshots - AttributeError: 'co...
FAILED tests/controller/test_snapshot.py::test_json - AttributeError: 'corout...
FAILED tests/controller/test_snapshot.py::test_snapshot_filename - AttributeE...
FAILED tests/controller/test_snapshot.py::test_snapshot_name - AttributeError...
        notif.project_emit("log.error", {"message": "Permission denied on /tmp"})
WARNING  gns3server.config:config.py:228 No configuration file could be found or read
Comment 3 Michael Mair-Keimberger (iamnr3) 2022-08-09 18:54:02 UTC
I found the reason for the sudden failures in tests.
It seems like tests won't work with the newly added =dev-python/pytest-asyncio-0.19.0
I've downgraded to =dev-python/pytest-asyncio-0.18.3 and all test are running fine.

Not really sure how to fix that, or specifically who has to fix that (gns3-server or pytest-asyncio)? For now my goto fix would be to make an upper version restriction for gns3-server (and probably gns3-gui too). I hope thats fine?
Comment 4 Joonas Niilola gentoo-dev 2022-08-14 08:00:14 UTC
That's really frowned upon unfortunately, as it quickly starts causing conflicting dependency resolutions and prevents cleanups of older versions. It'd be greatest if upstream was aware of it and fixed it providing a patch. Or if you have a way of disabling problematic tests, 
https://projects.gentoo.org/python/guide/test.html#skipping-problematic-tests

But I guess since it's tied after "test" use flag the restriction would be okay for now until upstream fixes it or a newer version is released.
Comment 5 Michael Mair-Keimberger (iamnr3) 2022-08-16 16:40:11 UTC
(In reply to Joonas Niilola from comment #4)
> That's really frowned upon unfortunately, as it quickly starts causing
> conflicting dependency resolutions and prevents cleanups of older versions.
> It'd be greatest if upstream was aware of it and fixed it providing a patch.
> Or if you have a way of disabling problematic tests, 
> https://projects.gentoo.org/python/guide/test.html#skipping-problematic-tests
> 
> But I guess since it's tied after "test" use flag the restriction would be
> okay for now until upstream fixes it or a newer version is released.

thanks for the information, i was already suspecting that that's not the way to go. I also really would like to keep the tests, especially since it would mean to skips quite a lot of them.
I've made an upstream issue and hope they can figure out the issue here. I've also looked at the pytest-asyncio and my guess it has something todo with the change in https://github.com/pytest-dev/pytest-asyncio/pull/380

I'll wait a bit to see what upstream can say about this.
Comment 6 Agostino Sarubbo gentoo-dev 2022-09-22 09:25:18 UTC
tinderbox_musl has reproduced this issue with version 2.2.33.1-r2 - Updating summary.
Comment 7 Larry the Git Cow gentoo-dev 2022-10-10 13:18:21 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=739e432e45c4dfdf49cd88a398d2d34b2318fcfc

commit 739e432e45c4dfdf49cd88a398d2d34b2318fcfc
Author:     Michael Mair-Keimberger <mmk@levelnine.at>
AuthorDate: 2022-09-19 16:21:17 +0000
Commit:     Joonas Niilola <juippis@gentoo.org>
CommitDate: 2022-10-10 13:12:56 +0000

    net-misc/gns3-server: version bump (2.2.34)
    
    Closes: https://bugs.gentoo.org/863770
    Signed-off-by: Michael Mair-Keimberger <mmk@levelnine.at>
    Portage 3.0.36 / pkgdev 0.2.1 / pkgcheck 0.10.14
    Signed-off-by: Joonas Niilola <juippis@gentoo.org>

 net-misc/gns3-server/Manifest                  |  1 +
 net-misc/gns3-server/gns3-server-2.2.34.ebuild | 78 ++++++++++++++++++++++++++
 2 files changed, 79 insertions(+)