-
Notifications
You must be signed in to change notification settings - Fork 233
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
Fix Alibaba cloud machinepool not creating instances with correct image ID #1795
Conversation
74886bf
to
2dc73c4
Compare
@abutcher this looks good for a review |
/assign @abutcher |
Codecov Report
@@ Coverage Diff @@
## master #1795 +/- ##
==========================================
- Coverage 41.74% 41.72% -0.02%
==========================================
Files 353 353
Lines 33082 33095 +13
==========================================
Hits 13810 13810
- Misses 18115 18129 +14
+ Partials 1157 1156 -1
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is consistent with how we obtain the AMI ID in the AWS actuator. I'd like to see an error returned if an imageID
is not present on the master machine but otherwise looks good.
logger.WithError(err).Warn("cannot decode AlibabaCloudMachineProviderSpec from master machine") | ||
return "", errors.Wrap(err, "cannot decode AlibabaCloudMachineProviderSpec from master machine") | ||
} | ||
imageID := providerSpec.ImageID |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can probably expect providerSpec.ImageID
to be set for the master machine but we should check that here and provide an error if not set similar to getAWSAMIID().
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
2dc73c4
to
b97e19a
Compare
@akhil-rane: The following test failed, say
Full PR test history. Your PR dashboard. 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. I understand the commands that are listed here. |
b97e19a
to
e0291fe
Compare
/lgtm |
/unlgtm |
github.com/onsi/gomega v1.17.0 | ||
github.com/openshift/api v0.0.0-20220427141643-6e7069f2fba2 | ||
github.com/onsi/gomega v1.18.1 | ||
github.com/openshift/api v0.0.0-20220531073726-6c4f186339a7 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry I missed this. This should line up with our apis submodule vendoring https://issues.redhat.com/browse/HIVE-1941
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#1810 will enforce :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@abutcher done
e0291fe
to
c18f5c6
Compare
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: abutcher, akhil-rane The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Currently, Alibaba machinepool actuator does not pull image ID from master machines before creating remote machinesets on the target cluster. With incorrect image ID new worker machine provisioning fails. This PR fixes it.
x-ref: https://issues.redhat.com/browse/HIVE-1612