euca-upload-bundle doesn't work with boto 2

Bug #623888 reported by wonderzou
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Invalid
Undecided
Mitch Garnaat
euca2ools
Fix Released
Undecided
Mitch Garnaat
1.2
Won't Fix
Undecided
Unassigned
1.3
Won't Fix
Undecided
Unassigned
2.0
Fix Released
Undecided
Mitch Garnaat

Bug Description

i have setup the nova environment, and come across such problem in the procedure.

tiger@tiger-desktop:~/repo/nova/nova/tools$ euca-upload-bundle -b mybucket -m /tmp/vmlinuz-2.6.32-23-server.manifest.xml
Traceback (most recent call last):
  File "/usr/bin/euca-upload-bundle", line 39, in <module>
    from boto.s3 import Connection
ImportError: cannot import name Connection

euca-upload-bundle version 1.2
boto-2.0b1-py2.6.egg

is the version mismatched? or something else?

Revision history for this message
Jay Pipes (jaypipes) wrote :

What version of boto do you have installed on your machine?

Revision history for this message
wonderzou (wonder-zou) wrote :

hi:
 boto-2.0b1-py2.6

thanks

Revision history for this message
Soren Hansen (soren) wrote :

I've only tested with 1.9b, where it works great. This smells like a euca2ools problem more than anything.

Revision history for this message
wonderzou (wonder-zou) wrote :

hi , the reason maybe in the boto

in 1.9
conetent of s3 __init__.py:

import boto

boto.check_extensions(__name__, __path__)

from connection import S3Connection as Connection
from key import Key
from bucket import Bucket

__all__ = ['Connection', 'Key', 'Bucket']

in 2.0
conetent of s3 __init__.py is empty

maybe this is the reason.

must i downgrade to boto 1.9, who can help me .
thanks

Revision history for this message
Neil Soman (neilsoman) wrote :

wonderzou, Euca2ools 1.2 predates boto-2.0b1, so yes, unfortunately, you will need to stick to the version of boto that is Euca2ools 1.2 was compatible with when it was released. I imagine a future release of Euca2ools (1.4 I think) will be compatible with the latest release of boto at the time.

Changed in euca2ools:
status: New → Invalid
Revision history for this message
Soren Hansen (soren) wrote :

Can you try just deleting the offending line from euca-upload-bundle? As far as I can see, it's not used at all.

Revision history for this message
Soren Hansen (soren) wrote :

I'm not sure where to fix this properly, to be honest. Ubuntu doesn't ship boto > 1.9, so pushing a fix there doesn't seem appropriate, and upstream considers this bug invalid, so that's a dead end.

Revision history for this message
Neil Soman (neilsoman) wrote :

I've marked this as "won't fix" in euca2ools 1.2 and 1.3, since they depend on boto <= 1.9. I'm reopening it against the devel branch, which should be updated to support more recent (> 1.9) boto versions in the future, but don't have an ETA on it right now.

Revision history for this message
Soren Hansen (soren) wrote :

Marking invalid in Nova. There's nothing we can do.

Changed in nova:
status: New → Invalid
Changed in nova:
assignee: nobody → Mitch Garnaat (mitch-garnaat)
Revision history for this message
Garrett Holmstrom (gholms) wrote :

The next mainline release of euca2ools will be compatible with (and in fact require) boto 2.1.

summary: - euca-upload-bundle -b mybucket -m
- /tmp/vmlinuz-2.6.32-23-server.manifest.xml
+ euca-upload-bundle doesn't work with boto 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.