Title
#fleet
t

Tor Houghton

02/02/2022, 12:29 PM
I think I may have found a bug (in 4.9.0). I have a hostname called "vr.home.bogus.net" which appears in the list of hosts, but I am not able to do a specific queries for this host (when I type in the hostname or indeed the fqdn, it does not appear in the list (though the UI will suggest other hosts)).
Tomas Touceda

Tomas Touceda

02/02/2022, 1:21 PM
hi there! sorry hear you're having issues. Is the bug that you cannot seem to select this host to do a live query against? or that when you do, it fails?
t

Tor Houghton

02/02/2022, 2:36 PM
it doesn't show up in the suggestions when you search 🙂
2:38 PM
Queries v Hosts
Tomas Touceda

Tomas Touceda

02/02/2022, 2:43 PM
the tool we use to search underneath in some cases has a lower limit of 3 chars, does it work if you search for
vr.h
?
t

Tor Houghton

02/02/2022, 2:51 PM
That's the thing; nothing shows up at all until I type "vr.hom" -- and then the "vr" host is left out of the results 😉
Tomas Touceda

Tomas Touceda

02/02/2022, 3:20 PM
will look into it and keep you posted, thank you for mentioning the issue!
3:27 PM
I can't reproduce quickly, gonna create an issue shortly. if you search for the exact host, does it appear then? sometimes if you search for things that match many hosts, those might "kick off" the host you are expecting from the list
t

Tor Houghton

02/02/2022, 3:27 PM
Nope!
Tomas Touceda

Tomas Touceda

02/02/2022, 3:29 PM
is this host in a team? what role is the user you are testing this with?
t

Tor Houghton

02/02/2022, 3:29 PM
If I have time later I can try to recreate with a different (short) host name. I am just using the default "admin" user. And it is not part of any team.
3:29 PM
I have a few three-letter hosts that show up fine, btw.
Tomas Touceda

Tomas Touceda

02/02/2022, 3:33 PM
Noah Talerman

Noah Talerman

02/02/2022, 3:38 PM
@Tor Houghton if you’re able, can you please send a screenshot of the request and response for of the
/targets
API route when the host isn’t showing up? You can find this in the “Network” tab in your browsers dev tools. This will provide more information for debugging. Thank you 😃
t

Tor Houghton

02/16/2022, 7:37 PM
This is the request payload (raw): {"query":"vr.","query_id":158,"selected":{"hosts":[],"labels":[],"teams":[]}}
7:38 PM
This is the response (raw): { "targets": { "hosts": [], "labels": [ { "created_at": "2021-11-22T08🔟29Z", "updated_at": "2021-11-22T08🔟29Z", "id": 6, "name": "All Hosts", "description": "All hosts which have enrolled in Fleet", "query": "select 1;", "platform": "", "label_type": "builtin", "label_membership_type": "dynamic", "host_count": 32, "display_text": "All Hosts", "count": 32 } ], "teams": [] }, "targets_count": 0, "targets_online": 0, "targets_offline": 0, "targets_missing_in_action": 0 }
7:40 PM
When I enter "vr.hom": {"query":"vr.hom","query_id":158,"selected":{"hosts":[],"labels":[],"teams":[]}}
7:41 PM
I get a response that contains lots of hosts (400-odd lines of JSON).
7:41 PM
Does this help?
7:42 PM
(I am on 4.10 now, by the way.)
Noah Talerman

Noah Talerman

02/16/2022, 8:00 PM
Yes, thank you! I added this information to the bug report issue here: https://github.com/fleetdm/fleet/issues/3979
I get a response that contains lots of hosts (400-odd lines of JSON).
This response does not include the host you’re looking for, correct?
t

Tor Houghton

02/16/2022, 8:08 PM
That's correct. And I added another two-character named host just to make sure and neither one show up.
8:19 PM
It's quite strange though. If I search for "so.hom", that host shows up in the list of results, but if I search "vr.hom", it doesn't -- but the so.hom host does:
Noah Talerman

Noah Talerman

02/16/2022, 8:30 PM
Yeah that’s unexpected. Sorry you’re still experiencing this issue. The Fleet team will likely resolve this issue in the upcoming release of Fleet. Also, thanks for the additional info. Please feel free to add any more screenshots/comments in the following issue: https://github.com/fleetdm/fleet/issues/3979
t

Tor Houghton

02/16/2022, 8:42 PM
Hey, don't be sorry -- I'm glad you guys want my input 🙂
8:45 PM
(And hopefully you're able to recreate it 🙂
Noah Talerman

Noah Talerman

02/16/2022, 8:48 PM
Please keep the input coming! Whether it’s in the form of a bug report, feature request, or something else.
hopefully you’re able to recreate it
Looks like we were able to recreate the issue in a Loom video included in a comment here: https://github.com/fleetdm/fleet/issues/3979#issuecomment-1029253132