-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Release v0.5.0 #353
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
Release v0.5.0 #353
Conversation
Defines a token bucket with a fixed size/capacity and refill_time. | ||
The refill-rate is derived from size and refill_time, and it is the constant | ||
rate at which the tokens replenish. | ||
Rate of consumption from the token bucket is unlimited which allows for bursts |
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.
I think there is a dash missing here before but.
@@ -1,10 +1,10 @@ | |||
swagger: "2.0" | |||
info: | |||
title: Firecracker v0.4 API | |||
description: Firecraker v0.4 - RESTful public-facing API. | |||
title: Firecracker v0.5 API |
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.
This should be commit with Cargo.toml before setting the tag.
summary: Creates new network interface with ID specified by iface_id path parameter. | ||
If network interface with specified ID already exists, | ||
updates its state based on new input. Will fail if update is not possible. | ||
summary: Creates or updates a network interface. |
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 have a bug here, we should remove the update of network interfaces till we actually have it correctly implemented.
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.
#354 tracks the update bug.
summary: Creates or updates a network interface. | ||
description: | ||
Creates new network interface with ID specified by iface_id path parameter. | ||
If network interface with specified ID already exists, |
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 should also say here: update is not supported yet or something like that.
This value is read-only for the control-plane. | ||
description: | ||
The current detailed state of the Firecracker instance. | ||
This value is read-only for the control-plane. |
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 should also say here that it contains only the instance state: one of Uninitialized, Starting, Running. I think we shouldn't mention Halting and Halted since this also doesn't work at the time.
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.
They do work, starting after halting doesn't work and we have an open issue for that, but by no means should we remove it from the spec :)
summary: Creates or updates the boot source. | ||
description: | ||
Creates new boot source if one does not already exists, otherwise updates it. | ||
Will fail if update is not possible. |
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.
It would be worth mentioning that updates are only allowed before the guest boots.
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.
Can't turn this into documentation, these are already too verbose for my taste. Ideally the API spec should not expose or describe underlying program logic.
summary: Creates or updates a drive. | ||
description: | ||
Creates new drive with ID specified by drive_id path parameter. | ||
If a drive with the specified ID already exists, updates its state based on new input. |
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.
This is a bit more complicated:
- if a drive with the same ID exists and the PUT comes before guest boot, the state is updated based on the new input;
- if the guest is running, the input is irrelevant as a rescan is triggered and the drive is updated with info it reads from the OS.
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.
same as above
there is no CPU Template. | ||
summary: Gets the machine configuration of the VM. | ||
description: | ||
Get the machine configuration of the VM. When called before the PUT operation, it |
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.
s/Get/Gets
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.
done
summary: Gets the machine configuration of the VM. | ||
description: | ||
Get the machine configuration of the VM. When called before the PUT operation, it | ||
will return the default values for the vCPU count (=1), memory size (=128 MiB), |
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.
This line ends abruptly in a comma, is there something else to add that got accidentally deleted?
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.
Fixed that unfortunate layout.
When Hyperthreading is enabled, the vCPU count has to be either 1 or an even number. | ||
is disabled, there are no restrictions regarding the vCPU count. | ||
If one of the parameters does not have a correct value, the update fails and no fields are updated. | ||
summary: Updates the machine configuration of the VM. |
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.
Please rephrase with the wording from the description: "Updates the Virtual Machine Configuration"
summary: Creates new network interface with ID specified by iface_id path parameter. | ||
If network interface with specified ID already exists, | ||
updates its state based on new input. Will fail if update is not possible. | ||
summary: Creates or updates a network interface. |
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.
#354 tracks the update bug.
api_server/swagger/firecracker.yaml
Outdated
The only supported boot source is LocalImage. | ||
summary: Creates or updates the boot source. | ||
description: | ||
Creates new boot source if one does not already exists, otherwise updates it. |
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.
exist not exists.
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.
done.
@@ -25,7 +25,7 @@ produces: | |||
paths: |
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.
There is kind of a comment on line 335 # Timestamp generated by FC - output only timestamp:
for the timestamp field. Can t we turn that comment into the value of a description field?
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.
done.
Signed-off-by: Adrian Catangiu <[email protected]>
Signed-off-by: Adrian Catangiu <[email protected]>
Signed-off-by: Diana Popa <[email protected]>
Signed-off-by: Adrian Catangiu <[email protected]>
Fixes #352 Signed-off-by: Alexandra Iordache <[email protected]>
Signed-off-by: Diana Popa <[email protected]>
No description provided.