termie / nova-migration-demo

Nova is a cloud computing fabric controller (the main part of an IaaS system). It is written in Python.
http://openstack.org/projects/compute/
Apache License 2.0
2 stars 0 forks source link

creation of a simple file based volume driver in nova/volume/driver.py #533

Open termie opened 13 years ago

termie commented 13 years ago

I think we need the possibility to also save volumes on mounted NFS exports (or some other stuff locally mounted).

I tried to create a simple file based volume driver, creating new images with qemu-img and removing them with rm. Is this sufficient? At the moment I think only check_for_setup_error() is missing, I'll add this soon (checking for the existence of qemu-img and checking if the given mountpoint is mounted and is writable by nova).

Please give me some feedback and more ideas...


Imported from Launchpad using lp2gh.

termie commented 13 years ago

(by vishvananda) Nova-volume will attach locally if the export is on the same host as the instance you are trying to attach to.

Vish

On Feb 8, 2011, at 2:17 AM, Christian Berendt wrote:

Public bug reported:

I think we need the possibility to also save volumes on mounted NFS exports (or some other stuff locally mounted).

I tried to create a simple file based volume driver, creating new images with qemu-img and removing them with rm. Is this sufficient? At the moment I think only check_for_setup_error() is missing, I'll add this soon (checking for the existence of qemu-img and checking if the given mountpoint is mounted and is writable by nova).

Please give me some feedback and more ideas...

\ Affects: nova Importance: Wishlist Status: Confirmed

\ Branch linked: lp:~berendt/nova/FileDriver

You received this bug notification because you are a member of Nova Bug Team, which is subscribed to OpenStack Compute (nova). https://bugs.launchpad.net/bugs/715102

Title: creation of a simple file based volume driver in nova/volume/driver.py

Status in OpenStack Compute (Nova): Confirmed

Bug description: I think we need the possibility to also save volumes on mounted NFS exports (or some other stuff locally mounted).

I tried to create a simple file based volume driver, creating new images with qemu-img and removing them with rm. Is this sufficient? At the moment I think only check_for_setup_error() is missing, I'll add this soon (checking for the existence of qemu-img and checking if the given mountpoint is mounted and is writable by nova).

Please give me some feedback and more ideas...

termie commented 13 years ago

(by berendt) I think per default the VolumeDriver() is used. VolumeDriver() uses LVM2 and creates new volumes in a VG, per default nova-volumes.

termie commented 13 years ago

(by ttx) @Christian: still working on that ? Or should we unassign you and let someone else have a shot at it ?