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

create cluster failed with apps/v1 deployment api #325

Closed
hchenxa opened this issue Apr 26, 2019 · 3 comments
Closed

create cluster failed with apps/v1 deployment api #325

hchenxa opened this issue Apr 26, 2019 · 3 comments
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@hchenxa
Copy link
Contributor

hchenxa commented Apr 26, 2019

/kind bug

What steps did you take and what happened:
[A clear and concise description of what the bug is.]

[root@hchenxa1 out]# clusterctl create cluster --bootstrap-cluster-kubeconfig ~/.kube/config --provider openstack -c cluster.yaml -m machines.yaml  -p provider-components.yaml
I0425 18:22:13.211929   13212 createbootstrapcluster.go:27] Creating bootstrap cluster
I0425 18:22:13.214490   13212 clusterdeployer.go:95] Applying Cluster API stack to bootstrap cluster
I0425 18:22:13.214503   13212 applyclusterapicomponents.go:26] Applying Cluster API Provider Components
W0425 18:22:14.017698   13212 clusterclient.go:536] Waiting for kubectl apply... unknown error couldn't kubectl apply, output: namespace/openstack-provider-system created
customresourcedefinition.apiextensions.k8s.io/openstackclusterproviderspecs.openstackproviderconfig.k8s.io configured
customresourcedefinition.apiextensions.k8s.io/openstackclusterproviderstatuses.openstackproviderconfig.k8s.io configured
customresourcedefinition.apiextensions.k8s.io/openstackproviderspecs.openstackproviderconfig.k8s.io configured
role.rbac.authorization.k8s.io/openstack-provider-manager-secrets unchanged
clusterrole.rbac.authorization.k8s.io/openstack-provider-manager-role configured
rolebinding.rbac.authorization.k8s.io/openstack-provider-manager-secrets-binding unchanged
clusterrolebinding.rbac.authorization.k8s.io/openstack-provider-manager-rolebinding configured
service/openstack-provider-controller-manager-service created
error: error validating "STDIN": error validating data: ValidationError(Deployment.spec): missing required field "selector" in io.k8s.api.apps.v1.DeploymentSpec; if you choose to ignore these errors, turn validation off with --validate=false
: exit status 1
I0425 18:22:14.017935   13212 createbootstrapcluster.go:36] Cleaning up bootstrap cluster.
F0425 18:22:14.017975   13212 create_cluster.go:59] unable to apply cluster api stack to bootstrap cluster: unable to apply cluster api controllers: couldn't kubectl apply, output: namespace/openstack-provider-system created
customresourcedefinition.apiextensions.k8s.io/openstackclusterproviderspecs.openstackproviderconfig.k8s.io configured
customresourcedefinition.apiextensions.k8s.io/openstackclusterproviderstatuses.openstackproviderconfig.k8s.io configured
customresourcedefinition.apiextensions.k8s.io/openstackproviderspecs.openstackproviderconfig.k8s.io configured
role.rbac.authorization.k8s.io/openstack-provider-manager-secrets unchanged
clusterrole.rbac.authorization.k8s.io/openstack-provider-manager-role configured
rolebinding.rbac.authorization.k8s.io/openstack-provider-manager-secrets-binding unchanged
clusterrolebinding.rbac.authorization.k8s.io/openstack-provider-manager-rolebinding configured
service/openstack-provider-controller-manager-service created
error: error validating "STDIN": error validating data: ValidationError(Deployment.spec): missing required field "selector" in io.k8s.api.apps.v1.DeploymentSpec; if you choose to ignore these errors, turn validation off with --validate=false
: exit status 1

the issue should be introduced by 328e46e.

What did you expect to happen:

Anything else you would like to add:
[Miscellaneous information that will assist in solving the issue.]

Environment:

  • Cluster-api version:
  • Minikube/KIND version:
  • Kubernetes version: (use kubectl version):
  • OS (e.g. from /etc/os-release):
@k8s-ci-robot k8s-ci-robot added the kind/bug Categorizes issue or PR as related to a bug. label Apr 26, 2019
@jichenjc
Copy link
Contributor

Thanks for find this issue :)

@gyliu513
Copy link
Contributor

/close

@k8s-ci-robot
Copy link
Contributor

@gyliu513: Closing this issue.

In response to this:

/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

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