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

Volcano install failed #310

Closed
hzxuzhonghu opened this issue Jul 9, 2019 · 19 comments
Closed

Volcano install failed #310

hzxuzhonghu opened this issue Jul 9, 2019 · 19 comments
Assignees
Labels
kind/bug Categorizes issue or PR as related to a bug. kind/docs

Comments

@hzxuzhonghu
Copy link
Collaborator

hzxuzhonghu commented Jul 9, 2019

Is this a BUG REPORT or FEATURE REQUEST?:

Uncomment only one, leave it on its own line:

/kind bug

What happened:

install volcano as readme, but i meet the following error.

$ helm install volcano/volcano --namespace kube-system --name volcano
Error: namespaces "kube-system" is forbidden: User "system:serviceaccount:kube-system:default" cannot get resource "namespaces" in API group "" in the namespace "kube-system

What you expected to happen:

  1. install successfully

  2. allow user to set volcano flags

  3. provide a simple install yaml

How to reproduce it (as minimally and precisely as possible):

install volcano following https://github.com/volcano-sh/volcano/blob/master/README.md

Anything else we need to know?:

my kubernetes cluster is created by kind

Environment:

  • Volcano Version:
  • Kubernetes version (use kubectl version):
  • Cloud provider or hardware configuration:
  • OS (e.g. from /etc/os-release):
  • Kernel (e.g. uname -a):
  • Install tools:
  • Others:
@hzxuzhonghu
Copy link
Collaborator Author

/kind bug

@volcano-sh-bot volcano-sh-bot added the kind/bug Categorizes issue or PR as related to a bug. label Jul 9, 2019
@hzxuzhonghu
Copy link
Collaborator Author

/kind doc

@hzxuzhonghu
Copy link
Collaborator Author

/assign @asifdxtreme

@asifdxtreme asifdxtreme added the help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. label Jul 9, 2019
asifdxtreme pushed a commit to asifdxtreme/volcano that referenced this issue Jul 9, 2019
 Replaced decorate by plugins.
@k82cn k82cn removed the help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. label Jul 10, 2019
@k82cn
Copy link
Member

k82cn commented Jul 10, 2019

We should make sure the readme/tutorial correct :)

@asifdxtreme
Copy link
Contributor

/cc @thandayuthapani

@hzxuzhonghu
Copy link
Collaborator Author

I have opened #325 to track contributor experience improvement stuff.

@hzxuzhonghu
Copy link
Collaborator Author

We need a more simple way to install, one command kubectl apply -f xxx.yaml.

Helm is complicated, it requires users to install helm and tiller first.

@xieydd
Copy link

xieydd commented Jul 11, 2019

what is the version of helm ? Tiller of helm v3 is gone, how about maintaining xxx.yaml and helm repo.

@asifdxtreme
Copy link
Contributor

With the current master branch code I am getting this error for jobs.batch.volcano.sh

kubectl create -f batch_v1alpha1_job.yaml 
The CustomResourceDefinition "jobs.batch.volcano.sh" is invalid: 
* spec.validation.openAPIV3Schema.properties[spec].properties[plugins].additionalProperties: Forbidden: additionalProperties cannot be set to false
* spec.validation.openAPIV3Schema.properties[status].properties[ControlledResources].additionalProperties: Forbidden: additionalProperties cannot be set to false

@hzxuzhonghu
Copy link
Collaborator Author

@asifdxtreme What's your k8s version?

@asifdxtreme
Copy link
Contributor

@asifdxtreme What's your k8s version?

kubectl version --short
Client Version: v1.15.0
Server Version: v1.10.0

@TommyLike
Copy link
Contributor

Works well on my environment:

 ⚡ root@husheng: kb version --short
Client Version: v1.15.0
Server Version: v1.15.0

@wingerted
Copy link

Seems RBAC problem ?

@k82cn
Copy link
Member

k82cn commented Jul 14, 2019

@TommyLike , @hzxuzhonghu , when can we get this done?

@TommyLike
Copy link
Contributor

TommyLike commented Jul 14, 2019

@TommyLike , @hzxuzhonghu , when can we get this done?

@k82cn , For this issue itself. it's the RBAC issue which needs us to install tiller with enough rights to handle resource, it's something like:

kubectl create serviceaccount --namespace kube-system tiller
kubectl create clusterrolebinding tiller-cluster-rule --clusterrole=cluster-admin --serviceaccount=kube-system:tiller

That's why @hzxuzhonghu is asking us we need more document to notify that.
But for the issue which @asifdxtreme or the volcano user @Swati Agrawal, we need more detail to find out the root cause. It can be the kubernetes version mismatch, helm binary version requirement or something else. Therefore we may need the helm installing output. tiller log or even kubeapi server log to locate it I guess.

@TommyLike
Copy link
Contributor

With the current master branch code I am getting this error for jobs.batch.volcano.sh

kubectl create -f batch_v1alpha1_job.yaml 
The CustomResourceDefinition "jobs.batch.volcano.sh" is invalid: 
* spec.validation.openAPIV3Schema.properties[spec].properties[plugins].additionalProperties: Forbidden: additionalProperties cannot be set to false
* spec.validation.openAPIV3Schema.properties[status].properties[ControlledResources].additionalProperties: Forbidden: additionalProperties cannot be set to false

This a similar issue to this OpenAPI issue kubernetes/apiextensions-apiserver#26.

@TommyLike
Copy link
Contributor

With the current master branch code I am getting this error for jobs.batch.volcano.sh

kubectl create -f batch_v1alpha1_job.yaml 
The CustomResourceDefinition "jobs.batch.volcano.sh" is invalid: 
* spec.validation.openAPIV3Schema.properties[spec].properties[plugins].additionalProperties: Forbidden: additionalProperties cannot be set to false
* spec.validation.openAPIV3Schema.properties[status].properties[ControlledResources].additionalProperties: Forbidden: additionalProperties cannot be set to false

This a similar issue to this OpenAPI issue kubernetes/apiextensions-apiserver#26.

We used to use kind 0.2.0 to running our E2E tests, which means the oldest version of kubernetes that have been tested should be 1.13.4. https://github.com/kubernetes-sigs/kind/releases/tag/0.2.0

@TommyLike
Copy link
Contributor

@hzxuzhonghu please try the latest installation guide in master branch.

@hzxuzhonghu
Copy link
Collaborator Author

This can be closed now.

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. kind/docs
Projects
None yet
Development

No branches or pull requests

7 participants