You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running our CI over cluster-autoscaler (on top of a cluster created by the installer) we sometimes see only two machinesets created instead of three. The logs shows machineset in us-east-1a AZ has two instances instead of one. After checking the code responsible for generating machineset manifests [1] we see the number of replicas for a machineset in each AZ equals the number of occurrences of the same AZ in the list of all AZs passed to MachineSets() function. The list of available AZs is read from a pool passed down the invocation [2]. The list of AZs in the pool is set by reading ic.Platform.AWS.DefaultMachinePlatform and pool.Platform.AWS variables [3]. Which are set by dependencies.Get(clusterID, installconfig, rhcosImage, wign) line [4]. Something in the code is duplicating us-east-1a AZ which results in two machine sets generated instead of three.
So 3 machines her stripped to 2 AZs, which is expected.
/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.
enxebre
added a commit
to enxebre/cluster-api-actuator-pkg
that referenced
this issue
May 2, 2019
Version
Platform (aws|libvirt|openstack):
aws
What happened?
When running our CI over cluster-autoscaler (on top of a cluster created by the installer) we sometimes see only two machinesets created instead of three. The logs shows machineset in us-east-1a AZ has two instances instead of one. After checking the code responsible for generating machineset manifests [1] we see the number of replicas for a machineset in each AZ equals the number of occurrences of the same AZ in the list of all AZs passed to
MachineSets()
function. The list of available AZs is read from a pool passed down the invocation [2]. The list of AZs in the pool is set by readingic.Platform.AWS.DefaultMachinePlatform
andpool.Platform.AWS
variables [3]. Which are set bydependencies.Get(clusterID, installconfig, rhcosImage, wign)
line [4]. Something in the code is duplicatingus-east-1a
AZ which results in two machine sets generated instead of three.[1]
installer/pkg/asset/machines/aws/machinesets.go
Line 37 in 30e4f71
[2]
installer/pkg/asset/machines/worker.go
Line 146 in 30e4f71
[3]
installer/pkg/asset/machines/worker.go
Lines 136 to 137 in 30e4f71
[4]
installer/pkg/asset/machines/worker.go
Line 118 in 30e4f71
What you expected to happen?
One machineset created for each AZ with exactly one replica
How to reproduce it (as minimally and precisely as possible)?
Observed in CI: https://openshift-gce-devel.appspot.com/build/origin-ci-test/pr-logs/pull/openshift_kubernetes-autoscaler/90/pull-ci-openshift-kubernetes-autoscaler-master-e2e-aws-operator/270/
Search for:
$ your-commands-here
Anything else we need to know?
Enter text here.
References
The text was updated successfully, but these errors were encountered: