AlibabaCloud: adding alibaba cloud platform#926
AlibabaCloud: adding alibaba cloud platform#926openshift-merge-robot merged 2 commits intoopenshift:masterfrom
Conversation
|
@elmiko @JoelSpeed Some of these values will be easy to populate based upon the or hard code for ioOptimized (might be that we do not need this one). The question I have is that for some of these values we need to query them or the terraform generation will need to pass them along to the manifests upon creation. How does this process work? I will attempt to see what other clouds have done to solve this same problem. The other question I have is the If the installer no longer populates the credentials, who/where does that secret come from? I am manually creating it today and the nodes successfully create but without them the API calls fail. Machines are created successfully. |
Normally, this kind of cluster specific information is injected into the machinesets by the installer. How this work differs slightly for each platform IIRC. On most platforms I think we don't rely on the explicit ID but instead the names and then lookup the entity based on the name, which does make things slightly easier. Probably best to talk to the installer team for this one as they'll have a better idea about what values can and can't be injected when the machineset manifests are generated |
5b0f39c to
d321aae
Compare
d321aae to
1bd22ab
Compare
| "fmt" | ||
| "testing" | ||
|
|
||
| alibaba "github.com/AliyunContainerService/cluster-api-provider-alibabacloud/pkg/apis/alibabacloudprovider/v1beta1" |
There was a problem hiding this comment.
This would have to be imported from openshift, ideally, openshift/api to avoid dependencies on individual provider repos
There was a problem hiding this comment.
The other providers have a mix of configuration. Some (gcp, vsphere) use their openshift respositories and others use their upstream sigs.k8s.io/cluster-api-provider- (aws, azure). I followed the 2nd one and then replaced this repository in the go.mod as the others do.
I see that some have moved here https://github.com/openshift/api/tree/master/machine/v1beta1
What does the process look like moving them into openshift/api? What happens to the openshift/cluster-api-provider-alibaba? What would you like me to do for this one?
There was a problem hiding this comment.
I have rebased and see that the work has moved to openshift/api. I will open a PR there and fix this when that merges.
| case configv1.AlibabaCloudPlatformType: | ||
| return images.ClusterAPIControllerAlibaba, nil |
There was a problem hiding this comment.
Does Alibaba support spot instances? If not, this doesn't need to be here
There was a problem hiding this comment.
Spot instances are known as "pay-as-you-go" and are a supported type. I am not sure our intention on using them or if this is required. I'll defer to your opinion @JoelSpeed.
There was a problem hiding this comment.
If it's already supported within the machine provider spec for alibaba, have they implemented a termination handler? Ref https://github.com/openshift/enhancements/blob/master/enhancements/machine-api/spot-instances.md#termination-handler-design
There was a problem hiding this comment.
I have implemented a termination hanlder. I will submit a PR later.
There was a problem hiding this comment.
@kwoodson @JoelSpeed Tomorrow I will submit a new PR to openshift/cluster-api-provider-alibaba
| // defaultAlibabaOSDiskOSType = "Linux" | ||
| // defaultAlibabaOSDiskStorageType = "Premium_LRS" | ||
| // AlibabaMaxDiskSizeGB = 32768 |
There was a problem hiding this comment.
Planning to also default these?
1bd22ab to
7883f71
Compare
| "runtime" | ||
| "strings" | ||
|
|
||
| alibaba "github.com/AliyunContainerService/cluster-api-provider-alibabacloud/pkg/apis/alibabacloudprovider/v1beta1" |
There was a problem hiding this comment.
I have opened up a PR here openshift/api#1045 and will remove once it merges.
7883f71 to
ba0c618
Compare
ba0c618 to
d4a09b8
Compare
084c167 to
9926df1
Compare
|
/hold |
|
@JoelSpeed I have removed the webhooks code as per our discussion. This is still awaiting github.com/openshift/api/pull/1045 in order to keep in line with the api refactor. |
|
/retest |
2 similar comments
|
/retest |
|
/retest |
|
Libvirt test is failing because of a missing secret. |
|
should be fine @kwoodson , the only tests which haven't passed are non-required. if @JoelSpeed is ok to approve this we should be able to merge tomorrow. |
|
We still can't merge this, https://issues.redhat.com/browse/ART-3535 is still in progress, AFAIK, waiting on ART |
81f5b85 to
4f8d902
Compare
|
A rebase was required to fix go.mod dependencies. I have updated and redeployed a cluster with the latest changes: |
|
Looking into why the unit tests failed. |
|
@JoelSpeed @elmiko Please TAL. I believe the failures (e2e-aws) are failing all CI jobs in openshift. This PR is not the cause. I reviewed the unit test failures but was unsure as to why they are failing. |
|
/test unit |
|
/approve |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: JoelSpeed The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/retest-required Please review the full test history for this PR and help us cut down flakes. |
2 similar comments
|
/retest-required Please review the full test history for this PR and help us cut down flakes. |
|
/retest-required Please review the full test history for this PR and help us cut down flakes. |
|
/retest-required |
|
/retest-required Please review the full test history for this PR and help us cut down flakes. |
3 similar comments
|
/retest-required Please review the full test history for this PR and help us cut down flakes. |
|
/retest-required Please review the full test history for this PR and help us cut down flakes. |
|
/retest-required Please review the full test history for this PR and help us cut down flakes. |
|
@kwoodson: The following tests failed, say
Full PR test history. Your PR dashboard. DetailsInstructions 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. |
The initial attempt at creating the necessary bits for Alibaba.