Without this patch, the keystone-manage command looks for a default
keystone.conf relative to the installed executable. In a developer's
case this is likely to be relative to <venv name>/bin/keystone-manage.
If installed via distro packages this will be something like
/usr/bin/keystone-manage. The keystone developer documentation
instructs the developer to copy the sample config file into the etc/
directory of the keystone source directory[1], which is not necessarily
related to where the keystone-manage executable is installed. This
patch causes the keystone-manage command to search for
etc/keystone.conf relative to the python source file,
keystone/cmd/manage.py, which will always be in the same place relative
to the keystone repo's etc/ directory. If installed via distro packages
this will cause keystone-manage to search for the config in something
like /usr/lib/python2.7/dist-packages, but since it falls back to
searching the standard oslo.cfg directories, the behavior won't change.
Reviewed: https:/ /review. openstack. org/296110 /git.openstack. org/cgit/ openstack/ keystone/ commit/ ?id=139f892fecf 4ce645e3a7a6a7d 1087a94f402f89
Committed: https:/
Submitter: Jenkins
Branch: master
commit 139f892fecf4ce6 45e3a7a6a7d1087 a94f402f89
Author: Colleen Murphy <email address hidden>
Date: Tue Mar 22 16:10:06 2016 -0700
Fix keystone-manage config file path
Without this patch, the keystone-manage command looks for a default keystone- manage. bin/keystone- manage. The keystone developer documentation keystone. conf relative to the python source file, cmd/manage. py, which will always be in the same place relative python2. 7/dist- packages, but since it falls back to
keystone.conf relative to the installed executable. In a developer's
case this is likely to be relative to <venv name>/bin/
If installed via distro packages this will be something like
/usr/
instructs the developer to copy the sample config file into the etc/
directory of the keystone source directory[1], which is not necessarily
related to where the keystone-manage executable is installed. This
patch causes the keystone-manage command to search for
etc/
keystone/
to the keystone repo's etc/ directory. If installed via distro packages
this will cause keystone-manage to search for the config in something
like /usr/lib/
searching the standard oslo.cfg directories, the behavior won't change.
[1] http:// docs.openstack. org/developer/ keystone/ developing. html#configurin g-keystone
Closes-bug: #1561099
Change-Id: Icf9caac030e62d eb17ce5df3a8273 7b408591ac0