← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1655393] Re: manila-ui quotas override part of the default quotas

 

** Project changed: manila-ui => horizon

-- 
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/1655393

Title:
  manila-ui quotas override part of the default quotas

Status in OpenStack Dashboard (Horizon):
  In Progress

Bug description:
  Versions affected: mitaka and higher.
  Under Admin -> Defaults -> Update defaults

  
  Due to manila-ui overriding the default quotas from horizon, it makes the "Update Default Quotas" workflow miss some initial values ('Key Pairs' and 'Length of Injected File Path')

  This is due to this line of code: https://github.com/openstack/manila-
  ui/blob/stable/mitaka/manila_ui/dashboards/project/shares/__init__.py#L81

  quotas.QUOTA_FIELDS = quotas.QUOTA_FIELDS + MANILA_QUOTA_FIELDS

  This assumes that all the quotas available are in quotas.QUOTA_FIELDS but unfortunately, for some historical reason Im sure, there is some extra quotas not available on that tuple:
  https://github.com/openstack/horizon/blob/master/openstack_dashboard/usage/quotas.py#L44

  MISSING_QUOTA_FIELDS = ("key_pairs",
                          "injected_file_path_bytes",)

  
  This causes the quotas to appear correctly when viewing them on Admin -> Defaults, but when editing their values get lost.

To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1655393/+subscriptions