[Yahoo-eng-team] [Bug 1798048] Re: cant modify project quotas with manila-ui plugin

2019-10-01 Thread OpenStack Infra
Reviewed:  https://review.opendev.org/679513
Committed: 
https://git.openstack.org/cgit/openstack/horizon/commit/?id=44987f02be671fd81b3dcd8d22f9fa1b219488c2
Submitter: Zuul
Branch:master

commit 44987f02be671fd81b3dcd8d22f9fa1b219488c2
Author: Gloria Gu 
Date:   Fri Aug 30 13:47:39 2019 -0700

Remove the check which causes plugin's quotas update failure

The check causes external plugin's quotas fields unknown
exception because the quotas fields are not part of
QUOTA_FIELDS which only includes the fields for
cinder, neutron and nova.

Meanwhile the exception message throws TypeError.

This commit removes the uncessary check. It also helps
fix the manila-ui's bug #1842119

Change-Id: If093f4ecf1e344792b347c5c338b441b1ab42a04
Closes-bug: #1798048
Closes-bug: #1842119


** 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/1798048

Title:
  cant modify project quotas with manila-ui plugin

Status in OpenStack Dashboard (Horizon):
  Fix Released

Bug description:
  error_log (httpd)

  [Tue Oct 16 04:42:47.473489 2018] [:error] [pid 4688] Traceback (most recent 
call last):
  [Tue Oct 16 04:42:47.473635 2018] [:error] [pid 4688]   File 
"/usr/lib64/python2.7/logging/__init__.py", line 851, in emit
  [Tue Oct 16 04:42:47.473780 2018] [:error] [pid 4688] msg = 
self.format(record)
  [Tue Oct 16 04:42:47.473817 2018] [:error] [pid 4688]   File 
"/usr/lib64/python2.7/logging/__init__.py", line 724, in format
  [Tue Oct 16 04:42:47.473867 2018] [:error] [pid 4688] return 
fmt.format(record)
  [Tue Oct 16 04:42:47.473896 2018] [:error] [pid 4688]   File 
"/usr/lib64/python2.7/logging/__init__.py", line 464, in format
  [Tue Oct 16 04:42:47.473943 2018] [:error] [pid 4688] record.message = 
record.getMessage()
  [Tue Oct 16 04:42:47.473971 2018] [:error] [pid 4688]   File 
"/usr/lib64/python2.7/logging/__init__.py", line 328, in getMessage
  [Tue Oct 16 04:42:47.474014 2018] [:error] [pid 4688] msg = msg % 
self.args
  [Tue Oct 16 04:42:47.474084 2018] [:error] [pid 4688] TypeError: not all 
arguments converted during string formatting
  [Tue Oct 16 04:42:47.474109 2018] [:error] [pid 4688] Logged from file 
quotas.py, line 242
  [Tue Oct 16 04:42:47.474415 2018] [:error] [pid 4688] UnhashableKeyWarning: 
The key of openstack_dashboard.usage.quotas tenant_quota_usages is not hashable 
and cannot be memoized: ((,), (('targets', ('share_snapshots', 'share_gigabytes', 
'share_snapshot_gigabytes', 'shares', 'share_networks')), ('tenant_id', 
u'81cc9c2be8a9476fbf81f9fbe4d2c86b')))
  [Tue Oct 16 04:42:47.474589 2018] [:error] [pid 4688] Traceback (most recent 
call last):
  [Tue Oct 16 04:42:47.474635 2018] [:error] [pid 4688]   File 
"/usr/lib64/python2.7/logging/__init__.py", line 851, in emit
  [Tue Oct 16 04:42:47.474685 2018] [:error] [pid 4688] msg = 
self.format(record)
  [Tue Oct 16 04:42:47.474713 2018] [:error] [pid 4688]   File 
"/usr/lib64/python2.7/logging/__init__.py", line 724, in format
  [Tue Oct 16 04:42:47.474752 2018] [:error] [pid 4688] return 
fmt.format(record)
  [Tue Oct 16 04:42:47.474778 2018] [:error] [pid 4688]   File 
"/usr/lib64/python2.7/logging/__init__.py", line 464, in format
  [Tue Oct 16 04:42:47.474827 2018] [:error] [pid 4688] record.message = 
record.getMessage()
  [Tue Oct 16 04:42:47.474856 2018] [:error] [pid 4688]   File 
"/usr/lib64/python2.7/logging/__init__.py", line 328, in getMessage
  [Tue Oct 16 04:42:47.474895 2018] [:error] [pid 4688] msg = msg % 
self.args
  [Tue Oct 16 04:42:47.474931 2018] [:error] [pid 4688] TypeError: not all 
arguments converted during string formatting
  [Tue Oct 16 04:42:47.474951 2018] [:error] [pid 4688] Logged from file 
quotas.py, line 242
  [Tue Oct 16 04:42:47.476646 2018] [:error] [pid 4688] ERROR django.request 
Internal Server Error: 
/dashboard/identity/81cc9c2be8a9476fbf81f9fbe4d2c86b/update_quotas/
  [Tue Oct 16 04:42:47.476673 2018] [:error] [pid 4688] Traceback (most recent 
call last):
  [Tue Oct 16 04:42:47.476684 2018] [:error] [pid 4688]   File 
"/usr/lib/python2.7/site-packages/django/core/handlers/exception.py", line 41, 
in inner
  [Tue Oct 16 04:42:47.476694 2018] [:error] [pid 4688] response = 
get_response(request)
  [Tue Oct 16 04:42:47.476703 2018] [:error] [pid 4688]   File 
"/usr/lib/python2.7/site-packages/django/core/handlers/base.py", line 187, in 
_get_response
  [Tue Oct 16 04:42:47.476712 2018] [:error] [pid 4688] response = 
self.process_exception_by_middleware(e, request)
  [Tue Oct 16 04:42:47.476721 2018] [:error] [pid 4688]   File 
"/usr/lib/python2.7/site-packages/django/core/handlers/base.py", line 185, in 
_get_response
  [Tue Oct 16 04:42:47.476731 2018] [:error] [pid 4688] response = 

[Yahoo-eng-team] [Bug 1798048] Re: cant modify project quotas

2018-10-16 Thread Sebastian Lusenti
** Also affects: centos
   Importance: Undecided
   Status: New

** No longer affects: centos

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

Title:
  cant modify project quotas

Status in OpenStack Dashboard (Horizon):
  New

Bug description:
  error_log (httpd)

  [Tue Oct 16 04:42:47.473489 2018] [:error] [pid 4688] Traceback (most recent 
call last):
  [Tue Oct 16 04:42:47.473635 2018] [:error] [pid 4688]   File 
"/usr/lib64/python2.7/logging/__init__.py", line 851, in emit
  [Tue Oct 16 04:42:47.473780 2018] [:error] [pid 4688] msg = 
self.format(record)
  [Tue Oct 16 04:42:47.473817 2018] [:error] [pid 4688]   File 
"/usr/lib64/python2.7/logging/__init__.py", line 724, in format
  [Tue Oct 16 04:42:47.473867 2018] [:error] [pid 4688] return 
fmt.format(record)
  [Tue Oct 16 04:42:47.473896 2018] [:error] [pid 4688]   File 
"/usr/lib64/python2.7/logging/__init__.py", line 464, in format
  [Tue Oct 16 04:42:47.473943 2018] [:error] [pid 4688] record.message = 
record.getMessage()
  [Tue Oct 16 04:42:47.473971 2018] [:error] [pid 4688]   File 
"/usr/lib64/python2.7/logging/__init__.py", line 328, in getMessage
  [Tue Oct 16 04:42:47.474014 2018] [:error] [pid 4688] msg = msg % 
self.args
  [Tue Oct 16 04:42:47.474084 2018] [:error] [pid 4688] TypeError: not all 
arguments converted during string formatting
  [Tue Oct 16 04:42:47.474109 2018] [:error] [pid 4688] Logged from file 
quotas.py, line 242
  [Tue Oct 16 04:42:47.474415 2018] [:error] [pid 4688] UnhashableKeyWarning: 
