Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import from url #2254

Merged
merged 4 commits into from
Jun 18, 2015
Merged

Import from url #2254

merged 4 commits into from
Jun 18, 2015

Conversation

jonludlam
Copy link
Contributor

No description provided.

~name:"import_from"
~in_product_since:rel_dundee
~doc:"Import an XVA from a URI"
~params:[String, "url", "The URL of the XVA file";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I find import_from a bit vague... Can we make it something like import_from_url? Or simple import, since we don't actually have that as an API call.

Also, the doc string says URI, but the param has URL.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, perhaps VM.import since that name is free (as rob says), plus this
API seems quite general.

On Fri, Jun 12, 2015 at 10:52 AM, Rob Hoes notifications@github.com wrote:

In ocaml/idl/datamodel.ml
#2254 (comment):

@@ -2389,6 +2389,19 @@ let vm_call_plugin = call
~allowed_roles:_R_VM_OP
()

+let vm_import_from = call

  • ~name:"import_from"
  • ~in_product_since:rel_dundee
  • ~doc:"Import an XVA from a URI"
  • ~params:[String, "url", "The URL of the XVA file";

I find import_from a bit vague... Can we make it something like
import_from_url? Or simple import, since we don't actually have that as
an API call.

Also, the doc string says URI, but the param has URL.


Reply to this email directly or view it on GitHub
https://github.com/xapi-project/xen-api/pull/2254/files#r32303426.

Dave Scott

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. Yes, import seems reasonable to me. I'll correct the url/uri disparity too, I had changed my mind over which one to call it...

Signed-off-by: Jon Ludlam <jonathan.ludlam@citrix.com>
Signed-off-by: Jon Ludlam <jonathan.ludlam@citrix.com>
Signed-off-by: Jon Ludlam <jonathan.ludlam@citrix.com>
@jonludlam
Copy link
Contributor Author

to test, try

xe vm-import url=http://xen-git.uk.xensource.com/vagrant/packer-ubuntu-14.10-amd64.xva.gz

@johnelse
Copy link
Contributor

Should import via the CLI fail if the user specifies both url and filename? Other than that, this all looks good to me.

Signed-off-by: Jon Ludlam <jonathan.ludlam@citrix.com>
@jonludlam
Copy link
Contributor Author

Good suggestion, thanks

@johnelse
Copy link
Contributor

:shipit: !

johnelse added a commit that referenced this pull request Jun 18, 2015
@johnelse johnelse merged commit 2efaa54 into xapi-project:master Jun 18, 2015
@jonludlam
Copy link
Contributor Author

sweet :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants