Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upspec.running in body is required when create VM from template #945
Comments
fabiand
added
kind/bug
topic/api
area/api-server
labels
Apr 25, 2018
fabiand
assigned
petrkotas
Apr 25, 2018
fabiand
added this to the MVP 0.1.1 milestone
Apr 25, 2018
rmohr
referenced this issue
May 7, 2018
Closed
OVM creation fails with "spec.running in body is required" #1002
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
davidvossel
May 7, 2018
Member
Running has always been marked as a required field in our API. The only difference now is required fields are being enforced at creation time.
All our example ovms reflect this requirement.
|
Running has always been marked as a required field in our API. The only difference now is required fields are being enforced at creation time. All our example ovms reflect this requirement. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
fabiand
May 15, 2018
Member
I'd say we can sanely default to running: false - it would just be a default like with any other field.
|
I'd say we can sanely default to |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
davidvossel
May 15, 2018
Member
I'd say we can sanely default to running: false - it would just be a default like with any other field.
Defaulting running to "false" makes sense when the object is called a OfflineVirtualMachine. What about when we change the name to something like a StatefulVirtualMachine? I'd be confused if I posted a SVM and it didn't run.
The name OVM will change soon. I'd suggest leaving running as a required field until then. After we settle on a name, we can decide what the default should be for running.
Defaulting running to "false" makes sense when the object is called a OfflineVirtualMachine. What about when we change the name to something like a StatefulVirtualMachine? I'd be confused if I posted a SVM and it didn't run. The name OVM will change soon. I'd suggest leaving running as a required field until then. After we settle on a name, we can decide what the default should be for running. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
petrkotas
May 16, 2018
Member
I tend to agree with David. running: false for statefull VM is confusing. Having it required means, user have to decide what he wants to do with it.
|
I tend to agree with David. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
itamarh
May 16, 2018
Member
I agree the different names may be confusing. I don't agree with putting a burden of the user to have to decide as a simple way out for us (as a general rule of thinking, sometimes we have to)
|
I agree the different names may be confusing. I don't agree with putting a burden of the user to have to decide as a simple way out for us (as a general rule of thinking, sometimes we have to) |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
davidvossel
May 16, 2018
Member
I agree the different names may be confusing. I don't agree with putting a burden of the user to have to decide as a simple way out for us (as a general rule of thinking, sometimes we have to)
yep, I agree. We need a default. I suggest we hold off on making a decision about the default until after we are 100% committed to a name (ovm vs svm discussion) because the name impacts the default we use.
yep, I agree. We need a default. I suggest we hold off on making a decision about the default until after we are 100% committed to a name (ovm vs svm discussion) because the name impacts the default we use. |
gouyang commentedApr 24, 2018
If I add to
running: falseto the spec section, it works then.