The key of openstack_dashboard.usage.quotas tenant_quota_usages is not hashable 
and cannot be memoized: ((,), (('targets', ('share_snapshots', 'share_gigabytes', 
'share_snapshot_gigabytes', 'shares', 'share_networks')), ('tenant_id', 
u'81cc9c2be8a9476fbf81f9fbe4d2c86b')))
  [Tue Oct 16 04:42:47.474589 2018] [:error] [pid 4688] Traceback (most recent 
call last):
  [Tue Oct 16 04:42:47.474635 2018] [:error] [pid 4688]   File 
"/usr/lib64/python2.7/logging/__init__.py", line 851, in emit
  [Tue Oct 16 04:42:47.474685 2018] [:error] [pid 4688] msg = 
self.format(record)
  [Tue Oct 16 04:42:47.474713 2018] [:error] [pid 4688]   File 
"/usr/lib64/python2.7/logging/__init__.py", line 724, in format
  [Tue Oct 16 04:42:47.474752 2018] [:error] [pid 4688] return 
fmt.format(record)
  [Tue Oct 16 04:42:47.474778 2018] [:error] [pid 4688]   File 
"/usr/lib64/python2.7/logging/__init__.py", line 464, in format
  [Tue Oct 16 04:42:47.474827 2018] [:error] [pid 4688] record.message = 
record.getMessage()
  [Tue Oct 16 04:42:47.474856 2018] [:error] [pid 4688]   File 
"/usr/lib64/python2.7/logging/__init__.py", line 328, in getMessage
  [Tue Oct 16 04:42:47.474895 2018] [:error] [pid 4688] msg = msg % 
self.args
  [Tue Oct 16 04:42:47.474931 2018] [:error] [pid 4688] TypeError: not all 
arguments converted during string formatting
  [Tue Oct 16 04:42:47.474951 2018] [:error] [pid 4688] Logged from file 
quotas.py, line 242
  [Tue Oct 16 04:42:47.476646 2018] [:error] [pid 4688] ERROR django.request 
Internal Server Error: 
/dashboard/identity/81cc9c2be8a9476fbf81f9fbe4d2c86b/update_quotas/
  [Tue Oct 16 04:42:47.476673 2018] [:error] [pid 4688] Traceback (most recent 
call last):
  [Tue Oct 16 04:42:47.476684 2018] [:error] [pid 4688]   File 
"/usr/lib/python2.7/site-packages/django/core/handlers/exception.py", line 41, 
in inner
  [Tue Oct 16 04:42:47.476694 2018] [:error] [pid 4688] response = 
get_response(request)
  [Tue Oct 16 04:42:47.476703 2018] [:error] [pid 4688]   File 
"/usr/lib/python2.7/site-packages/django/core/handlers/base.py", line 187, in 
_get_response
  [Tue Oct 16 04:42:47.476712 2018] [:error] [pid 4688] response = 
self.process_exception_by_middleware(e, request)
  [Tue Oct 16 04:42:47.476721 2018] [:error] [pid 4688]   File 
"/usr/lib/python2.7/site-packages/django/core/handlers/base.py", line 185, in 
_get_response
  [Tue Oct 16 04:42:47.476731 2018] [:error] [pid 4688] response = 
wrapped_callback(request, *callback_args, **callback_kwargs)
  [Tue Oct 16 04:42:47.476740 2018] [:error] [pid 4688]   File 
"/usr/lib/python2.7/site-packages/horizon/decorators.py", line 36, in dec
  [Tue Oct 16 04:42:47.476749 2018] [:error] [pid 4688] return 
view_func(request, *args, **kwargs)
  [Tue Oct 16 04:42:47.476758 2018] [:error] [pid 4688]   File 
"/usr/lib/python2.7/site-packages/horizon/decorators.py", line 52, in dec
  [Tue Oct 16 04:42:47.476767 2018] [:error] [pid 4688] return 
view_func(request, *args, **kwargs)
  [Tue Oct 16 04:42:47.476785 2018] [:error] [pid 4688]   File 
"/usr/lib/python2.7/site-packages/horizon/decorators.py", line 36, in dec
  [Tue Oct 16 04:42:47.476796 2018] [:error] [pid 4688] return 
view_func(request, *args, **kwargs)
  [Tue Oct 16 04:42:47.476805 2018] [:error] [pid 4688]   File