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

support to set cpu model with more detail #728

Merged
merged 4 commits into from
Jul 30, 2018
Merged

Conversation

yanxuean
Copy link
Contributor

@yanxuean yanxuean commented Jul 27, 2018

fix #727


This change is Reviewable

yanxuean added 3 commits July 27, 2018 11:58
Signed-off-by: yanxuean <yan.xuean@zte.com.cn>
Signed-off-by: yanxuean <yan.xuean@zte.com.cn>
Signed-off-by: yanxuean <yan.xuean@zte.com.cn>
@yanxuean
Copy link
Contributor Author

@jellonek PTAL

@yanxuean yanxuean force-pushed the cpumode branch 3 times, most recently from dd03fe3 to ef61a6c Compare July 27, 2018 06:50
Copy link
Contributor

@jellonek jellonek left a comment

Choose a reason for hiding this comment

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

Reviewed 3 of 3 files at r1, 3 of 3 files at r2.
Reviewable status: 0 of 2 LGTMs obtained


docs/resource_managment.md, line 6 at r2 (raw file):

By default, libvirt runs QEMU with a CPU model that doesn't support nested virtualization. It's possible to change this behavior by using `VirtletCPUModel: host-model` annotation in the pod definition. You can also use `cpuModel` value in Virtlet config to override the value globally for the cluster or for a particular subset of nodes.

If you are familiar with the cpu part in libvirt domain definition, you can use `VirtletLibvirtCPUSetting` annotation, the value is directly passed to libvirt after translating form yaml style. it is more flexible.

"It is more flexible than usage of VirtletCPUModel as it allows to provide more detailed configuration."

@yanxuean
Copy link
Contributor Author

@jellonek done, PTAL

Copy link
Contributor

@jellonek jellonek left a comment

Choose a reason for hiding this comment

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

Reviewable status: 0 of 2 LGTMs obtained


docs/resource_managment.md, line 6 at r3 (raw file):

By default, libvirt runs QEMU with a CPU model that doesn't support nested virtualization. It's possible to change this behavior by using `VirtletCPUModel: host-model` annotation in the pod definition. You can also use `cpuModel` value in Virtlet config to override the value globally for the cluster or for a particular subset of nodes.

If you are familiar with the cpu part in libvirt domain definition, you can use `VirtletLibvirtCPUSetting` annotation, the value is directly passed to libvirt after translating form yaml style. It is more flexible than usage of VirtletCPUModel as it allows to provide more detailed configuration.

Please enclose VirtletCPUModel with backticks as you did in VirtletLibvirtCPUSettings case.

Copy link
Contributor

@jellonek jellonek left a comment

Choose a reason for hiding this comment

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

Reviewable status: 0 of 2 LGTMs obtained


docs/resource_managment.md, line 6 at r3 (raw file):

By default, libvirt runs QEMU with a CPU model that doesn't support nested virtualization. It's possible to change this behavior by using `VirtletCPUModel: host-model` annotation in the pod definition. You can also use `cpuModel` value in Virtlet config to override the value globally for the cluster or for a particular subset of nodes.

If you are familiar with the cpu part in libvirt domain definition, you can use `VirtletLibvirtCPUSetting` annotation, the value is directly passed to libvirt after translating form yaml style. It is more flexible than usage of VirtletCPUModel as it allows to provide more detailed configuration.

Btw. "after translating form yaml style" -> "after reading it from yaml string".

Signed-off-by: yanxuean <yan.xuean@zte.com.cn>
@yanxuean
Copy link
Contributor Author

done @jellonek
My Englist is poor.

Copy link
Contributor

@jellonek jellonek left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewed 1 of 1 files at r4.
Reviewable status: 0 of 2 LGTMs obtained, and 1 stale

Copy link
Contributor

@ivan4th ivan4th left a comment

Choose a reason for hiding this comment

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

Reviewed 3 of 3 files at r1, 2 of 3 files at r2, 1 of 1 files at r4.
Reviewable status: 1 of 2 LGTMs obtained

Copy link
Contributor

@ivan4th ivan4th left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewable status: 1 of 2 LGTMs obtained, and 1 stale

@ivan4th ivan4th merged commit 806ee62 into Mirantis:master Jul 30, 2018
@yanxuean yanxuean deleted the cpumode branch July 30, 2018 10:18
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.

support to set cpu model with more detail
3 participants