Bug 1149424

Summary: Include policy.v3cloudsample.json example
Product: [Fedora] Fedora Reporter: Nathan Kinder <nkinder>
Component: openstack-keystoneAssignee: Alan Pevec (Fedora) <apevec>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 20CC: apevec, apevec, bfilippov, itamar, jonathansteffan, jose.castro.leon, p, rbryant
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openstack-keystone-2014.2-0.6rc2.fc22 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1149425 (view as bug list) Environment:
Last Closed: 2014-10-10 20:34:56 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1149425    

Description Nathan Kinder 2014-10-04 23:50:27 UTC
The openstack-keystone package should include the upstream policy.v3cloudsample.json example policy file.  This policy file is very useful for deployments that make use of Keystone's domains.  The upstream policy is available in the Keystone source tree at:

  /etc/policy.v3cloudsample.json

This should probably be installed in /usr/share/keystone where we already install the example paste and wsgi config files.

Comment 1 Nathan Kinder 2014-10-05 05:07:21 UTC
This should just be a matter of making hte following changes to the openstack-keystone spec file:

-------------------------------------------------------------------------
diff --git a/openstack-keystone.spec b/openstack-keystone.spec
index 9df6661..886d7b5 100644
--- a/openstack-keystone.spec
+++ b/openstack-keystone.spec
@@ -152,6 +152,7 @@ install -d -m 755 %{buildroot}%{_sysconfdir}/keystone
 install -p -D -m 640 etc/keystone.conf %{buildroot}%{_sysconfdir}/keystone/keystone.conf
 install -p -D -m 644 etc/keystone-paste.ini %{buildroot}%{_datadir}/keystone/keystone-dist-paste.ini
 install -p -D -m 644 %{SOURCE20} %{buildroot}%{_datadir}/keystone/keystone-dist.conf
+install -p -D -m 644 etc/policy.v3cloudsample.json %{buildroot}%{_datadir}/keystone/policy.v3cloudsample.json
 install -p -D -m 640 etc/logging.conf.sample %{buildroot}%{_sysconfdir}/keystone/logging.conf
 install -p -D -m 640 etc/default_catalog.templates %{buildroot}%{_sysconfdir}/keystone/default_catalog.templates
 install -p -D -m 640 etc/policy.json %{buildroot}%{_sysconfdir}/keystone/policy.json
@@ -239,6 +240,7 @@ fi
 %dir %{_datadir}/keystone
 %attr(0644, root, keystone) %{_datadir}/keystone/keystone-dist.conf
 %attr(0644, root, keystone) %{_datadir}/keystone/keystone-dist-paste.ini
+%attr(0644, root, keystone) %{_datadir}/keystone/policy.v3cloudsample.json
 %attr(0755, root, root) %{_datadir}/keystone/sample_data.sh
 %attr(0644, root, keystone) %{_datadir}/keystone/keystone.wsgi
 %attr(0644, root, keystone) %{_datadir}/keystone/wsgi-keystone.conf
-------------------------------------------------------------------------