Reviewed: https://review.opendev.org/695877 Committed: https://git.openstack.org/cgit/openstack/horizon/commit/?id=04a3535e184dddb8ece828b94d44f589b02a3b94 Submitter: Zuul Branch: master
commit 04a3535e184dddb8ece828b94d44f589b02a3b94 Author: Dmitriy Rabotyagov <[email protected]> Date: Mon Nov 25 12:34:30 2019 +0200 Add support to get disk_formats from glance This patch allows administrators to set disk_formats only for glance, while horizon will retrieve list of supported formats from glance API. IMAGE_BACKEND_SETTINGS still may be used to redefine display name of the format or additionally limit list of availble ones. Change-Id: Ia4ea513023895f4ad2a87f91e3d2837c7668d9ae Closes-Bug: 1853822 ** Changed in: horizon Status: In Progress => Fix Released -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to OpenStack Dashboard (Horizon). https://bugs.launchpad.net/bugs/1853822 Title: Display only supported by glance disk_format Status in OpenStack Dashboard (Horizon): Fix Released Bug description: Glance can return list of supported disk formats in schema [1]. Now disk_formats are configured staticly with OPENSTACK_IMAGE_BACKEND variable in settings and do not take into account really supported formats. So administrator needs to configure both horizon and glance. I'd offer to add support into horizon to retrieve list of enabled formats. This list can be retrieved in the following way: >>> from glanceclient.v2 import client >>> from openstack import connect >>> conn = connect() >>> glanceclient = client.Client("http://172.29.236.100:9292/v2/", token=conn.auth_token, insecure=True) >>> glanceclient.schemas.get('image').raw()['properties']['disk_format']['enum'] [None, 'raw'] >>> [1] https://docs.openstack.org/api-ref/image/v2/index.html#image- schemas To manage notifications about this bug go to: https://bugs.launchpad.net/horizon/+bug/1853822/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : [email protected] Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp

