Skip to content
This repository was archived by the owner on Jul 28, 2021. It is now read-only.

Fix errors returned by GCS to align with expectations in the HCS#294

Merged
jterry75 merged 4 commits into
masterfrom
fix_errors
Apr 17, 2019
Merged

Fix errors returned by GCS to align with expectations in the HCS#294
jterry75 merged 4 commits into
masterfrom
fix_errors

Conversation

@jterry75

Copy link
Copy Markdown
Contributor
  • Remove unused error types
  • Return HR ERROR_NOT_FOUND after process exit
  • Return ERROR_VMCOMPUTE_SYSTEM_NOT_FOUND on runc kill error …
    • When a container is not found the HCS expects a GCS to return an HRESULT
      error ERROR_VMCOMPUTE_SYSTEM_NOT_FOUND to indicate this condition.
  • Return ERROR_VMCOMPUTE_SYSTEM_ALREADY_EXISTS on CreateContainer with existing ID

Signed-off-by: Justin Terry (VM) <[email protected]>
@jterry75
jterry75 requested review from kevpar and lowenna April 17, 2019 19:17
Comment thread internal/runtime/hcsv2/process.go Outdated

// Kill sends 'signal' to the process.
//
// If the processes has already exited returns `gcserr.HrErrNotFound` by

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

nit s/processes/process

@lowenna

lowenna commented Apr 17, 2019

Copy link
Copy Markdown
Contributor

Minor nit but LGTM

lowenna
lowenna previously approved these changes Apr 17, 2019
1. When a container is not found the HCS expects a GCS to return an HRESULT
error ERROR_VMCOMPUTE_SYSTEM_NOT_FOUND to indicate this condition.

Signed-off-by: Justin Terry (VM) <[email protected]>
@jterry75

Copy link
Copy Markdown
Contributor Author

@jhowardmsft - Made the change. Submitting.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants