Merge lp:~usrleon/nova/small_fix into lp:~hudson-openstack/nova/trunk

Proposed by Max Lvov
Status: Merged
Approved by: Rick Harris
Approved revision: 1053
Merged at revision: 1066
Proposed branch: lp:~usrleon/nova/small_fix
Merge into: lp:~hudson-openstack/nova/trunk
Diff against target: 44 lines (+8/-4)
3 files modified
Authors (+1/-0)
nova/CA/openssl.cnf.tmpl (+1/-1)
nova/utils.py (+6/-3)
To merge this branch: bzr merge lp:~usrleon/nova/small_fix
Reviewer Review Type Date Requested Status
Rick Harris (community) Approve
Paul Voccio (community) Approve
Josh Kearney (community) Approve
Devin Carlen Pending
Review via email: mp+59874@code.launchpad.net

This proposal supersedes a proposal from 2011-04-25.

Description of the change

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.

To post a comment you must log in.
Revision history for this message
Jay Pipes (jaypipes) wrote : Posted in a previous version of this proposal

Hi!

I'm not sure that I agree with changing the default location of nova.conf from the current working directory to /etc/nova. Generally, I think these kind of things belong more to the realm of packaging or configuration management, and specifying a location other than the current working directory assumes a certain setup. Granted, /etc/nova is standard deployment for configuration files, but I still think we should leave that up to the configuration management tool and/or packaging scripts...

The LDAP change I will politely defer to Ryan Lane or someone other LDAP expert (not me!) :)

Thoughts?

Revision history for this message
Vish Ishaya (vishvananda) wrote : Posted in a previous version of this proposal

I agree in general with Jay's point. You can always specify the file on the command line as well.

The LDAP change seems fine, since match seems to have that weird issue where 'California' != 'California' for some reason.

Vish

On Apr 26, 2011, at 7:36 AM, Jay Pipes wrote:

> Hi!
>
> I'm not sure that I agree with changing the default location of nova.conf from the current working directory to /etc/nova. Generally, I think these kind of things belong more to the realm of packaging or configuration management, and specifying a location other than the current working directory assumes a certain setup. Granted, /etc/nova is standard deployment for configuration files, but I still think we should leave that up to the configuration management tool and/or packaging scripts...
>
> The LDAP change I will politely defer to Ryan Lane or someone other LDAP expert (not me!) :)
>
> Thoughts?
> --
> https://code.launchpad.net/~usrleon/nova/small_fixes/+merge/58934
> You are subscribed to branch lp:nova.

Revision history for this message
Max Lvov (usrleon) wrote : Posted in a previous version of this proposal

I just tired type "--flagfile /etc/nova/nova.conf" and often forgot it, then I supposed Im not alone :)
Bug with openssl in my case possible caused russian locale on my system, but Im not sure.

Revision history for this message
Devin Carlen (devcamcar) wrote : Posted in a previous version of this proposal

I actually like the change to the default flagfile location. In 99% of installations it's going to be in /etc/nova, and it causes a fair amount of confusion in the community. I wouldn't mind seeing this change go in.

review: Approve
Revision history for this message
Ilya Alekseyev (ilyaalekseyev) wrote : Posted in a previous version of this proposal

Gents,

we have hyper-v virt driver in nova, but /etc/nova/nova.conf seems not very fair for windows.
Policy relaxation seems good.

Just 2 cents.

Revision history for this message
Max Lvov (usrleon) wrote : Posted in a previous version of this proposal

Ok, I suggest 1034 instead 1031, but I not understand why it looks nova.conf in script directory, not current, home, etc.

Revision history for this message
Josh Kearney (jk0) wrote : Posted in a previous version of this proposal

Why not have it look in both the current directory and /etc/nova? If there is no nova.conf in ., default to /etc/nova.

review: Needs Information
Revision history for this message
Max Lvov (usrleon) wrote : Posted in a previous version of this proposal

Superseded for clarify target changes, sorry my mistakes with launchpad workflow.

Revision history for this message
Josh Kearney (jk0) wrote :

Nice work.

review: Approve
Revision history for this message
Paul Voccio (pvo) wrote :

ok

review: Approve
Revision history for this message
OpenStack Infra (hudson-openstack) wrote :
Download full text (49.4 KiB)

