Richard W.M. Jones
2018-Jul-27 10:33 UTC
[Libguestfs] Preparatory work on virt-v2v -o openstack mode
(Apologies if I missed anyone off the To: line. Please add anyone else who is interested, but keep the libguestfs public mailing list) I did some preparatory work on adding the new ‘virt-v2v -o openstack’ output mode. I've put it in a private (non-FFwd) branch here: https://github.com/rwmjones/libguestfs/tree/openstack Most of the work was refactoring virt-v2v so that we have all of the metadata available at the point where we create the disks. For Openstack this is expected to be important because (we believe) we have to set properties on the Cinder volumes at creation time and won't be able to modify those properties later. All of this work is upstream in libguestfs >= 1.39.8. The second part was adding the machinery for the new output mode. This is the extra commit that you see in the branch above. Note this commit does not actually do anything useful so far. The important file to look at is v2v/output_openstack.ml. Some other random notes: - Before you try to build from source, read this page carefully: http://libguestfs.org/guestfs-building.1.html - Upstream in virt-v2v we have settled on using Python 3 only. So all code submitted should be written in Python 3, you will have to install python3-*client, etc. - For RHV, in RHEL 7 we added a downstream patch which converts the code from Python 3 to Python 2. Of course this will not be needed in other Linux distros. - You must supply a Keystone auth URL using ‘-oc’ (perhaps we will allow this to be overridden by OS_* environment variables). - How will we select "where" the guest is going to go? eg. What region, what Cinder storage pool, etc. (And other things that may be relevant which I don't even know to ask). - Unclear on how auth will work, so I just assumed username/password for now. - I am on holiday until Wednesday 1st. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com virt-builder quickly builds VMs from scratch http://libguestfs.org/virt-builder.1.html
Richard W.M. Jones
2018-Jul-27 17:34 UTC
Re: [Libguestfs] Preparatory work on virt-v2v -o openstack mode
I have written some more detailed documentation for how output modules (such as the proposed ‘-o openstack’) work in virt-v2v: https://github.com/libguestfs/libguestfs/blob/f9898e12abaea9f99b2a6da1858ae71fdd8e952b/v2v/types.mli#L384 cf: https://github.com/rwmjones/libguestfs/blob/openstack/v2v/output_openstack.ml#L81 Please let me know if any of this is unclear. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com virt-top is 'top' for virtual machines. Tiny program with many powerful monitoring features, net stats, disk stats, logging, etc. http://people.redhat.com/~rjones/virt-top
Apparently Analagous Threads
- [PATCH v2v] openstack: Increase Cinder volume attach timeout to 5 minutes (RHBZ#1685032).
- [PATCH 0/2] v2v: Add -o openstack target.
- [PATCH v2 0/2] v2v: Add -o openstack target.
- [PATCH] v2v: -o openstack: Option to add --insecure flag to openstack command.
- [PATCH v2] v2v: -o openstack: -oo verify-server-certificate=(true|false) (RHBZ#1651432).