kubernetes-retired / rktlet

[EOL] The rkt implementation of the Kubernetes Container Runtime Interface
Apache License 2.0
137 stars 43 forks source link

RemoveImage with image ID fails with "Image does not exist" #136

Closed dongsupark closed 7 years ago

dongsupark commented 7 years ago

Several cri-tools tests fail with such an error:

E0927 13:16:48.789812   13017 remote_image.go:130]
RemoveImage "sha512-90e41be10f11188676633f562cd98822686928b80cda76bd8529a753f9b5d890"
from image service failed: rpc error: code = Unknown desc = Image does not exist
Sep 27 13:16:48.789: INFO: Unexpected error occurred: rpc error:
code = Unknown desc = Image does not exist
[k8s.io] Image Manager 
  image status get image fields should not be empty [Conformance]
  /home/dpark/go/src/github.com/kubernetes-incubator/cri-tools/pkg/validate/image.go:62
[BeforeEach] [k8s.io] Image Manager
  /home/dpark/go/src/github.com/kubernetes-incubator/cri-tools/pkg/framework/framework.go:50
[BeforeEach] [k8s.io] Image Manager
  /home/dpark/go/src/github.com/kubernetes-incubator/cri-tools/pkg/validate/image.go:46
[It] image status get image fields should not be empty [Conformance]
  /home/dpark/go/src/github.com/kubernetes-incubator/cri-tools/pkg/validate/image.go:62
STEP: Pull image : busybox:1.26.2
STEP: Get image status for image: busybox:1.26.2
STEP: Remove image : busybox:1.26.2
STEP: Remove image by ID : sha512-90e41be10f11188676633f562cd98822686928b80cda76bd8529a753f9b5d890
E0927 13:16:48.789812   13017 remote_image.go:130] RemoveImage "sha512-90e41be10f11188676633f562cd98822686928b80cda76bd8529a753f9b5d890" from image service failed: rpc error: code = Unknown desc = Image does not exist
Sep 27 13:16:48.789: INFO: Unexpected error occurred: rpc error: code = Unknown desc = Image does not exist
[AfterEach] [k8s.io] Image Manager
  /home/dpark/go/src/github.com/kubernetes-incubator/cri-tools/pkg/framework/framework.go:51

• Failure [3.251 seconds]
[k8s.io] Image Manager
/home/dpark/go/src/github.com/kubernetes-incubator/cri-tools/pkg/framework/framework.go:72
  image status get image fields should not be empty [Conformance] [It]
  /home/dpark/go/src/github.com/kubernetes-incubator/cri-tools/pkg/validate/image.go:62

  failed to remove image: rpc error: code = Unknown desc = Image does not exist
  Expected error:
      <*status.statusError | 0xc420375470>: {
          Code: 2,
          Message: "Image does not exist",
          Details: nil,
      }
      rpc error: code = Unknown desc = Image does not exist
  not to have occurred

  /home/dpark/go/src/github.com/kubernetes-incubator/cri-tools/pkg/validate/image.go:183