osism / issues

This repository is used for bug reports that are cross-project or not bound to a specific repository (or to an unknown repository).
https://www.osism.tech
1 stars 1 forks source link

[bug] Horizon Image Upload Broken #1087

Open flyersa opened 1 month ago

flyersa commented 1 month ago

OSISM release version

7.0.5

What's the problem?

Trying to upload a image via horizon gives instant error TypeError: Cannot read properties of undefined (reading 'data') on 7.0.4 and 7.0.5

Didnt test with 7.1.0 yet, but its working in latest with 2024.1

References to existing reports

References to existing bug reports, mailing lists, ...

Severity

low

Urgency

low

MarRio81 commented 1 month ago

The cors entry in in the glance-api.conf is missing. Workarround:

environments/kolla/files/overlays/glance/glance-api.conf [cors] allowed_origin = https://example.com

Use it without port definition because this raises another bug (https://bugs.launchpad.net/kolla-ansible/+bug/2060317)

berendt commented 1 month ago

This is the default value:

[cors]
allowed_origin = {{ horizon_public_endpoint }}

Which results in the testbed deployment (2023.2) in:

[cors]
allowed_origin = https://api.testbed.osism.xyz

Looks good to me? But it's also not working in the testbed deployment...

MarRio81 commented 1 month ago

Ah ok, we set horizon_public_endpoint with the port definition and hit https://bugs.launchpad.net/kolla-ansible/+bug/2060317

flyersa commented 1 month ago

setting cors setting manual in overlay glance-api.conf works..

UPDATE: at least in one environment, other one doesnt even work with this setting :/