Merge lp:~hisaki/nova/lp655217 into lp:~hudson-openstack/nova/trunk

Proposed by Hisaki Ohara
Status: Merged
Approved by: Jay Pipes
Approved revision: 333
Merged at revision: 332
Proposed branch: lp:~hisaki/nova/lp655217
Merge into: lp:~hudson-openstack/nova/trunk
Diff against target: 11 lines (+1/-0)
1 file modified
nova/virt/images.py (+1/-0)
To merge this branch: bzr merge lp:~hisaki/nova/lp655217
Reviewer Review Type Date Requested Status
Jay Pipes (community) Approve
Review via email: mp+37717@code.launchpad.net

Description of the change

Since FLAGS.images_path was not set for nova-compute, I could not launch instances
due to an exception at _fetch_local_image() trying to access to it.
I think that this is the reason of Bug655217.

I'm not sure whether it is global solution, because FLAGS.images_path is defined
in nova/objectstore/image.py too.

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

Hi!

Can you try seeing if, instead of setting the flag manually in /nova/virt/images.py, you do:

from nova.objectstore import image

instead? That should import the images_path flag defined in /nova/objectstore/image.py.

See if just doing the import fixes the bug...

Thanks!
jay

review: Needs Information
Revision history for this message
Hisaki Ohara (hisaki) wrote :

Hello!

> from nova.objectstore import image

It works! :-)

You'd like me to update my branch or you do by yourself, since
it is addition of one line fix?

Regards,
Hisaki Ohara

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

> > from nova.objectstore import image
>
> It works! :-)

Awesome :)

> You'd like me to update my branch or you do by yourself, since
> it is addition of one line fix?

No, you can do it! Just remove the import of util and DEFINE_string, and put in the import above. bzr commit and then bzr push. :) I'll approve it then.

Cheers!
jay

lp:~hisaki/nova/lp655217 updated
333. By Hisaki Ohara

Imported images_path from nova.objectstore for nova-compute. Without its setting,
it fails to launch instances by exception at _fetch_local_image.

Revision history for this message
Hisaki Ohara (hisaki) wrote :

> No, you can do it! Just remove the import of util and DEFINE_string, and put
> in the import above. bzr commit and then bzr push. :) I'll approve it then.

OK. Thanks.
I think I did it as rev.333 of my branch (lp:~hisakister/nova/lp655217).
Please inform me, if any issue. It is my first experience of launchpad system.

Regards,
Hisaki Ohara

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

Awesome. Approved.

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

Hisaki, welcome to being a Nova contributor :)

Revision history for this message
Hisaki Ohara (hisaki) wrote :

Thanks! I'm happy for that :-)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'nova/virt/images.py'
2--- nova/virt/images.py 2010-08-18 21:14:24 +0000
3+++ nova/virt/images.py 2010-10-07 14:11:02 +0000
4@@ -29,6 +29,7 @@
5 from nova import process
6 from nova.auth import manager
7 from nova.auth import signer
8+from nova.objectstore import image
9
10
11 FLAGS = flags.FLAGS