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

Invalid config files: Template fetching failed: Failed to find imported sample_quickstart_existing_network.yaml #9

Closed
JeffGiroux opened this issue Apr 26, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@JeffGiroux
Copy link

JeffGiroux commented Apr 26, 2022

Describe the bug

The "type" on the last line of sample_quickstart_existing_network.yaml is pointing to the new stack python file, quickstart.py. As a result it errors.

https://github.com/F5Networks/f5-google-gdm-templates-v2/blob/main/examples/quickstart/sample_quickstart_existing_network.yaml

Expected behavior

Deployment should proceed with an existing stack. YAML config should call the correct python template.

Good logs...

gcloud deployment-manager deployments create ${DEPLOYMENT_NAME} --config ${CONFIG_FILE}
The fingerprint of the deployment is b'PWlw8iOMYym1Q8RWv-odaQ=='
Waiting for create [operation-1650999139817-5dd933140d6e2-a3d287fc-8ffa239f]...done.              
Create operation operation-1650999139817-5dd933140d6e2-a3d287fc-8ffa239f completed successfully.
NAME                         TYPE                       STATE      ERRORS  INTENT
giroux321-app-int-fw         compute.v1.firewall        COMPLETED  []
giroux321-app-vip-fw         compute.v1.firewall        COMPLETED  []
giroux321-bigip-ti           compute.v1.targetInstance  COMPLETED  []
giroux321-bigip1             compute.v1.instance        COMPLETED  []
giroux321-fwrule1            compute.v1.forwardingRule  COMPLETED  []
giroux321-http-healthcheck   compute.v1.healthCheck     COMPLETED  []
giroux321-https-healthcheck  compute.v1.healthCheck     COMPLETED  []
giroux321-mgmt-fw            compute.v1.firewall        COMPLETED  []
giroux321-tcp-healthcheck    compute.v1.healthCheck     COMPLETED  []

Current behavior

The yaml file is pointing to the incorrect file, so an import error occurs.

Currently...

    type: quickstart.py

Errors otherwise...

ERROR: (gcloud.deployment-manager.deployments.create) Error in Operation [operation-1650998946779-5dd9325bf51cc-f826ca86-bac91560]: errors:
- code: INVALID_CONFIG
  message: "Invalid config files: Template fetching failed: Failed to find imported\
    \ template 'quickstart.py' for resource {name=quickstart-existing-network-py,\
    \ properties={bigIpImageName=f5-bigip-16-1-2-1-0-0-10-payg-best-plus-1gbps-211222210245,\
    \ bigIpInstanceType=n1-standard-8, bigIpRuntimeInitConfig=https://raw.githubusercontent.com/F5Networks/f5-google-gdm-templates-v2/v2.0.0.0/examples/quickstart/bigip-configurations/runtime-init-conf-3nic-payg-with-app.yaml,\
    \ networks={externalNetworkName=jgiroux-net-ext, internalNetworkName=jgiroux-net-int,\
    \ mgmtNetworkName=jgiroux-net-mgmt}, numNics=3, owner=giroux, provisionPublicIp=true,\
    \ region=us-west1, restrictedSrcAddressApp=[0.0.0.0/0], restrictedSrcAddressMgmt=[0.0.0.0/0],\
    \ subnets={appSubnetName=jgiroux-subnet-ext, internalSubnetName=jgiroux-subnet-int,\
    \ mgmtSubnetName=jgiroux-subnet-mgmt}, uniqueString=giroux321, zone=us-west1-a},\
    \ type=quickstart.py}.."

Possible solution

Needs to be...

    type: quickstart-existing-network.py

Steps to reproduce

  1. Run template for existing stack quickstart example

Screenshots

n/a

Context

n/a

Your Environment

n/a

@mikeshimkus
Copy link
Contributor

mikeshimkus commented Apr 26, 2022

Thanks @JeffGiroux. We addressed this in internal issue 2979 and it should be included in the next release.

@shyawnkarim shyawnkarim added the bug Something isn't working label May 6, 2022
@shyawnkarim shyawnkarim added this to the backlog milestone May 6, 2022
@shyawnkarim
Copy link

Closing.

This issue was resolved with Release 2.6.0.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants