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

Cannot start any workspaces after creating an ssh key pair with a colon in the name #15665

Closed
ChristianSchenk711 opened this issue Jan 13, 2020 · 2 comments
Labels
kind/bug Outline of a bug - must adhere to the bug report template. lifecycle/frozen Indicates that an issue or PR should not be auto-closed due to staleness. severity/P2 Has a minor but important impact to the usage or development of the system.

Comments

@ChristianSchenk711
Copy link

ChristianSchenk711 commented Jan 13, 2020

I accidentally provided "hostname:v3" as a name to a keypair created via "SSH: create key pair for particular host".
Afterwards I was not able to start any workspaces: Workspace start failed with a message about an invalid character (:), see below.
I had to manually delete the keypair from the sshkeypair table to fix that.

We currently use Che 7.4.0 on a kubernetes infrastructure.

Error message when starting workspaces is:

Error: Failed to run the workspace: "Failure executing: POST at: https://10.2.0.1/api/v1/namespaces/che7-che-workspace/secrets. Message: Secret "workspaceubl83l6plbjhrjl9-sshprivatekeys" is invalid: data[ab:c]: Invalid value: "ab:c": a valid config key must consist of alphanumeric characters, '-', '_' or '.' (e.g. 'key.name',  or 'KEY_NAME',  or 'key-name', regex used for validation is '[-._a-zA-Z0-9]+'). Received status: Status(apiVersion=v1, code=422, details=StatusDetails(causes=[StatusCause(field=data[ab:c], message=Invalid value: "ab:c": a valid config key must consist of alphanumeric characters, '-', '_' or '.' (e.g. 'key.name',  or 'KEY_NAME',  or 'key-name', regex used for validation is '[-._a-zA-Z0-9]+'), reason=FieldValueInvalid, additionalProperties={})], group=null, kind=Secret, name=workspaceubl83l6plbjhrjl9-sshprivatekeys, retryAfterSeconds=null, uid=null, additionalProperties={}), kind=Status, message=Secret "workspaceubl83l6plbjhrjl9-sshprivatekeys" is invalid: data[ab:c]: Invalid value: "ab:c": a valid config key must consist of alphanumeric characters, '-', '_' or '.' (e.g. 'key.name',  or 'KEY_NAME',  or 'key-name', regex used for validation is '[-._a-zA-Z0-9]+'), metadata=ListMeta(_continue=null, resourceVersion=null, selfLink=null, additionalProperties={}), reason=Invalid, status=Failure, additionalProperties={})."

@tolusha tolusha added the kind/question Questions that haven't been identified as being feature requests or bugs. label Jan 13, 2020
@ibuziuk ibuziuk added severity/P1 Has a major impact to usage or development of the system. kind/bug Outline of a bug - must adhere to the bug report template. team/plugins and removed kind/question Questions that haven't been identified as being feature requests or bugs. labels Jan 13, 2020
@che-bot
Copy link
Contributor

che-bot commented Jul 27, 2020

Issues go stale after 180 days of inactivity. lifecycle/stale issues rot after an additional 7 days of inactivity and eventually close.

Mark the issue as fresh with /remove-lifecycle stale in a new comment.

If this issue is safe to close now please do so.

Moderators: Add lifecycle/frozen label to avoid stale mode.

@che-bot che-bot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Jul 27, 2020
@ericwill ericwill mentioned this issue Jul 30, 2020
29 tasks
@ericwill ericwill added this to the 7.18 milestone Aug 5, 2020
@ericwill ericwill mentioned this issue Aug 20, 2020
32 tasks
@che-bot che-bot closed this as completed Aug 21, 2020
@ericwill ericwill reopened this Sep 11, 2020
@ericwill ericwill added lifecycle/frozen Indicates that an issue or PR should not be auto-closed due to staleness. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels Sep 11, 2020
@skabashnyuk skabashnyuk added severity/P2 Has a minor but important impact to the usage or development of the system. team/platform and removed team/plugins severity/P1 Has a major impact to usage or development of the system. labels Sep 16, 2020
@skabashnyuk
Copy link
Contributor

Fixed in #19031

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. lifecycle/frozen Indicates that an issue or PR should not be auto-closed due to staleness. 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

6 participants