Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lxdui cannot list images for remote #350

Open
laheller opened this issue Jun 24, 2021 · 4 comments
Open

lxdui cannot list images for remote #350

laheller opened this issue Jun 24, 2021 · 4 comments
Labels

Comments

@laheller
Copy link

Hi!

I have following remotes on my system:

lxc remote list     
+---------------------+-------------------------------------------------------+---------------+-------------+--------+--------+--------+
|        NAME         |                          URL                          |   PROTOCOL    |  AUTH TYPE  | PUBLIC | STATIC | GLOBAL |
+---------------------+-------------------------------------------------------+---------------+-------------+--------+--------+--------+
| images              | https://images.linuxcontainers.org                    | simplestreams | none        | YES    | NO     | NO     |
+---------------------+-------------------------------------------------------+---------------+-------------+--------+--------+--------+
| local               | unix://                                               | lxd           | file access | NO     | YES    | NO     |
+---------------------+-------------------------------------------------------+---------------+-------------+--------+--------+--------+
| lxdhub-dev-0        | https://lxdhub-dev-0.node.infra.devops.roche.com:8443 | lxd           | tls         | YES    | NO     | NO     |
+---------------------+-------------------------------------------------------+---------------+-------------+--------+--------+--------+
| roche               | https://lxdhub.roche.com:8443                         | lxd           | tls         | YES    | NO     | NO     |
+---------------------+-------------------------------------------------------+---------------+-------------+--------+--------+--------+
| roche-dev (current) | https://lxdhub-dev-0.node.infra.devops.roche.com:8443 | lxd           | tls         | YES    | NO     | NO     |
+---------------------+-------------------------------------------------------+---------------+-------------+--------+--------+--------+
| ubuntu              | https://cloud-images.ubuntu.com/releases              | simplestreams | none        | YES    | YES    | NO     |
+---------------------+-------------------------------------------------------+---------------+-------------+--------+--------+--------+
| ubuntu-daily        | https://cloud-images.ubuntu.com/daily                 | simplestreams | none        | YES    | YES    | NO     |
+---------------------+-------------------------------------------------------+---------------+-------------+--------+--------+--------+

When I list for example roche-dev via CLI, it works:

lxc image ls roche-dev:                           
+-------------------------------------------------+--------------+--------+-----------------------------------------------------------------+--------------+-----------------+-----------+-------------------------------+
|                      ALIAS                      | FINGERPRINT  | PUBLIC |                           DESCRIPTION                           | ARCHITECTURE |      TYPE       |   SIZE    |          UPLOAD DATE          |
+-------------------------------------------------+--------------+--------+-----------------------------------------------------------------+--------------+-----------------+-----------+-------------------------------+
| molior-tools/1.4.0-roche67                      | bb9e5ef7f360 | yes    | Ubuntu focal amd64 (20210314_07:42)                             | x86_64       | VIRTUAL-MACHINE | 522.05MB  | Mar 15, 2021 at 9:53am (UTC)  |
+-------------------------------------------------+--------------+--------+-----------------------------------------------------------------+--------------+-----------------+-----------+-------------------------------+
| molior-tools/1.4.0-roche68                      | e721a5fa7f27 | yes    | Ubuntu focal amd64 (20210314_07:42)                             | x86_64       | VIRTUAL-MACHINE | 523.70MB  | Mar 16, 2021 at 8:48am (UTC)  |
+-------------------------------------------------+--------------+--------+-----------------------------------------------------------------+--------------+-----------------+-----------+-------------------------------+
| molior-tools/1.4.0-roche69                      | 11a9dd617f75 | yes    | Ubuntu focal amd64 (20210323_07:42)                             | x86_64       | VIRTUAL-MACHINE | 530.65MB  | Mar 23, 2021 at 12:56pm (UTC) |
+-------------------------------------------------+--------------+--------+-----------------------------------------------------------------+--------------+-----------------+-----------+-------------------------------+
| molior-tools/1.4.0-roche73                      | 8f4bf58c3473 | yes    | Ubuntu focal amd64 (20210411_07:42)                             | x86_64       | VIRTUAL-MACHINE | 610.99MB  | Apr 12, 2021 at 9:59am (UTC)  |
+-------------------------------------------------+--------------+--------+-----------------------------------------------------------------+--------------+-----------------+-----------+-------------------------------+
| molior-tools/ (1 more)                          | 14087df39cbe | yes    | molior-tools/1.4.1~rc2.roche1 (Mon, 31 May 2021 11:00:25 +0000) | x86_64       | VIRTUAL-MACHINE | 1121.79MB | May 31, 2021 at 11:01am (UTC) |
+-------------------------------------------------+--------------+--------+-----------------------------------------------------------------+--------------+-----------------+-----------+-------------------------------+
| rlx-ic-dev-i386-lxd/stretch-2021-06-15T15-15-02 | f710d9cb70ce | yes    | rlx-ic-dev-i386-lxd/stretch-2021-06-15T15-15-02                 | i686         | CONTAINER       | 368.84MB  | Jun 15, 2021 at 3:19pm (UTC)  |

I changed in lxdui config the setting:
lxdui.images.remote = https://lxdhub-dev-0.node.infra.devops.roche.com:8443

After restart lxdui, login and navigate to remote images I see an empty list:
image

Which is really interesting, because the underlying REST API definitely works and I can retrieve the images list in browser:
image

BR,

Ladislav

@vhajdari
Copy link
Contributor

vhajdari commented Jul 1, 2021 via email

@laheller
Copy link
Author

laheller commented Jul 1, 2021

@vhajdari

Hi!

What do you mean by "file a bug" ?

@OllieSteam
Copy link

I also have this problem,
Running Ubuntu 21.10 (GNU/Linux 5.13.0-22-generic x86_64)
My list shows the same
image
each time I reload the page the same error appears:
xhr.send( options.hasContent && options.data || null ); (line 7774)
this is /api/image/remote/jquery-2.0.0.js

I don't know enough about JS to understand why this is doing it but this might be where the issue lies?

@jetroni jetroni added the bug label Feb 13, 2022
@jetroni
Copy link
Contributor

jetroni commented Feb 13, 2022

Tested it out today and it seems that there is an issue with how we fetch those images, will check this out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants