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

New 0.6.5 EKS cluster with new awsclustercontrolleridentities is having issues with capa-eks-control-plane-controller-manager #2358

Closed
martin-ducar-gd opened this issue Apr 19, 2021 · 12 comments · Fixed by #2359
Assignees
Labels
area/provider/eks Issues or PRs related to Amazon EKS provider good first issue Denotes an issue ready for a new contributor, according to the "help wanted" guidelines. help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. kind/backport Issues or PRs requiring backports kind/bug Categorizes issue or PR as related to a bug. lifecycle/active Indicates that an issue or PR is actively being worked on by a contributor. priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release.
Milestone

Comments

@martin-ducar-gd
Copy link
Contributor

/kind bug

What steps did you take and what happened:

clusterctl init -i aws -c kubeadm:v0.3.14,aws-eks -b kubeadm:v0.3.14,aws-eks --core cluster-api:v0.3.14

than deploy cluster with setup:

---
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha3
kind: AWSClusterControllerIdentity
metadata:
  name: "default"
spec:
  allowedNamespaces: {} 
---
apiVersion: cluster.x-k8s.io/v1alpha3
kind: Cluster
metadata:
  name: "mgmt01"
spec:
  clusterNetwork:
    pods:
      cidrBlocks: ["192.168.0.0/16"]
  infrastructureRef:
    apiVersion: infrastructure.cluster.x-k8s.io/v1alpha3
    kind: AWSManagedCluster
    name: "mgmt01"
  controlPlaneRef:
    kind: AWSManagedControlPlane
    apiVersion: controlplane.cluster.x-k8s.io/v1alpha3
    name: "mgmt01-control-plane"
---
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha3
kind: AWSManagedCluster
metadata:
  name: "mgmt01"
---
kind: AWSManagedControlPlane
apiVersion: controlplane.cluster.x-k8s.io/v1alpha3
metadata:
  name: "mgmt01-control-plane"
spec:
  region: "us-east-1"
  sshKeyName: "capi-management"
  version: "v1.19.8"
  identityRef:
    kind: AWSClusterControllerIdentity
    name: default

in log of capa-eks-control-plane-controller-manager

$ kubectl logs -c manager -n capa-eks-control-plane-system       capa-eks-control-plane-controller-manager-<hash>
...
E0419 12:35:48.487128       1 reflector.go:153] pkg/mod/k8s.io/client-go@v0.17.9/tools/cache/reflector.go:105: Failed to list *v1alpha3.AWSClusterControllerIdentity: awsclustercontrolleridentities.infrastructure.cluster.x-k8s.io is forbidden: User "system:serviceaccount:capa-eks-control-plane-system:capa-eks-control-plane-controller-manager" cannot list resource "awsclustercontrolleridentities" in API group "infrastructure.cluster.x-k8s.io" at the cluster scope
...

What did you expect to happen:
Cluster to spin up

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

Environment:

  • Cluster-api-provider-aws version: 0.6.5
  • Kubernetes version: (use kubectl version): 1.20.2
  • OS (e.g. from /etc/os-release):
NAME="Ubuntu"
VERSION="20.04.2 LTS (Focal Fossa)"
@k8s-ci-robot k8s-ci-robot added the kind/bug Categorizes issue or PR as related to a bug. label Apr 19, 2021
@martin-ducar-gd
Copy link
Contributor Author

clusterctl install output:

Installing Provider="cluster-api" Version="v0.3.14" TargetNamespace="capi-system"
Installing Provider="bootstrap-kubeadm" Version="v0.3.14" TargetNamespace="capi-kubeadm-bootstrap-system"
Installing Provider="bootstrap-aws-eks" Version="v0.6.5" TargetNamespace="capa-eks-bootstrap-system"
Installing Provider="control-plane-kubeadm" Version="v0.3.14" TargetNamespace="capi-kubeadm-control-plane-system"
Installing Provider="control-plane-aws-eks" Version="v0.6.5" TargetNamespace="capa-eks-control-plane-system"
Installing Provider="infrastructure-aws" Version="v0.6.5" TargetNamespace="capa-system"

@richardcase
Copy link
Member

richardcase commented Apr 19, 2021

/help
/good-first-issue

@k8s-ci-robot
Copy link
Contributor

@richardcase:
This request has been marked as suitable for new contributors.

Please ensure the request meets the requirements listed here.

If this request no longer meets these requirements, the label can be removed
by commenting with the /remove-good-first-issue command.

In response to this:

/area eks/provider
/help
/good-first-issue

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.

@k8s-ci-robot
Copy link
Contributor

@richardcase: The label(s) area/eks/provider cannot be applied, because the repository doesn't have them.

In response to this:

/area eks/provider
/help
/good-first-issue

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.

@k8s-ci-robot k8s-ci-robot added good first issue Denotes an issue ready for a new contributor, according to the "help wanted" guidelines. help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. labels Apr 19, 2021
@richardcase
Copy link
Member

/area provider/eks

@k8s-ci-robot k8s-ci-robot added the area/provider/eks Issues or PRs related to Amazon EKS provider label Apr 19, 2021
@richardcase
Copy link
Member

@richardcase
Copy link
Member

/priority important-soon

@k8s-ci-robot k8s-ci-robot added the priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release. label Apr 19, 2021
@richardcase
Copy link
Member

/milestone v0.7.0

@k8s-ci-robot k8s-ci-robot added this to the v0.7.0 milestone Apr 19, 2021
@randomvariable
Copy link
Member

Should we backport this one?

@richardcase
Copy link
Member

/assign martin-ducar-gd
/lifecycle active

@k8s-ci-robot k8s-ci-robot added the lifecycle/active Indicates that an issue or PR is actively being worked on by a contributor. label Apr 19, 2021
@richardcase
Copy link
Member

Should we backport this one?

Yes i think we should backport.

@randomvariable
Copy link
Member

/kind backport

@k8s-ci-robot k8s-ci-robot added the kind/backport Issues or PRs requiring backports label Apr 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/provider/eks Issues or PRs related to Amazon EKS provider good first issue Denotes an issue ready for a new contributor, according to the "help wanted" guidelines. help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. kind/backport Issues or PRs requiring backports kind/bug Categorizes issue or PR as related to a bug. lifecycle/active Indicates that an issue or PR is actively being worked on by a contributor. priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release.
Projects
None yet
4 participants