1 Set default paths for nova.conf and api-paste.ini to /etc/nova/
2 Changed countryName policy because https://bugs.launchpad.net/nova/+bug/724317 still affected.
This commit is contained in:
1
Authors
1
Authors
@@ -51,6 +51,7 @@ Kevin Bringard <kbringard@attinteractive.com>
|
||||
Kevin L. Mitchell <kevin.mitchell@rackspace.com>
|
||||
Koji Iida <iida.koji@lab.ntt.co.jp>
|
||||
Lorin Hochstein <lorin@isi.edu>
|
||||
Lvov Maxim <usrleon@gmail.com>
|
||||
Mark Washenberger <mark.washenberger@rackspace.com>
|
||||
Masanori Itoh <itoumsn@nttdata.co.jp>
|
||||
Matt Dietz <matt.dietz@rackspace.com>
|
||||
|
||||
@@ -46,7 +46,7 @@ policy = policy_match
|
||||
# RHEL 6 and Fedora 14 (using openssl-1.0.0-4.el6.x86_64 or
|
||||
# openssl-1.0.0d-1.fc14.x86_64)
|
||||
[ policy_match ]
|
||||
countryName = match
|
||||
countryName = supplied
|
||||
stateOrProvinceName = supplied
|
||||
organizationName = optional
|
||||
organizationalUnitName = optional
|
||||
|
||||
@@ -232,9 +232,12 @@ def default_flagfile(filename='nova.conf'):
|
||||
# turn relative filename into an absolute path
|
||||
script_dir = os.path.dirname(inspect.stack()[-1][1])
|
||||
filename = os.path.abspath(os.path.join(script_dir, filename))
|
||||
if os.path.exists(filename):
|
||||
flagfile = ['--flagfile=%s' % filename]
|
||||
sys.argv = sys.argv[:1] + flagfile + sys.argv[1:]
|
||||
if not os.path.exists(filename):
|
||||
filename = "./nova.conf"
|
||||
if not os.path.exists(filename):
|
||||
filename = '/etc/nova/nova.conf'
|
||||
flagfile = ['--flagfile=%s' % filename]
|
||||
sys.argv = sys.argv[:1] + flagfile + sys.argv[1:]
|
||||
|
||||
|
||||
def debug(arg):
|
||||
|
||||
Reference in New Issue
Block a user