[Libguestfs] [p2v PATCH 3/3] Ignore 'openstack' driver

Richard W.M. Jones rjones at redhat.com
Mon Mar 16 17:03:13 UTC 2020


On Mon, Mar 16, 2020 at 02:55:11PM +0100, Pino Toscano wrote:
> The 'openstack' output mode requires few options, and virt-p2v does not
> have the GUI bits for specifying them.
> 
> Similar to commit 9b009aa4a3898648fe68301d1c5ed774a0bf2e38 (for
> rhv-upload).
> ---
>  ssh.c | 5 +++--
>  1 file changed, 3 insertions(+), 2 deletions(-)
> 
> diff --git a/ssh.c b/ssh.c
> index 9dd2d8a..ce0caaa 100644
> --- a/ssh.c
> +++ b/ssh.c
> @@ -1018,10 +1018,11 @@ static void
>  add_output_driver (const char *name, size_t len)
>  {
>    /* Ignore the 'vdsm' driver, since that should only be used by VDSM.
> -   * Ignore the 'rhv-upload' driver, since we do not support passing all the
> -   * options for it.
> +   * Ignore the 'openstack' and 'rhv-upload' drivers, since we do not
> +   * support passing all the options for them.
>     */
>    if ((len != 4 || memcmp (name, "vdsm", 4) != 0) &&
> +      (len != 9 || memcmp (name, "openstack", 9) != 0) &&
>        (len != 10 || memcmp (name, "rhv-upload", 10) != 0))
>      add_option ("output", &output_drivers, name, len);
>  }
> -- 

Series looks fine, ACK.

Somewhere I had a patch (for "old" p2v/) which got half way
through fixing the openstack options.  I'll have to dig it up
some time, but IIRC it depended rather crucially on having
the generator generate p2v files, but since the "new" virt-p2v
doesn't use the generator it probably wouldn't work.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
Fedora Windows cross-compiler. Compile Windows programs, test, and
build Windows installers. Over 100 libraries supported.
http://fedoraproject.org/wiki/MinGW




More information about the Libguestfs mailing list