Merge lp:~tr3buchet/nova/pylinting into lp:~hudson-openstack/nova/trunk

Proposed by Trey Morris
Status: Merged
Approved by: Eric Day
Approved revision: 443
Merged at revision: 452
Proposed branch: lp:~tr3buchet/nova/pylinting
Merge into: lp:~hudson-openstack/nova/trunk
Diff against target: 72 lines (+12/-7)
3 files modified
Authors (+1/-0)
nova/api/ec2/cloud.py (+0/-1)
nova/compute/api.py (+11/-6)
To merge this branch: bzr merge lp:~tr3buchet/nova/pylinting
Reviewer Review Type Date Requested Status
Trey Morris (community) Needs Resubmitting
Matt Dietz (community) Approve
Eric Day (community) Approve
Michael Gundlach (community) Approve
Review via email: mp+42906@code.launchpad.net

Description of the change

some pylint caught changes to compute

To post a comment you must log in.
Revision history for this message
Michael Gundlach (gundlach) wrote :

lgtm, though i believe eday may have addressed these in a branch he is about to merge / is merging?

review: Approve
Revision history for this message
Michael Gundlach (gundlach) wrote :

adding eday to requested reviewers so he can chime in

Revision history for this message
Eric Day (eday) wrote :

Hmm, some of this is new, but it will almost certainly conflict with my outstanding branches waiting to be reviewed. Lets not merge this until the others get in if possible.

review: Approve
Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Attempt to merge into lp:nova failed due to conflicts:

text conflict in nova/compute/api.py

Revision history for this message
Trey Morris (tr3buchet) wrote :

fixed conflict with eday's branch

review: Needs Resubmitting
Revision history for this message
Matt Dietz (cerberus) wrote :

lgtm.

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

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

nova.tests.access_unittest
  AccessTestCase
    test_001_allow_all ... [OK]
    test_002_allow_none ... [OK]
    test_003_allow_project_manager ... [OK]
    test_004_allow_sys_and_net ... [OK]
nova.tests.api_unittest
  ApiEc2TestCase
    test_authorize_revoke_security_group_cidr ... [OK]
    test_authorize_revoke_security_group_foreign_group ... [OK]
    test_create_delete_security_group ... [OK]
    test_describe_instances ... [OK]
    test_get_all_key_pairs ... [OK]
    test_get_all_security_groups ... [OK]
  XmlConversionTestCase
    test_number_conversion ... [OK]
nova.tests.auth_unittest
  AuthManagerDbTestCase
    test_004_signature_is_valid ... [OK]
    test_005_can_get_credentials ... [OK]
    test_add_user_role_doesnt_infect_project_roles ... [OK]
    test_adding_role_to_project_is_ignored_unless_added_to_user ... [OK]
    test_can_add_and_remove_user_role ... [OK]
    test_can_add_remove_user_with_role ... [OK]
    test_can_add_user_to_project ... [OK]
    test_can_create_and_get_project ... [OK]
    test_can_create_and_get_project_with_attributes ... [OK]
    test_can_create_project_with_manager ... [OK]
    test_can_delete_project ... [OK]
    test_can_delete_user ... [OK]
    test_can_generate_x509 ... [OK]
    test_can_list_project_roles ... [OK]
    test_can_list_projects ... [OK]
    test_can_list_user_roles ... [OK]
    test_can_list_users ... [OK]
    test_can_modify_project ... [OK]
    test_can_modify_users ... [OK]
    test_can_remove_project_role_but_keep_user_role ... [OK]
    test_can_remove_user_from_project ... [OK]
    test_can_remove_user_roles ... [OK]
    test_can_retrieve_project_by_user ... [OK]
    test_create_and_find_user ... [OK]
    test_create_and_find_with_properties ... [OK]
    test_create_project_assigns_manager_to_memb...

lp:~tr3buchet/nova/pylinting updated
443. By Trey Morris

added to Authors

Revision history for this message
Trey Morris (tr3buchet) wrote :

Added myself to authors, maybe test_authors_up_to_date won't fail if hudson runs it, but it's giving an error locally. Same as: https://bugs.launchpad.net/nova/+bug/687451

review: Needs Resubmitting

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'Authors'
2--- Authors 2010-12-07 21:29:14 +0000
3+++ Authors 2010-12-08 23:50:09 +0000
4@@ -23,6 +23,7 @@
5 Ryan Lucio <rlucio@internap.com>
6 Soren Hansen <soren.hansen@rackspace.com>
7 Todd Willey <todd@ansolabs.com>
8+Trey Morris <trey.morris@rackspace.com>
9 Vishvananda Ishaya <vishvananda@gmail.com>
10 Youcef Laribi <Youcef.Laribi@eu.citrix.com>
11 Zhixue Wu <Zhixue.Wu@citrix.com>
12
13=== modified file 'nova/api/ec2/cloud.py'
14--- nova/api/ec2/cloud.py 2010-12-03 20:21:18 +0000
15+++ nova/api/ec2/cloud.py 2010-12-08 23:50:09 +0000
16@@ -753,7 +753,6 @@
17 ramdisk_id=kwargs.get('ramdisk_id'),
18 display_name=kwargs.get('display_name'),
19 description=kwargs.get('display_description'),
20- user_data=kwargs.get('user_data', ''),
21 key_name=kwargs.get('key_name'),
22 security_group=kwargs.get('security_group'),
23 generate_hostname=internal_id_to_ec2_id)
24
25=== modified file 'nova/compute/api.py'
26--- nova/compute/api.py 2010-12-07 18:06:49 +0000
27+++ nova/compute/api.py 2010-12-08 23:50:09 +0000
28@@ -55,9 +55,8 @@
29
30 def create_instances(self, context, instance_type, image_id, min_count=1,
31 max_count=1, kernel_id=None, ramdisk_id=None,
32- display_name='', description='', user_data='',
33- key_name=None, key_data=None,
34- security_group='default',
35+ display_name='', description='', key_name=None,
36+ key_data=None, security_group='default',
37 generate_hostname=generate_default_hostname):
38 """Create the number of instances requested if quote and
39 other arguments check out ok."""
40@@ -158,8 +157,8 @@
41 {"method": "setup_fixed_ip",
42 "args": {"address": address}})
43
44- logging.debug("Casting to scheduler for %s/%s's instance %s" %
45- (context.project_id, context.user_id, instance_id))
46+ logging.debug("Casting to scheduler for %s/%s's instance %s",
47+ context.project_id, context.user_id, instance_id)
48 rpc.cast(context,
49 FLAGS.scheduler_topic,
50 {"method": "run_instance",
51@@ -169,6 +168,12 @@
52 return instances
53
54 def ensure_default_security_group(self, context):
55+ """ Create security group for the security context if it
56+ does not already exist
57+
58+ :param context: the security context
59+
60+ """
61 try:
62 db.security_group_get_by_name(context, context.project_id,
63 'default')
64@@ -177,7 +182,7 @@
65 'description': 'default',
66 'user_id': context.user_id,
67 'project_id': context.project_id}
68- group = db.security_group_create(context, values)
69+ db.security_group_create(context, values)
70
71 def update_instance(self, context, instance_id, **kwargs):
72 """Updates the instance in the datastore.