← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1853822] [NEW] Display only supported by glance disk_format

 

Public bug reported:

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

** Affects: horizon
     Importance: Undecided
     Assignee: Dmitriy Rabotyagov (noonedeadpunk)
         Status: In Progress

-- 
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):
  In Progress

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


Follow ups