Skip to content

Conversation

@thomassa
Copy link
Contributor

This completes the xenprep_start part of the design at
https://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.

@robhoes
Copy link
Member

robhoes commented Aug 12, 2015

OK, so apart from the Db thing and the needed squashing, I think this looks good.

Copy link
Contributor Author

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.

Copy link
Member

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>
@thomassa
Copy link
Contributor Author

I've squashed commits, and added and used a Helpers.get_tools_sr function which will need reviewing.

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>
@thomassa
Copy link
Contributor Author

And I've made the code remove the other-config entry if it fails to find and insert the CD.

@simonjbeaumont
Copy link
Contributor

@xen-git: retest this please.

@robhoes
Copy link
Member

robhoes commented Aug 13, 2015

Looks good now.

robhoes added a commit that referenced this pull request Aug 13, 2015
CP-13301 full implementation of xenprep_start
@robhoes robhoes merged commit ed9b76a into xapi-project:master Aug 13, 2015
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.

3 participants