lxdware / lxd-dashboard

This LXD dashboard is a web-based user interface (GUI) for managing containers and virtual machines through LXD
https://lxdware.com
GNU Affero General Public License v3.0
317 stars 37 forks source link

Need clarification on "remotes" and available images #63

Open valkuc opened 1 year ago

valkuc commented 1 year ago

Hello. First of all thanks for great project. I have few issues.

1) It looks like content of "Simplestreams" menu is not in sync with "lxc remote list". If I'm adding new simplestream via UI - it's not displayed by command "lxc remote list" and vise versa. Is this as designed?

2) I have added new remote repository both in UI (via Simplestreams menu) and using console command: lxc remote add --protocol simplestreams ubuntu-minimal https://cloud-images.ubuntu.com/minimal/releases/ But I did not find a way to search for available remote image in lxd-dashboard UI. Here I see a list of predefined images and nothing else. изображение Is there any way to search for remote image via UI?

matthewalanpenning commented 1 year ago

Thank you!

When running the 'lxc remote list' you are provided with a list of hosts that are local to that LXD server or cluster. This information is not made available through the LXD API. Since the dashboard connects to LXD servers using the remote API, I had to create a local database to host this information for the dashboard. So they will not be in sync because there is not an option to do so.

You are correct, the image catalog is a static list of some of the images available from the default images and ubuntu remotes. I have considered updating this to a dynamic list. I originally had just the form option, then added the catalog to make it easy for people new to LXD to get an image.

If I made the list dynamic it looks like I would need to create a filter or search option to narrow down the results. Any suggestions on this are welcome.

valkuc commented 1 year ago

I think that Catalog tab can be replaced with a table, similar to how it is done in LxdUI: изображение

(full GIF here - https://github.com/vhajdari/testsite/raw/master/lxdui_screencast_2.gif)

But also add Search text field to narrow down results.