[UI] Hosts added inside a host set is not visible on the hosts sets "hosts" tab

Not sure if I’m missing something, but hosts added inside a host set is not visible on the hosts sets “hosts” tab, so can’t really connect :frowning:

  1. Go to host catalog
  2. Create a new host catalog
  3. Create a new host set
  4. Go to the host sets own host tab
  5. It’s empty. Create a host, which it says is successfully added.
  6. Now go back to your host set, go to host tabs again…and its empty.
  7. Go up to your host catalog again, press hosts and you can see your host there.

So my connection attempt just says:

boundary connect ssh -target-id ttcp_cJXZbFUXJB
Error from controller when performing authorize-session against target:
Error information:
Code: NotFound
Message: No hosts found from available target host sets.
Status: 404

So basically, your host is visible here:
Projects → Generated project scope → Host Catalogs > newcat → Hosts

But not here:

Projects → Generated project scope → Host Catalogs → newcat → Host Sets → newhostset → hosts

1 Like

I poked around in the database a little:

I guess there should be something here?

boundary=# select * from static_host_set_member;
host_id | set_id | catalog_id

At least its in static_host table:

boundary=# select * from static_host where name = ‘created_inside_newcat’;
hst_k4MVhZujH5 | hcst_amh9fDqevR | created_inside_newcat | | | 2020-10-15 21:24:49.939941+00 | 2020-10-15 21:24:49.939941+00 | 1

Same issue here when adding hosts through web ui, but resolved through cli with

[root@boundary ~]# boundary host-sets set-hosts -id hsst_fUW5YulkMM -host hst_WesAOPrQQJ

Could I ask you to file a bug on our issue tracker? Seems to be a UI issue and that way we can assign and track it appropriately.

Hi, Could you please log a bug on our issue tracker here. We’ll track it and assign appropriately.

Thank you!

Looking into this further, the hosts get created in the host catalog scope in UI. After which, you’ll have to go through host association workflow in a host set to assign it to a host set. It’s recorded here: https://www.boundaryproject.io/docs/common-workflows/manage-targets#define-a-host-set (under Admin Console tab).

Please take a look and let me know if you have any additional questions. Thank you!


Created https://github.com/hashicorp/boundary/issues/710