latest python-boto=2.13.0 has a bug which make unit tests fails

Bug #1224832 reported by Yaguang Tang
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Critical
Yaguang Tang
Grizzly
Invalid
Undecided
Yaguang Tang
OpenStack Core Infrastructure
Invalid
Undecided
Yaguang Tang

Bug Description

Traceback (most recent call last):
  File "nova/tests/api/ec2/test_api.py", line 456, in test_authorize_revoke_security_group_cidr
    group.authorize('tcp', 80, 81, '0.0.0.0/0')
  File "/home/jenkins/workspace/gate-nova-python26/.tox/py26/lib/python2.6/site-packages/boto/ec2/securitygroup.py", line 207, in authorize
    src_group_group_id, dry_run=dry_run)
  File "/home/jenkins/workspace/gate-nova-python26/.tox/py26/lib/python2.6/site-packages/boto/ec2/securitygroup.py", line 115, in add_rule
    dry_run=dry_run
TypeError: add_grant() got an unexpected keyword argument 'dry_run'

Yaguang Tang (heut2008)
Changed in nova:
assignee: nobody → Yaguang Tang (heut2008)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

Fix proposed to branch: master
Review: https://review.openstack.org/46438

Yaguang Tang (heut2008)
Changed in openstack-ci:
assignee: nobody → Yaguang Tang (heut2008)
Revision history for this message
Nikola Đipanov (ndipanov) wrote :

I have reported the issue to upstream boto https://github.com/boto/boto/issues/1722

Until they fix it - we should cap it - so agreed with proposed patches.

Also this is affecting stable/grizzly aparently

Alan Pevec (apevec)
Changed in nova:
status: New → In Progress
Changed in nova:
importance: Undecided → Critical
Changed in nova:
milestone: none → havana-rc1
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/46438
Committed: http://github.com/openstack/nova/commit/bdac306b163a1d9d456e0598bfeb95391b48bb63
Submitter: Jenkins
Branch: master

commit bdac306b163a1d9d456e0598bfeb95391b48bb63
Author: Yaguang Tang <email address hidden>
Date: Fri Sep 13 15:26:53 2013 +0800

    Update requirements not to boto 2.13.0

    Latest boto 2.13.0 has a bug which lead to unit tests fails, before
    it's fixed avoid use this version.

    Fix bug #1224832

    Change-Id: I8a81adfc0cb0ad37d27b11db3c881735a099a95c

Revision history for this message
wingwj (wingwj) wrote :

Hi Tang,

I met the same error when I submitted the patch to Gerrit:
https://review.openstack.org/#/c/46272/

Your report is very helpful. Thanks~

Now I want to know how can I fix it in my branch?
Should I need to rebase it?

Revision history for this message
wingwj (wingwj) wrote :

Oh, I notice this patch is already merged to master now..

And I got the answer, I've already passed unit-tests both on my environment and Gerrit.

Thanks for the patch again~ :-)

Revision history for this message
Yaguang Tang (heut2008) wrote : Re: [Bug 1224832] Re: latest python-boto=2.13.0 has a bug which make unit tests fails

Just a recheck should be enough, I see other patches pass Jenkins after a
recheck.
在 2013年9月14日 上午12:26,"wingwj" <email address hidden>写道:

> Hi Tang,
>
> I met the same error when I submitted the patch to Gerrit:
> https://review.openstack.org/#/c/46272/
>
> Your report is very helpful. Thanks~
>
> Now I want to know how can I fix it in my branch?
> Should I need to rebase it?
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1224832
>
> Title:
> latest python-boto=2.13.0 has a bug which make unit tests fails
>
> Status in OpenStack Compute (Nova):
> In Progress
> Status in OpenStack Compute (nova) grizzly series:
> Confirmed
> Status in OpenStack Core Infrastructure:
> New
>
> Bug description:
> Traceback (most recent call last):
> File "nova/tests/api/ec2/test_api.py", line 456, in
> test_authorize_revoke_security_group_cidr
> group.authorize('tcp', 80, 81, '0.0.0.0/0')
> File
> "/home/jenkins/workspace/gate-nova-python26/.tox/py26/lib/python2.6/site-packages/boto/ec2/securitygroup.py",
> line 207, in authorize
> src_group_group_id, dry_run=dry_run)
> File
> "/home/jenkins/workspace/gate-nova-python26/.tox/py26/lib/python2.6/site-packages/boto/ec2/securitygroup.py",
> line 115, in add_rule
> dry_run=dry_run
> TypeError: add_grant() got an unexpected keyword argument 'dry_run'
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/nova/+bug/1224832/+subscriptions
>

Joe Gordon (jogo)
Changed in nova:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (stable/grizzly)

Fix proposed to branch: stable/grizzly
Review: https://review.openstack.org/46819

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

Fix proposed to branch: stable/grizzly
Review: https://review.openstack.org/46862

Revision history for this message
Alan Pevec (apevec) wrote :

Not needed for Grizzly anymore, boto==2.13.3 was released https://jenkins02.openstack.org/job/periodic-nova-python27-stable-grizzly/15/console

Thierry Carrez (ttx)
Changed in nova:
status: Fix Committed → Fix Released
Joe Gordon (jogo)
Changed in openstack-ci:
status: New → Invalid
Thierry Carrez (ttx)
Changed in nova:
milestone: havana-rc1 → 2013.2
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.