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

kops failed to update instance group with maxprice(spot) aws #10104

Closed
avdhoot opened this issue Oct 25, 2020 · 1 comment · Fixed by #10187
Closed

kops failed to update instance group with maxprice(spot) aws #10104

avdhoot opened this issue Oct 25, 2020 · 1 comment · Fixed by #10187
Labels
blocks-next kind/bug Categorizes issue or PR as related to a bug.
Milestone

Comments

@avdhoot
Copy link
Contributor

avdhoot commented Oct 25, 2020

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

1.19.0-alpha.5
2. What cloud provider are you using?
aws
3. What commands did you run? What is the simplest way to reproduce this issue?
Use below instancegroup manifest with kops 1.19
4. What happened after the commands executed?

W1025 19:47:11.629670  935170 executor.go:131] error running task "AutoscalingGroup/master-us-west-2c.masters.us-sandbox.kops.abc.io" (9m5s remaining to succeed): error updating AutoscalingGroup: AccessDenied: You are not authorized to use launch template: master-us-west-2c.masters.us-sandbox.kops.abc.io-20201024113610
        status code: 403, request id: f6600ef6-5ab0-4f7e-8e2d-6ce9c939b496
W1025 19:47:11.629754  935170 executor.go:131] error running task "AutoscalingGroup/nodes-spot-r4-xlarge-us-west-2a.us-sandbox.kops.abc.io" (9m5s remaining to succeed): error updating AutoscalingGroup: InvalidQueryParameter: Incompatible launch template: You cannot use a launch template that is set to request Spot Instances (InstanceMarketOptions) when you configure an Auto Scaling group with a mixed instances policy. Add a different launch template to the group and try again.
        status code: 400, request id: ef748063-b15f-4d5d-a708-636a3eb16ce6
W1025 19:47:11.629807  935170 executor.go:131] error running task "AutoscalingGroup/master-us-west-2a.masters.us-sandbox.kops.abc.io" (9m5s remaining to succeed): error updating AutoscalingGroup: AccessDenied: You are not authorized to use launch template: master-us-west-2a.masters.us-sandbox.kops.abc.io-20201024113610
        status code: 403, request id: 2656a5ff-20d3-4dfa-ba9f-bcbcb522f5e2
W1025 19:47:11.629848  935170 executor.go:131] error running task "AutoscalingGroup/nodes.us-sandbox.kops.abc.io" (9m5s remaining to succeed): error updating AutoscalingGroup: AccessDenied: You are not authorized to use launch template: nodes.us-sandbox.kops.abc.io-20201024113610
        status code: 403, request id: 500a4a67-7cba-4ba6-a2e6-5653c52c7a79
W1025 19:47:11.629885  935170 executor.go:131] error running task "AutoscalingGroup/nodes-spot-r4-xlarge-us-west-2b.us-sandbox.kops.abc.io" (9m5s remaining to succeed): error updating AutoscalingGroup: InvalidQueryParameter: Incompatible launch template: You cannot use a launch template that is set to request Spot Instances (InstanceMarketOptions) when you configure an Auto Scaling group with a mixed instances policy. Add a different launch template to the group and try again.
        status code: 400, request id: 52062c2e-8ad3-4328-9780-993af8e6ae28
W1025 19:47:11.629926  935170 executor.go:131] error running task "AutoscalingGroup/master-us-west-2b.masters.us-sandbox.kops.abc.io" (9m5s remaining to succeed): error updating AutoscalingGroup: AccessDenied: You are not authorized to use launch template: master-us-west-2b.masters.us-sandbox.kops.abc.io-20201024113610
        status code: 403, request id: 53832121-f472-49d3-88c3-647ee1d81dc5
W1025 19:47:11.629960  935170 executor.go:131] error running task "AutoscalingGroup/nodes-spot-r4-xlarge-us-west-2c.us-sandbox.kops.abc.io" (9m5s remaining to succeed): error updating AutoscalingGroup: InvalidQueryParameter: Incompatible launch template: You cannot use a launch template that is set to request Spot Instances (InstanceMarketOptions) when you configure an Auto Scaling group with a mixed instances policy. Add a different launch template to the group and try again.
        status code: 400, request id: 871721d8-5fdb-4cba-a262-dbdbc146c36f

5. What did you expect to happen?

**7. Please provide your instancegroup manifest. Execute

kind: InstanceGroup
metadata:
  creationTimestamp: "2020-04-17T11:31:06Z"
  generation: 8
  labels:
    kops.k8s.io/cluster: us-sandbox.kops.abc.io
  name: nodes-spot-r4-xlarge-us-west-2a
spec:
  image: 075585003325/Flatcar-stable-2605.6.0-hvm
  machineType: r4.xlarge
  maxPrice: "0.3330"
  maxSize: 20
  minSize: 2
  nodeLabels:
    instance.abc.io/spot: "true"
    kops.k8s.io/instancegroup: nodes-spot-r4-xlarge-us-west-2a
  role: Node
  subnets:
  - us-west-2a

@rifelpet rifelpet added blocks-next kind/bug Categorizes issue or PR as related to a bug. labels Oct 25, 2020
@avdhoot
Copy link
Contributor Author

avdhoot commented Oct 27, 2020

Might same issue #10082

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocks-next kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants