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 intomasterfrom
fix_errors
Apr 17, 2019
Merged

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

Conversation

@jterry75
Copy link
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) <juterry@microsoft.com>
@jterry75 jterry75 requested review from kevpar and lowenna April 17, 2019 19:17

// Kill sends 'signal' to the process.
//
// If the processes has already exited returns `gcserr.HrErrNotFound` by
Copy link
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
Copy link
Contributor

lowenna commented Apr 17, 2019

Minor nit but LGTM

lowenna
lowenna previously approved these changes Apr 17, 2019
Signed-off-by: Justin Terry (VM) <juterry@microsoft.com>
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) <juterry@microsoft.com>
…existing ID

Signed-off-by: Justin Terry (VM) <juterry@microsoft.com>
@jterry75
Copy link
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