AdaptiveScale / lxdui

LXDUI is a web UI for the native Linux container technology LXD/LXC
Apache License 2.0
721 stars 154 forks source link

lxdui cannot list images for remote #350

Open laheller opened 3 years ago

laheller commented 3 years ago

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 commented 3 years ago

Can you please file a bug?

On Thu, Jun 24, 2021 at 3:30 PM Ladislav Heller @.***> wrote:

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: image] https://user-images.githubusercontent.com/5788998/123327935-3f7ee680-d53b-11eb-9724-5bee03353851.png

Which is really interesting, because the underlying REST API definitely works and I can retrieve the images list in browser: [image: image] https://user-images.githubusercontent.com/5788998/123328098-77862980-d53b-11eb-83f9-698e5c91b4a1.png

BR,

Ladislav

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/AdaptiveScale/lxdui/issues/350, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACXOWQ356LC6OGIKRSDX2GTTUOIXHANCNFSM47IS76LA .

-- Regards,

Tony Hajdari

laheller commented 3 years ago

@vhajdari

Hi!

What do you mean by "file a bug" ?

OllieSteam commented 2 years ago

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 commented 2 years ago

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