diff --git a/defaults/main.yml b/defaults/main.yml index a5eed0e4..26a4133d 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -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. diff --git a/tasks/cinder_post_install.yml b/tasks/cinder_post_install.yml index 4e0568fd..08d9fdb0 100644 --- a/tasks/cinder_post_install.yml +++ b/tasks/cinder_post_install.yml @@ -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 }}" diff --git a/templates/resource_filters.json.j2 b/templates/resource_filters.json.j2 new file mode 100644 index 00000000..11c191c2 --- /dev/null +++ b/templates/resource_filters.json.j2 @@ -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": [] +}