Adds resource_filters.json distribution
Cinder supposes to see resource_filters.json in /etc/cinder/resource_filters.json, but role doesn't distribute this file It implements generalized filters, w/o which non-admins will experience problems with some operations (i.e in horizon). Closes-Bug: #1810537 Change-Id: I0f699c9869effc5ccc0d3f79422935975f698134
This commit is contained in:
parent
39393edaa2
commit
5e7e1a7ea9
@ -382,6 +382,7 @@ cinder_rootwrap_conf_overrides: {}
|
||||
cinder_api_paste_ini_overrides: {}
|
||||
cinder_cinder_conf_overrides: {}
|
||||
cinder_api_uwsgi_ini_overrides: {}
|
||||
cinder_resource_filters_overrides: {}
|
||||
|
||||
## Set default cinder path in service units. The default override sets the
|
||||
## execution path for the cinder service.
|
||||
|
@ -31,6 +31,10 @@
|
||||
dest: "/etc/cinder/api-paste.ini"
|
||||
config_overrides: "{{ cinder_api_paste_ini_overrides }}"
|
||||
config_type: "ini"
|
||||
- src: "resource_filters.json.j2"
|
||||
dest: "/etc/cinder/resource_filters.json"
|
||||
config_overrides: "{{ cinder_resource_filters_overrides }}"
|
||||
config_type: "json"
|
||||
- src: "rootwrap.conf.j2"
|
||||
dest: "/etc/cinder/rootwrap.conf"
|
||||
config_overrides: "{{ cinder_rootwrap_conf_overrides }}"
|
||||
|
15
templates/resource_filters.json.j2
Normal file
15
templates/resource_filters.json.j2
Normal file
@ -0,0 +1,15 @@
|
||||
{
|
||||
"volume": ["name", "status", "metadata",
|
||||
"bootable", "migration_status", "availability_zone",
|
||||
"group_id"],
|
||||
"backup": ["name", "status", "volume_id"],
|
||||
"snapshot": ["name", "status", "volume_id", "metadata",
|
||||
"availability_zone"],
|
||||
"group": [],
|
||||
"group_snapshot": ["status", "group_id"],
|
||||
"attachment": ["volume_id", "status", "instance_id", "attach_status"],
|
||||
"message": ["resource_uuid", "resource_type", "event_id",
|
||||
"request_id", "message_level"],
|
||||
"pool": ["name", "volume_type"],
|
||||
"volume_type": []
|
||||
}
|
Loading…
Reference in New Issue
Block a user