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
MULTIARCH-3669: Avoid setting VM provider ID as soon as VM creation #46
Conversation
@Karthik-K-N: all tests passed! 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. |
We've done something similar on other platforms, where we only set the provider ID once we have seen that the cloud returns that the VM exists, so if this works for you then it's not out of the ordinary comparing to other providers. |
This is happening because we are reading the field |
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.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Karthik-K-N, mkumatag 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 |
@Karthik-K-N @pravin-dsilva @juliemathew lets create a valid jira ticket for this and assign.. |
@Karthik-K-N: This pull request references MULTIARCH-3669 which is a valid jira issue. In response to this:
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. |
/label jira/valid-bug |
Currently we are trying to set provider id for vm as soon as vm creation call and which is resulting in error and requeing the request.
On an average it takes around 17-18seconds for the created vm to be seen in power clients GetAllInstances(),
Since we are requeing withing this time the controller will not see the previous instance creation call and tries to create one more VM, By this time the previous attempt to create VM is seen.
So the second attempt will fail with error saying "Vm with name already exist"
Error on setting provider id
Fixes: https://github.ibm.com/redstack-power/project-mgmt/issues/3466