You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
If you are interested in working on this issue or have submitted a pull request, please leave a comment
Terraform Version
Terraform v1.1.8
Affected Resource(s)
scaleway_vpc_public_gateway_pat_rule
Terraform Configuration Files
### Scaleway Private Networkresource"scaleway_vpc_private_network""monitoring" {
name="Monitoring"
}
### IP for Public Gatewayresource"scaleway_vpc_public_gateway_ip""monitoring_vpc_ip" {
}
### DHCP Space of VPCresource"scaleway_vpc_public_gateway_dhcp""monitoring_vpc_dhcp" {
subnet="10.0.0.0/24"
}
### The Public Gateway with the Attached IPresource"scaleway_vpc_public_gateway""monitoring_vpc_gw" {
name="Monitoring"type="VPC-GW-S"ip_id=scaleway_vpc_public_gateway_ip.monitoring_vpc_ip.id
}
### VPC Gateway Networkresource"scaleway_vpc_gateway_network""monitoring_vpc_gw_network" {
gateway_id=scaleway_vpc_public_gateway.monitoring_vpc_gw.idprivate_network_id=scaleway_vpc_private_network.monitoring.iddhcp_id=scaleway_vpc_public_gateway_dhcp.monitoring_vpc_dhcp.idcleanup_dhcp=trueenable_masquerade=truedepends_on=[
scaleway_vpc_public_gateway_ip.monitoring_vpc_ip,
scaleway_vpc_private_network.monitoring
]
}
### Elastic Stack Instanceresource"scaleway_instance_server""elastic_stack_instance" {
name="Elastic Stack"type="DEV1-S"image="debian_bullseye"tags=["Elastic Stack"]
enable_ipv6=falseuser_data={
cloud-init =file("${path.module}/cloud_init/default.yml")
}
private_network {
pn_id=scaleway_vpc_private_network.monitoring.id
}
}
### DHCP Reservation for Elastic Stack Instanceresource"scaleway_vpc_public_gateway_dhcp_reservation""elastic_stack_dhcp_ip" {
gateway_network_id=scaleway_vpc_gateway_network.monitoring_vpc_gw_network.idmac_address=scaleway_instance_server.elastic_stack_instance.private_network.0.mac_addressip_address="10.0.0.3"
}
### Elastic Stack SSH Portresource"scaleway_vpc_public_gateway_pat_rule""elastic_stack_instance_ssh" {
gateway_id=scaleway_vpc_public_gateway.monitoring_vpc_gw.idprivate_ip=scaleway_vpc_public_gateway_dhcp_reservation.elastic_stack_dhcp_ip.ip_addressprivate_port=22public_port=2023protocol="tcp"depends_on=[
scaleway_vpc_gateway_network.monitoring_vpc_gw_network,
scaleway_vpc_private_network.monitoring
]
}
Expected Behavior
The Private IP Address of the PAT Rule should change
Actual Behavior
Terraform throws this Error:
╷
│ Error: Provider produced inconsistent final plan
│
│ When expanding the plan for
│ scaleway_vpc_public_gateway_pat_rule.elastic_stack_instance_ssh to include
│ new values learned so far during apply, provider
│ "registry.terraform.io/scaleway/scaleway" produced an invalid new value for
│ .private_ip: was cty.StringVal("10.0.0.3"), but now
│ cty.StringVal("10.0.0.227").
│
│ This is a bug in the provider, which should be reported in the provider's
│ own issue tracker.
╵
Steps to Reproduce
terraform apply
Change IP of DHCP Reservation or only the PrivateIP in the PAT Rule
terraform apply
The text was updated successfully, but these errors were encountered:
The server should have the 192.168.1.100 ip address. But it gets another one.
It's like the server gets an IP address using DHCP dynamic addressing (which is fine…), but it never renews its lease to get the static IP address specified in the DHCP reservation.
Community Note
Terraform Version
Terraform v1.1.8
Affected Resource(s)
Terraform Configuration Files
Expected Behavior
The Private IP Address of the PAT Rule should change
Actual Behavior
Terraform throws this Error:
╷
│ Error: Provider produced inconsistent final plan
│
│ When expanding the plan for
│ scaleway_vpc_public_gateway_pat_rule.elastic_stack_instance_ssh to include
│ new values learned so far during apply, provider
│ "registry.terraform.io/scaleway/scaleway" produced an invalid new value for
│ .private_ip: was cty.StringVal("10.0.0.3"), but now
│ cty.StringVal("10.0.0.227").
│
│ This is a bug in the provider, which should be reported in the provider's
│ own issue tracker.
╵
Steps to Reproduce
terraform apply
Change IP of DHCP Reservation or only the PrivateIP in the PAT Rule
terraform apply
The text was updated successfully, but these errors were encountered: