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

Update micro-http for empty MMDS path handling #4468

Merged
merged 2 commits into from
Feb 21, 2024

Conversation

zulinx86
Copy link
Contributor

@zulinx86 zulinx86 commented Feb 21, 2024

Changes

  • Check the return code of command run on guests.
  • Update Cargo.lock to use the latest micro-http.
  • Add an integration test for an empty MMDS path.

Reason

When querying a MMDS path that has an empty content, the response didn't
contain 'Content-Length' field, resulting in the client waiting for the
connection closed by the server or timeout. To fix this issue,
micro-http made a change to have the field when the response status code
is not 1XX or 204.

License Acceptance

By submitting this pull request, I confirm that my contribution is made under
the terms of the Apache 2.0 license. For more information on following Developer
Certificate of Origin and signing off your commits, please check
CONTRIBUTING.md.

PR Checklist

  • [ ] If a specific issue led to this PR, this PR closes the issue.
  • The description of changes is clear and encompassing.
  • [ ] Any required documentation changes (code and docs) are included in this
    PR.
  • [ ] API changes follow the Runbook for Firecracker API changes.
  • User-facing changes are mentioned in CHANGELOG.md.
  • All added/changed functionality is tested.
  • [ ] New TODOs link to an issue.
  • Commits meet
    contribution quality standards.

  • This functionality cannot be added in rust-vmm.

@zulinx86 zulinx86 changed the title Fix empty mmds path Update micro-http for empty MMDS path handling Feb 21, 2024
Copy link

codecov bot commented Feb 21, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (274ba9c) 81.63% compared to head (33d1efc) 81.63%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #4468   +/-   ##
=======================================
  Coverage   81.63%   81.63%           
=======================================
  Files         243      243           
  Lines       29789    29789           
=======================================
  Hits        24319    24319           
  Misses       5470     5470           
Flag Coverage Δ
4.14-c5n.metal 78.95% <ø> (?)
4.14-c7g.metal ?
4.14-m5d.metal ?
4.14-m5n.metal 78.94% <ø> (?)
4.14-m6a.metal 78.08% <ø> (ø)
4.14-m6g.metal 77.03% <ø> (ø)
4.14-m6i.metal 78.94% <ø> (ø)
4.14-m7g.metal 77.03% <ø> (?)
5.10-c5n.metal 81.61% <ø> (?)
5.10-c7g.metal ?
5.10-m5d.metal ?
5.10-m5n.metal 81.60% <ø> (?)
5.10-m6a.metal 80.83% <ø> (ø)
5.10-m6g.metal 79.92% <ø> (ø)
5.10-m6i.metal 81.59% <ø> (ø)
5.10-m7g.metal 79.92% <ø> (?)
6.1-c5n.metal 81.61% <ø> (?)
6.1-m5n.metal 81.60% <ø> (?)
6.1-m6a.metal 80.83% <ø> (ø)
6.1-m6g.metal 79.92% <ø> (ø)
6.1-m6i.metal 81.59% <ø> (ø)
6.1-m7g.metal 79.92% <ø> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

roypat
roypat previously approved these changes Feb 21, 2024
CHANGELOG.md Outdated Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved
pb8o
pb8o previously approved these changes Feb 21, 2024
Without this change, it ignores non-0 exits that don't print anything on
stderr.

Signed-off-by: Takahiro Itazuri <itazur@amazon.com>
When querying a MMDS path that has an empty content, the response didn't
contain 'Content-Length' field, resulting in the client waiting for the
connection closed by the server or timeout. To fix this issue,
micro-http made a change to have the field when the response status code
is not 1XX or 204. This commit updates Cargo.lock file to consume this
change and also adds an integration test to ensure that it doesn't
timeout for an empty MMDS path.

The micro-http's change was made on
firecracker-microvm/micro-http#48.

Signed-off-by: Takahiro Itazuri <itazur@amazon.com>
@zulinx86 zulinx86 merged commit e5e2fc3 into firecracker-microvm:main Feb 21, 2024
6 of 7 checks passed
@zulinx86 zulinx86 deleted the fix_empty_mmds_path branch March 19, 2024 12:07
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

3 participants