images with bigger size failed to push through horizon

Bug #2065538 reported by ashutosh gautam
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
New
Undecided
Unassigned

Bug Description

Hi,

We faced an issue while pushing the image through horizon.

Problem:
we tried to to upload a 5.5G image through Horizon webui. That fails, but the CLI works.
We ran some tests and found that /tmp is being used to hold the temporary file.
```
8.5M /tmp/systemd-private-bf0f1d5622ae4b1bba0d7c34c7530e4f-apache2.service-sAg1Hg/tmp/tmpr5z6fm55.upload.img
```

There is no option for direct glance transfer right now.

It seems that the default and only available mode for horizon I can see right now is to use tmpfs (/tmp) to store the image on disk first and then push it to glance. Its current size is only 2G
```
root@juju-e9cbb4-5-lxd-19:~# df -h /tmp
Filesystem Size Used Avail Use% Mounted on
tmpfs 2.0G 139M 1.9G 7% /tmp
```

Eventhough it is true we have a workaround(Increase the size of fstab), we do need to make the functionality work in Horizon.

We would want to raise a feature request for direct upload images to glance without using any /tmp as an intermediate location.

Thanks

summary: - images greater than 2G failed to push through horizon
+ images with bigger size failed to push through horizon
Revision history for this message
Takashi Kajinami (kajinamit) wrote :

AFAIK the horizon already provides the feature to accept direct image upload to glance. Did you configure the HORIZON_IMAGES_UPLOAD_MODE option ?

https://docs.openstack.org/horizon/latest/configuration/settings.html#horizon-images-upload-mode

Revision history for this message
ashutosh gautam (ashugauttam225) wrote :

Hey,
Sorry for the confusion. I wanted to raise this bug over openstack dashboard charm. I mistakenly raised it over here.
Sorry for the inconvenience caused

Thanks

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.