{"push_id":1255229375,"size":1,"distinct_size":1,"ref":"refs/heads/master","head":"ccf7261c3dda3796b6ca6b6901b96b159a605fb1","before":"b5c64b50afac3ee6027f9b27267ce1c98ad7a34f","commits":[{"sha":"ccf7261c3dda3796b6ca6b6901b96b159a605fb1","author":{"name":"Jenkins","email":"61eb39d4445155efb6068840385577c11776cd20@review.openstack.org"},"message":"Updated openstack/openstack\nProject: openstack/horizon  70596b1d0053c15ee549660560cbf89c007acf1f\n\n[Django] Allow to upload the image directly to Glance service\n\nSince large Glance images even temporarily stored on dashboard side\ntend to fill up Web Server filesystem, it is desirable to route image\npayload directly to Glance service (which usually streams it to\nstorage backend, which in turn has plenty of space).\n\nTo make it possible we need to trick Django into thinking that a file\nwas selected inside FileInput, while its contents are not actually\ntransferred to Django server. Then, once image is created client-side\ncode needs to know the exact url the image payload needs to be\ntransferred to. Both tasks are solved via using ExternalFileField /\nExternalUploadMeta classes which allow to work around the usual Django\nform processing workflow with minimal changes to CreateImage form\nbusiness logic.\n\nThe client-side code relies on CORS being enabled for Glance service\n(otherwise browser would forbid the PUT request to a location\ndifferent from the one form content came from). In a Devstack setup\nyou'll need to edit [cors] section of glance-api.conf file, setting\n`allowed_origin` setting to the full hostname of the web server (say,\nhttp://<HOST_IP>/dashboard) and restart glance-api process.\n\nA progress bar is implemented to track the progress of a file upload,\nin case a really huge image is transferred.\n\nThe new machinery could be easily switched on/off with a single\nsetting `HORIZON_IMAGES_UPLOAD_MODE` set to 'direct' / 'legacy'.\n\nRelated-Bug: #1467890\nCloses-Bug: #1403129\nImplements blueprint: horizon-glance-large-image-upload\nChange-Id: I01d02f75268186b43066df6fd966aa01c08e01d7","distinct":true,"url":"https://api.github.com/repos/openstack/openstack/commits/ccf7261c3dda3796b6ca6b6901b96b159a605fb1"}]}
{"actor":{"display_login":"openstack-gerrit"}}