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

Document volumes and disks #13

Merged
merged 1 commit into from Jan 17, 2018
Merged

Conversation

rmohr
Copy link
Member

@rmohr rmohr commented Jan 16, 2018

Document which volume and disk types are supported in KubeVirt and how connecting them works.

Copy link
Member

@fabiand fabiand left a comment

Choose a reason for hiding this comment

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

Looks good in general, some minor nits.

The consistency i.e. emptry structs and vms could be done in a separate follow up and then also cover the complete guide.


### lun

A `lun` disk will expose the volume as a LUN device to the vm.
Copy link
Member

Choose a reason for hiding this comment

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

Could you link to a definition of lun - especially in contrast to disks.

Copy link
Member Author

Choose a reason for hiding this comment

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

Not sure where to link. The difference is what you see in the guest. Do you mean linking to the api-reference?

Copy link
Member

Choose a reason for hiding this comment

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

IIUIC then the diffrerence between lun and disk is that with lun more scsi calls are passed through disk is somewhat filtering it - that's at least what I get from the libvirt docs.
Is there any other difference I am missing?

Copy link
Member Author

Choose a reason for hiding this comment

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

I can add to the api-reference docs that this allows generic iscsi command passthrough.

Copy link
Member

Choose a reason for hiding this comment

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

Yep, that would work for me, or even just a sentence here differentiating lun from disk. At least some hint how they differ :)

Copy link
Member Author

Choose a reason for hiding this comment

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

done

- name: mypvcdisk
volumeName: mypvc
# This makes it a lun device
lun: {}
Copy link
Member

Choose a reason for hiding this comment

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

I like the empty structs for - empty structs :)

(lun: {} vs lun:)

I'll see that I have an eye on this in examples in general.

Copy link
Member Author

Choose a reason for hiding this comment

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

lun: is equivalent to lun: null, whereas lun: {} is an empty struct/dict. So having {} means it is present, whereas lun: is the same as not specifying it.

Copy link
Member

Choose a reason for hiding this comment

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

Oh, yes, Indeed. i didn't realize this initially, thanks.


### cloudInitNoCloud

Allows attaching `cloudInitNoCloud` data-sources to the vm. If the vm contains
Copy link
Member

Choose a reason for hiding this comment

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

vm vs VM?

@@ -0,0 +1,315 @@
# Volumes and Disks

Copy link
Member

Choose a reason for hiding this comment

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

Maybe a few introductional words to state that th eterm disk coins the guest facing side, whereas volumes specifies the kube source side.

Copy link
Member Author

Choose a reason for hiding this comment

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

done

@rmohr rmohr force-pushed the volumes-and-disks branch 2 times, most recently from 9bce89b to cdc312c Compare January 17, 2018 08:04
Signed-off-by: Roman Mohr <rmohr@redhat.com>
Copy link
Member

@fabiand fabiand left a comment

Choose a reason for hiding this comment

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

lgtm

Awesome.

@fabiand fabiand merged commit 0c4631c into kubevirt:master Jan 17, 2018
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.

None yet

2 participants