CanonicalLtd / microstack

Snap for installing an all-in-one OpenStack
46 stars 15 forks source link

Error when uploading Ubuntu 18.04 qcow2 image via horizon #86

Open davecore82 opened 4 years ago

davecore82 commented 4 years ago

I downloaded https://cloud-images.ubuntu.com/bionic/current/bionic-server-cloudimg-amd64.img on my laptop and tried to upload it with the microstack dashboard. I select the QCOW2 format and click Create image but get the following error:

<html> <head><title>413 Request Entity Too Large</title></head> <body> <center><h1>413 Request Entity Too Large</h1></center> <hr><center>nginx/1.19.0</center> </body> </html> <!-- a padding to disable MSIE and Chrome friendly error page --> <!-- a padding to disable MSIE and Chrome friendly error page --> <!-- a padding to disable MSIE and Chrome friendly error page --> <!-- a padding to disable MSIE and Chrome friendly error page --> <!-- a padding to disable MSIE and Chrome friendly error page --> <!-- a padding to disable MSIE and Chrome friendly error page -->
davecore82 commented 4 years ago

$ snap list microstack Name Version Rev Tracking Publisher Notes microstack ussuri 216 latest/beta canonical✓ devmode

davecore82 commented 4 years ago

Using the CLI works:

microstack.openstack --os-username=admin --os-password= image create --file ./Downloads/bionic-server-cloudimg-amd64.img --public --container-format bare --disk-format qcow2 bionic

pengale commented 4 years ago

MicroStack should be setting the upload size that the web interface accepts to something much larger than the default. I thought there was a launchpad bug open about this, but I couldn't find it. (https://bugs.launchpad.net/microstack)

You can fix this yourself by finding and tweaking the Django settings in /var/microstack/common/etc/ It would definitely be nice if MicroStack came configured appropriately for this out of the box, though!