manila-ui crashes dashboard
Bug #1705087 reported by
Antonio Abinader
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Shared File Systems Service (Manila) |
Invalid
|
Medium
|
Tom Barron |
Bug Description
After manila-ui installation in OpenStack Ocata from the github manila-ui repo, the dashboard would result in a 500 http error.
Examination of apache2/error.log shows the following:
File "/usr/local/
quotas.QUOTA_FIELDS = quotas.QUOTA_FIELDS | MANILA_QUOTA_FIELDS
TypeError: unsupported operand type(s) for |: 'tuple' and 'set'
Changed in manila: | |
status: | New → Triaged |
importance: | Undecided → Medium |
assignee: | nobody → Tom Barron (tpb) |
To post a comment you must log in.
As a fix I suggest changing the MANILA_QUOTA_FIELDS variable to a tuple gigabytes" , snapshots" , snapshot_ gigabytes" , networks" ,
MANILA_QUOTA_FIELDS = {
"shares",
"share_
"share_
"share_
"share_
}
to
MANILA_QUOTA_FIELDS = ( gigabytes" , snapshots" , snapshot_ gigabytes" , networks" ,
"shares",
"share_
"share_
"share_
"share_
)
and changing the line:
quotas.QUOTA_FIELDS = quotas.QUOTA_FIELDS | MANILA_QUOTA_FIELDS
to:
quotas.QUOTA_FIELDS = quotas.QUOTA_FIELDS + MANILA_QUOTA_FIELDS
This solved the issue for me