-
Notifications
You must be signed in to change notification settings - Fork 293
CP-39744, CA-370858: Block actions depending on unimplemented VTPM functionality #4796
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
Changes from all commits
56925e2
bb67668
9c43b22
2e3b83b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -926,6 +926,8 @@ let repository_gpgcheck = ref true | |
|
|
||
| let migration_compression = ref false | ||
|
|
||
| let ignore_vtpm_unimplemented = ref false | ||
|
|
||
| let evacuation_batch_size = ref 10 | ||
|
|
||
| type xapi_globs_spec_ty = Float of float ref | Int of int ref | ||
|
|
@@ -1362,8 +1364,16 @@ let other_options = | |
| , (fun () -> string_of_int !evacuation_batch_size) | ||
| , "The number of VMs evacauted from a host in parallel." | ||
| ) | ||
| ; ( "ignore-vtpm-unimplemented" | ||
| , Arg.Set ignore_vtpm_unimplemented | ||
| , (fun () -> string_of_bool !ignore_vtpm_unimplemented) | ||
| , "Do not raise errors on use-cases where VTPM codepaths are not finished." | ||
| ) | ||
| ] | ||
|
|
||
| (* The options can be set with the variable xapiflags in /etc/sysconfig/xapi. | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think they can also be set in There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That sounds like an easier mechanism to use, although I have to say it would be much better if xapi.conf was autogenerated from xapi_globs |
||
| e.g. xapiflags=-nowatchdog *) | ||
|
|
||
| let all_options = options_of_xapi_globs_spec @ other_options | ||
|
|
||
| (* VIRTUAL HARDWARE PLATFORM VERSIONS *) | ||
|
|
||
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.
We intend to implement this, so as a temporary measure this is probably fine (we limit the libraries that the CLI server can access on purpose to avoid it accidentally bypassing RBAC checks)
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.
But why do you do this here in the CLI, while the export handle below already has the check?
Uh oh!
There was an error while loading. Please reload this page.
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.
Because the export ,etadata check happens at the end of the operation, after 8 minutes passed, which I think is bad UX