cant modify project quotas with manila-ui plugin
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Dashboard (Horizon) |
Fix Released
|
Medium
|
Gloria Gu |
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/
[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/
[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/
[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/
[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] UnhashableKeyWa
[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/
[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/
[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/
[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/
[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/
[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/
[Tue Oct 16 04:42:47.476694 2018] [:error] [pid 4688] response = get_response(
[Tue Oct 16 04:42:47.476703 2018] [:error] [pid 4688] File "/usr/lib/
[Tue Oct 16 04:42:47.476712 2018] [:error] [pid 4688] response = self.process_
[Tue Oct 16 04:42:47.476721 2018] [:error] [pid 4688] File "/usr/lib/
[Tue Oct 16 04:42:47.476731 2018] [:error] [pid 4688] response = wrapped_
[Tue Oct 16 04:42:47.476740 2018] [:error] [pid 4688] File "/usr/lib/
[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/
[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/
[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 "/usr/lib/
[Tue Oct 16 04:42:47.476814 2018] [:error] [pid 4688] return view_func(request, *args, **kwargs)
[Tue Oct 16 04:42:47.476822 2018] [:error] [pid 4688] File "/usr/lib/
[Tue Oct 16 04:42:47.476831 2018] [:error] [pid 4688] return self.dispatch(
[Tue Oct 16 04:42:47.476840 2018] [:error] [pid 4688] File "/usr/lib/
[Tue Oct 16 04:42:47.476849 2018] [:error] [pid 4688] return handler(request, *args, **kwargs)
[Tue Oct 16 04:42:47.476858 2018] [:error] [pid 4688] File "/usr/lib/
[Tue Oct 16 04:42:47.476867 2018] [:error] [pid 4688] context = self.get_
[Tue Oct 16 04:42:47.476876 2018] [:error] [pid 4688] File "/usr/lib/
[Tue Oct 16 04:42:47.476885 2018] [:error] [pid 4688] workflow = self.get_workflow()
[Tue Oct 16 04:42:47.476893 2018] [:error] [pid 4688] File "/usr/lib/
[Tue Oct 16 04:42:47.476902 2018] [:error] [pid 4688] entry_point=
[Tue Oct 16 04:42:47.476910 2018] [:error] [pid 4688] File "/usr/lib/
[Tue Oct 16 04:42:47.476919 2018] [:error] [pid 4688] valid = step.action.
[Tue Oct 16 04:42:47.476928 2018] [:error] [pid 4688] File "/usr/lib/
[Tue Oct 16 04:42:47.476937 2018] [:error] [pid 4688] return self.is_bound and not self.errors
[Tue Oct 16 04:42:47.476945 2018] [:error] [pid 4688] File "/usr/lib/
[Tue Oct 16 04:42:47.476954 2018] [:error] [pid 4688] self.full_clean()
[Tue Oct 16 04:42:47.476963 2018] [:error] [pid 4688] File "/usr/lib/
[Tue Oct 16 04:42:47.476971 2018] [:error] [pid 4688] self._clean_form()
[Tue Oct 16 04:42:47.476980 2018] [:error] [pid 4688] File "/usr/lib/
[Tue Oct 16 04:42:47.476989 2018] [:error] [pid 4688] cleaned_data = self.clean()
[Tue Oct 16 04:42:47.476998 2018] [:error] [pid 4688] File "/usr/share/
[Tue Oct 16 04:42:47.477007 2018] [:error] [pid 4688] targets=
[Tue Oct 16 04:42:47.477016 2018] [:error] [pid 4688] File "/usr/lib/
[Tue Oct 16 04:42:47.477024 2018] [:error] [pid 4688] value = func(*args, **kwargs)
[Tue Oct 16 04:42:47.477033 2018] [:error] [pid 4688] File "/usr/share/
[Tue Oct 16 04:42:47.477042 2018] [:error] [pid 4688] disabled_quotas = get_disabled_
[Tue Oct 16 04:42:47.477051 2018] [:error] [pid 4688] File "/usr/share/
[Tue Oct 16 04:42:47.477072 2018] [:error] [pid 4688] % set(targets) - QUOTA_FIELDS)
[Tue Oct 16 04:42:47.477082 2018] [:error] [pid 4688] TypeError: unsupported operand type(s) for -: 'str' and 'set'
my local_settings:
import os
from django.
from openstack_
DEBUG = False
WEBROOT = '/dashboard/'
ALLOWED_HOSTS = ['openstack.
SESSION_ENGINE = 'django.
OPENSTACK_
"identity": 3,
"volume": 2,
"compute": 2,
}
OPENSTACK_
OPENSTACK_
LOCAL_PATH = '/tmp'
SECRET_
CACHES = {
'default': {
'BACKEND': 'django.
'LOCATION': '127.0.0.1:11211',
},
}
EMAIL_BACKEND = 'django.
OPENSTACK_HOST = "openstack.
SESSION_ENGINE = 'django.
OPENSTACK_
OPENSTACK_
OPENSTACK_
'name': 'native',
'can_
'can_
'can_
'can_
'can_
}
OPENSTACK_
'can_
'can_
'requires_
'enable_
}
OPENSTACK_
'enable_
}
OPENSTACK_
'enable_image': True,
'enable_
'enable_
}
OPENSTACK_
'enable_
'enable_
'enable_ipv6': True,
'enable_
'enable_
'enable_
# Default dns servers you would like to use when a subnet is
# created. This is only a default, users can still choose a different
# list of dns servers when creating a new subnet.
# The entries below are examples only, and are not appropriate for
# real deployments
# 'default_
# Set which provider network types are supported. Only the network types
# in this list will be available to choose from when creating a network.
# Network types include local, flat, vlan, gre, vxlan and geneve.
# 'supported_
# You can configure available segmentation ID range per network type
# in your deployment.
# 'segmentation_
# 'vlan': [1024, 2048],
# 'vxlan': [4094, 65536],
# },
# You can define additional provider network types here.
# 'extra_
# 'awesome_type': {
# 'display_name': 'Awesome New Type',
# 'require_
# 'require_
# }
# },
# Set which VNIC types are supported for port binding. Only the VNIC
# types in this list will be available to choose from when creating a
# port.
# VNIC types include 'normal', 'direct', 'direct-physical', 'macvtap',
# 'baremetal' and 'virtio-forwarder'
# Set to empty list or None to disable VNIC type selection.
'supported_
# Set list of available physical networks to be selected in the physical
# network field on the admin create network modal. If it's set to an empty
# list, the field will be a regular input field.
# e.g. ['default', 'test']
'physical_
}
OPENSTACK_
'enable_
}
IMAGE_CUSTOM_
"architecture": _("Architecture"),
"kernel_id": _("Kernel ID"),
"ramdisk_id": _("Ramdisk ID"),
"image_state": _("Euca2ools state"),
"project_id": _("Project ID"),
"image_type": _("Image Type"),
}
IMAGE_RESERVED_
API_RESULT_LIMIT = 1000
API_RESULT_
SWIFT_FILE_
INSTANCE_LOG_LENGTH = 35
DROPDOWN_MAX_ITEMS = 30
TIME_ZONE = "America/New_York"
POLICY_FILES_PATH = '/etc/openstack
LOGGING = {
'version': 1,
# When set to True this will disable all logging except
# for loggers specified in this configuration dictionary. Note that
# if nothing is specified here and disable_
# django.db.backends will still log unless it is disabled explicitly.
'disable_
# If apache2 mod_wsgi is used to deploy OpenStack dashboard
# timestamp is output by mod_wsgi. If WSGI framework you use does not
# output timestamp for logging, add %(asctime)s in the following
# format definitions.
'formatters': {
'console': {
},
# The format of "%(message)s" is defined by
# OPERATION_
},
},
'handlers': {
'null': {
},
'console': {
# Set the level to "DEBUG" for verbose output logging.
},
},
},
'loggers': {
'horizon': {
},
},
},
},
},
},
},
},
},
},
},
},
'django': {
},
# Logging from django.db.backends is VERY verbose, send to null
# by default.
},
'requests': {
},
'urllib3': {
},
},
'iso8601': {
},
'scss': {
},
},
}
SECURITY_
'all_tcp': {
'name': _('All TCP'),
'to_port': '65535',
},
'all_udp': {
'name': _('All UDP'),
'to_port': '65535',
},
'all_icmp': {
'name': _('All ICMP'),
'to_port': '-1',
},
'ssh': {
'name': 'SSH',
'to_port': '22',
},
'smtp': {
'name': 'SMTP',
'to_port': '25',
},
'dns': {
'name': 'DNS',
'to_port': '53',
},
'http': {
'name': 'HTTP',
'to_port': '80',
},
'pop3': {
'name': 'POP3',
'to_port': '110',
},
'imap': {
'name': 'IMAP',
'to_port': '143',
},
'ldap': {
'name': 'LDAP',
'to_port': '389',
},
'https': {
'name': 'HTTPS',
'to_port': '443',
},
'smtps': {
'name': 'SMTPS',
'to_port': '465',
},
'imaps': {
'name': 'IMAPS',
'to_port': '993',
},
'pop3s': {
'name': 'POP3S',
'to_port': '995',
},
'ms_sql': {
'name': 'MS SQL',
'to_port': '1433',
},
'mysql': {
'name': 'MYSQL',
'to_port': '3306',
},
'rdp': {
'name': 'RDP',
'to_port': '3389',
},
}
REST_API_
ALLOWED_
no longer affects: | centos |
description: | updated |
Changed in horizon: | |
status: | New → Confirmed |
importance: | Undecided → Medium |
Changed in horizon: | |
assignee: | nobody → Gloria Gu (gloria-gu) |
Changed in horizon: | |
status: | Confirmed → In Progress |
I still see this is rocky.
On the admin/defaults page, it lists the quotas, but when editing, only shares and share networks are pre filled.
Trying to save fails with the error above.
Also on project modify quota page, its not possible to edit any quotas as the share quotas are missing (all of them) and cant add as get the error above