-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Add Terraform Support for WireGroups. #13944
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
Add Terraform Support for WireGroups. #13944
Conversation
|
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are.
Missing test reportYour PR includes resource fields which are not covered by any test. Resource: resource "google_compute_wire_group" "primary" {
admin_enabled = # value needed
endpoints = # value needed
topology {
endpoints {
city = # value needed
label = # value needed
}
}
wire_group_properties = # value needed
wire_properties = # value needed
wires {
admin_enabled = # value needed
endpoints {
interconnect = # value needed
vlan_tag = # value needed
}
label = # value needed
}
}
Missing service labelsThe following new resources do not have corresponding service labels:
If you believe this detection to be incorrect please raise the concern with your reviewer. Googlers: This error is safe to ignore once you've completed go/fix-missing-service-labels. |
Tests analyticsTotal tests: 1189 Click here to see the affected service packages
Action takenFound 2 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
|
|
🔴 Tests failed during RECORDING mode: 🔴 Errors occurred during RECORDING mode. Please fix them to complete your PR. |
|
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are.
Missing test reportYour PR includes resource fields which are not covered by any test. Resource: resource "google_compute_wire_group" "primary" {
admin_enabled = # value needed
endpoints = # value needed
topology {
endpoints {
city = # value needed
label = # value needed
}
}
wire_properties {
fault_response = # value needed
}
wires {
admin_enabled = # value needed
endpoints {
interconnect = # value needed
vlan_tag = # value needed
}
label = # value needed
wire_properties {
bandwidth_unmetered = # value needed
fault_response = # value needed
}
}
}
Missing service labelsThe following new resources do not have corresponding service labels:
If you believe this detection to be incorrect please raise the concern with your reviewer. Googlers: This error is safe to ignore once you've completed go/fix-missing-service-labels. |
Tests analyticsTotal tests: 1197 Click here to see the affected service packages
Action takenFound 2 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
|
|
🔴 Tests failed during RECORDING mode: 🔴 Errors occurred during RECORDING mode. Please fix them to complete your PR. |
|
Hello! I am a robot. Tests will require approval from a repository maintainer to run. Googlers: For automatic test runs see go/terraform-auto-test-runs. @NickElliot, a repository maintainer, has been assigned to review your changes. If you have not received review feedback within 2 business days, please leave a comment on this PR asking them to take a look. You can help make sure that review is quick by doing a self-review and by running impacted tests locally. |
NickElliot
left a comment
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.
a couple test changes needed so they dont conflict with each other
| } | ||
|
|
||
| resource "google_compute_cross_site_network" "example-cross-site-network" { | ||
| name = "tf-test-cross-site-network" |
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.
| name = "tf-test-cross-site-network" | |
| name = "tf-test-cross-site-network%{random_suffix}" |
mmv1/third_party/terraform/services/compute/resource_compute_wire_group_test.go.tmpl
Outdated
Show resolved
Hide resolved
| } | ||
|
|
||
| resource "google_compute_cross_site_network" "example-cross-site-network" { | ||
| name = "tf-test-cross-site-network" |
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.
could this reference the test var? thanks!
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.
Sure that sounds fair.
|
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are.
Missing test reportYour PR includes resource fields which are not covered by any test. Resource: resource "google_compute_wire_group" "primary" {
admin_enabled = # value needed
endpoints = # value needed
topology {
endpoints {
city = # value needed
label = # value needed
}
}
wire_properties {
fault_response = # value needed
}
wires {
admin_enabled = # value needed
endpoints {
interconnect = # value needed
vlan_tag = # value needed
}
label = # value needed
wire_properties {
bandwidth_unmetered = # value needed
fault_response = # value needed
}
}
}
Missing service labelsThe following new resources do not have corresponding service labels:
If you believe this detection to be incorrect please raise the concern with your reviewer. Googlers: This error is safe to ignore once you've completed go/fix-missing-service-labels. |
|
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are.
Missing test reportYour PR includes resource fields which are not covered by any test. Resource: resource "google_compute_wire_group" "primary" {
admin_enabled = # value needed
endpoints = # value needed
topology {
endpoints {
city = # value needed
label = # value needed
}
}
wire_properties {
fault_response = # value needed
}
wires {
admin_enabled = # value needed
endpoints {
interconnect = # value needed
vlan_tag = # value needed
}
label = # value needed
wire_properties {
bandwidth_unmetered = # value needed
fault_response = # value needed
}
}
}
Missing service labelsThe following new resources do not have corresponding service labels:
If you believe this detection to be incorrect please raise the concern with your reviewer. Googlers: This error is safe to ignore once you've completed go/fix-missing-service-labels. |
Tests analyticsTotal tests: 1201 Click here to see the affected service packages
Action takenFound 11 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
|
1 similar comment
Tests analyticsTotal tests: 1201 Click here to see the affected service packages
Action takenFound 11 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
|
|
🟢 Tests passed during RECORDING mode: 🟢 No issues found for passed tests after REPLAYING rerun. 🔴 Tests failed during RECORDING mode: 🔴 Errors occurred during RECORDING mode. Please fix them to complete your PR. |
|
🟢 Tests passed during RECORDING mode: 🟢 No issues found for passed tests after REPLAYING rerun. 🔴 Tests failed during RECORDING mode: 🔴 Errors occurred during RECORDING mode. Please fix them to complete your PR. |
|
@NickElliot This PR has been waiting for review for 3 weekdays. Please take a look! Use the label |
|
@GoogleCloudPlatform/terraform-team @NickElliot This PR has been waiting for review for 1 week. Please take a look! Use the label |
Tests analyticsTotal tests: 1218 Click here to see the affected service packages
Found 4 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
|
|
🟢 Tests passed during RECORDING mode: 🟢 No issues found for passed tests after REPLAYING rerun. 🔴 Tests failed during RECORDING mode: 🔴 Errors occurred during RECORDING mode. Please fix them to complete your PR. |
NickElliot
left a comment
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.
could you follow the steps at go/fix-missing-service-labels? thanks!
|
Thanks! I looked at go/fix-missing-service-labels. |
NickElliot
left a comment
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
c4607e4
Co-authored-by: Nick Elliot <[email protected]>
Co-authored-by: Nick Elliot <[email protected]>
Co-authored-by: Nick Elliot <[email protected]>
Co-authored-by: Nick Elliot <[email protected]>
Co-authored-by: Nick Elliot <[email protected]>
Co-authored-by: Nick Elliot <[email protected]>
Co-authored-by: Nick Elliot <[email protected]>
Co-authored-by: Nick Elliot <[email protected]>
Co-authored-by: Nick Elliot <[email protected]>
Co-authored-by: Nick Elliot <[email protected]>
Co-authored-by: Nick Elliot <[email protected]>
The WireGroup resource represents a group of redundant wires between interconnects in two different metros.
google_compute_wire_group
The WireGroup resource represents a group of redundant wires between interconnects in two different metros. Each WireGroup belongs to a CrossSiteNetwork. A wire group defines endpoints and the wires which exist between them.
~> Warning: This resource is in beta, and should be used with the terraform-provider-google-beta provider.
See Provider Versions for more details on beta resources.
To get more information about WireGroup, see:
Example Usage - Compute Wire Group Basic
Argument Reference
The following arguments are supported:
name-(Required)
Name of the resource. Provided by the client when the resource is created. The name must be
1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters
long and match the regular expression
[a-z]([-a-z0-9]*[a-z0-9])?which means the firstcharacter must be a lowercase letter, and all following characters must be a dash,
lowercase letter, or digit, except the last character, which cannot be a dash.
cross_site_network-(Required)
Required cross site network to which wire group belongs.
description-(Optional)
An optional description of this resource. Provide this property when you create the resource.
endpoints-(Optional)
Endpoints grouped by location, each mapping to interconnect configurations.
admin_enabled-(Optional)
Indicates whether the wire group is administratively enabled.
wire_group_properties-(Optional)
Properties specific to the wire group.
Structure is documented below.
wire_properties-(Optional)
Default properties for wires within the group.
Structure is documented below.
project- (Optional) The ID of the project in which the resource belongs.If it is not provided, the provider project is used.
The
wire_group_propertiesblock supports:type-(Optional)
Type of wire group (enum).
WIRE: a single pseudowire over two Interconnect connections with no redundancy.
REDUNDANT: two pseudowires over four Interconnect connections, with two connections in one metro and two connections in another metro.
BOX_AND_CROSS: four pseudowires over four Interconnect connections, with two connections in one metro and two connections in another metro.
The
wire_propertiesblock supports:bandwidth_unmetered-(Optional)
The unmetered bandwidth setting.
fault_response-(Optional)
Response when a fault is detected in a pseudowire:
NONE: default.
DISABLE_PORT: set the port line protocol down when inline probes detect a fault. This setting is only permitted on port mode pseudowires.
Attributes Reference
In addition to the arguments listed above, the following computed attributes are exported:
id- an identifier for the resource with formatprojects/{{project}}/global/crossSiteNetworks/{{cross_site_network}}/wireGroups/{{name}}creation_timestamp-Creation timestamp in RFC3339 text format.
wires-The single/redundant wire(s) managed by the wire group.
Structure is documented below.
topology-Topology details for the wire group configuration.
Structure is documented below.
The
wiresblock contains:label-(Optional)
endpoints-(Optional)
'Wire endpoints are specific Interconnect connections.'
Structure is documented below.
wire_properties-(Output)
A nested object resource.
Structure is documented below.
admin_enabled-(Optional)
The
endpointsblock supports:interconnect-(Optional)
vlan_tag-(Optional)
The
wire_propertiesblock contains:bandwidth_unmetered-(Optional)
fault_response-(Optional)
The
topologyblock contains:endpoints-(Optional)
A nested object resource.
Structure is documented below.
The
endpointsblock supports:label-(Optional)
city-(Optional)
Timeouts
This resource provides the following
Timeouts configuration options:
create- Default is 20 minutes.update- Default is 20 minutes.delete- Default is 20 minutes.Import
WireGroup can be imported using any of these accepted formats:
projects/{{project}}/global/crossSiteNetworks/{{cross_site_network}}/wireGroups/{{name}}{{project}}/{{cross_site_network}}/{{name}}{{cross_site_network}}/{{name}}In Terraform v1.5.0 and later, use an
importblock to import WireGroup using one of the formats above. For example:When using the
terraform importcommand, WireGroup can be imported using one of the formats above. For example:User Project Overrides
This resource supports User Project Overrides.