The attempt to merge lp:~usrleon/nova/small_fix into lp:nova failed. Below is the output from the failed tests.

AccountsTest
    test_account_create OK
    test_account_delete OK
    test_account_update OK
    test_get_account OK
AdminAPITest
    test_admin_disabled OK
    test_admin_enabled OK
APITest
    test_exceptions_are_converted_to_faults OK
Test
    test_authorize_token OK
    test_authorize_user OK
    test_bad_token OK
    test_bad_user_bad_key OK
    test_bad_user_good_key OK
    test_no_user OK
    test_token_expiry OK
TestFunctional
    test_token_doesnotexist OK
    test_token_expiry OK
TestLimiter
    test_authorize_token OK
LimiterTest
    test_limiter_custom_max_limit OK
    test_limiter_limit_and_offset OK
    test_limiter_limit_medium OK
    test_limiter_limit_over_max OK
    test_limiter_limit_zero OK
    test_limiter_negative_limit OK
    test_limiter_negative_offset OK
    test_limiter_nothing OK
    test_limiter_offset_bad OK
    test_limiter_offset_blank OK
    test_limiter_offset_medium OK
    test_limiter_offset_over_max OK
    test_limiter_offset_zero OK
ActionExtensionTest
    test_extended_action OK
    test_invalid_action OK
    test_invalid_action_body OK
ExtensionControllerTest
    test_get_by_alias OK
    test_index OK
ExtensionManagerTest
    test_get_resources OK
ResourceExtensionTest
    test_get_resources OK
    test_get_resources_with_controller OK
    test_no_extension_present OK
ResponseExtensionTest
    test_get_resources_with_mgr OK
    test_get_resources_with_stub_mgr OK
TestFaults
    test_400_fault_json OK
    test_400_fault_xml OK
    test...

lp:~usrleon/nova/small_fix updated
1053. By Max Lvov

changing Authors file

Revision history for this message
Rick Harris (rconradharris) wrote :

lgtm

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'Authors'
2--- Authors 2011-05-10 03:36:01 +0000
3+++ Authors 2011-05-11 07:48:43 +0000
4@@ -51,6 +51,7 @@
5 Kevin L. Mitchell <kevin.mitchell@rackspace.com>
6 Koji Iida <iida.koji@lab.ntt.co.jp>
7 Lorin Hochstein <lorin@isi.edu>
8+Lvov Maxim <usrleon@gmail.com>
9 Mark Washenberger <mark.washenberger@rackspace.com>
10 Masanori Itoh <itoumsn@nttdata.co.jp>
11 Matt Dietz <matt.dietz@rackspace.com>
12
13=== modified file 'nova/CA/openssl.cnf.tmpl'
14--- nova/CA/openssl.cnf.tmpl 2011-04-08 16:22:09 +0000
15+++ nova/CA/openssl.cnf.tmpl 2011-05-11 07:48:43 +0000
16@@ -46,7 +46,7 @@
17 # RHEL 6 and Fedora 14 (using openssl-1.0.0-4.el6.x86_64 or
18 # openssl-1.0.0d-1.fc14.x86_64)
19 [ policy_match ]
20-countryName = match
21+countryName = supplied
22 stateOrProvinceName = supplied
23 organizationName = optional
24 organizationalUnitName = optional
25
26=== modified file 'nova/utils.py'
27--- nova/utils.py 2011-04-29 13:25:28 +0000
28+++ nova/utils.py 2011-05-11 07:48:43 +0000
29@@ -232,9 +232,12 @@
30 # turn relative filename into an absolute path
31 script_dir = os.path.dirname(inspect.stack()[-1][1])
32 filename = os.path.abspath(os.path.join(script_dir, filename))
33- if os.path.exists(filename):
34- flagfile = ['--flagfile=%s' % filename]
35- sys.argv = sys.argv[:1] + flagfile + sys.argv[1:]
36+ if not os.path.exists(filename):
37+ filename = "./nova.conf"
38+ if not os.path.exists(filename):
39+ filename = '/etc/nova/nova.conf'
40+ flagfile = ['--flagfile=%s' % filename]
41+ sys.argv = sys.argv[:1] + flagfile + sys.argv[1:]
42
43
44 def debug(arg):