Open Murryy79 opened 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 -
@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:
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?
@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:
unbound variable in template: 'om_pwd' ubuntu@Jumpbox:~/nsx-ci-pipeline$
Verified with ls -al
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$
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)?
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.
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: