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

protokube not specify the AWS_REGION in the manifest of etcd-manager #6098

Closed
knight42 opened this issue Nov 19, 2018 · 4 comments
Closed

protokube not specify the AWS_REGION in the manifest of etcd-manager #6098

knight42 opened this issue Nov 19, 2018 · 4 comments
Labels
lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale.

Comments

@knight42
Copy link
Member

1. What kops version are you running? The command kops version, will display
this information.

Version 1.10.0

2. What Kubernetes version are you running? kubectl version will print the
version if a cluster is running or provide the Kubernetes version specified as
a kops flag.

1.9.3

3. What cloud provider are you using?
AWS

4. What commands did you run? What is the simplest way to reproduce this issue?
Follow the instructions in https://github.com/kubernetes/kops/blob/master/docs/etcd/manager.md.

5. What happened after the commands executed?
etcd-manager failed to start because of wrong default region us-east-1.

6. What did you expect to happen?
etcd-manager should locate the bucket in cn-north-1 region.

7. Please provide your cluster manifest. Execute
kops get --name my.example.com -o yaml to display your cluster manifest.
You may want to remove your cluster name and other sensitive information.

apiVersion: kops/v1alpha2
kind: Cluster
metadata:
  name: kops-test.k8s.local
spec:
  channel: stable
  cloudProvider: aws
  configBase: s3://kops-state-store/kops-test.k8s.local
  etcdClusters:
  - etcdMembers:
    - instanceGroup: master-cn-north-1b-1
      name: "1"
    - instanceGroup: master-cn-north-1b-2
      name: "2"
    - instanceGroup: master-cn-north-1b-3
      name: "3"
    manager:
      image: kopeio/etcd-manager:latest
    name: main
  - etcdMembers:
    - instanceGroup: master-cn-north-1b-1
      name: "1"
    - instanceGroup: master-cn-north-1b-2
      name: "2"
    - instanceGroup: master-cn-north-1b-3
      name: "3"
    manager:
      image: kopeio/etcd-manager:latest
    name: events
  kubernetesVersion: https://s3.cn-north-1.amazonaws.com.cn/kops-asset/kubernetes/release/v1.9.3
  masterInternalName: api.internal.kops-test.k8s.local
  masterPublicName: api.kops-test.k8s.local
  topology:
    dns:
      type: Public
    masters: public
    nodes: public

8. Please run the commands with most verbose logging by adding the -v 10 flag.
Paste the logs into this report, or in a gist and provide the gist link here.

In fact, the bug is unrelated to kops, but related to protokube, so I guess I should paste the logs of etcd-manager here:

I1119 09:43:22.730080       1 s3context.go:154] unable to get bucket location from region "us-east-1"; scanning all regions: InvalidToken: The provided token is malformed or otherwise invalid.
        status code: 400, request id: <redacted>, host id: <redacted>
F1119 09:43:24.591170       1 main.go:304] error performing scan for legacy data: error marking cluster as created: error creating cluster-creation marker file s3://kops-state-store/kops-test
.k8s.local/backups/etcd/main/control/etcd-cluster-created: Unable to list AWS regions: AuthFailure: AWS was not able to validate the provided access credentials
        status code: 401, request id: <redacted>, host id: <redacted>

9. Anything else do we need to know?

@fejta-bot
Copy link

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

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

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Feb 17, 2019
@fejta-bot
Copy link

Stale issues rot after 30d of inactivity.
Mark the issue as fresh with /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.

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

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle rotten

@k8s-ci-robot k8s-ci-robot added lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels Mar 19, 2019
@knight42
Copy link
Member Author

kindly ping @justinsb

/remove-lifecycle rotten

@k8s-ci-robot k8s-ci-robot removed the lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. label Mar 19, 2019
justinsb added a commit to justinsb/kops that referenced this issue May 13, 2019
We need a region to start from to make AWS calls.  us-east-1 works for
most credentials, but not for cn-north-1 credentials.  Instead, we get
the current region from metadata when running on EC2; and we continue
to fall-back to us-east-1.

For CLI commands (kops) the user will still have to set AWS_REGION,
but for system binaries (nodeup, etcd-manager), this should default
appropriately.

Note that the region doesn't have to be the actual region of the
bucket, just a region we can access.

Issue kubernetes#6098
granular-ryanbonham pushed a commit to granular-ryanbonham/kops that referenced this issue May 13, 2019
We need a region to start from to make AWS calls.  us-east-1 works for
most credentials, but not for cn-north-1 credentials.  Instead, we get
the current region from metadata when running on EC2; and we continue
to fall-back to us-east-1.

For CLI commands (kops) the user will still have to set AWS_REGION,
but for system binaries (nodeup, etcd-manager), this should default
appropriately.

Note that the region doesn't have to be the actual region of the
bucket, just a region we can access.

Issue kubernetes#6098
granular-ryanbonham pushed a commit to granular-ryanbonham/kops that referenced this issue May 13, 2019
We need a region to start from to make AWS calls.  us-east-1 works for
most credentials, but not for cn-north-1 credentials.  Instead, we get
the current region from metadata when running on EC2; and we continue
to fall-back to us-east-1.

For CLI commands (kops) the user will still have to set AWS_REGION,
but for system binaries (nodeup, etcd-manager), this should default
appropriately.

Note that the region doesn't have to be the actual region of the
bucket, just a region we can access.

Issue kubernetes#6098
granular-ryanbonham pushed a commit to granular-ryanbonham/kops that referenced this issue May 13, 2019
We need a region to start from to make AWS calls.  us-east-1 works for
most credentials, but not for cn-north-1 credentials.  Instead, we get
the current region from metadata when running on EC2; and we continue
to fall-back to us-east-1.

For CLI commands (kops) the user will still have to set AWS_REGION,
but for system binaries (nodeup, etcd-manager), this should default
appropriately.

Note that the region doesn't have to be the actual region of the
bucket, just a region we can access.

Issue kubernetes#6098
justinsb added a commit to justinsb/etcd-manager that referenced this issue May 13, 2019
In particular, we are picking up the fix for kubernetes/kops#6098
justinsb added a commit to justinsb/etcd-manager that referenced this issue May 13, 2019
In particular, we are picking up the fix for kubernetes/kops#6098
justinsb added a commit to justinsb/kops that referenced this issue May 14, 2019
In particular, we are picking up the fix for kubernetes#6098.
justinsb added a commit to justinsb/kops that referenced this issue May 14, 2019
In particular, we are picking up the fix for kubernetes#6098.
justinsb added a commit to justinsb/kops that referenced this issue May 14, 2019
In particular, we are picking up the fix for kubernetes#6098.
justinsb added a commit to justinsb/kops that referenced this issue May 14, 2019
In particular, we are picking up the fix for kubernetes#6098.
@fejta-bot
Copy link

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

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

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Jun 17, 2019
justinsb added a commit to justinsb/etcdadm that referenced this issue Aug 28, 2020
In particular, we are picking up the fix for kubernetes/kops#6098
justinsb added a commit to justinsb/etcdadm that referenced this issue Aug 28, 2020
In particular, we are picking up the fix for kubernetes/kops#6098
justinsb added a commit to justinsb/etcdadm that referenced this issue Aug 28, 2020
In particular, we are picking up the fix for kubernetes/kops#6098
justinsb added a commit to justinsb/etcdadm that referenced this issue Aug 29, 2020
In particular, we are picking up the fix for kubernetes/kops#6098
justinsb added a commit to justinsb/etcdadm that referenced this issue Aug 29, 2020
In particular, we are picking up the fix for kubernetes/kops#6098
justinsb added a commit to justinsb/etcdadm that referenced this issue Aug 29, 2020
In particular, we are picking up the fix for kubernetes/kops#6098
justinsb added a commit to justinsb/etcdadm that referenced this issue Dec 4, 2020
In particular, we are picking up the fix for kubernetes/kops#6098
mrbobbytables pushed a commit to kubernetes-sigs/etcd-manager that referenced this issue May 14, 2024
In particular, we are picking up the fix for kubernetes/kops#6098
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants