TypeError: Cannot read property 'data' of undefined

Bug #2067190 reported by chufuchufu123
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
New
Undecided
Unassigned

Bug Description

In the 2024.1 and 2023.2 versions of OpenStack, "TypeError: Cannot read property 'data' of undefined" appears when I use horizon to upload the image.
The experimental environment is ubuntu22.04 operating system to deploy kolla-ansible.

Tags: glance horizon
Revision history for this message
chufuchufu123 (chufuchufu123) wrote :
Revision history for this message
Martin Ananda Boeker (mboeker) wrote (last edit ):

Seeing this issue as well. chufuchufu123 are there any updates?

I've noticed that when uploading an image through the admin section of Horizon it does work, I only get this error when trying to upload in the project view.

Revision history for this message
Lukasz (luksky2) wrote (last edit ):

add to glance-api.conf following setting:

[cors]
allowed_origin = <public url of Your horizon>

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.