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

App name validation in deploy flow causes 500s #373

Closed
codegoblins opened this issue Feb 13, 2016 · 8 comments
Closed

App name validation in deploy flow causes 500s #373

codegoblins opened this issue Feb 13, 2016 · 8 comments
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@codegoblins
Copy link

screen shot 2016-02-12 at 3 29 09 pm

Console output:

2016/02/12 15:27:55 Validating runcmdtest34239i23 application name in jefsweeney namespace
2016/02/12 15:27:55 the server does not allow access to the requested resource (get replicationControllers runcmdtest34239i23)
2016/02/12 15:27:55 Outcoming response to 127.0.0.1:51717 with 500 status code
  • This causes the form to be invalidated
  • This happens in any namespace
  • It seems only application names that start with "run" cause this, but I haven't tried everything
@floreks
Copy link
Member

floreks commented Feb 15, 2016

What version of kubernetes are you running? Do you have newest version of dashboard deployed?
Maybe you have a service with that name in this namespace already? Validation also checks for services. Probably error message could be more clear when existing service blocks creation of app.

I've tried to reproduce it and couldn't. I was able to create apps with same name in different namespaces. Name starting with run... was fine.

@bryk
Copy link
Contributor

bryk commented Feb 15, 2016

@codegoblins What is your security setup? Are your namespaces restricted?

@bryk bryk modified the milestone: v1.0 Feb 15, 2016
@codegoblins
Copy link
Author

@floreks Our cluster is running Kubernetes 1.1. I am on the latest master commit of dashboard. Also no matching services in the namespace.

@bryk It doesn't look like our namespaces are restricted, I have no problems creating pods in other tenants' namespaces.

Any suggestions how I can further debug this?

@bryk
Copy link
Contributor

bryk commented Feb 18, 2016

I was able to reproduce this. Investigating....

@bryk
Copy link
Contributor

bryk commented Feb 18, 2016

@codegoblins This is a bug in kubectl proxy. Can you maybe contribute to k8s core to fix this? Should be as easy as changing a regex.

@floreks
Copy link
Member

floreks commented Feb 18, 2016

Ok, now I know why I couldn't reproduce the problem. I'm not using proxy. We should propose some kind of template for creating issues, so we can reproduce and fix them faster.

@bryk
Copy link
Contributor

bryk commented Feb 18, 2016

Yeah, templates like this:https://github.com/blog/2111-issue-and-pull-request-templates

@floreks
Copy link
Member

floreks commented Feb 18, 2016

This looks really nice. We should prepare a template at some point.

@maciaszczykm maciaszczykm added the kind/bug Categorizes issue or PR as related to a bug. label Mar 9, 2016
@bryk bryk closed this as completed Mar 25, 2016
anvithks added a commit to anvithks/k8s-dashboard that referenced this issue Sep 27, 2021
anvithks pushed a commit to anvithks/k8s-dashboard that referenced this issue Sep 27, 2021
[Fixes kubernetes#373] Fixed envsubst not working on Ubuntu18.04/CentOS8 on VirtualBox
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

No branches or pull requests

4 participants