-
Notifications
You must be signed in to change notification settings - Fork 160
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
New MRS v2 cluster resource #1324
New MRS v2 cluster resource #1324
Conversation
- support master, core and task nodes management - support resize core groups for core and task group
"github.com/huaweicloud/golangsdk/openstack/mrs/v1/cluster" | ||
"github.com/huaweicloud/golangsdk/openstack/mrs/v2/clusters" |
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.
as we used both v1 and v2 packages, suggest to give an alias for one of them
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.
The v2 sdk use clusterV2
as an alias now.
huaweicloud/services/mrs/resource_huaweicloud_mapreduce_cluster.go
Outdated
Show resolved
Hide resolved
Type: schema.TypeString, | ||
Computed: true, | ||
}, | ||
"external_ip": { |
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.
public_ip?
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.
Not public IP, it's a external IP for MRS managent page and the external_ip
has been removed.
huaweicloud/services/mrs/resource_huaweicloud_mapreduce_cluster.go
Outdated
Show resolved
Hide resolved
huaweicloud/services/mrs/resource_huaweicloud_mapreduce_cluster.go
Outdated
Show resolved
Hide resolved
docs/resources/mapreduce_cluster.md
Outdated
* `subnet_id` - (Required, String, ForceNew) Specifies the network ID of a subnet. | ||
Changing this will create a new MapReduce cluster resource. | ||
|
||
-> **NOTE:** The duplication of subnet CIDR will cause the MRS cluster creation to fail. |
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.
can we create a subent with duplication CIDR?
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.
the description has been removed.
docs/resources/mapreduce_cluster.md
Outdated
* `external_ip` - The external IP address. | ||
* `private_ip` - The preferred private IP address. | ||
* `internal_ip` - The internal IP address. | ||
* `external_alternate_ip` - IP address of a Master node. |
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.
what's the differents between xx_ip ?
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.
The private_ip
is the virtual ip of the HA master node of the master node group.
The external_ip
, external_alternate_ip
and internal_ip
are not used, has been removed.
What this PR does / why we need it:
Compared with the V1 version of the cluster, the V2 version have a more user-friendly parameter structure, and supports enterprise project ID and node expansion and contraction.
Which issue this PR fixes:
(optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close that issue when PR gets merged)fixes #1149 #1306
Special notes for your reviewer:
Release note:
PR Checklist
Acceptance Steps Performed
basic test
with keypair