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] AWS terraform plan fails with ha_enabled=false #83

Open
mpagot opened this issue Oct 11, 2022 · 1 comment
Open

[terraform][AWS] AWS terraform plan fails with ha_enabled=false #83

mpagot opened this issue Oct 11, 2022 · 1 comment

Comments

@mpagot
Copy link
Collaborator

mpagot commented Oct 11, 2022

ERROR:QESAPDEP:STDERR:          Error: Invalid index
ERROR:QESAPDEP:STDERR:
ERROR:QESAPDEP:STDERR:            on modules/hana_node/outputs.tf line 23, in output "hana_vip":
ERROR:QESAPDEP:STDERR:            23:   value = split("/", aws_route.hana-cluster-vip.0.destination_cidr_block)[0]
ERROR:QESAPDEP:STDERR:              ├────────────────
ERROR:QESAPDEP:STDERR:              │ aws_route.hana-cluster-vip is empty tuple

It can be reproduced using config.yaml like

provider: aws
apiver: 1
terraform:
  variables:
    aws_region: "eu-west-1"
    deployment_name: ####
    os_image: "suse-sles-sap-15-sp4-byos"
    os_owner: "amazon"
    private_key: "####"
    public_key: "####.pub"
    aws_credentials: "~/.aws/credentials"
    hana_ips: ["10.0.1.11", "10.0.2.12"]
    hana_cluster_fencing_mechanism: "sbd"
    hana_cluster_vip: "10.0.0.15"

ansible:
  hana_urls:
    - "#####"
    - "#####"
    - "#####"
  create:
    - registration.yaml -e reg_code=${REG_CODE} -e email_address=${EMAIL}
    - pre-cluster.yaml
    - sap-hana-preconfigure.yaml
    - cluster_sbd_prep.yaml
    - sap-hana-storage.yaml
    - sap-hana-download-media.yaml
    - sap-hana-install.yaml
    - sap-hana-system-replication.yaml
    - sap-hana-system-replication-hooks.yaml
    - sap-hana-cluster.yaml
  destroy:
    - deregister.yaml
  variables:
    REG_CODE: "#####"
    EMAIL: ""
    SAPCONF: true

Also consider that false is the default value in

@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

In particular, it has

 hana_ha_enabled: "true"

That is not the default in AWS (maybe it should be?)

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

1 participant