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

name is reserved: give more informative error #4002

Merged

Conversation

haircommander
Copy link
Member

@haircommander haircommander commented Jul 22, 2020

What type of PR is this?

/kind cleanup

What this PR does / why we need it:

even if cri-o perfectly cleans up its state after failures, name is reserved errors are still possbile.
Mainly: when cri-o times out attempting to provision networking or disk resources.

Given this is the most likely scenerio, print this as a debug message, rather than the cryptic "reserving * name"

Which issue(s) this PR fixes:

Special notes for your reviewer:

Does this PR introduce a user-facing change?

none

even if cri-o perfectly cleans up its state after failures, name is reserved errors are still possbile.
Mainly: when cri-o times out attempting to provision networking or disk resources.

Given this is the most likely scenerio, print this as a debug message, rather than the cryptic "name is reserved"

Signed-off-by: Peter Hunt <pehunt@redhat.com>
@openshift-ci-robot openshift-ci-robot added release-note-none Denotes a PR that doesn't merit a release note. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. dco-signoff: yes Indicates the PR's author has DCO signed all their commits. labels Jul 22, 2020
@openshift-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: haircommander

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jul 22, 2020
@@ -529,7 +529,7 @@ func (s *Server) CreateContainer(ctx context.Context, req *pb.CreateContainerReq
}

if _, err = s.ReserveContainerName(ctr.ID(), ctr.Name()); err != nil {
return nil, errors.Wrap(err, "reserving container name")
return nil, errors.Wrap(err, "Kubelet may be retrying requests that are timing out in CRI-O due to system load")
Copy link
Member

Choose a reason for hiding this comment

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

We should retain the original error. Is it contained in the wrapped err?

Copy link
Member Author

Choose a reason for hiding this comment

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

yeah it says error reserving pod name %s for id %s: %v or container

@haircommander
Copy link
Member Author

# time="2020-07-22T19:15:22Z" level=fatal msg="Creating container failed: rpc error: code = Unknown desc = Error reading blob sha256:a3ed95caeb02ffe68cdd9fd84406680ae93d633cb16422d00e8a7c22955b46d4: Get \"https://quayio-production-s3.s3.amazonaws.com/sharedimages/86f0a285-6f29-47c4-a3ae-7e2c70cad0ba/layer?Signature=EjC%2BDNyoSuua5tN%2B8e2w5x041sw%3D&Expires=1595445909&AWSAccessKeyId=AKIAI5LUAQGPZRPNKSJA\": EOF"

/retest

@codecov
Copy link

codecov bot commented Jul 22, 2020

Codecov Report

Merging #4002 into master will not change coverage.
The diff coverage is 0.00%.

@@           Coverage Diff           @@
##           master    #4002   +/-   ##
=======================================
  Coverage   40.76%   40.76%           
=======================================
  Files         109      109           
  Lines        8876     8876           
=======================================
  Hits         3618     3618           
  Misses       4928     4928           
  Partials      330      330           

@mrunalp
Copy link
Member

mrunalp commented Jul 23, 2020

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Jul 23, 2020
@haircommander
Copy link
Member Author

/retest

@TomSweeneyRedHat
Copy link
Contributor

LGTM
assuming happy testss

@haircommander
Copy link
Member Author

/test integration_rhel

@haircommander
Copy link
Member Author


[sig-network] IngressClass [Feature:Ingress] should set default value on new IngressClass [Serial] expand_more               0s | [sig-network] IngressClass [Feature:Ingress] should set default value on new IngressClass [Serial] expand_more | 0s
-- | -- | --
[sig-network] IngressClass [Feature:Ingress] should set default value on new IngressClass [Serial] expand_more | 0s
[sig-network] IngressClass [Feature:Ingress] should not set default value if no default IngressClass [Serial] expand_more | [sig-network] IngressClass [Feature:Ingress] should not set default value if no default IngressClass [Serial] expand_more
[sig-network] IngressClass [Feature:Ingress] should not set default value if no default IngressClass [Serial] expand_more

ref

@haircommander
Copy link
Member Author

/retest

@haircommander
Copy link
Member Author

/test e2e-aws

@umohnani8
Copy link
Member

LGTM

@haircommander
Copy link
Member Author

/test e2e-aws

@haircommander
Copy link
Member Author

/retest

@openshift-merge-robot openshift-merge-robot merged commit 98ea748 into cri-o:master Jul 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. dco-signoff: yes Indicates the PR's author has DCO signed all their commits. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. lgtm Indicates that a PR is ready to be merged. release-note-none Denotes a PR that doesn't merit a release note.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants