vmware-archive / nsx-ci-pipeline

NSX CI pipeline
Apache License 2.0
13 stars 5 forks source link

failed to evaluate variables into template: 200 errors occurred: #1

Open Murryy79 opened 7 years ago

Murryy79 commented 7 years ago

when i fly this pipeline, none of the variables are bound. What am i doing wrong?

ubuntu@Jumpbox:~/nsx-ci-pipeline/pipelines/new-setup-with-nsx-edge-gen$ ~/fly -t cfitest set-pipeline -p pcf -c pipeline.yml l ~/nsx-ci-pipeline/params/cfitest.params.yml failed to evaluate variables into template: 200 errors occurred:

sparameswaran commented 7 years ago

You are missing the - in front of l : fly -t lite set-pipeline -p pcf -c pipelines/new-setup-with-nsx-edge-gen/pipeline.yml -l params/env1-params.yml . The params file could not loaded correctly because of the missing -

Murryy79 commented 7 years ago

@sparameswaran Thanks for quick response. i do have the - . still same error ubuntu@Jumpbox:~/nsx-ci-pipeline$ ~/fly -t cfitest set-pipeline -p pcf -c pipelines/new-setup-with-nsx-edge-gen/pipeline.yml -l ~/nsx-ci-pipeline/params/cfitest.params.yml failed to evaluate variables into template: 200 errors occurred:

sparameswaran commented 7 years ago

Can you try to provide absolute path rather than ~/... for the file paths (and also verify with ls -al on the paths) and see if that works?

Murryy79 commented 7 years ago

@sparameswaran I tried absolute path. same issue. ubuntu@Jumpbox:~/nsx-ci-pipeline$ ~/fly -t cfitest set-pipeline -p pcf -c /home/ubuntu/nsx-ci-pipeline/pipelines/new-setup-with-nsx-edge-gen/pipeline.yml -l /home/ubuntu/nsx-ci-pipeline/params/cfitest.params.yml failed to evaluate variables into template: 200 errors occurred:

ubuntu@Jumpbox:~/nsx-ci-pipeline$ ls -ltr /home/ubuntu/nsx-ci-pipeline/pipelines/new-setup-with-nsx-edge-gen/pipeline.yml -rw-rw-r-- 1 ubuntu ubuntu 13073 Apr 21 15:32 /home/ubuntu/nsx-ci-pipeline/pipelines/new-setup-with-nsx-edge-gen/pipeline.yml

ubuntu@Jumpbox:~/nsx-ci-pipeline$ ls -al /home/ubuntu/nsx-ci-pipeline/params/cfitest.params.yml -rw-rw-r-- 1 ubuntu ubuntu 7222 Apr 24 18:08 /home/ubuntu/nsx-ci-pipeline/params/cfitest.params.yml ubuntu@Jumpbox:~/nsx-ci-pipeline$

sparameswaran commented 7 years ago

assuming that you have entered valid values in param file, can you post a gist with snippet of your params file (those that dont specify passwords or other secrets)?

sparameswaran commented 7 years ago

Hi, kindly check if the yaml params file is valid (using yamllint.com) as well as try adding a new variable in the pipeline and setting it in params file the equivalent name/value combo and see if fly picks the values. I suspect the values are not yaml conforming.