Open cbosdo opened 11 months ago
I can reproduce only on uyuni branch, not on head.
[
{'hostname': 'uyuni-master-min-suse.mgr.suse.de', 'ip': '10.137.210.214', 'name': 'uyuni-master-min-suse.mgr.suse.de', 'id': 1000010001, 'last_checkin': <DateTime '20230922T11:32:38'
at 0x7fded178cc18>},
{'hostname': 'uyuni-master-min-kvm.mgr.suse.de', 'ip': '10.137.210.222', 'name': 'uyuni-master-min-kvm.mgr.suse.de', 'id': 1000010005, 'last_checkin': <DateTime
'20230922T11:44:56' at 0x7fded17a1048>},
{'name': 'uyuni-master-minssh-suse.mgr.suse.de', 'id': 1000010002, 'last_checkin': <DateTime '20230922T11:34:30' at 0x7fded17a10f0>},
{'hostname': 'uyuni-master-min-ubuntu2204.mgr.suse.de', 'ip': '10.137.210.219', 'name': 'uyuni-master-min-ubuntu2204.mgr.suse.de', 'id': 1000010004, 'last_checkin': <DateTime '20230922T11:40:
48' at 0x7fded17a11d0>},
{'hostname': 'uyuni-master-min-build.mgr.suse.de', 'ip': '10.137.210.221', 'name': 'uyuni-master-min-build.mgr.suse.de', 'id': 1000010006, 'last_checkin': <Da
teTime '20230922T11:46:37' at 0x7fded17a12b0>},
{'hostname': 'uyuni-master-min-rocky8.mgr.suse.de', 'ip': '10.137.210.217', 'name': 'uyuni-master-min-rocky8.mgr.suse.de', 'id': 100001
0003, 'last_checkin': <DateTime '20230922T11:37:01' at 0x7fded17a1390>}
]
I have the explanation of the problem.
If you search for mgr-de-uyuni-suse-master
you also get all systems.
I suppose that the search function works as follows:
The issue does not happen on HEAD because we have sles15
instead of suse
in minion's name.
The issue does not happen on the other minions for the same reason: their names are more specific.
Hey @Bischoff thanks for the explanation. I still think it's more of an unintended behavior. At least from the initial report. Should we have it eventually as a bug?
Bugzilla report: https://bugzilla.suse.com/show_bug.cgi?id=1215601
Running this script return the whole list of systems rather than only the one matching. In any case that system should be the first one returned.