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

[k8s plugin] Kubernetes: Run command cannot build an image #13702

Closed
azatsarynnyy opened this issue Jul 4, 2019 · 3 comments
Closed

[k8s plugin] Kubernetes: Run command cannot build an image #13702

azatsarynnyy opened this issue Jul 4, 2019 · 3 comments
Labels
kind/bug Outline of a bug - must adhere to the bug report template. severity/P2 Has a minor but important impact to the usage or development of the system.
Milestone

Comments

@azatsarynnyy
Copy link
Member

Steps to reproduce:
1/ Create a Workspace from the Devfile https://github.com/azatsarynnyy/devfiles/blob/master/k8s-devfile.yml
2/ Call File -> Open Workspace... and choose simple-nodejs-weather-app folder
3/ Call the Kubernetes: Run command

The build is started - see the Docker Building... label in the status bar. But after a few seconds, the build is failed with the error:

[Docker 2019-07-04 13:21:42.770]
STEP 1: FROM node:8
Getting image source signatures
Copying blob sha256:6f2f362378c5a6fd915d96d11dda1e0223ccf213bf121ace56ae0f6616ea1dc8
Copying blob sha256:615db220d76c063138a2e6c5849703a7a80d682a682f7e1a841e6e7ed5f43879
Copying blob sha256:afaefeaac9eef5dcba8edbc980393c07c2c689871a19049e11f8cf4758f26026
Copying blob sha256:372744b62d49eba993652ee4a1201801fe278b687d85489101e07e7b9a4900e0
Copying blob sha256:494c27a8a6b820f9167ec7e368b3a9bb47d7029f4dc8c97c67091f3757a5bc4e
Copying blob sha256:7596bb83081b6c8410df557d538a0ae45922cbf81e469c6f4cfa835247cb24ab
Copying blob sha256:f70dffb8ed80ea64006f00cf324ba50ec621f539e8610cb8cdbce78dca226590
Copying blob sha256:551f1f61f88124f624c0fb5aab09a3518f0718df4098c17365ae44906ec11132
Copying blob sha256:f9237cec1fb5183c109803a72af5f45f6f3d05be9cad46300745ffb63fee6cf8
Copying config sha256:a7dabdc7cd4b7e47d926ddbeba6d566ce049ec9402f9ab0dd960e7ee4df869e8
Writing manifest to image destination
Storing signatures
error creating build container: The following failures happened while trying to pull image specified by "node:8" based on search registries in /etc/containers/registries.conf:
* "localhost/node:8": Error initializing source docker://localhost/node:8: pinging docker registry returned: Get https://localhost/v2/: dial tcp 127.0.0.1:443: connect: connection refused
* "docker.io/library/node:8": Error committing the finished image: error adding layer with blob "sha256:6f2f362378c5a6fd915d96d11dda1e0223ccf213bf121ace56ae0f6616ea1dc8": Error processing tar file(exit status 1): there might not be enough IDs available in the namespace (requested 0:42 for /etc/gshadow): lchown /etc/gshadow: invalid argument
* "registry.fedoraproject.org/node:8": Error initializing source docker://registry.fedoraproject.org/node:8: Error reading manifest 8 in registry.fedoraproject.org/node: manifest unknown: manifest unknown
* "quay.io/node:8": Error initializing source docker://quay.io/node:8: Error reading manifest 8 in quay.io/node: error parsing HTTP 404 response body: invalid character '<' looking for beginning of value: "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 3.2 Final//EN\">\n<title>404 Not Found</title>\n<h1>Not Found</h1>\n<p>The requested URL was not found on the server.  If you entered the URL manually please check your spelling and try again.</p>\n"
* "registry.access.redhat.com/node:8": Error initializing source docker://registry.access.redhat.com/node:8: Error reading manifest 8 in registry.access.redhat.com/node: name unknown: Repo not found
* "registry.centos.org/node:8": Error initializing source docker://registry.centos.org/node:8: Error reading manifest 8 in registry.centos.org/node: manifest unknown: manifest unknown
time="2019-07-04T13:21:42Z" level=error msg="exit status 1"

The key error message here is:

there might not be enough IDs available in the namespace (requested 0:42 for /etc/gshadow): lchown /etc/gshadow: invalid argument
@azatsarynnyy azatsarynnyy added kind/bug Outline of a bug - must adhere to the bug report template. team/ide labels Jul 4, 2019
@tsmaeder
Copy link
Contributor

tsmaeder commented Jul 5, 2019

@azatsarynnyy why is that the key error message? You seem to understand what the problem is here, could you explain? Also, what is the impact of this bug for the user of Che?

@tsmaeder tsmaeder added the status/info-needed More information is needed before the issue can move into the “analyzing” state for engineering. label Jul 5, 2019
@azatsarynnyy azatsarynnyy added kind/task Internal things, technical debt, and to-do tasks to be performed. and removed kind/bug Outline of a bug - must adhere to the bug report template. labels Jul 5, 2019
@azatsarynnyy
Copy link
Member Author

why is that the key error message?

that error message is related to pulling the node:8 image from docker.io registry which should be used by Buildah. Other messages just mean that there's no image in the corresponded registry.

Also, what is the impact of this bug for the user of Che?

I think it's more likely task than a bug since that functionality didn't work before.
Changed the label.

@tsmaeder tsmaeder removed the status/info-needed More information is needed before the issue can move into the “analyzing” state for engineering. label Jul 5, 2019
@l0rd l0rd added severity/P2 Has a minor but important impact to the usage or development of the system. kind/bug Outline of a bug - must adhere to the bug report template. and removed kind/task Internal things, technical debt, and to-do tasks to be performed. labels Aug 29, 2019
@azatsarynnyy azatsarynnyy removed the kind/bug Outline of a bug - must adhere to the bug report template. label Aug 29, 2019
@l0rd l0rd added the kind/bug Outline of a bug - must adhere to the bug report template. label Aug 29, 2019
@vparfonov vparfonov added this to the Backlog - IDE 1 milestone Oct 11, 2019
@vparfonov vparfonov modified the milestones: Backlog - IDE 1, 7.4.0 Oct 23, 2019
@azatsarynnyy
Copy link
Member Author

Fixed for K8s in eclipse-che/che-theia#510
For OpenShift, will be a separate issue if needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Outline of a bug - must adhere to the bug report template. severity/P2 Has a minor but important impact to the usage or development of the system.
Projects
None yet
Development

No branches or pull requests

4 participants