Skip to content
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

[Terraform][AWS] Error: error creating Route in Route Table #84

Open
mpagot opened this issue Oct 11, 2022 · 3 comments
Open

[Terraform][AWS] Error: error creating Route in Route Table #84

mpagot opened this issue Oct 11, 2022 · 3 comments

Comments

@mpagot
Copy link
Collaborator

mpagot commented Oct 11, 2022

terraform:
  variables:
    hana_cluster_vip: "10.0.0.15"
    hana_ha_enabled: "true"

result in error during the terraform deployment step like:

ERROR:QESAPDEP:STDERR:          Error: error creating Route in Route Table (rtb-##############) with destination (10.0.0.15/32): InvalidParameterValue: Route destination doesn't match any subnet CIDR blocks.
ERROR:QESAPDEP:STDERR:                  status code: 400, request id: ###############
ERROR:QESAPDEP:STDERR:
ERROR:QESAPDEP:STDERR:            with module.hana_node.aws_route.hana-cluster-vip[0],
ERROR:QESAPDEP:STDERR:            on modules/hana_node/main.tf line 28, in resource "aws_route" "hana-cluster-vip":
ERROR:QESAPDEP:STDERR:            28: resource "aws_route" "hana-cluster-vip" {
@mpagot
Copy link
Collaborator Author

mpagot commented Oct 11, 2022

Fix the AWS terraform error if using:

terraform:
  variables:
    hana_cluster_vip: "192.168.1.12"
    hana_ha_enabled: "true"

@mpagot mpagot changed the title [Terraform][AWS] [Terraform][AWS] Error: error creating Route in Route Table Oct 11, 2022
@mr-stringer
Copy link
Contributor

You fixed this, didn't you?

@mpagot
Copy link
Collaborator Author

mpagot commented Oct 26, 2022

This particular config.yaml solve/hide the issue https://github.com/os-autoinst/os-autoinst-distri-opensuse/blob/master/data/sles4sap/qe_sap_deployment/qesap_aws.yaml
It does not use hana_cluster_vip at all, leaving terraform to calculate a default for it.

IPs suggested in the documentation are fine. We discussed about improving

var.hana_cluster_vip == "" || can(regex("^(?:[0-9]{1,3}\\.){3}[0-9]{1,3}$", var.hana_cluster_vip))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants