-
Notifications
You must be signed in to change notification settings - Fork 295
CP-13301 full implementation of xenprep_start #2332
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
Conversation
|
OK, so apart from the |
ocaml/xapi/xapi_vm.ml
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On second thoughts, I think I can replace this with just
Xapi_vbd.insert ~__context ~vbd:cd_vbd ~vdi;
instead of using Helpers.call_api_functions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd avoid that, just to be sure, because you would bypass the "operations" handling in Message_forwarding.
This new convenience function fails if there are zero or multiple SRs that appear to be Tools SRs. It memoises its result, so calls after the first one will be quick and cheap. Signed-off-by: Thomas Sanders <thomas.sanders@citrix.com>
Just for peace of mind, add a test that the SR content_type is "iso". Signed-off-by: Thomas Sanders <thomas.sanders@citrix.com>
17c294d to
56381fd
Compare
|
I've squashed commits, and added and used a |
56381fd to
91ad7eb
Compare
91ad7eb to
70c0f2d
Compare
The xenprep ISO is not yet available, so for the time being we insert the tools ISO for dev-testing purposes. The ISO is inserted into any empty virtual CD drive. If there is no such VBD, a newly-defined error is raised: vm_no_empty_cd_vbd Signed-off-by: Thomas Sanders <thomas.sanders@citrix.com>
Signed-off-by: Thomas Sanders <thomas.sanders@citrix.com>
c0db7d1 to
6a4be8d
Compare
|
And I've made the code remove the other-config entry if it fails to find and insert the CD. |
|
@xen-git: retest this please. |
|
Looks good now. |
CP-13301 full implementation of xenprep_start
This completes the
xenprep_startpart of the design athttps://github.com/xapi-project/xapi-project.github.io/blob/master/xapi/futures/xenprep.md
The xenprep ISO is not yet available, so for the time being we insert
the tools ISO for dev-testing purposes.